local Re = game:GetService("ReplicatedStorage") local Plrs = Re.Players local Remotes = Re:WaitForChild("Remotes") Remotes.Events["Add stats"].onServerEvent:connect(function(plr, args) local stuff = Plrs[plr.Name].Stuff print("Fired event, args are " .. args) if stuff.Points.Value > 0 then print"ok" if args == "STR" then stuff.Points.Value = stuff.Points.Value - 1 stuff.STR.Value = stuff.STR.Value + 1 elseif args == "WIS" then stuff.Points.Value = stuff.Points.Value - 1 stuff.WIS.Value = stuff.WIS.Value + 1 elseif args == "DEF" then stuff.Points.Value = stuff.Points.Value - 1 stuff.DEF.Value = stuff.DEF.Value + 1 end end end)
how about this? it doesnt print ok even tho my points are over 1