Hey, i've just learned how to use functions. Can someone fix this script up and tell me whats wrong?
function newmessage(text)
local m = Instance.new("Hint")
m.Parent = game.Workspace
m.Text = text
wait(3)
m:remove()
end
while true do
wait(8)
a = math.random(1,3)
if a == 1 then
text = "apple"
elseif a == 2 then
text = "blah"
elseif a == 3 then
text = "BAOMZ0R"
newmessage(text)
end
end
|