Trello
|
  |
| Joined: 19 Feb 2010 |
| Total Posts: 261 |
|
|
| 01 Sep 2013 06:40 PM |
for Y,Q in pairs(shared.Tributes) do if Q.Character:findFirstChild("Humanoid") then Q.Character.Humanoid.WalkSpeed = 12 end if GamePassService:PlayerHasPass(player, 11573874) then game.Lighting.Gamepass.Bottle:clone().Parent = player.Backpack end end end
how come this won't give the user the bottle? it is part of a larger script by the way. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 06:45 PM |
if Game:GetService("GamePassService"):PlayerHasPass(player, 11573874) then
|
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 01 Sep 2013 06:46 PM |
vipspeed = 16--vip speed regspeed = 12--regular speed function haspass(player) return game:service("GamePassService"):PlayerHasPass(player, 11573874) end game.Players.PlayerAdded:connect(function(plr) plr.CharacterAddded:connect(function(char) if haspass(plr) then game.Lighting.Gamepass.Bottle:clone().Parent = player.Backpack char.Humanoid.WalkSpeed = vipspeed else char.Humanoid.Walkspeed = regspeed end) end) |
|
|
| Report Abuse |
|
|
Trello
|
  |
| Joined: 19 Feb 2010 |
| Total Posts: 261 |
|
|
| 01 Sep 2013 06:47 PM |
thank you guys sooooo much
lemme make sure it works |
|
|
| Report Abuse |
|
|
XtremeSpy
|
  |
| Joined: 20 Nov 2011 |
| Total Posts: 115 |
|
|
| 01 Sep 2013 06:48 PM |
| Remove a "d" from he PlayerAddded |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 06:48 PM |
Oops, the player object is assigned to "Q".
if Game:GetService("GamePassService"):PlayerHasPass(Q, 11573874) then
|
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 01 Sep 2013 06:48 PM |
vipspeed = 16--vip speed regspeed = 12--regular speed function haspass(player) return game:service("GamePassService"):PlayerHasPass(player, 11573874) end game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) if haspass(plr) then game.Lighting.Gamepass.Bottle:clone().Parent = player.Backpack char.Humanoid.WalkSpeed = vipspeed else char.Humanoid.Walkspeed = regspeed end) end) |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 06:49 PM |
| It was the .CharacterAdded event that had an extra 'd'. |
|
|
| Report Abuse |
|
|
Trello
|
  |
| Joined: 19 Feb 2010 |
| Total Posts: 261 |
|
|
| 01 Sep 2013 07:13 PM |
| do the amount of indents i have on each line matter? |
|
|
| Report Abuse |
|
|
| |
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 01 Sep 2013 07:14 PM |
for Y,Q in pairs(shared.Tributes) do if Q.Character:findFirstChild("Humanoid") then Q.Character.Humanoid.WalkSpeed = 12 end if GamePassService:PlayerHasPass(player, 11573874) then Copy=game.Lighting.Gamepass.Bottle:clone() Copy.Parent = player.Backpack end end end |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2013 07:15 PM |
| That wouldn't work, LaPWn. |
|
|
| Report Abuse |
|
|
Trello
|
  |
| Joined: 19 Feb 2010 |
| Total Posts: 261 |
|
|
| 01 Sep 2013 07:20 PM |
| i've tried knightmare's and soquick's multiple times, but it isn't working |
|
|
| Report Abuse |
|
|