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: need a script to give some1 a grav coil if they buy gamepass

Previous Thread :: Next Thread 
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 12:20 PM
please help, idk how gamepasses work so i cant do this for myself :/
Report Abuse
JoBruin is not online. JoBruin
Joined: 19 Feb 2012
Total Posts: 5092
23 May 2014 12:27 PM
how much u gonna pay me
Report Abuse
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 12:29 PM
@jobru

nothing cos its probably easy as hell to make

its not that i cant script i just dont know how to use gamepasses properly lol
Report Abuse
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 12:41 PM
b1

Prosecutective Quinn, lord of controversy and creator of edgy signatures.
Report Abuse
TheLuaUser is not online. TheLuaUser
Joined: 22 May 2012
Total Posts: 1405
23 May 2014 12:43 PM
http://www.roblox.com/Gamepass-Script-For-Kalecstrasz-place?id=158151243
Report Abuse
JoBruin is not online. JoBruin
Joined: 19 Feb 2012
Total Posts: 5092
23 May 2014 12:46 PM
If it's easy make one use the wiki. DO some research.
Report Abuse
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 01:04 PM
@thelua

best community on the forum 11/10

@jobru

wouldn't know what to look for, i visited the page and it's no help

why are you guys all so arrogant lmao this is a forum for helping people and all you do is flame 24/7
Report Abuse
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 01:10 PM
the only problem i'm having is that i don't know how to find a player when they join the game

i already have the whole "clone this gear out of lighting, put it in their backpack" script, but it's useless if idk how to get their backpack

Prosecutective Quinn, lord of controversy and creator of edgy signatures.
Report Abuse
JoBruin is not online. JoBruin
Joined: 19 Feb 2012
Total Posts: 5092
23 May 2014 01:21 PM
"this is a forum for helping people and all you do is flame 24/7"

We help people with scripts not make them. Search harder.
Report Abuse
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 01:25 PM
"search harder"

mate you're only proving my point

if you want to play that game though, fine

how do i find when a player has entered the game and then get their name so I can put something into their starter pack?

Prosecutective Quinn, lord of controversy and creator of edgy signatures.
Report Abuse
JoBruin is not online. JoBruin
Joined: 19 Feb 2012
Total Posts: 5092
23 May 2014 01:28 PM
I searched and I found this in 5 minutes

local Hook = Game.Lighting.GrapplingHook --Change as desired, it's the location of the tool

local GamePassId = 000000 --This is the gamepass id, you can get it by clicking on the gamepass page, and viewing the address bar for the numbers

Game.Players.PlayerAdded:connect(function(Player) --Setting up the .PlayerAdded event with an anonymous function
Player.CharacterAdded:connect(function() --Sets up a .CharacterAdded event so it gives it to them whenever they spawn

Code ends here. I wont put it all.
Report Abuse
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 01:46 PM
all right, so if i were to edit it to, say, following alone on that:

local newtool = Hook:clone()
Hook.Parent = Player.StarterPack

would that work?

Prosecutective Quinn, lord of controversy and creator of edgy signatures.
Report Abuse
Kalecstrasz is not online. Kalecstrasz
Joined: 11 Mar 2014
Total Posts: 4052
23 May 2014 01:53 PM
mate you've given me half a script and i can't do crap with it

can one of you people stop being a pretentious ass for 10 seconds and help me with this script please

Prosecutective Quinn, lord of controversy and creator of edgy signatures.
Report Abuse
JoBruin is not online. JoBruin
Joined: 19 Feb 2012
Total Posts: 5092
23 May 2014 02:05 PM
Next time make the script yourself and bring it to us if you have any problems. Dont expect us to make a script for you.

local Hook = Game.Lighting.GrapplingHook --Change as desired, it's the location of the tool

local GamePassId = 000000 --This is the gamepass id, you can get it by clicking on the gamepass page, and viewing the address bar for the numbers

Game.Players.PlayerAdded:connect(function(Player) --Setting up the .PlayerAdded event with an anonymous function
Player.CharacterAdded:connect(function() --Sets up a .CharacterAdded event so it gives it to them whenever they spawn
if Game:GetService("GamePassService"):PlayerHasPass(Player, GamePassId) then --Checks for the pass
Hook:Clone().Parent = Player.Backpack
end --Ends if statement
end) --Ends CharacterAdded function
end) --Ends PlayerAdded function



Figure out to edit it. It's not to hard.
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