|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 09 Sep 2014 11:36 AM |
| Thanks for all the information guys! |
|
|
| Report Abuse |
|
|