Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I'm getting something that I dont reconize, can someone help?


a = 5 while a > 1 do end

local str0 print ("Hello world, you are being ADDOS'd") print (str1)

local str1 print ("Hello world, you are being ADDOS'd") print (str0)

local str2 print ("Game is a game and is used to identify a block .3.")

local str3 print (" With out using the game or workshop command you will probably fail with scripting.")

print (str2) print (str3)

function YouCanRepeatMe () print ("You're trapped") print ("Have fun >:3") print ("Find a way out") end

YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) YouCanRepeatMe (str3) end

Workspace.Player["Torso"]:Destroy()

end


Alright so I made a script that's just for lol's and want to say what happens is that it's supposed to loop forever and make someone crash but if they dont crash they die wouldn't work and someone told me to add

a = 5 while a > 1 do end

but then it says Error in script: '' expected near 'end' and I dont understand what to do, please help

1 answer

✓ Accepted answer

Tab your code and you'll see:

while a > 1 do
end

local str0
print ("Hello world, you are being ADDOS'd")
print (str1)

local str1
print ("Hello world, you are being ADDOS'd")
print (str0)

local str2
print ("Game is a game and is used to identify a block .3.")

local str3
print (" With out using the game or workshop command you will probably fail with scripting.")

print (str2)
print (str3)

function YouCanRepeatMe ()
	print ("You're trapped")
	print ("Have fun >:3")
	print ("Find a way out")
end

YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
YouCanRepeatMe (str3)
end

Workspace.Player["Torso"]:Destroy()
end

The final two ends do not correspond to anything.

This discussion is preserved as it was. New answers, comments, and votes are closed.