place = CFrame.new(1,1,1) script.Parent.MouseButton1Down:connect(function() local humanoid = game.Players.LocalPlayer:FindFirstChild("Humanoid") if (humanoid ~= nil) then humanoid.Torso.CFrame = place end end)
When you click the parent it teleports the player who clicked anybody know?? [The script above doesn't work]
Instead of
local humanoid = game.Players.LocalPlayer:FindFirstChild("Humanoid") if (humanoid ~= nil) then humanoid.Torso.CFrame = place end end)
type:
local char = gme.Players.LocalPlayer.Character if char then char.HumanoidRootPart.CFrame = place end
You can't get the torso from the humanoid, but you can get it through the character like this:
R6:
place = CFrame.new(1,1,1) script.Parent.MouseButton1Down:connect(function() local player = game.Players.LocalPlayer local char = player.CharacterAdded:wait() if (char~= nil) then char.Torso.CFrame = place end end)
R15:
place = CFrame.new(1,1,1) script.Parent.MouseButton1Down:connect(function() local player = game.Players.LocalPlayer local char = player.CharacterAdded:wait() if (char~= nil) then char.LowerTorso.CFrame = place end end)