Advertisement
Death_Data

Untitled

Feb 2nd, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Mouse = Player:GetMouse()
  3. local cam = workspace.CurrentCamera
  4.  
  5. local Char = Player.Character or Player.CharacterAdded:wait()
  6. local HumanoidRootPart = Char:WaitForChild("HumanoidRootPart")
  7. local Humanoid = Char:WaitForChild("Humanoid")
  8.  
  9.  
  10. local GUI = script:WaitForChild("NameGUI"):Clone()
  11. GUI.Parent = Player.PlayerGui
  12. local Label = GUI:WaitForChild("Player")
  13.  
  14. local Creator = {"RVVZ"}
  15. local Head_Admins = {}
  16. local Mods = {}
  17. local Builders = {"MATTHEWSPENCE20"}
  18. local Scripters = {""}
  19.  
  20. function GetPlr(Target)
  21. if Char ~= nil and Target ~= nil then
  22. for i,Player in pairs(workspace:GetChildren()) do
  23. local Character = Player
  24. if Character ~= nil and Character ~= Char and Target:IsDescendantOf(Character) and Character:FindFirstChildOfClass("Humanoid") and Character:FindFirstChild("HumanoidRootPart") then
  25. return Character
  26. end
  27. end
  28. end
  29. end
  30.  
  31. function Ting()
  32. Mouse.TargetFilter = Char
  33. local FoundChar = GetPlr(Mouse.Target)
  34. if FoundChar ~= nil and HumanoidRootPart then
  35. local FoundHumanoidRootPart = FoundChar.HumanoidRootPart
  36. local Magnitude = (HumanoidRootPart.Position - FoundHumanoidRootPart.Position).Magnitude
  37. if Magnitude < 500 then
  38. Label.Visible = true
  39. Label.Text = FoundChar.Name
  40. Label.Position = UDim2.new(0.025,Mouse.X,0,Mouse.Y)
  41.  
  42. local IsBuilder = false
  43. for i,TableVal in ipairs(Builders) do
  44. if TableVal == FoundChar.Name then
  45. IsBuilder = true
  46. end
  47. end
  48. if FoundChar.Name == "RVVZ" then
  49. Label.RVVZ.Visible = true
  50. elseif IsBuilder == true then
  51. Label.BUILDER.Visible = true
  52. else
  53. Label.BUILDER.Visible = false
  54. Label.RVVZ.Visible = false
  55. end
  56. else
  57. Label.Visible = false
  58. end
  59. else
  60. Label.Visible = false
  61. end
  62. end
  63.  
  64. Mouse.Move:Connect(function()
  65. pcall(Ting)
  66. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement