Can you write me a roblox script that sets a leaderstat named "Cash" to 99999999999
Certainly! Below is a simple Roblox script that creates a leaderstat named "Cash" for each player that joins the game, and sets its value to `99999999999`. You can place this script in `ServerScriptService` for it to work properly.
```lua
-- Script to create leaderstats for each player
-- Function that is called when a player joins
game.Players.PlayerAdded:Connect(function(player)
-- Create a folder for leaderstats
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
-- Create the Cash variable
local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Value = 99999999999 -- Set the value to 99999999999
cash.Parent = leaderstats
end)
```
### How to Use This Script:
1. Open Roblox Studio.
2. Navigate to the **Explorer** panel. If you don't see it, enable it from the **View** tab.
3. Find `ServerScriptService` in the Explorer panel.
4. Right-click on `ServerScriptService`, select **Insert Object**, and choose **Script**.
5. Delete any default code in the script, then paste the code above.
6. Save and playtest your game. When you join, you should see your "Cash" leaderstat with the value of `99999999999`.
### Important Note:
- Keep in mind that in Roblox, prefixing values with "IntValue" means the maximum value should be within the limits of a signed 32-bit integer, which is `2,147,483,647`. Using values larger than this may lead to unexpected behavior. Adjust the value to stay within this range if needed.


