Hello scripters! I have been trying to create an IntValue as soon as game.Players.PlayerAdded I wanted to make the value name "healthval" and Parent to be my local player. This is the code i tried using, but it did not work.
game.Players.PlayerAdded:connect(function(plr)
Instance.new("IntValue").Parent = plr
local healthval = plr:FindFirstChild("Value")
healthval.Name = 'healthval'
end)
