Migrated to dedicated hosting. Post any weirdness you observe in the Lounge.
local mains = script.Parentlocal window = mains.DPFramelocal bttn1 = window.SaveBttnlocal bttn2 = window.LoadBttnlocal NameOfLeaderstatToDonate = "Coins"local BadgeService = game:GetService("BadgeService")local VipFrame = mains.VIPFramelocal VipFrameAck = VipFrame.Frame.exlocal Utils = assert(LoadLibrary("RbxUtility"))function waitForChild(p, c) while not p:FindFirstChild(c) dop.ChildAdded:wait();endreturn p[c];endlocal localplayervalue = waitForChild(mains, "LocalPlayer") local player = localplayervalue.Valuelocal leaderstatss = waitForChild(player, "leaderstats") local theleaderstat = waitForChild(leaderstatss, NameOfLeaderstatToDonate) function ifusritm(id)return BadgeService:UserHasBadge(player.userId, id)endfunction loadScore(plyr, clickCounter)local score = plyr:LoadNumber("stage") if not score == 0 thenclickCounter.Value = scoreelseprint("Nothing to load../..score was 0")endendfunction SaveScore(plyr, score)plyr:SaveNumber("stage", score)endfunction loadToolz(plyr, clickCounter)local score = plyr:LoadString("tools") if not score == "" thenlocal T = Utils.DecodeJSON(score)local E = game:GetService("Lighting"):FindFirstChild("Inventory")if T == nil then return endfor i=1,#T do local lol = T[i]local child = E:FindFirstChild(lol)if child thenchild:Clone().Parent = player.Backpackchild:Clone().Parent = player.StarterGearendendelseprint("Nothing to load../..score was blank")endendfunction SaveToolz(plyr, score)plyr:SaveString("tools", score)endfunction SpecialToolSaver()local Tools = {}local T = player.StarterGear:GetChildren()for i=1,#T do local lol = T[i]if lol:IsA("HopperBin") or lol:IsA("Tool") thentable.insert(lol.Name,Tools)end endUtils.EncodeJSON(Tools)endfunction onClicked()player:WaitForDataReady()if player.DataReady == true thenloadScore(player, theleaderstat)m = Instance.new("Message",player.PlayerGui)m.Text = NameOfLeaderstatToDonate.. " loaded!"game:service("Debris"):AddItem(m, 3)elsem = Instance.new("Message",player.PlayerGui)m.Text = "Wait until DataReady!"game:service("Debris"):AddItem(m, 3)endend function onClicked1()player:WaitForDataReady()if player.DataReady == true thenSaveScore(player, theleaderstat.Value)m = Instance.new("Message",player.PlayerGui)m.Text = NameOfLeaderstatToDonate.. " saved!"game:service("Debris"):AddItem(m, 3)elsem = Instance.new("Message",player.PlayerGui)m.Text = "Wait until DataReady!"game:service("Debris"):AddItem(m, 3)endend function onClickd() --VIP, SVIP, SUVIPif ifusritm(100288988) or ifusritm(100289007) or ifusritm(100289030) thenif theleaderstat.Value <= 500 thentheleaderstat.Value = 500endT = game:GetService("Lighting").Inventory:GetChildren() for i=1,#T do if T[i]:FindFirstChild("VIP") thenif player.Backpack:FindFirstChild(T[i].Name) == nil thenT[i]:Clone().Parent = player.BackpackT[i]:Clone().Parent = player.StarterGearendend endend if ifusritm(100289007) or ifusritm(100289030) thenif theleaderstat.Value <= 1500 thentheleaderstat.Value = 1500endT = game:GetService("Lighting").Inventory:GetChildren() for i=1,#T do if T[i]:FindFirstChild("SVIP") thenif player.Backpack:FindFirstChild(T[i].Name) == nil thenT[i]:Clone().Parent = player.BackpackT[i]:Clone().Parent = player.StarterGearendend endend if ifusritm(100289030) thenif theleaderstat.Value <= 10000 thentheleaderstat.Value = 10000endT = game:GetService("Lighting").Inventory:GetChildren() for i=1,#T do if T[i]:FindFirstChild("SUVIP") thenif player.Backpack:FindFirstChild(T[i].Name) == nil thenT[i]:Clone().Parent = player.BackpackT[i]:Clone().Parent = player.StarterGearendend endend endbttn1.MouseButton1Click:connect(onClicked1)bttn2.MouseButton1Click:connect(onClicked)VipFrameAck.MouseButton1Click:connect(onClickd)