If anyone is still having problems with Skip Stage not working here is what I had to do : In starterGui > SkipStageGui > Text Button > you dont do a script, you have to do a LocalScript, its a small detail that can be overlooked! Hope this helps :3
@@Scrip_tix local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProductId == 1809772918 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1 player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0) player.RespawnLocation = Spawns[currentStage.Value] end end return Enum.ProductPurchaseDecision.PurchaseGranted end local function buyDevProduct(player, productName) local productID if productName == "Skip Stage" then productID = 1809772918 MarketplaceService:PromptProductPurchase(player, productID) end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) MarketplaceService.ProcessReceipt = processReceipt
@@Scrip_tix local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end
if receiptInfo.ProductId == 1809772918 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0) player.RespawnLocation = Spawns[currentStage.Value] end end
Here's modified version of the script that SHOULD work: local mps = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProductId == 0000000000 then --replace with your own ProductId local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) if not playerFolder then return Enum.ProductPurchaseDecision.NotProcessedYet end local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1 player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,5,0) player.RespawnLocation = Spawns[currentStage.Value] end return Enum.ProductPurchaseDecision.PurchaseGranted end local function buyDevProduct(player, productName) local productID if productName == "Skip Stage" then productID = 0000000000 --replace with your own ProductId mps:PromptProductPurchase(player, productID) end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) mps.ProcessReceipt = processReceipt mps.PromptProductPurchaseFinished:Connect(function(userId, productId, wasPurchased) if wasPurchased then local receiptInfo = { PlayerId = userId, ProductId = productId } processReceipt(receiptInfo) -- Directly calling for testing purposes end end)
Here's modified version of the script that SHOULD work: local mps = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProductId == 0000000000 then --replace with your own ProductId local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) if not playerFolder then return Enum.ProductPurchaseDecision.NotProcessedYet end local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1 player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,5,0) player.RespawnLocation = Spawns[currentStage.Value] end return Enum.ProductPurchaseDecision.PurchaseGranted end local function buyDevProduct(player, productName) local productID if productName == "Skip Stage" then productID = 0000000000 --replace with your own ProductId mps:PromptProductPurchase(player, productID) end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) mps.ProcessReceipt = processReceipt mps.PromptProductPurchaseFinished:Connect(function(userId, productId, wasPurchased) if wasPurchased then local receiptInfo = { PlayerId = userId, ProductId = productId } processReceipt(receiptInfo) -- Directly calling for testing purposes end end)
Is the Speed Coil in ServerStorage? Or did you accidently place it in StarterPack. But if you created the gamepass, I believe it you'd have to start a local server under the 'Test' tab, because you can't buy gamepasses you already own.
You made the gamepass, so you already own it, so the prompt won't show up. So you can either test with another account or start a local server with the steps I provided in my other comment :3@@josealbertoelizondowillis2182
local MarketplaceService = game:GetService( "MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game. Workspace. Spawns local function processReceipt (receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProductId == 1759174754 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].cFrame + Vector3.new(0,3,0) player.RespawnLocation = Spawns[currentStage.Value] end end return Enum.ProductPurchaseDecision.PurchaseGranted end local function buyDevProduct (player, productName) local productID if productName == "Skip Stage" then productID = 1759174754 MarketplaceService:PromptProductPurchase(player, productID) end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) MarketplaceService.ProcessReceipt = processReceipt @@Scrip_tix
I spent 3 hours for 7 minutes of this video and I don't understand a single thing that happened. But hey it works so it's all fine right right? Please tell me I'm right
Are you trying to change the text inside the button? If so, you just have to double click in order for it to be editable or just go down to the button's 'Text' property and edit it from there :3
@@RiplayzMM2 this is why copy and paste is good in TH-cam tutorial because some of the time when you typ it out it doesn't work don't be so quick to call people lazy before you know why the person is saying what he is saying
i know this is late but when i run the local test server everything works my skip stage works but when i click the speed coil gui nothing happens nothing pops up i can just click it infinitely when i checked for error it says "MouseButton1Up is not a valid member of ScreenGui" could you possibly help
Can you show me the code where the error comes from? Based on the error, you were trying to apply the MouseButton1Up event to a ScreenGui when it only works on Buttons, implying you referenced the button incorrectly.
@@Scrip_tix the code is a local script under the speed coil gui and the code is local BuySpeedCoilEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySpeedCoil") local Button = script.Parent Button.MouseButton1Up:connect(function() BuySpeedCoilEvent:FireServer("Speed Coil") end) and it says the only error out of all the code is the button.mousebutton1up
When i buy skip stage, the first time it skips 1 stage corrctly, but when i buy again, it skips 2 times, if i buy again it skips 3 times, and keep doing that, i dont know why
@@Scrip_tix if receiptInfo.ProductId == 1737829444 then if player then local playerFolder = playerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1
@@Scrip_tix have same problem + i have problem on speed coil when i click on it nothing hapeen , these are my scripts local MarkerPlaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawn = game.Workspace.Spawns local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end
if receiptInfo.ProductId == 1745270071 then if Players then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawn[currentStage.value].CFrame + Vector3.new(0,3,0) Player.RespawnLocation = Spawns[currentStage.Value] end end
end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) MarkerPlaceService.ProcessReceipt = processReceipt ------------------------------------------------------ local MarkerPlaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySpeedCoilEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySpeedCoil") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function onGamepassPurchese(player, purchasePassId, purchaseSuccess)
if purchaseSuccess == true then
if purchasePassId == 5593665375 then ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.Backpack ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.StarterGear end end
end local function buyGamepass(player, gamepassName)
local gamepassId
if gamepassName == "Speed Coil" then
gamepassId = 5593665375 local hasPass = false
local success, massage = pcall(function() hasPass = MarkerPlaceService:UserOwnsGamePassAsync(player.UserId, gamepassId) end)
if hasPass == true then print("Player owns speed coil") else MarkerPlaceService:PromptGamePassPurchase(player, gamepassId) end end
end BuySpeedCoilEvent.OnServerEvent:Connect(buyGamepass) MarkerPlaceService.PromptGamePassPurchaseFinished:Connect(onGamepassPurchese) ---------------------------------------------- local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") game.Players.PlayerAdded:Connect(function(player)
local playerFolder = ServerStorage:WaitForChild("PlayerData"):WaitForChild(player.UserId) local hasPass = false
local success, massage = pcall(function() hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, 5593665375) end)
if hasPass == true then ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.Backpack ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.StarterGear end
@Androidrei12345 I also had the same problem so I changed line 20 of the Server script for skip stage from currentStage.Value += 1 to currentStage.Value = currentStage.Value + 1
The script for the speed coil isn’t working, it shows two speed coils in inventory when I test play it and when I try to click speed coil to buy it doesn’t show up.
@@Scrip_tix in the output it says this Infinite yield possible on 'ServerStorage:WaitForChild("PlayerData")' and i have the same exact script as u word from word
@@Scrip_tix local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReciept(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProdcutID == 1761774213 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1 player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0) player.RespawnLocation = Spawns[currentStage.Value] end end return Enum.ProductPurchaseDecision.PurchaseGranted end local function buyDevProduct(player, productName) local productID if productName == "Skip Stage" then productID = 1761774213 MarketplaceService:PromptProductPurchase(player, productID) end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) MarketplaceService.ProcessReceipt = processReciept Same problem here dude pls help
@@Scrip_tixmine aint working either, it lets me buy it but it wont teleport me. Code: local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local spawns = game.Workspace.Spawns local function processRecipt(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProductID == 2668203804 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentstage = playerFolder:WaitForChild("Stage") currentstage.Value += 1 player.Character:WaitForChild("HumanoidRootPart").Cframe = spawns[currentstage.Value].Cframe + Vector3.new(0,3,0) player.RespawnLocation = spawns[currentstage.Value] end end return Enum.ProductPurchaseDecision.PurchaseGranted end local function BuyDevProduct(player, productName) local productID if productName == "Skip Stage" then productID = 2668203804 MarketplaceService:PromptProductPurchase(player, productID) MarketplaceService.ProcessReceipt = processRecipt end end BuySkipStageEvent.OnServerEvent:Connect(BuyDevProduct) MarketplaceService.ProcessReceipt = processRecipt
Try this man it works: local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receioptInfo)
local player = Players:GetPlayerByUserId(receioptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end
if receioptInfo.ProductId == YOUR ID then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0) player.RespawnLocation = Spawns[currentStage.Value] end end
Skip stage doesnt teleport me to other stage Edit:I am too stupid bruh i had put my checkpoints in a folder and the code was made to scan the workspace not folders
Hello Scriptix, I'm currently working on the Skip Stage part, I've put in your exact code and followed all of your steps correctly, and when I click on the button it wont open the GUI. Any fixes for this problem?
Remember, spelling and accuracy is EVERYTHING in scripting. Be sure to closely analyze the script and make sure you didn't misspell anything. Make sure your buttons are named correctly or defined properly. Make sure nothing is out of place.
I had all the code correct, I just messed up on the part where the script was, its supposed to be in localscripts or something like that, where ever the "Stage" script was I believe.
@@Scrip_tix local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProductID == 1786480355 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value = 1 player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0) player.RespawnLocation = Spawns[currentStage.Value] end end return Enum.ProductPurchaseDecision.PurchaseGranted end local function buyDevProduct(player, productName) local productID if productName =="Skip Stage" then productID = 1786480355 MarketplaceService:PromptProductPurchase(player, productID) end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) MarketplaceService.ProcessReceipt = processReceipt
hello, the skip stage does work for me, it doesnt make my stage say it goes up in the leader, and it doesnt teleport me only the recipt comes up and i can only buy it, this is my code i done it says in output "ServerScriptService.Script:19: attempt to index nil with 'WaitForChild'"
if reciptInfo.ProductId == 1941294622 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Checkpoints[tostring(currentStage.Value)].CFrame + Vector3.new(0, 3, 0) player.RespawnLocation = Checkpoints[currentStage.Value] end end
Here's modified version of the script that SHOULD work: local mps = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end if receiptInfo.ProductId == 0000000000 then --replace with your own ProductId local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) if not playerFolder then return Enum.ProductPurchaseDecision.NotProcessedYet end local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1 player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,5,0) player.RespawnLocation = Spawns[currentStage.Value] end return Enum.ProductPurchaseDecision.PurchaseGranted end local function buyDevProduct(player, productName) local productID if productName == "Skip Stage" then productID = 0000000000 --replace with your own ProductId mps:PromptProductPurchase(player, productID) end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) mps.ProcessReceipt = processReceipt mps.PromptProductPurchaseFinished:Connect(function(userId, productId, wasPurchased) if wasPurchased then local receiptInfo = { PlayerId = userId, ProductId = productId } processReceipt(receiptInfo) -- Directly calling for testing purposes end end)
sorry bro, i disliked the vid, cuz the skip stage doesnt work, and when i check my output there is no errors, i also made sure that my scripts and ur scripts were the exact same.
Hey scriptix I am making a game but for my game I want to make a waiting room where 2 players go in and when the timer ends they go in the battlefield but I can't figure out how to do this... Can you help me? Thanks-
skip stage aint working I copied everything u showed but it didnt work also when I Go to any other stage the count just keeps me at 1 and when I die I go back to 1 here are my codes: StageManager:local Spawns = game.Workspace:WaitForChild("Spawns") local PlayerDataFolder = game:GetService("ServerStorage"):WaitForChild("PlayerData") for i, v in pairs(Spawns:GetChildren()) do v.Touched:Connect(function(otherPart) if otherPart.Parent:FindFirstChild("Humaniod") then local player = game.Players:GetPlayerFromCharacter(otherPart.Parent) local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") local spawnStage = tonumber(v.Name) if (spawnStage - currentStage.Value == 1) then currentStage.Value = currentStage.Value + 1 player.RespawnLocation = v end end end) end Skip Stage: local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo) local player = Players:GetPlayerByUserId(receiptInfo.PlayerId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end
if receiptInfo.ProductId ==1885045675 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value +=1
return Enum.ProductPurchaseDecision.PurchaseGranted end
local function buyDecProduct(player, productName) local productID if productName == "Skip Stage" then productID = 1885045675 MarketplaceService:PromptProductPurchase(player, productID) end end end BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct) MarketplaceService.ProcessReceipt = processReceipt
Hi i have error ServerScriptService.StageManager:18: attempt to perform arithmetic (sub) on nil and number - Server - StageManager:18 And error Argument 1 missing or nil - Server - Script:11 script StageManager: local Spawns = game.Workspace:WaitForChild("Spawns") local PlayerDataFolder = game:GetService("ServerStorage"):WaitForChild("PlayerData") for i, v in pairs(Spawns:GetChildren()) do
v.Touched:Connect(function(otherPart)
if otherPart.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
local spawnStage = tonumber(v.Name)
if (spawnStage - currentStage.Value == 1) then
currentStage.Value = currentStage.Value + 1 player.RespawnLocation = v
end
end
end)
end script Script: local MarketplaceService = game:GetService("MarketplaceService") local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage") local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData") local Spawns = game.Workspace.Spawns local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayersId) if not player then return Enum.ProductPurchaseDecision.NotProcessedYet end
if receiptInfo.ProductId == 1842541322 then if player then local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId) local currentStage = playerFolder:WaitForChild("Stage") currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0) player.RespawnLocation = Spawns[currentStage.Value] end end
In your Skip Stage script, the error is in line 11, the argument should be receiptInfo.PlayerId. For the StageManager code, can you verify that the spawns are all named according to what stage it represents?
i cant past the code here it get deleted btw the errors are 2 1st the spawn checkpoint only work for the first spawnpoint 2nd i buy the skip and it double everytime like from stage 2 i get to stage 4 etc@@Scrip_tix
🏆Want to learn scripting? Watch my COMPLETE beginner's guide: th-cam.com/video/6XxY_zrgzPI/w-d-xo.html
Hi man. I copied everything from the gamepass and dev product script you wrote, but none work. please help me?
Could you paste your code? I can't help you if I can't see what's wrong...@@BloodAzure
@@Scrip_tix I fixed it myself :) can you maybe show us how to make a Progress bar for our obby?
My script doesnt work for the speed coil, it says "Infinite Yield Possible on *My player name*:WaitForChild("")
nvm works sorry :D
OMG i keep having trouble now i have trouble with the speed coil it doesnt lemme click the button to buy
I love how this looks at his comments and helps his viewers. Thank you so much for both tutorials 😊
You're very welcome :3
If anyone is still having problems with Skip Stage not working here is what I had to do :
In starterGui > SkipStageGui > Text Button > you dont do a script, you have to do a LocalScript, its a small detail that can be overlooked! Hope this helps :3
Thanks bro!! Really. You saved a lot of time for me. I would have spent hours if I hadn’t found the answer in your comment. Thanks.
For some reason the when i click on the Skip Stage button the game passes thing that it should show wouldn't not pop up
Thanks, easy to follow code, the ideas are clear!
Brother the fact you explain it so easy and show it to us makes us try and hop on Studio, thx so much bro
Happy to help!
Nice! Could you tell us how to make the GUI look better and add a loading screen?
bro i tried making a loading screen to didn't work out
Although personally the speed coil was hard the skip stage was so easy to understand thanks your helping me out a lot
Glad it helped!
Can smn help the skip stage works but it doesn't teleport me
7:38. For some reason when i purchase the skip stage, it doesnt teleport me to the next stage. Please help and ty!
Hmm, can you show me your code?
@@Scrip_tix sorry for the late response i didn’t expect you to reply that fast, but the code i put it’s underneath this comment
@@Scrip_tix local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 1809772918 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 1809772918
MarketplaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReceipt
@@Scrip_tix local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 1809772918 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 1809772918
MarketplaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReceipt
@@Scrip_tixi keep sending the code but i think its gets deleted because time i come back to this comment i don’t see it.
AMAZING STUFF BRO!!!1
DO NOT question my name
@julie.a2483 what's wrong with ur name?
It not teleport me when i buy skip stage 😢
I ran into that issue too, carefully checked if you made any typo, because for me it is supposed to be Id but I put ID
Here's modified version of the script that SHOULD work:
local mps = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 0000000000 then --replace with your own ProductId
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
if not playerFolder then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,5,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 0000000000 --replace with your own ProductId
mps:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
mps.ProcessReceipt = processReceipt
mps.PromptProductPurchaseFinished:Connect(function(userId, productId, wasPurchased)
if wasPurchased then
local receiptInfo = { PlayerId = userId, ProductId = productId }
processReceipt(receiptInfo) -- Directly calling for testing purposes
end
end)
Tysm your the best
You're welcome!
pls send me all the scripts
@@skibidiohioligmadigma No
When I buy the skip stage it doesn't teleport my character nor update my respawn point
Please help me Scrip_tix
Any errors in the output?
Here's modified version of the script that SHOULD work:
local mps = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 0000000000 then --replace with your own ProductId
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
if not playerFolder then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,5,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 0000000000 --replace with your own ProductId
mps:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
mps.ProcessReceipt = processReceipt
mps.PromptProductPurchaseFinished:Connect(function(userId, productId, wasPurchased)
if wasPurchased then
local receiptInfo = { PlayerId = userId, ProductId = productId }
processReceipt(receiptInfo) -- Directly calling for testing purposes
end
end)
When I start the game I start with the speed coil and I can’t purchase it
Can you show me your code?
Is the Speed Coil in ServerStorage? Or did you accidently place it in StarterPack. But if you created the gamepass, I believe it you'd have to start a local server under the 'Test' tab, because you can't buy gamepasses you already own.
@@Scrip_tixif the game has been published I have to buy it or I a already have it and only other players have to buy it
You made the gamepass, so you already own it, so the prompt won't show up. So you can either test with another account or start a local server with the steps I provided in my other comment :3@@josealbertoelizondowillis2182
Thanks for the awesome video! But in the next video will you be showing us how to save players stages after they leave?
Yeah that would be great!
he already did that in the first video
nvm he didnt
Part 3 out now! th-cam.com/video/zHMPKLkA7fE/w-d-xo.html
i have this inspiration to be a famous roblox dep and this is my way to start everything.
wish me luck 🙏🏼
Please help me, I don't know why every time I click on speed coil it doesn't give me the object and only the print comes out.
Can you show me your code?
ok but i can send you a link?
You can just paste it here :3
local MarketplaceService = game:GetService( "MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game. Workspace. Spawns
local function processReceipt (receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 1759174754 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].cFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct (player, productName)
local productID
if productName == "Skip Stage" then
productID = 1759174754
MarketplaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReceipt @@Scrip_tix
ok
When I start the server on my phone with 4 gamepasses owned, it only shows 3 of them
Can you help me with the skip stage the game pass won’t appear
can u make a video on how to make a skip to end
Can you tell me how to make a path giver for the end of the obby?
can u put ur code for skip stage in the comments
is there anywhere i can get this exact code without having it to type each of it in?
i have a question, is the player buy the speed coil and can buy it again?
No
@@IZLMA bruj
If I follow this and change up the map will I be safe to publish
Don't forget about saving the player's data! That's in part 3, so maybe give that a watch first :3
Tiny semi crucial step a whole 2 seconds was cut out
How do you select the text to change for GUI text from button to skip stage?
I spent 3 hours for 7 minutes of this video and I don't understand a single thing that happened. But hey it works so it's all fine right right? Please tell me I'm right
Are you trying to change the text inside the button? If so, you just have to double click in order for it to be editable or just go down to the button's 'Text' property and edit it from there :3
Where i need to write the first local script
Why don't you put the script in the description so people can copy and paste it
Because, so people do something, and so you learn. Lazy…
@@RiplayzMM2 we're not lazy, mine doesnt work and i cant find the problem..
@@Master_of_luck copy pasting = lazy
@@RiplayzMM2 this is why copy and paste is good in TH-cam tutorial because some of the time when you typ it out it doesn't work don't be so quick to call people lazy before you know why the person is saying what he is saying
for some reason when i die it doesnt give it back only when i buy it again the speed coil
Can you show me the code where you give the speed coil?
@@Scrip_tix i was able to fix it i put stater gear for some reason instead of startergear
@@Scrip_tix so my bad
i know this is late but when i run the local test server everything works my skip stage works but when i click the speed coil gui nothing happens nothing pops up i can just click it infinitely when i checked for error it says "MouseButton1Up is not a valid member of ScreenGui" could you possibly help
Can you show me the code where the error comes from? Based on the error, you were trying to apply the MouseButton1Up event to a ScreenGui when it only works on Buttons, implying you referenced the button incorrectly.
@@Scrip_tix the code is a local script under the speed coil gui and the code is
local BuySpeedCoilEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySpeedCoil")
local Button = script.Parent
Button.MouseButton1Up:connect(function()
BuySpeedCoilEvent:FireServer("Speed Coil")
end)
and it says the only error out of all the code is the button.mousebutton1up
@@Scrip_tix i think the comment got deleted is there an alternate way i can send you it
@@Scrip_tix i sent the code but it got deleted can i contact you any other way
phew, managed to complete this video with one script error in vid that my brother fixed... Now time for part 3!
When i buy skip stage, the first time it skips 1 stage corrctly, but when i buy again, it skips 2 times, if i buy again it skips 3 times, and keep doing that, i dont know why
Show the code where you increase their stage after buying it :3
@@Scrip_tix if receiptInfo.ProductId == 1737829444 then
if player then
local playerFolder = playerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
@@Scrip_tix have same problem + i have problem on speed coil when i click on it nothing hapeen , these are my scripts
local MarkerPlaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawn = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 1745270071 then
if Players then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawn[currentStage.value].CFrame + Vector3.new(0,3,0)
Player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 1745270071
MarkerPlaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarkerPlaceService.ProcessReceipt = processReceipt
------------------------------------------------------
local MarkerPlaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySpeedCoilEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySpeedCoil")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function onGamepassPurchese(player, purchasePassId, purchaseSuccess)
if purchaseSuccess == true then
if purchasePassId == 5593665375 then
ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.Backpack
ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.StarterGear
end
end
end
local function buyGamepass(player, gamepassName)
local gamepassId
if gamepassName == "Speed Coil" then
gamepassId = 5593665375
local hasPass = false
local success, massage = pcall(function()
hasPass = MarkerPlaceService:UserOwnsGamePassAsync(player.UserId, gamepassId)
end)
if hasPass == true then
print("Player owns speed coil")
else
MarkerPlaceService:PromptGamePassPurchase(player, gamepassId)
end
end
end
BuySpeedCoilEvent.OnServerEvent:Connect(buyGamepass)
MarkerPlaceService.PromptGamePassPurchaseFinished:Connect(onGamepassPurchese)
----------------------------------------------
local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
game.Players.PlayerAdded:Connect(function(player)
local playerFolder = ServerStorage:WaitForChild("PlayerData"):WaitForChild(player.UserId)
local hasPass = false
local success, massage = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, 5593665375)
end)
if hasPass == true then
ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.Backpack
ServerStorage:WaitForChild("Speed Coil"):Clone().Parent = player.StarterGear
end
end)
@Androidrei12345 I also had the same problem so I changed line 20 of the Server script for skip stage from
currentStage.Value += 1 to currentStage.Value = currentStage.Value + 1
What is Ur line 19
LESSGO ANOTHER DAY ANOTHER SCRIPTIX VIDEO
pls send me all the scripts
@@skibidiohioligmadigma Dotn have them just enjoying the content
hi scriptix, can you help me fix the code? like skip stage is not working. Can you give me your discord please?
If I click Skip stage will it charge me?
If you're testing in studio, no :3
@@Scrip_tix What if im not
Then it will.
The script for the speed coil isn’t working, it shows two speed coils in inventory when I test play it and when I try to click speed coil to buy it doesn’t show up.
Can you show me your code?
NO I SHOULDVE SUBBED I MISSED THE UPLOADDD
NOOOOOOOOOOOOOOOOOOOOOOOOO
@@Scrip_tix Lol
Hi I did everything like you (checked many times too) but when i click on Skip Stage button nothing shows up. Im lost
Can you show me your code?
@@Scrip_tix ofc, can I just pass it here in the comments?
@@Scrip_tix i just passed it in the comments but it dissapeared, can i send it to you elsewhere?
@@Scrip_tix Please I really want to make this work, where can I send you the script if the comments delete it?
@@Scrip_tix in the output it says this Infinite yield possible on 'ServerStorage:WaitForChild("PlayerData")' and i have the same exact script as u word from word
Everything worked find but when i buy the skip stage it doesnt teleport me to the next spawn, any help?
Can you show me the server code?
@@Scrip_tix local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReciept(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProdcutID == 1761774213 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 1761774213
MarketplaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReciept
Same problem here dude pls help
skip stage aint working
I copied everything u showed but it didnt work
Can you show me your code?
@@Scrip_tixmine aint working either, it lets me buy it but it wont teleport me.
Code:
local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local spawns = game.Workspace.Spawns
local function processRecipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductID == 2668203804 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentstage = playerFolder:WaitForChild("Stage")
currentstage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").Cframe = spawns[currentstage.Value].Cframe + Vector3.new(0,3,0)
player.RespawnLocation = spawns[currentstage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function BuyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 2668203804
MarketplaceService:PromptProductPurchase(player, productID)
MarketplaceService.ProcessReceipt = processRecipt
end
end
BuySkipStageEvent.OnServerEvent:Connect(BuyDevProduct)
MarketplaceService.ProcessReceipt = processRecipt
everything worked to do with buying it but for some reason it doesn't teleport me to the next spawn, any suggestions?
Show me your code. Paste it here.
Try this man it works:
local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receioptInfo)
local player = Players:GetPlayerByUserId(receioptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receioptInfo.ProductId == YOUR ID then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = YOUR ID
MarketplaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReceipt
could you pls make a vid you can just copy it all from pls
Skip stage doesnt teleport me to other stage
Edit:I am too stupid bruh i had put my checkpoints in a folder and the code was made to scan the workspace not folders
Help....i did all the scripting the only problem is that if i click the button the gamepass won't show🥹🥹
Can you show me your code?
@@Scrip_tix the code disappears when i send it
Okay, can you tell me if there are any errors in the output when you click the button?
6:03
Hello Scriptix, I'm currently working on the Skip Stage part, I've put in your exact code and followed all of your steps correctly, and when I click on the button it wont open the GUI. Any fixes for this problem?
u might made a mistake in the buydevproduct function check that again
@@memesfrog1655 thanks, I'll check that
same problem here, did it fix it for you?
@@DrumingMan
Remember, spelling and accuracy is EVERYTHING in scripting. Be sure to closely analyze the script and make sure you didn't misspell anything. Make sure your buttons are named correctly or defined properly. Make sure nothing is out of place.
I had all the code correct, I just messed up on the part where the script was, its supposed to be in localscripts or something like that, where ever the "Stage" script was I believe.
Can u put the speed coil script on the desc or reply
Are there scripts for gravity coil?
I just pulled it from the toolbox :3
Hi! :D my skip stage wasnt doing anything after i clicked on it.. I dont know what happened
Could you show me the code of all the scripts you used?
@@Scrip_tix I don’t understand how to show you- like in the replies? That would be too much lol
Are there any errors in the output? (but yeah I mean paste the code in the replies)
its not letting me paste the code
@@Scrip_tix
local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductID == 1786480355 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value = 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName =="Skip Stage" then
productID = 1786480355
MarketplaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReceipt
I didn't work for me could someone sent the scrip so I can copy it please
hello, the skip stage does work for me, it doesnt make my stage say it goes up in the leader, and it doesnt teleport me only the recipt comes up and i can only buy it, this is my code i done it says in output "ServerScriptService.Script:19: attempt to index nil with 'WaitForChild'"
end
if reciptInfo.ProductId == 1941294622 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Checkpoints[tostring(currentStage.Value)].CFrame + Vector3.new(0, 3, 0)
player.RespawnLocation = Checkpoints[currentStage.Value]
end
end
I made mine instead of "Stage" I put "CurrentStage" and it worked for me.
@@IZLMAthanks i tried this but still didnt work, but thank you for trying to help
tysm!
U can give the script you use ?
There's multiple scripts. Just follow the video :3
Help me the skip stage don't work
Could you show me your code?
@@Scrip_tix nevermind i just fixed myself i forgot a .Value
@@Scrip_tix thanks you, you help me so much and now i know my error
@@VsleMusic where did u forget the .Value, my skipstage gamepass works but it doesnt tp me
2:26
plss help i click skip stage not work pls help
IK WHY?
Omg thank you so much i just made tons of robux 😮 thanks🎇
They both don't work
They do, but you must have made some errors. What seems to be the issue?
@@Scrip_tix I am going to check it this evening then i ask you ok?
@@Scrip_tix So if i press the buttons the buy screen doens't show
Okay, can you show me the code you have inside the button and the server script the handles the devproduct purchase?
doesnt work
please help
Can you show me your code?
@@Scrip_tix nvm i fix the code with Bing (i mean Bing fixed the code for me)
@@anonimus6339 yo could u help fix skip stage code?
The skip stage just won’t work
Here's modified version of the script that SHOULD work:
local mps = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 0000000000 then --replace with your own ProductId
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
if not playerFolder then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,5,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 0000000000 --replace with your own ProductId
mps:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
mps.ProcessReceipt = processReceipt
mps.PromptProductPurchaseFinished:Connect(function(userId, productId, wasPurchased)
if wasPurchased then
local receiptInfo = { PlayerId = userId, ProductId = productId }
processReceipt(receiptInfo) -- Directly calling for testing purposes
end
end)
If I remove the items from my inventory when I buy them do I receive the robux?
the scripts are not working
sorry bro, i disliked the vid, cuz the skip stage doesnt work, and when i check my output there is no errors, i also made sure that my scripts and ur scripts were the exact same.
You just typed it in wrong then cuz it works for me
Hey scriptix I am making a game but for my game I want to make a waiting room where 2 players go in and when the timer ends they go in the battlefield but I can't figure out how to do this... Can you help me?
Thanks-
u can check elvator system on youtube
U should go to a dev forum to do this or watch a yt vid
How do we make it save progress?
a kind person that can paste the scripts hereee plss
i did all this scripts and nothing happed
Any errors in the output? Can you show me your code?
so cool
I want the script
Chatgpt
mm MONEY MONEY MONEY MONEY WOOO MONEY MONEY
can u make a video saying how to save data and load data
That in part3
aughhh what did i do wrong whyyyy
Lol 14:44
YES
YES SIR!!!!
When i leave the game the stages dosent savne and i did all in the first vidio
Hey! These 2 parts don't have any stage-saving yet. That'll be in part 3! Stay tuned :3
THE SCRIPT FOR SKIP STAGE IN COMMENT CHECK
tutorial makes no sense, does everything you say and random stuff gets added that is impossible to notice!
If your gonna make a tutorial bro, then you have to be clear in what your doing, and stop hiding where the scripts literally are!
Apologies, which scripts are you having trouble locating? @@RobloxStudioLoser
sorry if i was mean i am a bit sensitive, pretty much all of them
Bruh typing all that shit and at the end not even working
Can you show me your code?
beacouse im realy bad at scripting
You can get real money off Roblox
yes
I hoped this worked oh wait it didn't ☹️😡
W vid!!
its not working for me
What seems to be the issue? Can you show me your code?
Your script didn't work. I should just hire a developer than watch clickbait videos.
Hm, which script didn't work?
Then why did it work on the video?
so much scriping😰
this never works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Show me your code!!!!!!
@@Scrip_tix ok
can someone send me all the scripts ?
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value +=1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
skip stage aint working
I copied everything u showed but it didnt work also when I Go to any other stage the count just keeps me at 1 and when I die I go back to 1 here are my codes: StageManager:local Spawns = game.Workspace:WaitForChild("Spawns")
local PlayerDataFolder = game:GetService("ServerStorage"):WaitForChild("PlayerData")
for i, v in pairs(Spawns:GetChildren()) do
v.Touched:Connect(function(otherPart)
if otherPart.Parent:FindFirstChild("Humaniod") then
local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
local spawnStage = tonumber(v.Name)
if (spawnStage - currentStage.Value == 1) then
currentStage.Value = currentStage.Value + 1
player.RespawnLocation = v
end
end
end)
end
Skip Stage: local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId ==1885045675 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value +=1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDecProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 1885045675
MarketplaceService:PromptProductPurchase(player, productID) end
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReceipt
Hi i have error ServerScriptService.StageManager:18: attempt to perform arithmetic (sub) on nil and number - Server - StageManager:18
And error Argument 1 missing or nil - Server - Script:11
script StageManager:
local Spawns = game.Workspace:WaitForChild("Spawns")
local PlayerDataFolder = game:GetService("ServerStorage"):WaitForChild("PlayerData")
for i, v in pairs(Spawns:GetChildren()) do
v.Touched:Connect(function(otherPart)
if otherPart.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
local spawnStage = tonumber(v.Name)
if (spawnStage - currentStage.Value == 1) then
currentStage.Value = currentStage.Value + 1
player.RespawnLocation = v
end
end
end)
end
script Script:
local MarketplaceService = game:GetService("MarketplaceService")
local ServerStorage = game:GetService("ServerStorage")
local Players = game:GetService("Players")
local BuySkipStageEvent = game:GetService("ReplicatedStorage"):WaitForChild("BuySkipStage")
local PlayerDataFolder = ServerStorage:WaitForChild("PlayerData")
local Spawns = game.Workspace.Spawns
local function processReceipt(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayersId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if receiptInfo.ProductId == 1842541322 then
if player then
local playerFolder = PlayerDataFolder:FindFirstChild(player.UserId)
local currentStage = playerFolder:WaitForChild("Stage")
currentStage.Value += 1
player.Character:WaitForChild("HumanoidRootPart").CFrame = Spawns[currentStage.Value].CFrame + Vector3.new(0,3,0)
player.RespawnLocation = Spawns[currentStage.Value]
end
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
local function buyDevProduct(player, productName)
local productID
if productName == "Skip Stage" then
productID = 1842541322
MarketplaceService:PromptProductPurchase(player, productID)
end
end
BuySkipStageEvent.OnServerEvent:Connect(buyDevProduct)
MarketplaceService.ProcessReceipt = processReceipt
In your Skip Stage script, the error is in line 11, the argument should be receiptInfo.PlayerId.
For the StageManager code, can you verify that the spawns are all named according to what stage it represents?
hello can u give me ur discord i cant send the script code here please
i got 2 errors
Paste the errors here, and try to copy parts of the code here :3
i cant past the code here it get deleted btw the errors are 2
1st the spawn checkpoint only work for the first spawnpoint
2nd i buy the skip and it double everytime like from stage 2 i get to stage 4 etc@@Scrip_tix
please send me something for contact u in private@@Scrip_tix
@@Scrip_tix so can u give it?
Skip stage doesnt work for me
could you pls make a vid you can just copy it all from pls
could you pls make a vid you can just copy it all from pls