Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------Variable
- Player = game.Players.LocalPlayer
- Player:WaitForChild('PlayerGui')
- print('Found')
- --------------------------Gui
- Gui = Instance.new('ScreenGui', Player.PlayerGui)
- Gui.Name = 'IceCreamGui'
- Frame = Instance.new('Frame', Gui)
- Frame.Name = 'Background'
- Frame.Size = UDim2.new(0.124,0,0.272,0)
- Frame.Position = UDim2.new(0.092,0,0.272,0)
- Frame.BackgroundColor3 = Color3.new(255,255,255)
- Frame.Selectable = true
- Frame.Active = true
- Frame.Draggable = true
- GuiName = Instance.new('TextLabel', Frame)
- GuiName.Text = 'Ice Cream Simulator Gui V1'
- GuiName.Size = UDim2.new(1,0,0.217,0)
- GuiName.Position = UDim2.new(0,0,0,0)
- GuiName.BackgroundColor3 = Color3.new(255,255,255)
- GuiName.TextScaled = true
- GuiName.Font = 4
- GuiName.TextColor3 = Color3.new(255,255,255)
- GuiName.TextStrokeTransparency = 0
- GuiName.TextStrokeColor3 = Color3.new(0,0,0)
- CoinButton = Instance.new('TextButton', Frame)
- CoinButton.Name = 'CoinButton'
- CoinButton.BackgroundColor3 = Color3.new(255,255,255)
- CoinButton.Size = UDim2.new(0.939,0,0.251,0)
- CoinButton.Position = UDim2.new(0.032,0,0.258,0)
- CoinButton.Text = 'Coin Script'
- CoinText = Instance.new('TextLabel', CoinButton)
- CoinText.Size = UDim2.new(0.72,0,0.455,0)
- CoinText.Position = UDim2.new(0.14,0,0.994,0)
- CoinText.Text = 'Off'
- CoinText.BackgroundTransparency = 1
- --------------------------CoinScript
- CoinOn = false
- -----------------------------Function
- function CoinFarm()
- _G.coins = true
- while _G.coins do
- print('CoinOn')
- wait(1) -- For Crash
- local d = game.Players.LocalPlayer.Character.HumanoidRootPart
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.name == 'Main Area' then
- for _, b in pairs(v.Coins:GetChildren()) do
- if b.name == 'RedCoin' then
- b.CFrame = d.CFrame
- end
- end
- end
- end
- end
- end
- -----------------------------Event
- CoinButton.MouseButton1Click:Connect(function()
- if CoinOn == false then
- CoinOn = true
- CoinText.Text = 'On'
- _G.coins = true
- spawn(CoinFarm)
- else
- CoinOn = false
- CoinText.Text = 'Off'
- _G.coins = false
- end
- end)
- ------------------------------Gui
- TokenButton = Instance.new('TextButton', Frame)
- TokenButton.Name = 'TokenButton'
- TokenButton.BackgroundColor3 = Color3.new(255,255,255)
- TokenButton.Size = UDim2.new(0.939,0,0.251,0)
- TokenButton.Position = UDim2.new(0.025,0,0.618,0)
- TokenButton.Text = 'Token Script'
- TokenText = Instance.new('TextLabel', TokenButton)
- TokenText.Size = UDim2.new(0.72,0,0.455,0)
- TokenText.Position = UDim2.new(0.134,0,0.997,0)
- TokenText.Text = 'Off'
- TokenText.BackgroundTransparency = 1
- -------------------------------TokenScript
- local TokenOn = false
- -----------------------------Function
- function TokenFarm()
- while _G.token do
- print('TokenOn')
- wait(1) -- For Crash
- local d = game.Players.LocalPlayer.Character.HumanoidRootPart
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.name == 'Main Area' then
- for _, b in pairs(v.Tokens:GetChildren()) do
- if b.name == 'Token' then
- b.CFrame = d.CFrame
- end
- end
- end
- end
- end
- end
- -----------------------------Event
- TokenButton.MouseButton1Click:Connect(function()
- if TokenOn == false then
- TokenOn = true
- TokenText.Text = 'On'
- _G.token = true
- spawn(TokenFarm)
- else
- TokenOn = false
- TokenText.Text = 'Off'
- _G.token = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement