Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

i tried to make a little kill to level script and it isnt working,can anyone tell me why?

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******

2 comments

0

Have you tried using OnServerEvent ?

0

yea and its still not working for some reason

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.