|
| 14 Jul 2017 11:53 PM |
local humanoid = script.Parent:WaitForChild("Humanoid")
function hideaccessories() for i,p in pairs(humanoid:GetAccessories()) do p.Handle.Transparency = 1 end end
function showaccessories() for i,p in pairs(humanoid:GetAccessories()) do p.Handle.Transparency = 0 hideaccessories() end
|
|
|
| Report Abuse |
|
|
|
| 14 Jul 2017 11:54 PM |
| Maybe try adding a WaitForChild for the Handle? then start playing with the transparency. |
|
|
| Report Abuse |
|
|
doggy00
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 3571 |
|
|
| 14 Jul 2017 11:54 PM |
| 2nd function is missing an end |
|
|
| Report Abuse |
|
|
doggy00
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 3571 |
|
|
| 14 Jul 2017 11:55 PM |
What des said, too.
Gotta say, though, didn't even know GetAccessories was a thing until this post. I always just did a loop along with :IsA("Accessory"). |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2017 11:55 PM |
Woah, nice catch doggy00. I missed that Lol |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2017 11:57 PM |
still doesnt work i just forgot to put the 2nd end in the post i had it in the script.
|
|
|
| Report Abuse |
|
|
doggy00
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 3571 |
|
|
| 15 Jul 2017 12:00 AM |
No errors?
Don't forget you have to call the function after you create it but I'm assuming you already knew that based on this post's layout.
Also, this script is inside of the character, correct? |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2017 12:05 AM |
it is in starter character but can i just have a ver of your script you said you had one yes?
|
|
|
| Report Abuse |
|
|
doggy00
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 3571 |
|
|
| 15 Jul 2017 12:13 AM |
I've made one before, yes.
Hastebin (not Pastebin):
fewerasaya.lua |
|
|
| Report Abuse |
|
|
| |
|