#Teleport not working

1 messages · Page 1 of 1 (latest)

steel umbra
#

my script is supposed to show a gui momentarily, and then teleport the player to another part. The gui works, but the actually teleportation doesn't

#

local startpart = script.Parent

startpart.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
game.ReplicatedStorage.ShowTransition:FireClient(player)
task.wait(0.5)
local character = player.Character
character.HumanoidRootPart.Cframe = game.Workspace.limboMirror.CFrame
end
end)

tired mist
#

It’s because ur not setting an actual property lol simple mistype

#

CFrame rather than Cframe for “character.HumanoidRootPart.Cframe “

#

And a lil practice I see is setting the primary part cframe rather than directly the root part, it’ll be the same just looks clean

spark frigate
#

@tired mist u have a tp script?

tired mist
#

They message it above, although I don’t have the actual one, now I think of it it’s possible she mis copied it

#

Well then in that case you should probably create a local variable to the reference of ur LimboMirror and use waitForChild so you know the position exists