local rs = game:GetService("ReplicatedStorage")
local part = script.Parent
local isTouched = false
local oldCoords = script.Parent.Parent.OldCoord.Position
local newCoords = script.Parent.Parent.NewCoord.Value.Position
local teamplayers = game:GetService("Players")
part.Touched:Connect(function(plrwhotouch)
if not isTouched then
local playerobj = teamplayers:FindFirstChild(plrwhotouch.Parent.Name)
isTouched = true
rs.Events.TeleportationToClient:FireClient(playerobj)
end
end)
rs.Events.TeleportationToServer.OnServerEvent:Connect(function(player,root)
root.Parent:MoveTo(Vector3.new(newCoords))
rs.Events.TeleportationToClientSecond:FireClient(player)
isTouched = false
end)
Does anyone know why? Thanks in advance
EDIT: Realized that it was the CFrames causing issues. Changed it to Vector3 Positions but still get the same problem.

1 comment
Changed everything to Positions, and I still get teleported to random spots.