zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 14 Oct 2014 10:04 AM |
So, I did this, it's supposed to make your character invisible and then 2 seconds later appear again:
player = script.Parent.Parent mouse = player:GetMouse();
mouse.KeyDown:connect(function(key) key = key:lower(); if key == "i" then for i,v in pairs(player.Character:GetChildren()) do if v.ClassName == "Part" then v.Transparency = 1 wait(2) v.Transparency = 0 end end end end)
doesn't work, no output
|
|
|
| Report Abuse |
|
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
| |
|
|
| 14 Oct 2014 10:35 AM |
"Doesn't work, no output"
Is not solid evidence it isn't working. Do some tests before people will actually help you. Add print statements to determine where the script stops - if it stops at all. Make sure it's running, make sure it's a LocalScript.
Do these things first before posting something useless: "Doesn't work, no output" |
|
|
| Report Abuse |
|
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
|
| 14 Oct 2014 10:46 AM |
player = script.Parent.Parent mouse = player:GetMouse();
mouse.KeyDown:connect(function(key) key = key:lower(); if key == "i" then print ("Player pressed I") for i,v in pairs(player.Character:GetChildren()) do if v.ClassName == "Part" then v.Transparency = 1 print("Player is invisible") wait(2) v.Transparency = 0 print("Player is visible again") end end
end end)
prints everything out, nothing happens to character, don't make stupid assumptions |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2014 10:49 AM |
"don't make stupid assumptions"
Good luck with your problem. What a dumb thing to say to someone who could possibly help you. |
|
|
| Report Abuse |
|
|
zaniac10
|
  |
| Joined: 18 Aug 2009 |
| Total Posts: 10000 |
|
| |
|