|
| 24 Jul 2017 06:56 PM |
i have this script and it gives a free skip for a stage and ive been wondering. how do i make it cost robux? like after the use of the skip. here is the script. can anyone fix it?
local player = game.Players.LocalPlayer local leaderstats = player:WaitForChild("leaderstats"):FindFirstChild("Stage") -- Change Stage to your Stats local hasLimits = true local Limits = 1 script.Parent.MouseButton1Click:connect(function() if hasLimits == true then if Limits ~= 0 then Limits = Limits - 1 # # sc################## "Skip Stage ("..Limits..")" leaderstats.Value = leaderstats.Value + 1 if player ~= nil then if player.Character ~= nil then if player.Character:FindFirstChild("Humanoid").Health > 0 then player.Character.HumanoidRootPart.CFrame = game.Workspace:FindFirstChild(leaderstats.Value).CFrame + Vector3.new(0,3,0) end end end end else if player ~= nil then if player.Character ~= nil then if player.Character:FindFirstChild("Humanoid").Health > 0 then player.Character.HumanoidRootPart.CFrame = game.Workspace:FindFirstChild(leaderstats.Value).CFrame + Vector3.new(0,3,0) end end end end end) |
|
|
| Report Abuse |
|
|
| 24 Jul 2017 07:01 PM |
Read description of MarketplaceService: http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService
Then read this tutorial: http://wiki.roblox.com/index.php?title=Developer_product |
|
|
| Report Abuse |
|