NikkoLim

Untitled

Dec 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local TextButton = Instance.new("TextButton")
  3. local Frame = Instance.new("Frame")
  4. local ScrollingFrame = Instance.new("ScrollingFrame")
  5. local autofill = Instance.new("TextButton")
  6. local sell = Instance.new("TextButton")
  7. local tp = Instance.new("TextButton")
  8. local label = Instance.new("TextButton")
  9. local autofillEnabled = false
  10.  
  11. ScreenGui.Parent = game.CoreGui
  12.  
  13. TextButton.Parent = ScreenGui
  14. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  15. TextButton.BorderSizePixel = 0
  16. TextButton.Position = UDim2.new(0, 10, 0, 10)
  17. TextButton.Size = UDim2.new(0, 50, 0, 50)
  18. TextButton.Font = Enum.Font.SourceSans
  19. TextButton.Text = "Open"
  20. TextButton.TextColor3 = Color3.new(0, 0, 0)
  21. TextButton.TextSize = 14
  22.  
  23. Frame.Parent = ScreenGui
  24. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  25. Frame.BorderSizePixel = 0
  26. Frame.Position = UDim2.new(0, 68, 0, 10)
  27. Frame.Size = UDim2.new(0, 145, 0, 169)
  28. Frame.Visible = false
  29.  
  30. ScrollingFrame.Parent = Frame
  31. ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  32. ScrollingFrame.BorderSizePixel = 0
  33. ScrollingFrame.Position = UDim2.new(0, 2, 0, 2)
  34. ScrollingFrame.Size = UDim2.new(1, -4, 1, -4)
  35. ScrollingFrame.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  36. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  37. ScrollingFrame.ScrollBarThickness = 10
  38. ScrollingFrame.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  39.  
  40. autofill.Name = "autofill"
  41. autofill.Parent = ScrollingFrame
  42. autofill.BackgroundColor3 = Color3.new(1, 1, 1)
  43. autofill.BorderSizePixel = 0
  44. autofill.Size = UDim2.new(1, -10, 0, 18)
  45. autofill.Font = Enum.Font.SourceSans
  46. autofill.Text = "AutoFill: false"
  47. autofill.TextColor3 = Color3.new(0, 0, 0)
  48. autofill.TextSize = 14
  49.  
  50. sell.Name = "sell"
  51. sell.Parent = ScrollingFrame
  52. sell.BackgroundColor3 = Color3.new(1, 1, 1)
  53. sell.BorderSizePixel = 0
  54. sell.Position = UDim2.new(0, 0, 0, 20)
  55. sell.Size = UDim2.new(1, -10, 0, 18)
  56. sell.Font = Enum.Font.SourceSans
  57. sell.Text = "Sell everything"
  58. sell.TextColor3 = Color3.new(0, 0, 0)
  59. sell.TextSize = 14
  60.  
  61. tp.Name = "tp"
  62. tp.Parent = ScrollingFrame
  63. tp.BackgroundColor3 = Color3.new(1, 1, 1)
  64. tp.BorderSizePixel = 0
  65. tp.Position = UDim2.new(0, 0, 0, 40)
  66. tp.Size = UDim2.new(1, -10, 0, 18)
  67. tp.Font = Enum.Font.SourceSans
  68. tp.Text = "tp to your base"
  69. tp.TextColor3 = Color3.new(0, 0, 0)
  70. tp.TextSize = 14
  71.  
  72. label.Name = "label"
  73. label.Parent = ScrollingFrame
  74. label.BackgroundColor3 = Color3.new(1, 1, 1)
  75. label.BorderSizePixel = 0
  76. label.Position = UDim2.new(0, 0, 0, 60)
  77. label.Size = UDim2.new(1, -10, 0, 18)
  78. label.Font = Enum.Font.SourceSans
  79. label.Text = "TP To rebirth sign"
  80. label.TextColor3 = Color3.new(0, 0, 0)
  81. label.TextSize = 14
  82.  
  83. TextButton.MouseButton1Down:Connect(function()
  84. if Frame.Visible == true then
  85. Frame.Visible = false
  86. TextButton.Text = "Open"
  87. else
  88. Frame.Visible = true
  89. TextButton.Text = "Close"
  90. end
  91. end)
  92.  
  93. autofill.MouseButton1Down:Connect(function()
  94. if autofillEnabled == true then
  95. autofillEnabled = false
  96. autofill.Text = "AutoFill: false"
  97. else
  98. autofillEnabled = true
  99. autofill.Text = "AutoFill: true"
  100. end
  101. end)
  102.  
  103. label.MouseButton1Down:Connect(function()
  104. local snowmanBases = game.Workspace.snowmanBases:GetChildren()
  105. for i=1,#snowmanBases do
  106. print(snowmanBases[i].player.Value)
  107. if snowmanBases[i].player.Value == game.Players.LocalPlayer then
  108. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(snowmanBases[i].rebirthControl.sign.Position.X-5, snowmanBases[i].rebirthControl.sign.Position.Y, snowmanBases[i].rebirthControl.sign.Position.Z))
  109. end
  110. end
  111. end)
  112.  
  113. tp.MouseButton1Down:Connect(function()
  114. local snowmanBases = game.Workspace.snowmanBases:GetChildren()
  115. for i=1,#snowmanBases do
  116. print(snowmanBases[i].player.Value)
  117. if snowmanBases[i].player.Value == game.Players.LocalPlayer then
  118. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(snowmanBases[i].sign.sign.Position.X, snowmanBases[i].sign.sign.Position.Y-20, snowmanBases[i].sign.sign.Position.Z))
  119. end
  120. end
  121. end)
  122.  
  123. sell.MouseButton1Down:Connect(function()
  124. game.ReplicatedStorage.ThisGame.Calls.snowballControllerFunc:InvokeServer("stopRoll")
  125. game.ReplicatedStorage.ThisGame.Calls.snowballController:FireServer("addToSnowman")
  126. end)
  127.  
  128.  
  129. local shop = Instance.new("TextButton")
  130. shop.Name = "label"
  131. shop.Parent = ScrollingFrame
  132. shop.BackgroundColor3 = Color3.new(1, 1, 1)
  133. shop.BorderSizePixel = 0
  134. shop.Position = UDim2.new(0, 0, 0, 80)
  135. shop.Size = UDim2.new(1, -10, 0, 18)
  136. shop.Font = Enum.Font.SourceSans
  137. shop.Text = "To shop"
  138. shop.TextColor3 = Color3.new(0, 0, 0)
  139. shop.TextSize = 14
  140. shop.MouseButton1Down:Connect(function()
  141. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1700, 21, 53)
  142. end)
  143. local item = Instance.new("TextButton")
  144. item.Name = "g5445g5454"
  145. item.Parent = ScrollingFrame
  146. item.BackgroundColor3 = Color3.new(1, 1, 1)
  147. item.BorderSizePixel = 0
  148. item.Position = UDim2.new(0, 0, 0, 100)
  149. item.Size = UDim2.new(1, -10, 0, 18)
  150. item.Font = Enum.Font.SourceSans
  151. item.Text = "TP To green candy canes"
  152. item.TextColor3 = Color3.new(0, 0, 0)
  153. item.TextSize = 14
  154. item.MouseButton1Down:Connect(function()
  155. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2082, 32, -14)
  156. end)
  157.  
  158. -- do not add anything under here
  159. while wait() do
  160. if autofillEnabled == true then
  161. game:GetService("ReplicatedStorage").ThisGame.Calls.collectSnow:FireServer()
  162. end
  163. end
Add Comment
Please, Sign In to add comment