Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Module = require(game.ServerScriptService.ModuleScript)
- local Tping = {}
- local Id = 11041386987
- script.Parent.PrimaryPart.Touched:Connect(function(H)
- if H.Parent:FindFirstChild("Humanoid") then
- local Plr = game.Players:GetPlayerFromCharacter(H.Parent)
- if not table.find(Tping,Plr.Name) then
- table.insert(Tping,Plr.Name)
- local Signal = Module:Teleport(Id,{Plr})
- Signal:ListenForFail(function(Res)
- if Res ~= Enum.TeleportResult.IsTeleporting then
- local Index = table.find(Tping,Plr.Name)
- if Index then
- table.remove(Tping,Index)
- end
- warn(Res)
- end
- end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement