Guest User

Untitled

a guest
Apr 6th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. while true do
  2. wait()
  3. for _,player in pairs(game.Players:GetPlayers()) do
  4. if (script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Position - player.Character.UpperTorso.Position).magnitude <= 10 then
  5. if script.Parent.Parent.Player.Value == "" then
  6. if player:FindFirstChild('INTAG') == nil then
  7. local NTAG = Instance.new('BoolValue')
  8. NTAG.Parent = player
  9. NTAG.Name = "INTAG"
  10. script.Parent.Parent.Player.Value = player.Name
  11. local NG = script.Parent.Parent.Browser:Clone()
  12. NG.Parent = player.PlayerGui
  13. NG.SearchBar.SearchText.PC.Value = script.Parent.Parent
  14.  
  15. end
  16. end
  17. elseif (script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Position - player.Character.UpperTorso.Position).magnitude > 10 then
  18. if script.Parent.Parent.Player.Value == player.Name then
  19. if player:FindFirstChild('INTAG') ~= nil then
  20. player.INTAG:Destroy()
  21. script.Parent.Parent.Player.Value = ""
  22. if player.PlayerGui:FindFirstChild('Browser') ~= nil then
  23. player.PlayerGui.Browser:Destroy()
  24. end
  25.  
  26. end
  27. end
  28.  
  29. end
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment