i had to learn this the hard way. its actually simple. Its computer scripting code. heres a simple one:
debounce = false --this makes it so you dont bounce backwards
function onTouched(hit)--this is function. this is basicly what the main thing it will do is.
if debounce == false then--just a part to make sure of somthing
debounce = true
msg = Instance.new("Message")--this is for a message. it tells its a message.
msg.Parent = game.Workspace--this means the message will apear in the game for everyone instead of who touches it.
msg.Text = "insert message here"--the message
wait(3)--how long it shows up
msg:remove()--makes the message go away
debounce = false--make it false again
end--make it end
end
script.Parent.Touched:connect(onTouched)--just some stuff at the end for the rest of function.
all of this makes a message appear on the screen. it may seem complicated, but really its basic scripting, which is a main part of making a ROBLOX place. hope that helped.
|