game.Players.PlayerAdded:connect(function(player)
game.Players.Chatted:connect(function(msg)
if msg == "TeleUP" then
function Tele(hit)
if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
game.LocalPlayer.Position = vector3.new(game.LocalPlayer.Position + vector3.new(0,50,0))
Tele()
end
end
end
end)
end)
I just found out how to use the .Chatted and I'm just having bit of trouble learning how to work it. So for practice I made this script but after testing it multiple times, I'm realizing it dosen't work. What I've been trying to do is, when you say the "Keyword" you'll teleport 50 units/studs (or whatever they're called) above from the spot you were at. I used my past experience with teleporting and did this script. How do I fix it? Thank you for the help.

1 comment
Wrong... When they get added it starts listening for .Chatted