generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: i have a script for skipping a stage on an obby...

Previous Thread :: Next Thread 
plentyofBlue is not online. plentyofBlue
Joined: 29 Jan 2012
Total Posts: 13
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
DesignerDavid is online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image