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: How to test a gamepass script?

Previous Thread :: Next Thread 
minecraftminertime is not online. minecraftminertime
Joined: 08 Oct 2014
Total Posts: 38
30 Jun 2017 11:36 PM
I made a script that will set the player's speed to true if they own the gamepass, which will, in turn, increase their speed. I "made" a script that will set speed to true when they purchase the gamepass. But I can't test it out because my account automatically owns the gamepass, and if I make another account I will have to purchase robux to test it.
Report Abuse
minecraftminertime is not online. minecraftminertime
Joined: 08 Oct 2014
Total Posts: 38
30 Jun 2017 11:37 PM
How do I reliably test the gamepass to see what happens if I purchase it in-game?
Report Abuse
TunacanGamer is not online. TunacanGamer
Joined: 24 May 2015
Total Posts: 35
01 Jul 2017 02:26 AM
First make sure that your other account is friends with your main account and the gamepass can be purchased in-game. Then go to your place in studio and enable team create. Now invite your other account. Now enter your other account and test the game in studio. Use the purchase in-game feature while testing in your other account. Then it will say this is a test purchase. Then you can buy the gamepass for free in studio in your other account (You will need re-do the test purchase in every studio season you want to use it for free)

Not sure if it will work. I cant test it because my studio is broken :c

-Delicous Tuna Fish
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
01 Jul 2017 02:39 AM
local gpid=1234567--gamepassid
local function a(char)
char:WaitForChild("Humanoid",1.5).WalkSpeed=25
end
local Players=game:GetService"Players"
local function onPlayerAdded(player)
coroutine.wrap(function()
local GamePassService=game:GetService"GamePassService"
while not GamePassService:PlayerHasPass(player,gpid)do wait(8)end
local char=player.Character
if char then a(char)end
player.CharacterAdded:Connect(a)
char=nil;player=nil
end)()
end
Players.PlayerAdded:Connect(onPlayerAdded)
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
01 Jul 2017 02:44 AM
local gpid=1234567--gamepassid
local function a(char)
char:WaitForChild("Humanoid",1.5).WalkSpeed=25
end
local Players=game:GetService"Players"
local function onPlayerAdded(player)
coroutine.wrap(function()
local GamePassService=game:GetService"GamePassService"
while player.Parent and not GamePassService:PlayerHasPass(player,gpid)do wait(8)end
if player.Parent then
local char=player.Character
if char then a(char)end
player.CharacterAdded:Connect(a)
char=nil;player=nil;end
end)()
end
Players.PlayerAdded:Connect(onPlayerAdded)
Report Abuse
cabbler is not online. cabbler
Joined: 19 Jun 2015
Total Posts: 735
01 Jul 2017 02:44 AM
Start a test server (F7)
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