bin = script.Parent sfx = bin.Sound
function teleportPlayer(pos)
local char = game.Workspace.Part char.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
end
enabled = true function onButton1Down(mouse) if not enabled then return end
local player = game.Players.LocalPlayer if player == nil then return end local cf = mouse.Hit teleportPlayer(cf.p) sfx:play()
end
I don't find my error.