So i made door that can make you teleport to the target location using Proximity Prompt and script like this
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local RootPlayer = Character:WaitForChild("HumanoidRootPart")
local Button = script.Parent
local TargetLocation = game.Workspace:WaitForChild("ProTeleportC")
Button.Triggered:Connect(function()
RootPlayer.Position = TargetLocation.Position
end)
is everyone know what is wrong?. oh yah, in the terminal say Script 'Workspace.ProTeleportB.ProximityPrompt.Script', Line 2 - Studio - Script:2
** You are now Level 3! **