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

Re: My game

Previous Thread :: Next Thread 
franticmovement is not online. franticmovement
Joined: 13 Jul 2014
Total Posts: 63
08 Sep 2014 12:20 PM
I need to create a game pass that will give someone a sword or other items when they join the game and I'm not sure how to do this. I don't know if it requires scripting or building but if someone could help me out that would be great.
Report Abuse
IOnceWas is not online. IOnceWas
Joined: 03 Mar 2008
Total Posts: 10402
08 Sep 2014 06:18 PM
This requires a script, but I believe you put the weapon in Lighting.


Impossible is not a fact; it's an opinion. -Muhammad Ali
Report Abuse
69scott69 is not online. 69scott69
Joined: 30 Jan 2011
Total Posts: 6136
08 Sep 2014 08:24 PM
It is a Scripting issue, but they added ServerStorage and ReplicatedStorage so you don't have to use Lighting anymore.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
08 Sep 2014 09:19 PM
local id = somenumbershere
local toolname = "Some name here" -- btw make sure da tool is in serverstorage okok

local toolpermenant = false -- set to true if you want the player to keep the tool after he dies
local service = game:GetService("GamePassService")
local tool = game.ServerStorage:FindFirstChild(toolname)

game.Players.PlayerAdded:connect(function(newNoob)

if service:PlayerHasPass(newNoob, id) then
toolc = tool:Clone()

if toolpermenant == false then
toolc.Parent = newNoob.Backpack
elseif toolpermenant == true then
toolc.Parent = newNoob.StarterGear
end

else
print(newNoob.Name.. "Does not own the gamepass")
end
end)
Report Abuse
franticmovement is not online. franticmovement
Joined: 13 Jul 2014
Total Posts: 63
09 Sep 2014 11:36 AM
Thanks for all the information guys!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building 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