spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 16 Sep 2015 03:30 PM |
gpid = 297400359
GPS = game:GetService("GamePassService") function respawned(char) player = game.Players:FindFirstChild(char.Name) print("Respawned") if char:FindFirstChild("Head") ~= nil then print("It's a Player!") end if GPS:PlayerHasPass(player, gpid) then script.Parent.Visible = true end end
|
|
|
| Report Abuse |
|
|
|
| 16 Sep 2015 03:36 PM |
gpid = 297400359
GPS = game:GetService("GamePassService") function respawned(char) player = game.Players:GetPlayerFromCharacter(char) print("Respawned " .. char.Name) if char:FindFirstChild("Head") then print("It's a Player!") if GPS:PlayerHasPass(player, gpid) then script.Parent.Visible = true end end end
Okay where is this script going? Are you getting anything in the output, perhaps the print "Respawned"? If not then we need to look at why the function isn't getting called. |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2015 03:37 PM |
| Did you ever call the function? |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2015 03:37 PM |
gpid = 297400359
GPS = game:GetService("GamePassService") function respawned(char) print("Respawned called for " .. char.Name) local player = game.Players:GetPlayerFromCharacter(char) if player then print("Player found!") if GPS:PlayerHasPass(player, gpid) then script.Parent.Visible = true end end end
Wait I feel like I already rewrote most of that just like I just did now. Why did you change it back? This is better, just so you know. :P So run this, tell me what's in the output.
-The [Guy] |
|
|
| Report Abuse |
|
|
Hoshijiro
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 4105 |
|
| |
|
spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
| |
|