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 » Scripters
Home Search
 

Re: Can someone fix this script?

Previous Thread :: Next Thread 
Chromic_B is not online. Chromic_B
Joined: 13 Apr 2017
Total Posts: 9
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
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
14 Jul 2017 11:54 PM
Maybe try adding a WaitForChild for the Handle? then start playing with the transparency.
Report Abuse
doggy00 is online. doggy00
Joined: 11 Jan 2011
Total Posts: 3571
14 Jul 2017 11:54 PM
2nd function is missing an end
Report Abuse
doggy00 is online. 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
DesignerDavid is not online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
14 Jul 2017 11:55 PM
Woah, nice catch doggy00.
I missed that Lol
Report Abuse
Chromic_B is not online. Chromic_B
Joined: 13 Apr 2017
Total Posts: 9
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 is online. 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
Chromic_B is not online. Chromic_B
Joined: 13 Apr 2017
Total Posts: 9
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 is online. 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
Chromic_B is not online. Chromic_B
Joined: 13 Apr 2017
Total Posts: 9
15 Jul 2017 12:15 AM
thanks


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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