Is Lua different here?
Posted: 2010-08-17, 21:11
I may seem like a complete newbie when I ask this, but I used to play a game called Roblox which involved a simpler version of Lua scripting, which used mainly functions, and events that connected to the functions. Like, a script would be inserted into a brick, and would change color when touched like so:
function onTouched(hit)
script.Parent.BrickColor = BrickColor.new((math.random(1,255)))
wait(1)
end
script.Parent.Touched:connect(onTouched)
Roblox said that their version of Lua was heavily simplified since it's audience is mostly children, but would a script like that even do anything in Cafu? I have more examples if needed.
function onTouched(hit)
script.Parent.BrickColor = BrickColor.new((math.random(1,255)))
wait(1)
end
script.Parent.Touched:connect(onTouched)
Roblox said that their version of Lua was heavily simplified since it's audience is mostly children, but would a script like that even do anything in Cafu? I have more examples if needed.