Forum > Coding >

api.SendLimitedLuaScript("scripthere") Not working

Posts: 3

Threads: 1

Joined: Jan, 2020

Reputation: 0

Posted

Everytime I enter api.SendLimitedLuaScript("scripthere") it gives me the error

Comma, ')', or a valid expression continuation expected.

I entered a noclip script.

   api.SendLimitedLuaScript("noclip = false

game:GetService('RunService').Stepped:connect(function()

if noclip then

game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)

end

end)

plr = game.Players.LocalPlayer

mouse = plr:GetMouse()

mouse.KeyDown:connect(function(key)

 

if key == "e" then

noclip = not noclip

game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)

end

end)

print('Loaded')

print('Press "E" to noclip')

")

So does anyone know how to fix this?

  • 0

Posts: 207

Threads: 22

Joined: Aug, 2019

Reputation: 3

Replied

First. Turn the script into a 1 line. Then change every " with '

  • 0

Exploits I made: Weirderschnitzel and Protox

Exploits I own: SynX-Calmari-Sentinel

 

Posts: 3

Threads: 1

Joined: Jan, 2020

Reputation: 0

Replied

Should I add spaces when I remove the lines?

  • 0

Added

I have tried everything you said but it wont work

  • 0

Posts: 207

Threads: 22

Joined: Aug, 2019

Reputation: 3

Replied

@Hexsploit

Whats your discord

  • 0

Exploits I made: Weirderschnitzel and Protox

Exploits I own: SynX-Calmari-Sentinel

 

Posts: 65

Threads: 15

Joined: Jan, 2020

Reputation: 0

Replied

Try this:

 

api.SendLimitedLuaScript(@"noclip = false

game:GetService('RunService').Stepped:connect(function()

if noclip then

game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)

end

end)

plr = game.Players.LocalPlayer

mouse = plr:GetMouse()

mouse.KeyDown:connect(function(key)

 

if key == 'e' then

noclip = not noclip

game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)

end

end)

print('Loaded')

print('Press 'E' to noclip')

")

 

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )