mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
|
| 29 Jan 2015 11:38 AM |
so i made a local script and i put this is StarterGui. Still doesn't seem to work.
local gps = game:GetService("GamePassService")
local gpid = 208731388 local speed = 25 local player = game.Players.LocalPlayer wait(1/3) if gps:PlayerHasPass(Player, gpid) then player.Character:WaitForChild("Humanoid").WalkSpeed = speed end |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 11:39 AM |
| You shouldn't check if a player has a pass on the client. Do that on the server, or else people will be able to cheat it via Fiddler. |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 11:39 AM |
(Player, gpid)
Try typing 'player' with no capital letters! |
|
|
| Report Abuse |
|
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
|
| 29 Jan 2015 11:41 AM |
| ROBLOX's servers need to reset to actually approve that the player has it, unless you use the equipIfPurchased (only works for gear sales) I recommend using a Product instead. |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
|
| 29 Jan 2015 11:48 AM |
| I have tried making the P of player not capitalized, still doesn't seem to work. I'm not to sure where to put the 'Product' in the script and what to replace, would you mind showing me? |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
| |
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 29 Jan 2015 11:56 AM |
| You cant use :PlayerHasPass in a LocalScript |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
|
| 29 Jan 2015 12:02 PM |
| Would you mind fixing it for me, im not sure what to do |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
| |
|
|
| 29 Jan 2015 12:28 PM |
Why does no one use :PlayerOwnsAsset()?
As for your script:
if game.MarketplaceService:PlayerOwnsAsset(player, gpid) then repeat wait() until Player.Character player.Character:WaitForChild("Humanoid").WalkSpeed = speed end |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 12:30 PM |
| PS: You were calling for "Player", when you actually only defined "player". |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
|
| 29 Jan 2015 12:36 PM |
| Sorry but where do i put the Gamepass id? |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
| |
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
| |
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
| |
|
| |
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
|
| 29 Jan 2015 02:02 PM |
if game.MarketplaceService:PlayerOwnsAsset(player, 208731388) then repeat wait() until Player.Character player.Character:WaitForChild("Humanoid").WalkSpeed = speed 24 end
Not sure if that's where you were suppose to put it, and it doesn't recognize '24' |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 02:04 PM |
You put it in the right place. however you could've just kept it as gpid. (Since you already defined it as a variable.)
Also: player.Character:WaitForChild("Humanoid").WalkSpeed = 24 |
|
|
| Report Abuse |
|
|
|
| 29 Jan 2015 02:05 PM |
speed was defined as a variable, so you can either put speed or 24.
EG1: player.Character:WaitForChild("Humanoid").WalkSpeed = speed EG2: player.Character:WaitForChild("Humanoid").WalkSpeed = 24
They would both turn out the same in this case. |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
|
| 29 Jan 2015 03:17 PM |
this still wont work.
local gpid = 208731388 local speed = 25 local player = game.Players.LocalPlayer
if game.MarketplaceService:PlayerOwnsAsset(player, 208731388) then repeat wait() until player.Character player.Character:WaitForChild("Humanoid").WalkSpeed = 25 end
|
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
| |
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
| |
|
| |
|
|
| 29 Jan 2015 03:42 PM |
| PS: Only bump once every half-hour. |
|
|
| Report Abuse |
|
|
mulJR
|
  |
| Joined: 25 Dec 2012 |
| Total Posts: 305 |
|
|
| 29 Jan 2015 05:42 PM |
| No cant find an error in the server console |
|
|
| Report Abuse |
|
|