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 » Scripting Helpers
Home Search
 

Re: Please help me (No output)

Previous Thread :: Next Thread 
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Jul 2011 04:50 PM
Last time I posted this nobody decided to help. . .

I made this script and for some reason ImageLabel1 will not show up under ScreenGui1 when I check in explorer. I tryed adding a print at line 9 to see if ImageLabel1 is even a child of ScreenGui1 and it says it is in the output. Is there anything I may be doing wrong?

--
while wait(0.25) do
for _,v in pairs(game.Players:GetPlayers()) do
lol = game.Lighting.ImageLabel1:clone()
c = v.PlayerGui:FindFirstChild("ScreenGui1")
if c then
lol.Parent = c
Torso = v.Character.Torso
for _,b in pairs(c:GetChildren()) do
print(b)
if b.Name == "ImageLabel1" then
b.Position = UDim2.new(0.129999993, Torso.Position.x,0.650000036, Torso.Position.z)
b:remove()
end end end end end
--
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
22 Jul 2011 04:51 PM
Eww, none of your variables are words, and you put all your ends on one line.

_____________
Turtle power!
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
22 Jul 2011 04:51 PM
That's good though...
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
22 Jul 2011 04:52 PM
if you look b is not a thing yet. also print can go after you set it then...
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
22 Jul 2011 04:53 PM
while wait(0.25) do
for _,Player in pairs(game.Players:GetPlayers()) do
local ImgLabel = game.Lighting.ImageLabel1:clone()
local Gui = Player.PlayerGui:FindFirstChild("ScreenGui1")
if Gui then
ImgLabel.Parent = Gui
local Torso = Player.Character.Torso
for _, Value in pairs(Gui:GetChildren()) do
print(Value.Name)
if Value.Name == "ImageLabel1" then
Value.Position = UDim2.new(0.129999993, Torso.Position.x,0.650000036, Torso.Position.z)
Value:Remove()
end
end
end
end
end

_____________
Turtle power!
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Jul 2011 04:58 PM
@Cody b stands for the children of c

@TheC everything I did in my script was valid and what did you change in the above script other then changing the variable names?
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Jul 2011 05:00 PM
The script you edited is having the same problem as mine
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Jul 2011 05:52 PM
Is there somewhere I can go other then SH to ask for help on this?
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
22 Jul 2011 05:54 PM
b:remove()

Why did you remove the spot on the radar? :P
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Jul 2011 06:03 PM
@Electric
I added 'lol = game.Lighting.ImageLabel1:clone()' in the begininning so I need to delete it unless I want the radar spammed with ImageLabels.
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
22 Jul 2011 06:21 PM
Then parent it AFTER deleting and not before. Or break the loop using 'break'.
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Jul 2011 06:47 PM
I don't get what you mean by that. How would I even be able to delete the ImageLabel if lol isn't a child of c?
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
22 Jul 2011 06:48 PM
while wait(0.25) do
for _,v in pairs(game.Players:GetPlayers()) do
lol = game.Lighting.ImageLabel1:clone()
c = v.PlayerGui:FindFirstChild("ScreenGui1")
if c then
Torso = v.Character.Torso
for _,b in pairs(c:GetChildren()) do
print(b)
if b.Name == "ImageLabel1" then
b.Position = UDim2.new(0.129999993, Torso.Position.x,0.650000036, Torso.Position.z)
b:remove()
end end
lol.Parent = c
end end end
Report Abuse
smurf279 is not online. smurf279
Joined: 15 Mar 2010
Total Posts: 6871
22 Jul 2011 07:11 PM
Alright I got it working
Thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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