Advertisement
MandB

Add Strength

Aug 17th, 2022
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. ReplicatedStorage.Remotes.AddStrength.OnServerEvent:Connect(function(player,add)
  3.    
  4.     local leaderstats = player:WaitForChild("leaderstats")
  5.     local strength = leaderstats:WaitForChild("Strength")
  6.    
  7.     strength.Value += add
  8.    
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement