local humanoid = script.Parent:WaitForChild("Humanoid") local Player = game.Players.LocalPlayer local Event = game.ReplicatedStorage.GiveExp if script.Parent.Humanoid.Health<1 then Player.Level.Current.Value = Player.Level.Current.Value + 50 print("Added Exp") end******
COMMUNITY QUESTION
i tried to make a little kill to level script and it isnt working,can anyone tell me why?
1 answer
game.Players.LocalPlayer may not be used in ServerSided scripts. Use it in a local script.
1 comment
0
it is already a local script but its still not working?
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Have you tried using OnServerEvent ?
yea and its still not working for some reason