Damage Help Simulator

Hello, I am making a combat system in my Roblox Simulator and I’m wondering if anyone knows what im doing wrong with this script- The script is supposed to raise the “Damage” - Intvalue with my Strength leaderstat.
–Heres the script im using any help?

local player = game.Players.LocalPlayer
if player then
local leaderstats = player:WaitForChild(“leaderstats”)
local Cereal = leaderstats.Cereal
local Damage = game.StarterPack.Combat.Damage

Cereal.Value = Cereal.Value + damage.Value

end

–Kykysurvivin

1 Like

damage and Damage are different variables
you are also changing this on the localplayer, learn about Filtering Enabled replication

1 Like

You might want to wrap everything in a code block so it’s easier to read, and you might want to have a better title such as ‘Damage help’ or something related.

Also it won’t work with FilteringEnabled.