local Rep = game:GetService("ReplicatedStorage")
local Event = Rep:WaitForChild("YAS")
Event.OnServerEvent:Connect(function(plr)
local leaderstats = plr:FindFirstChild("leaderstats")
leaderstats.Strength.Value += 1 -- Shorthand unary operator for "leaderstats.Strength = leaderstats.Strength + 1"
end)
That's basically the ServerScriptService ( Which add u the stats )
And that's my StarterPlayerScripts
local UIS = game:GetService("UserInputService")
local Replicated = game:GetService("ReplicatedStorage")
local Event = Replicated:WaitForChild("YAS")
UIS.InputBegan:Connect(function(Key)
if Key.KeyCode == Enum.KeyCode.E then
Event:FireServer()
end
end)
So basically as far as I know I gotta add in the ServerScriptService load animation that I made. Idk how to do that, Thanks tho :)

1 comment
Both of the comments really helpful, I understand what you did. Playing the anim when the even firing smart. thanks