|
| 06 Aug 2015 01:38 PM |
13:34:46.037 - Unable to cast value to Object 13:34:46.037 - Script 'Workspace.Part.Script', Line 3 - global isAuthenticated 13:34:46.038 - Script 'Workspace.Part.Script', Line 8
line 3: return game:GetService("MarketplaceService"):PlayerOwnsAsset(player, passId)
line 8: if isAuthenticated(plr) then |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2015 01:41 PM |
I found out my error, I was had the variable plr be the name of the player, I need it to be the location of the player, I fixed by doing this.
local plrr = game.Players[plr]
if isAuthenticated(plrr) then |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2015 01:42 PM |
| That doesn't make any sense, how could you have a reference to the player's name without having a reference to the player's object? |
|
|
| Report Abuse |
|
|