|
| 29 Jun 2016 12:01 AM |
I have this script made as a universal script to change the stage, since I'm making an obby for fun. Here is the script: local DS = game:GetService("DataStoreService"):GetDataStore("Saves") for i,v in pairs(script.Parent:GetChildren()) do if v.ClassName ~= "Script" then v.Touched:connect(function(hit) if hit.Parent.Humanoid then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player.leaderstats.Stage == v.Name - 1 then player.leaderstats.Stage = v.Name local key = player.userId local stage = player.leaderstats.Stage DS:SetAsync(key, stage.Value) end end end) end end When I test & touch the brick named "1" in the model, I continue to stay rank 0. It's probably some easy-to-spot, careless mistake I made since I am tired. Thanks. |
|
|
| Report Abuse |
|
| |