Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local CoinValue = Instance.new("TextLabel")
- local CoinText = Instance.new("TextBox")
- local Heal = Instance.new("TextButton")
- local Coin = Instance.new("TextButton")
- local Star = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0.14902, 0.14902, 0.14902)
- Frame.BackgroundTransparency = 0.10000000149012
- Frame.BorderColor3 = Color3.new(1, 1, 1)
- Frame.Draggable = true
- Frame.Position = UDim2.new(0.7, 0, 0.7, 0)
- Frame.Selectable = true
- Frame.Size = UDim2.new(0, 215, 0, 73)
- CoinValue.Name = "CoinValue"
- CoinValue.Parent = Frame
- CoinValue.BackgroundColor3 = Color3.new(0, 0, 0)
- CoinValue.BackgroundTransparency = 1
- CoinValue.BorderColor3 = Color3.new(1, 1, 1)
- CoinValue.BorderSizePixel = 2
- CoinValue.Position = UDim2.new(1000000000, 0, 1000000000, 0)
- CoinValue.Size = UDim2.new(0, 10, 0, 10)
- CoinValue.Font = Enum.Font.Cartoon
- CoinValue.Visible = false
- CoinValue.Text = "0"
- CoinValue.TextScaled = false
- CoinValue.TextSize = 10
- CoinText.Name = "CoinText"
- CoinText.Parent = Frame
- CoinText.AnchorPoint = Vector2.new(0.5, 0)
- CoinText.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- CoinText.BorderColor3 = Color3.new(1, 1, 1)
- CoinText.Position = UDim2.new(0.259, 0, 0.07, 0)
- CoinText.Size = UDim2.new(0, 100, 0, 30)
- CoinText.Font = Enum.Font.SourceSansBold
- CoinText.Text = "Set Amount"
- CoinText.TextColor3 = Color3.new(1, 1, 1)
- CoinText.TextSize = 14
- Heal.Name = "Heal"
- Heal.Parent = Frame
- Heal.AnchorPoint = Vector2.new(0.5, 0)
- Heal.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- Heal.BorderColor3 = Color3.new(1, 1, 1)
- Heal.Position = UDim2.new(0.741, 0, 0.07, 0)
- Heal.Size = UDim2.new(0, 100, -0.00999999978, 30)
- Heal.AutoButtonColor = false
- Heal.Font = Enum.Font.SourceSansBold
- Heal.Text = "Loop Heal Off"
- Heal.TextColor3 = Color3.new(1, 1, 1)
- Heal.TextSize = 14
- HealEnabled = false
- Coin.Name = "Coin"
- Coin.Parent = Frame
- Coin.AnchorPoint = Vector2.new(0.5, 0)
- Coin.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- Coin.BorderColor3 = Color3.new(1, 1, 1)
- Coin.Position = UDim2.new(0.259, 0, 0.525, 0)
- Coin.Size = UDim2.new(0, 100, -0.00999999978, 30)
- Coin.AutoButtonColor = false
- Coin.Font = Enum.Font.SourceSansBold
- Coin.Text = "Give "..CoinValue.Text.." Coins"
- Coin.TextColor3 = Color3.new(1, 1, 1)
- Coin.TextSize = 14
- Star.Name = "Star"
- Star.Parent = Frame
- Star.AnchorPoint = Vector2.new(0.5, 0)
- Star.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- Star.BorderColor3 = Color3.new(1, 1, 1)
- Star.Position = UDim2.new(0.741, 0, 0.525, 0)
- Star.Size = UDim2.new(0, 100, -0.00999999978, 30)
- Star.AutoButtonColor = false
- Star.Font = Enum.Font.SourceSansBold
- Star.Text = "Give 1 Star"
- Star.TextColor3 = Color3.new(1, 1, 1)
- Star.TextSize = 14
- CoinText.FocusLost:connect(function()
- CoinValue.Text = CoinText.Text
- CoinText.Text = "Current: "..CoinValue.Text
- if CoinValue.Text == "1" or CoinValue.Text == "-1" then
- Coin.Text = "Give "..CoinValue.Text.." Coin"
- else
- Coin.Text = "Give "..CoinValue.Text.." Coins"
- end
- wait(1.5)
- CoinText.Text = "Set Amount"
- end)
- Heal.MouseButton1Down:connect(function()
- if HealEnabled == false then
- HealEnabled = true
- Heal.Text = "Loop Heal On"
- else
- HealEnabled = false
- Heal.Text = "Loop Heal Off"
- end
- end)
- Coin.MouseButton1Down:connect(function()
- CoinsToGive = CoinValue.Text
- game.ReplicatedStorage.GiveCoins:FireServer(CoinsToGive)
- if CoinValue.Text == "1" or CoinValue.Text == "-1" then
- Coin.Text = "Gave "..CoinValue.Text.." Coin"
- wait(1.5)
- Coin.Text = "Give "..CoinValue.Text.." Coin"
- else
- Coin.Text = "Gave "..CoinValue.Text.." Coins"
- wait(1.5)
- Coin.Text = "Give "..CoinValue.Text.." Coins"
- end
- end)
- Star.MouseButton1Down:connect(function()
- game.ReplicatedStorage.GiveStar:FireServer(1) -- You can change this if you want
- end)
- while true do
- wait(0.05)
- if HealEnabled == true then
- game.ReplicatedStorage.Heal:FireServer()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement