Advertisement
Guest User

No errors doesn't work

a guest
Jun 30th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Stats = game.ReplicatedStorage.PlayerStats:WaitForChild(Player.Name)
  3. local Character = Player.Character or Player.CharacterAdded:wait()
  4. local Humanoid = script.Parent:WaitForChild("Human")
  5.  
  6. function Reward()
  7. Stats:WaitForChild("Exp").Value = Stats:WaitForChild("Exp").Value+50
  8. end
  9.  
  10. Humanoid.Died:connect(Reward)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement