generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why isnt this working T_T

Previous Thread :: Next Thread 
spinywind is online. 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
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
dennis96411 is not online. dennis96411
Joined: 06 Mar 2009
Total Posts: 1079
16 Sep 2015 03:37 PM
Did you ever call the function?
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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 is not online. Hoshijiro
Joined: 20 Aug 2008
Total Posts: 4105
16 Sep 2015 03:39 PM
call the function pl0x
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
16 Sep 2015 04:50 PM
how?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image