Can someone tell me what is wrong with this script?
#2
I think this is what you need to do:

[lua]
function goTo(id)
local placeId = id + 0
game:load(placeId)
end

link(game.Players.ChildAdded, function(player)
link(player.Chatted, function(chat)
if string.sub(chat, 1, 5) == "goto/" then
goTo(string.sub(chat, 6))
end end) end)
[/lua]
[Image: chaosthegreat.png]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)