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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Skip Stage GUI

Previous Thread :: Next Thread 
noahcraft5421 is not online. noahcraft5421
Joined: 25 Jun 2013
Total Posts: 21
14 Dec 2016 05:42 PM
If you join some random obby you would see those Skip Stage GUI's if anyone knows how to do it please tell me. I'm working on a obby myself and I'm having trouble making that GUI. If you have time it would be lovely to tell me. Thanks for reading and Have A Good Day
Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
14 Dec 2016 05:47 PM
local hi = game.Workspace.Stafe
hi.Value = (n.Value + 1)


Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
14 Dec 2016 05:48 PM
Oops I accidentaly put n.Value instead of hi.Value. I wonder how my I did that v.v
ok here I fixed


local hi = game.Workspace.Stafe
hi.Value = (hi.Value + 1)




Report Abuse
noahcraft5421 is not online. noahcraft5421
Joined: 25 Jun 2013
Total Posts: 21
14 Dec 2016 06:49 PM
Where do I put that?
Report Abuse
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
14 Dec 2016 07:01 PM
-- This script needs to go inside the button that the player clicks to skip the stage

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Stage = "Level" -- Put the name of the leaderstat here

Mouse.Button1Down:connect(function()
if Player:FindFirstChild("leaderstats") then
Player.leaderstats[Stage].Value = Player.leaderstats[Stage].Value + 1
end
end)
Report Abuse
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
14 Dec 2016 07:03 PM
-- oops, the last one fires if a player clicks their mouse :P
-- This script needs to go inside the button that the player clicks to skip the stage

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Stage = "Level" -- Put the name of the leaderstat here

script.Parent.MouseButton1Click:connect(function()
if Player:FindFirstChild("leaderstats") then
Player.leaderstats[Stage].Value = Player.leaderstats[Stage].Value + 1
end
end)
Report Abuse
noahcraft5421 is not online. noahcraft5421
Joined: 25 Jun 2013
Total Posts: 21
14 Dec 2016 07:05 PM
On it sir!
Report Abuse
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
14 Dec 2016 07:06 PM
--Just incase you wanted the player to pay robux to skip you could do this:

-- Local Script in the button

local productId = 20518668

script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
end)

-- Script in ServerScriptStorage

local MarketplaceService = Game:GetService("MarketplaceService")
local ds = ga###################################################################local productId = 20518668
local Stat = ""
MarketplaceService.ProcessReceipt = function(receiptInfo)

for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == productId then
player.leaderstats[Stat].Value = player.leaderstats.[Stat].Value + 1
player.Character.Humanoid.Health = 0
end
end
end
local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_purchase_" .. receiptInfo.ProductId
ds:IncrementAsync(playerProductKey, 1)
return Enum.ProductPurchaseDecision.PurchaseGranted
end
Report Abuse
noahcraft5421 is not online. noahcraft5421
Joined: 25 Jun 2013
Total Posts: 21
14 Dec 2016 07:07 PM
You're very helpful!
Report Abuse
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
14 Dec 2016 07:07 PM
Thank you roblox for censoring my code
Report Abuse
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
14 Dec 2016 07:08 PM
It won't let me post it without #'s

Heres the wiki page
http://wiki.roblox.com/index.php?title=Developer_product
Report Abuse
noahcraft5421 is not online. noahcraft5421
Joined: 25 Jun 2013
Total Posts: 21
14 Dec 2016 07:11 PM
Ok thank you!
Report Abuse
Cycls is not online. Cycls
Joined: 10 Jul 2017
Total Posts: 26
30 Jul 2017 10:45 AM
Nice


Thank You
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