Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Whaleboard script version 1.00 loaded")
- function onPlayerEntered(newPlayer)
- local stats = Instance.new("IntValue")
- stats.Name = "leaderstats"
- local blubber = Instance.new("IntValue")
- blubber.Name = "Krabby Patties"
- blubber.Value = 0
- local power = Instance.new("IntValue")
- power.Name = "Power"
- power.Value = 0
- power.Parent = stats
- blubber.Parent = stats
- -- VERY UGLY HACK
- -- Will this leak threads?
- -- Is the problem even what I think it is (player arrived before character)?
- while true do
- if newPlayer.Character ~= nil then break end
- wait(5)
- end
- local humanoid = newPlayer.Character.Humanoid
- stats.Parent = newPlayer
- end
- game.Players.ChildAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement