Advertisement
skylershults

Radar script (LEAKED) shows where you are on map

Jan 14th, 2017
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. script.Parent = nil
  2. me = game.Players.XxrockatackxX
  3.  
  4. function getparts(path)
  5. local parts = {}
  6. for _,v in pairs(path:GetChildren()) do
  7. if v:IsA("BasePart") then
  8. table.insert(parts,v)
  9. end
  10. for _,k in pairs(v:GetChildren()) do
  11. if k:IsA("BasePart") then
  12. table.insert(parts,k)
  13. end
  14. for _,i in pairs(k:GetChildren()) do
  15. if i:IsA("BasePart") then
  16. table.insert(parts,i)
  17. end
  18. end
  19. end
  20. end
  21. return parts
  22. end
  23.  
  24.  
  25. function gui()
  26. distance = 110
  27. sizemultiplier = 2
  28.  
  29. dist = distance*sizemultiplier
  30.  
  31. map = Instance.new("ScreenGui",me.PlayerGui)
  32. map.Name = "Map"
  33.  
  34. bg = Instance.new("ImageLabel",map)
  35. bg.Size = UDim2.new(0,dist*2,0,dist*2)
  36. bg.Position = UDim2.new(0.02,0,0.24,0)
  37. bg.Image = "http://www.roblox.com/asset/?id=42302151"
  38. bg.BackgroundTransparency = 1
  39.  
  40.  
  41. mepoint = Instance.new("ImageLabel",bg)
  42. mepoint.Size = UDim2.new(0,15,0,15)
  43. mepoint.Position = UDim2.new(0.46,0,0.46,0)
  44. mepoint.BackgroundTransparency = 1
  45. mepoint.Image = "http://www.roblox.com/asset/?id=42302520"
  46.  
  47.  
  48. empoint = Instance.new("Frame")
  49. empoint.Size = UDim2.new(0,12,0,12)
  50. empoint.BorderSizePixel = 0
  51.  
  52.  
  53. siz = Instance.new("TextLabel",bg)
  54. siz.Size = UDim2.new(0.3,0,0.06,0)
  55. siz.Position = UDim2.new(0,0,-0.06,0)
  56. siz.Text = "Size multiply"
  57. siz.BackgroundColor3 = Color3.new(0.4,0.4,0.4)
  58. siz.BackgroundTransparency = 0.6
  59.  
  60.  
  61. sizea = Instance.new("TextBox",siz)
  62. sizea.Size = UDim2.new(1,0,1,0)
  63. sizea.Position = UDim2.new(0,0,1,0)
  64. sizea.Text = 2
  65. sizea.BackgroundColor3 = Color3.new(0.4,0.4,0.4)
  66. sizea.BackgroundTransparency = 0.6
  67. sizea.Changed:connect(function(prop)
  68. if prop == "Text" then
  69. sizemultiplier = sizea.Text
  70. end
  71. end)
  72.  
  73.  
  74. while true do
  75. wait(0.1)
  76. local objs = getparts(workspace)
  77. for _,v in pairs(objs) do
  78. if me.Character:findFirstChild("Head") then
  79. local di = (me.Character.Head.Position - v.Position).magnitude
  80. if di < dist/(sizemultiplier+0.4) then
  81. if v.Size.X < 20 or v.Size.Z < 20 then
  82. local pos = me.Character.Head.Position*sizemultiplier
  83. local pos2 = v.Position*sizemultiplier
  84. local cool1 = -(pos2.X - pos.X)
  85. local cool2 = -(pos2.Z - pos.Z)
  86. local um = empoint:clone()
  87. um.Parent = mepoint
  88. local ok1 = v.Size.X*sizemultiplier
  89. local ok2 = v.Size.Z*sizemultiplier
  90. um.BackgroundColor = v.BrickColor
  91. um.BackgroundTransparency = v.Transparency/2
  92. um.Size = UDim2.new(0,ok1,0,ok2)
  93. um.Position = UDim2.new(0,cool1-(um.Size.X.Offset/2)+6,0,cool2-(um.Size.Y.Offset/2)+6)
  94. coroutine.resume(coroutine.create(function() wait(0.14) um:remove() end))
  95. end
  96. end
  97. end
  98. end
  99. end
  100. end
  101.  
  102.  
  103. gui(me)
  104. change = function(por)
  105. if por == "Character" then
  106. gui(me)
  107. end
  108. end
  109.  
  110. me.Changed:connect(change)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement