|
| 17 Jun 2015 08:27 AM |
| Im trying to make a checkpoint system, that when you touch one checkpoint, but then go back and touch the previous one, You can change your Stage on either of them. The reason why im not using color Checkpoints, is because i can't save with those. Can anybody tell me how I could do this? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 17 Jun 2015 08:50 AM |
assuming you're using the checkpoint system I think you are...
Inside the Stage part, you should find a script. Change the script to this
function ot(hit) if hit.Parent ~= nil then local player = game.Players:playerFromCharacter(hit.Parent) if player ~= nil then local h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil then if h.Health ~= 0 then player.leaderstats.Stage.Value = script.Parent.Name end end end end end
script.Parent.Touched:connect(ot) |
|
|
| Report Abuse |
|
|