|
| 16 Aug 2012 11:51 PM |
Top part of my script:
Tool = script.Parent Player = game.Players.LocalPlayer
blahblahblah
function waitForChild(parent, instance) while parent:FindFirstChild(instance) == nil do print("Waiting for ".. instance) wait(.5) end end
waitForChild(Tool, "Flash") waitForChild(Tool, "Clip") waitForChild(Tool, "Ammo") waitForChild(Tool.Handle, "Fire") waitForChild(Tool.Handle, "Empty") waitForChild(Player.PlayerGui, "AmmoGUI")
flash = Tool.Flash clip = Tool.Clip ammo = Tool.Ammo fire = Tool.Handle.Fire empty = Tool.Handle.Empty agui = Player.PlayerGui.AmmoGUI reloading = false
blahblahblah
Tool.Equipped:connect(function(mouse) wait() waitForChild(agui, "Ammo") waitForChild(agui, "Scope") agui.Ammo.Visible = true
blah
end
> Repetitively prints out "Waiting for Ammo" > Make new local script in backpack
if game.Players.LocalPlayer.PlayerGui:FindFirstChild("Ammo") ~= nil then print('screw you') end
>Repetitively prints out "Screw you"
Any idea what is happening? I'm not sure if I'm being stupid or not. |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2012 11:54 PM |
blahblahblah does not help us.
If you don't want strange and non-descriptive outputs, don't use free models. |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2012 11:55 PM |
| It's not a free model. It's SUPPOSED be working fine. Also the blahblahblah is unimportant, unrelated stuff to the problem. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2012 12:26 AM |
| If you know what's not related, you should know what is related. Otherwise, you have to assume that everything is related. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2012 12:30 AM |
| I only posted the related stuff, why else would I remove small chunks of code? Anyways, do you see any problems in the code I posted? |
|
|
| Report Abuse |
|
|