ToonX056Script 57a9aaf316 Update and rename README.md to GoFishing
-- Service to handle players
local Players = game:GetService("Players")

-- Function to add money to a player
local function addMoney(player, amount)
    -- Check if the player has a leaderstats folder
    local leaderstats = player:FindFirstChild("leaderstats")
    if leaderstats then
        local money = leaderstats:FindFirstChild("Money")
        if money then
            money.Value = money.Value + amount
        end
    end
end

-- Create a leaderstats folder when a player joins
Players.PlayerAdded:Connect(function(player)
    -- Create leaderstats folder
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player

    -- Create a Money value
    local money = Instance.new("IntValue")
    money.Name = "Money"
    money.Value = 0 -- Initial money
    money.Parent = leaderstats
end)

-- Example: Adding a button to give money
local button = Instance.new("TextButton")
button.Text = "Add Money"
button.Size = UDim2.new(0, 200, 0, 50)
button.Position = UDim2.new(0.5, -100, 0.5, -25)
button.Parent = game.StarterGui.ScreenGui

-- Add money when the button is clicked
button.MouseButton1Click:Connect(function()
    local player = Players.LocalPlayer
    if player then
        addMoney(player, 100) -- Add 100 money
    end
end)
2025-01-05 13:37:44 +07:00
2021-12-03 12:13:29 -08:00
2014-03-27 17:04:56 +01:00
2019-03-08 08:47:43 -04:00
2022-02-02 15:20:30 -06:00
2024-05-29 06:42:42 +05:30
2016-10-31 18:27:09 -04:00
2015-11-20 18:14:33 +01:00
2011-02-21 18:02:55 -08:00
2018-06-05 11:09:20 +07:00
2021-04-13 10:39:58 -04:00
2015-03-14 17:29:54 -07:00
2016-06-06 22:23:51 +03:00
2021-05-07 11:59:24 -07:00
2014-03-27 17:04:56 +01:00
2018-06-18 12:35:46 +07:00
2016-10-27 03:19:31 +11:00
2016-07-28 10:18:33 +02:00
2017-09-07 18:55:03 +02:00
2014-03-27 17:04:56 +01:00
2014-12-08 21:05:58 +09:00
2023-09-18 15:43:20 -04:00
2024-05-29 09:54:32 -03:00
2022-01-30 15:45:09 -08:00
2014-09-08 00:52:39 -04:00
2018-06-18 12:38:20 +07:00
2024-05-31 14:30:26 +03:00
2021-03-15 14:32:59 +06:00
2014-12-03 11:33:11 +01:00
2024-12-02 16:57:14 +08:00
2016-10-28 11:18:45 -04:00
2018-09-25 16:26:00 +02:00
2019-09-10 11:58:47 -03:00
2019-03-21 14:10:28 -03:00
2012-03-03 02:08:17 +01:00
2020-08-30 19:21:51 -05:00
2022-02-07 19:05:49 +09:00
2013-11-12 15:09:20 +07:00
2021-07-11 13:03:23 +08:00
2022-02-01 08:44:27 +00:00
2024-06-12 11:56:01 -07:00
2018-05-24 00:12:37 -05:00
2021-04-21 13:37:41 +02:00
2015-08-22 20:56:50 +09:00
2019-03-18 09:14:04 -03:00
2013-10-06 14:40:01 +02:00
2012-07-31 11:57:21 +08:00
2018-08-08 22:39:04 +02:00
2024-06-03 17:30:12 +02:00
2024-04-30 19:14:07 +02:00
2014-03-27 17:04:56 +01:00
2013-10-21 16:20:37 +11:00
2014-06-21 20:02:16 +04:00
2024-09-07 14:21:37 +02:00
S
Description
A collection of useful .gitignore templates
CC0-1.0
19 MiB
0 Stars 1 Watchers 0 Forks
Languages
CODEOWNERS 100%