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

trying to make a game mimic a place of its' but it wont work?

Asked by 3 years ago

I couldn't think of ideas much ideas here. this is what I tried:


print("A") game.Players.PlayerRemoving:connect(function(p) if p:findFirstChild("leaderstats") then p:SaveInstance("SavedStatPNum"..tostring(game.PlaceId),p.leaderstats) end end) game.Players.PlayerAdded:connect(function(p) for k = 1, 60, 0.03 do wait() if p:findFirstChild("leaderstats") and p.DataReady then break end end local Loaded = nil if p:findFirstChild("leaderstats") and pcall(function() Loaded = p:LoadInstance("SavedStatPNum"..tostring(game.Places.Forest.PlaceId)) end) then for j, v in pairs(Loaded:GetChildren()) do pcall(function() p.leaderstats[v.Name].Value = v.Value end) end end end)

please help me, im lost?

0
the 2nd place is named Forest, and the main is test. Partykidcrazy2 3 — 3y
0
Leaderstats are already cross place, why are you including that in your script? FLIPPER4440 21 — 3y

Answer this question