📋 Scripts -[ 1️⃣ Checkpoint Script: script.Parent.Touched:Connect(function(hit) if game.Players:FindFirstChild(hit.Parent.Name) then local plr = game.Players:FindFirstChild(hit.Parent.Name) if plr:FindFirstChild("leaderstats") and plr.leaderstats:FindFirstChild("Level") then plr.leaderstats.Level.Value = script.Parent.Level.Value end end end) 2️⃣ Leaderstats Script: game.Players.PlayerAdded:Connect(function(plr) local l = Instance.new("Folder",plr) l.Name = "leaderstats" local s = Instance.new("IntValue",l) s.Name = "Level" s.Value = 0 end) 3️⃣ Respawn Script: game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) local level = plr.leaderstats.Level.Value for i,v in pairs(workspace:WaitForChild("Spawns"):GetChildren()) do if v.Level.Value == level then task.wait(.5) local hrp = char:WaitForChild("HumanoidRootPart") char:PivotTo(CFrame.new(v.Position + Vector3.new(0,3,0))) end end end) end) 4️⃣ Dev Product Script Local: local mps = game:GetService("MarketplaceService") local devProductId = 00000000 --your id here script.Parent.MouseButton1Up:Connect(function() mps:PromptProductPurchase(game.Players.LocalPlayer,devProductId) end) 5️⃣ Developer Product Server Script: local mps = game:GetService("MarketplaceService") local id = 0 --your id here mps.PromptProductPurchaseFinished:Connect(function(userId,Product,isPurchased) local plr = game.Players:GetPlayerByUserId(userId) if isPurchased then if Product == id then for i,v in pairs(workspace.Spawns:GetChildren()) do if v.Level.Value == plr.leaderstats.Level.Value + 1 then plr.leaderstats.Level.Value += 1 if plr.Character then plr.Character:PivotTo(CFrame.new(v.Position + Vector3.new(0,3,0))) end return Enum.ProductPurchaseDecision.PurchaseGranted end end end end end) END OF SCRIPTS]- More Tutorials: Lua Scripting - https://youtu.be/FO5we34xuyY?si=080AbbHyc4s9YnG0
Vous aimerez aussi
South African Old School House Mix | Throwback Sessions | Timeless Music
Backrooms | Official Clip | A24
Miraculous - Paris Under Siege Gameplay LIVE! with Ella & Daddy
Peek A Boo | @CoComelon Nursery Rhymes & Kids Songs
Miraculous: Tales of Ladybug and Cat Noir Season 6 Highlights (So Far!) 🐞🐾|@disneychannelanimation
Tom and Jerry competition
Tom and Jerry Episode 2 Original (1941) HQ
Mr Bean's Restaurant Disaster and Missing Cat Hunt | Mr Bean
Let it Shine - 'Dont Run Away' - Official Music Video
All Songs From CoComelon Lane Season 7! 🎵 CoComelon Lane | Netflix Jr
Coming to America (1988) - A King in New York
ZOOTOPIA 2 RECAP CARTOONS AND ANIMATIONS! FUNNY
CONFIRMED SONIC 4 VOICE RECORDING FOR AMY ROSE HAS BEGUN!! (KRISTEN BELL!!)
My Best Friend Lied To Me
SOMEONE MADE AN AVOCADO PLAYZ CARTOON...
Nezha 2 Collaboration CG | Honor of Kings CN
Turning Red Memes part 2
August Rush (Last Scene) - August's Rhapsody
MIRACULOUS | 🐞 REVELATOR - Friends 🐾 | SEASON 6 | Tales of Ladybug & Cat Noir
Storm | Full Movie | Free |
ABC Phonics Song for Kids | Learn A to Z Alphabet with Fun & Music | MiniMellow Kids
Cutest Cat Faces in Anime | Funny Anime Montage
Row, Row, Row Your Boat (Ant Version) | CoComelon Nursery Rhymes & Kids Songs
Fortnite (PS5 Pro) 4K 120FPS HDR Gameplay | Skin Power Ranger Red
Commentaires
1 commentaires
