Honansik

Obby King

Jul 11th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.32 KB | None | 0 0
  1. game:GetService("UserInputService").InputBegan:Connect(function(inp)
  2.         if inp.KeyCode == Enum.KeyCode.F3 then
  3.            
  4.  
  5. -- Gui to Lua
  6. -- Version: 3.2
  7.  
  8. -- Instances:
  9.  
  10. local Main = Instance.new("ScreenGui")
  11. local Bar = Instance.new("ImageLabel")
  12. local UIGradient = Instance.new("UIGradient")
  13. local Max = Instance.new("TextLabel")
  14. local Min = Instance.new("TextLabel")
  15. local Users = Instance.new("Frame")
  16. local User = Instance.new("Frame")
  17. local Points = Instance.new("TextLabel")
  18. local Image = Instance.new("ImageLabel")
  19.  
  20. --Properties:
  21.  
  22. Main.Name = "Main"
  23. Main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24.  
  25. Bar.Name = "Bar"
  26. Bar.Parent = Main
  27. Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  28. Bar.BackgroundTransparency = 1.000
  29. Bar.Position = UDim2.new(0.959273219, 0, 0.252380937, 0)
  30. Bar.Size = UDim2.new(0.0281601995, 0, 0.494047612, 0)
  31. Bar.Image = "rbxassetid://3570695787"
  32. Bar.ScaleType = Enum.ScaleType.Slice
  33. Bar.SliceCenter = Rect.new(100, 100, 100, 100)
  34. Bar.SliceScale = 0.040
  35.  
  36. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(50, 50, 50))}
  37. UIGradient.Rotation = 90
  38. UIGradient.Parent = Bar
  39.  
  40. Max.Name = "Max"
  41. Max.Parent = Main
  42. Max.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. Max.BackgroundTransparency = 1.000
  44. Max.Position = UDim2.new(0.961152971, 0, 0.190476179, 0)
  45. Max.Size = UDim2.new(0.0243107937, 0, 0.0464285389, 0)
  46. Max.Text = "13"
  47. Max.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. Max.TextScaled = true
  49. Max.TextWrapped = true
  50.  
  51. Min.Name = "Min"
  52. Min.Parent = Main
  53. Min.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. Min.BackgroundTransparency = 1.000
  55. Min.Position = UDim2.new(0.961152971, 0, 0.767857134, 0)
  56. Min.Size = UDim2.new(0.0243107937, 0, 0.0464285389, 0)
  57. Min.Text = "0"
  58. Min.TextColor3 = Color3.fromRGB(255, 255, 255)
  59. Min.TextScaled = true
  60. Min.TextWrapped = true
  61.  
  62. Users.Name = "Users"
  63. Users.Parent = Main
  64. Users.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  65. Users.BackgroundTransparency = 1.000
  66. Users.Position = UDim2.new(0.895990074, 0, 0.252380967, 0)
  67. Users.Size = UDim2.new(0.0532581471, 0, 0.494047612, 0)
  68.  
  69. User.Name = "User"
  70. User.Parent = Main
  71. User.AnchorPoint = Vector2.new(0, 1)
  72. User.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  73. User.BackgroundTransparency = 1.000
  74. User.Position = UDim2.new(0, 0, 1, 0)
  75. User.Size = UDim2.new(1, 0, 0.0915662646, 0)
  76. User.Visible = false
  77. Points.Name = "Points"
  78. Points.Parent = User
  79. Points.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80. Points.BackgroundTransparency = 1.000
  81. Points.Size = UDim2.new(0.5, 0, 1, 0)
  82. Points.Text = "12"
  83. Points.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. Points.TextScaled = true
  85. Points.TextWrapped = true
  86.  
  87. Image.Name = "Image"
  88. Image.Parent = User
  89. Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  90. Image.BackgroundTransparency = 1.000
  91. Image.Position = UDim2.new(0.5, 0, 0, 0)
  92. Image.Size = UDim2.new(0.5, 0, 1, 0)
  93. Image.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=1&width=420&height=420&format=png"
  94.  
  95. -- Scripts:
  96.  
  97. local function MCANL_fake_script() -- Main.Main
  98.     local script = Instance.new('LocalScript', Main)
  99.  
  100.     maxParts = #game:GetService("Workspace").Map:GetChildren()[1].Obby:GetChildren()
  101.     script.Parent.Max.Text = maxParts
  102.     plr = {}
  103.     function move(obj,maxo,value)
  104.         game.TweenService:Create(obj,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut), {Position=UDim2.new(0,0,value,0),AnchorPoint=Vector2.new(0,value)}):Play()
  105.         obj.Points.Text = math.abs(value*maxo-maxo)
  106.     end
  107.     for i,v in pairs(game.Players:GetChildren()) do
  108.         if v.Team.Name ~= "Contestants" then continue end
  109.         local a = User:Clone()
  110.         a.Parent = Users
  111.         a.Image.Image = game.Players:GetUserThumbnailAsync(v.UserId,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420)
  112.         a.Points.Text = 0
  113.         a.Visible = true
  114.         plr[v] = a
  115.     end
  116.     game:GetService("UserInputService").InputBegan:Connect(function(inp)
  117.         if inp.KeyCode == Enum.KeyCode.F2 then
  118.             script.Parent:Destroy()
  119.         end
  120.        
  121.     end)
  122.     while wait(1) do
  123.         for i,v in pairs(game.Players:GetChildren()) do
  124.             a = plr[v]
  125.             if a then
  126.             move(a,maxParts,math.abs(v.DATA.PartCount.Value/maxParts-1))
  127.         end
  128. if v.Team.Name == "Winners" then
  129. a:Destroy()
  130. plr[v] = nil
  131. end
  132.         end
  133.     end
  134. end
  135. coroutine.wrap(MCANL_fake_script)()
  136.         end
  137.        
  138.     end)
Add Comment
Please, Sign In to add comment