I don't understand much about remote events but this is my code,
local player = game.Players.LocalPlayer
local lift = game.ReplicatedStorage.Lift
local sell = game.ReplicatedStorage.Sell
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Parent = player
leaderstats.Name = "leaderstats"
local Strength = Instance.new("NumberValue")
Strength.Name = "Strength"
Strength.Parent = leaderstats
local Cash = Instance.new("NumberValue")
Cash.Name = "Cash"
Cash.Parent = leaderstats
lift.OnServerEvent:Connect(function(player)
Strength.Value = Strength.Value + 1
end)
sell.OnServerEvent:Connect(function(player)
Cash.Value = Strength.Value + Cash.Value
Strength.Value = 0
end)
player.CharacterAppearanceLoaded:Connect(function(character)
local humaniod = character.Humanoid
humaniod:WaitForChild("BodyDepthScale").Value = .5 + (Strength.Value / 100)
humaniod:WaitForChild("BodyHeightScale").Value = .5 + (Strength.Value / 100)
humaniod:WaitForChild("BodyWidthScale").Value = .5 + (Strength.Value / 100)
humaniod:WaitForChild("HeadScale").Value = .5 + (Strength.Value / 100)
humaniod.WalkSpeed = 16 + (Strength.Value / 10)
humaniod.MaxHealth = 100 + (Strength.Value / 10)
Strength:GetPropertyChangedSignal("Value"):Connect(function()
humaniod:WaitForChild("BodyDepthScale").Value = .5 + (Strength.Value / 100)
humaniod:WaitForChild("BodyHeightScale").Value = .5 + (Strength.Value / 100)
humaniod:WaitForChild("BodyWidthScale").Value = .5 + (Strength.Value / 100)
humaniod:WaitForChild("HeadScale").Value = .5 + (Strength.Value / 100)
humaniod.WalkSpeed = 16 + (Strength.Value / 10)
humaniod.MaxHealth = 100 + (Strength.Value / 10)
end)
end)
end)

3 comments
GeneratedScript's version also works as well!
How would I also apply this to a button because I'm gonna add a sell button
To do this for a sell button, in a LocalScript inside of the button you would do the click function and then fire the server, and then from the server remove their strength and convert the amount that you want into however much you want.