Hey! I’m Tanvir, I wanted to make this topic because I need your help to help me out with my teleport GUI! the scripts are in replicated storage
and the script is in ServerScriptService
RedJuli21 is my scripter, he’s on a break so I need help on the tp GUI
and the tp Gui is in starter GUI
but when a player joins and they try the Teleport GUI, it doesn’t seem to work
do
if self.OldPos and self.TeleportCheck then
local OldVector, NewVector = Vector3.new(self.OldPos.X, 0, self.OldPos.Z), Vector3.new(HRP.Position.X, 0, HRP.Position.Z)
local distance = (OldVector-NewVector).Magnitude
if distance > 40 and (tick()-self.LastDetection) > 2 then
self:Teleport(self.OldPos, "Vector")
self.Detections['Teleport'] += 1
ExploitLogs:Add(self.Player.Name.." got flagged for teleporting. "..self.Detections['Teleport'])
end
OldVector, NewVector = nil
distance = nil
end
end```