So my script that is suppose to teleport the player to the position shown in the script but for some reason it just won't do so it keeps hitting this error "Failed to upindex 'player' " I've tried rewriting it to what is in the script now
local player = game.Players.LocalPlayer local pos = -215, 3, -14 wait(5) script.Parent.Visible = true script.Parent.MouseButton1Down:connect(function(click) script.Parent.Parent.Parent:Destroy() game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(-215, 3, -14) -- local player instead of using the player value end)