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 » Scripting Helpers
Home Search
 

Re: Can anyone make me a small script (paying 500 robux)

Previous Thread :: Next Thread 
SpeakerDoom is not online. SpeakerDoom
Joined: 02 Jul 2014
Total Posts: 289
24 Jul 2014 04:01 AM
Basicly, I want a script that gives an item in lightning as soon as you buy the gamepass

It goes in StarterGear and Backpack so when you reset you still have it....

name in lightning = HotAir
Report Abuse
blox6137 is not online. blox6137
Joined: 23 Nov 2008
Total Posts: 1109
24 Jul 2014 04:09 AM
https://www.youtube.com/watch?v=lgI2ZQVyrBo
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
24 Jul 2014 04:13 AM
local passId = 0000000
local tool = game.Lighting:FindFirstChild("HotAir")

function isAuthenticated(player)
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end

game.Players.PlayerAdded:connect(function(plr)
if isAuthenticated(plr) then
repeat
tool:clone().Parent = plr.StarterGear
until plr:FindFirstChild("StarterGear")
end
end)
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
24 Jul 2014 04:15 AM
Basically, I modified the code given from wiki.roblox.
http://wiki.roblox.com/index.php?title=Game_Pass


Remember to change the passID in the code to your GamePass's id
Report Abuse
SpeakerDoom is not online. SpeakerDoom
Joined: 02 Jul 2014
Total Posts: 289
24 Jul 2014 04:19 AM
RoAnt

thanks ;D

How would I make a script that makes a gui visible when you buy the gamepass? I have seen one before but cant find it again
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
24 Jul 2014 04:22 AM
Basically the same thing as the code I've posted.
You could make a gui and put it in Lighting and then have it cloned to the player's PlayerGui.
Just like the tool you mentioned.
Report Abuse
CaptainSource is not online. CaptainSource
Joined: 08 Jun 2013
Total Posts: 848
24 Jul 2014 04:50 AM
https://www.youtube.com/watch?v=-NuONuafxwk
Report Abuse
CaptainSource is not online. CaptainSource
Joined: 08 Jun 2013
Total Posts: 848
24 Jul 2014 04:50 AM
Just kidding like song xD
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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