Im Making a Teleporter to My friends airline on roblox. Idk what to say more. heres the script (The Problem will be written down below)
local Teleporter = script.Parent
local Teleporter2 = script.Parent.Parent.Teleporter2
local debounce = false
Teleporter.Touched:Connect(function()
if debounce == false then
debounce = true
game.Players.LocalPlayer.character.Torso.CFrame = CFrame.new(workspace.Teleporter2.Position)
debounce = false
end
end)
Now Why does it give out error? Cuz I have been doing the same before (In another way of teleporting).
Please help

2 comments
Is this a serverscript?
@Zethuslmam yes. i attempted to Put it in localscript. No errors but It dont teleport you