Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Death Counter script interfering with Levels Script?

Asked by 4 years ago

I am currently making an obby. I added a death counter script, but I also had a levels script to show what level you are on. The levels script did not function properly when I added in the death counter script. Here is the script for the death counter:

01ocal plrs = game.Players
02 
03 
04plrs.PlayerAdded:Connect(function(plr)
05 
06    local stats = Instance.new("Folder")  
07    stats.Name = "leaderstats"
08    stats.Parent = plr
09 
10    local wipeouts = Instance.new("IntValue"
11    wipeouts.Name = "Wipeouts"
12    wipeouts.Value = 0
13    wipeouts.Parent = stats
14 
15    plr.CharacterAdded:Connect(function(char)
View all 25 lines...

2 answers

Log in to vote
0
Answered by 4 years ago
1local --TYPO
Ad
Log in to vote
0
Answered by
sprtony 20
4 years ago

Did you add the Level name as "Wipeouts"? Perhaps there is no error in the script, but the name is different, this causes the script to malfunction.

Answer this question