IronNoob

Please login or register.

Login with username, password and session length
Advanced search  

News:

Migrated to dedicated hosting. Post any weirdness you observe in the Lounge.

Author Topic: Can one of you fix this?  (Read 62 times)

0 Members and 1 Guest are viewing this topic.

drager980

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
  • DRAGER IS WATCHING
    • View Profile
Can one of you fix this?
« on: April 13, 2013, 06:22:02 pm »

while wait() do
g = script.Parent.Parent.Parent.Name
if script.Parent.Parent.Name == "PlayerGui" then
if game.Workspace:findFirstChild(g).Head.PoisonGUI == nil then
h = script.Parent.PoisonGUI:clone()
h.Parent = game.Workspace:findFirstChild(g).Head
end
else
end
end


I'm honestly not sure what to do about this, I've posted this on the main roblox site but they aren't really helping this issue.
It's meant to clone a billboard GUI inside of the scripts parent to the players head if the GUI is in the playergui.
Logged

Void_Knight

  • Man of Mystery
  • Global Moderator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 9602
  • Nope, Void_Knight.
    • View Profile
Re: Can one of you fix this?
« Reply #1 on: April 13, 2013, 07:08:27 pm »

Is g the player?
Logged

drager980

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
  • DRAGER IS WATCHING
    • View Profile
Re: Can one of you fix this?
« Reply #2 on: April 13, 2013, 07:12:38 pm »

Is g the player?
I'm after g being the player's name, yes.
That was just the way I assumed to do that.
« Last Edit: April 13, 2013, 07:16:50 pm by drager980 »
Logged

Void_Knight

  • Man of Mystery
  • Global Moderator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 9602
  • Nope, Void_Knight.
    • View Profile
Re: Can one of you fix this?
« Reply #3 on: April 13, 2013, 08:39:26 pm »

while wait() do
   c = script.Parent.Parent.Parent.Character
   if script.Parent.Parent.Name == "PlayerGui" then
      if not c.Head:FindFirstChild("PoisonGUI") then
         h = script.Parent.PoisonGUI:clone()
         h.Parent = c.Head
      end
   else
   end
end

This... might be what you wanted.
Logged

drager980

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
  • DRAGER IS WATCHING
    • View Profile
Re: Can one of you fix this?
« Reply #4 on: April 14, 2013, 03:47:08 am »

while wait() do
   c = script.Parent.Parent.Parent.Character
   if script.Parent.Parent.Name == "PlayerGui" then
      if not c.Head:FindFirstChild("PoisonGUI") then
         h = script.Parent.PoisonGUI:clone()
         h.Parent = c.Head
      end
   else
   end
end

This... might be what you wanted.
It is, thanks.
Logged
 

Page created in 0.067 seconds with 22 queries.