|
| 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 |
|
|
|
| 14 Dec 2016 05:47 PM |
local hi = game.Workspace.Stafe hi.Value = (n.Value + 1)
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
| |
|
|
| 14 Dec 2016 07:07 PM |
| Thank you roblox for censoring my code |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
Cycls
|
  |
| Joined: 10 Jul 2017 |
| Total Posts: 26 |
|
| |
|