Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- wait()
- for _,player in pairs(game.Players:GetPlayers()) do
- if (script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Position - player.Character.UpperTorso.Position).magnitude <= 10 then
- if script.Parent.Parent.Player.Value == "" then
- if player:FindFirstChild('INTAG') == nil then
- local NTAG = Instance.new('BoolValue')
- NTAG.Parent = player
- NTAG.Name = "INTAG"
- script.Parent.Parent.Player.Value = player.Name
- local NG = script.Parent.Parent.Browser:Clone()
- NG.Parent = player.PlayerGui
- NG.SearchBar.SearchText.PC.Value = script.Parent.Parent
- end
- end
- elseif (script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Position - player.Character.UpperTorso.Position).magnitude > 10 then
- if script.Parent.Parent.Player.Value == player.Name then
- if player:FindFirstChild('INTAG') ~= nil then
- player.INTAG:Destroy()
- script.Parent.Parent.Player.Value = ""
- if player.PlayerGui:FindFirstChild('Browser') ~= nil then
- player.PlayerGui.Browser:Destroy()
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment