Advertisement
FilterYT

Untitled

Apr 17th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. --------------------------Variable
  2. Player = game.Players.LocalPlayer
  3. Player:WaitForChild('PlayerGui')
  4. print('Found')
  5. --------------------------Gui
  6. Gui = Instance.new('ScreenGui', Player.PlayerGui)
  7. Gui.Name = 'IceCreamGui'
  8. Frame = Instance.new('Frame', Gui)
  9. Frame.Name = 'Background'
  10. Frame.Size = UDim2.new(0.124,0,0.272,0)
  11. Frame.Position = UDim2.new(0.092,0,0.272,0)
  12. Frame.BackgroundColor3 = Color3.new(255,255,255)
  13. Frame.Selectable = true
  14. Frame.Active = true
  15. Frame.Draggable = true
  16. GuiName = Instance.new('TextLabel', Frame)
  17. GuiName.Text = 'Ice Cream Simulator Gui V1'
  18. GuiName.Size = UDim2.new(1,0,0.217,0)
  19. GuiName.Position = UDim2.new(0,0,0,0)
  20. GuiName.BackgroundColor3 = Color3.new(255,255,255)
  21. GuiName.TextScaled = true
  22. GuiName.Font = 4
  23. GuiName.TextColor3 = Color3.new(255,255,255)
  24. GuiName.TextStrokeTransparency = 0
  25. GuiName.TextStrokeColor3 = Color3.new(0,0,0)
  26. CoinButton = Instance.new('TextButton', Frame)
  27. CoinButton.Name = 'CoinButton'
  28. CoinButton.BackgroundColor3 = Color3.new(255,255,255)
  29. CoinButton.Size = UDim2.new(0.939,0,0.251,0)
  30. CoinButton.Position = UDim2.new(0.032,0,0.258,0)
  31. CoinButton.Text = 'Coin Script'
  32. CoinText = Instance.new('TextLabel', CoinButton)
  33. CoinText.Size = UDim2.new(0.72,0,0.455,0)
  34. CoinText.Position = UDim2.new(0.14,0,0.994,0)
  35. CoinText.Text = 'Off'
  36. CoinText.BackgroundTransparency = 1
  37. --------------------------CoinScript
  38. CoinOn = false
  39. -----------------------------Function
  40. function CoinFarm()
  41. _G.coins = true
  42. while _G.coins do
  43. print('CoinOn')
  44. wait(1) -- For Crash
  45. local d = game.Players.LocalPlayer.Character.HumanoidRootPart
  46. for i,v in pairs(game.Workspace:GetChildren()) do
  47. if v.name == 'Main Area' then
  48. for _, b in pairs(v.Coins:GetChildren()) do
  49. if b.name == 'RedCoin' then
  50. b.CFrame = d.CFrame
  51. end
  52. end
  53. end
  54. end
  55. end
  56. end
  57. -----------------------------Event
  58. CoinButton.MouseButton1Click:Connect(function()
  59. if CoinOn == false then
  60. CoinOn = true
  61. CoinText.Text = 'On'
  62. _G.coins = true
  63. spawn(CoinFarm)
  64. else
  65. CoinOn = false
  66. CoinText.Text = 'Off'
  67. _G.coins = false
  68. end
  69. end)
  70. ------------------------------Gui
  71. TokenButton = Instance.new('TextButton', Frame)
  72. TokenButton.Name = 'TokenButton'
  73. TokenButton.BackgroundColor3 = Color3.new(255,255,255)
  74. TokenButton.Size = UDim2.new(0.939,0,0.251,0)
  75. TokenButton.Position = UDim2.new(0.025,0,0.618,0)
  76. TokenButton.Text = 'Token Script'
  77. TokenText = Instance.new('TextLabel', TokenButton)
  78. TokenText.Size = UDim2.new(0.72,0,0.455,0)
  79. TokenText.Position = UDim2.new(0.134,0,0.997,0)
  80. TokenText.Text = 'Off'
  81. TokenText.BackgroundTransparency = 1
  82. -------------------------------TokenScript
  83. local TokenOn = false
  84. -----------------------------Function
  85. function TokenFarm()
  86. while _G.token do
  87. print('TokenOn')
  88. wait(1) -- For Crash
  89. local d = game.Players.LocalPlayer.Character.HumanoidRootPart
  90. for i,v in pairs(game.Workspace:GetChildren()) do
  91. if v.name == 'Main Area' then
  92. for _, b in pairs(v.Tokens:GetChildren()) do
  93. if b.name == 'Token' then
  94. b.CFrame = d.CFrame
  95. end
  96. end
  97. end
  98. end
  99. end
  100. end
  101. -----------------------------Event
  102. TokenButton.MouseButton1Click:Connect(function()
  103. if TokenOn == false then
  104. TokenOn = true
  105. TokenText.Text = 'On'
  106. _G.token = true
  107. spawn(TokenFarm)
  108. else
  109. TokenOn = false
  110. TokenText.Text = 'Off'
  111. _G.token = false
  112. end
  113. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement