ok so im trying to make it so the higher your defense stat the more health you have, the part im stuck on is the server script. I have no idea on what to put here so any tips and advice would be great.
local event = game.ReplicatedStorage:WaitForChild("Def")
event.OnServerEvent:Connect(function(player)
--change INT VALUE here
end)
This is where my Defense stat is stored if that helps
local Stats = player:WaitForChild("Stats")
local Strength = Stats:FindFirstChild("Defense")

4 comments
codeblocks please
yeah kinda new to this, edited
Sorry if my explanation was worded incorrectly but i need to know what to put in the server-side script so that the remote even activates and changes the max health based on the amount of defense i have
yeah was that not it? thats server side