wayne2018
|
  |
| Joined: 04 Jun 2014 |
| Total Posts: 2509 |
|
|
| 31 Dec 2015 03:24 PM |
This script is supposed to find a tool named "Gold Cup" in Lighting and give it to a player who has a certain gamepass
local VIPTools = game.Lighting:WaitForChild ("Gold Cup") function givetool (player) if game:GetService("GamePassService"):PlayerHasPass(player, 321688730) then wait(2) VIPTools:Clone().Parent = player:WaitForChild ("BackPack") VIPTools:Clone().Parent = player:WaitForChild ("StarterPack") end end
game.Players.PlayerAdded:connect (givetool)
|
|
|
| Report Abuse |
|
|
| |
|
wayne2018
|
  |
| Joined: 04 Jun 2014 |
| Total Posts: 2509 |
|
|
| 31 Dec 2015 03:29 PM |
| Fixed that but it still doesn't work |
|
|
| Report Abuse |
|
|
LicePro
|
  |
| Joined: 08 Dec 2015 |
| Total Posts: 467 |
|
| |
|
wayne2018
|
  |
| Joined: 04 Jun 2014 |
| Total Posts: 2509 |
|
| |
|
wayne2018
|
  |
| Joined: 04 Jun 2014 |
| Total Posts: 2509 |
|
| |
|
| |
|
wayne2018
|
  |
| Joined: 04 Jun 2014 |
| Total Posts: 2509 |
|
| |
|
|
| 31 Dec 2015 04:07 PM |
game.StarterPack game.Players.SomePlayer.StarterGear
You're doing SomePlayer.StarterPack. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 04:09 PM |
| @Dennis, he's already defined the variable for the player. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2015 04:13 PM |
StarterPack belongs in game data model; StarterGear belongs in a player. He's trying to access StarterPack inside of a player.
http://wiki.roblox.com/index.php?title=API:Class/StarterPack http://wiki.roblox.com/index.php?title=API:Class/StarterGear |
|
|
| Report Abuse |
|
|
wayne2018
|
  |
| Joined: 04 Jun 2014 |
| Total Posts: 2509 |
|
| |
|