I wanted to make a christmas event and make another leaderstat: "Gifts". I tried separating them into 2 different scripts, but if i change the coin.name to Gifts then it would just change the entire coin currency into Gifts.
Try this:
-- Declare the leaderstats and set their initial values to 0 local leaderstats = Instance.new("Folder") leaderstats.Name = "Leaderstats"
local coins = Instance.new("IntValue") coins.Name = "Coins" coins.Parent = leaderstats coins.Value = 0
local gifts = Instance.new("IntValue") gifts.Name = "Gifts" gifts.Parent = leaderstats gifts.Value = 0
-- Add the leaderstats to the player's character leaderstats.Parent = game.Players.LocalPlayer.Character