Advertisement
Vzurxy

Untitled

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