|
Hello. My animatronic morphs are not getting rid of Hats...... I Would like some help...
Link to models: https://www.roblox.com/library/549083010/Five-nights-at-Riddys-roleplay-morph-set If you figure out whats wrong with them tell me how to fix them... |
|
MeruetesJoin Date: 2014-08-24 Post Count: 5198 |
Technical Support and Account Issues is not for your weeb crap. Go to the scripting place instead, fattie.
|
|
|
"Five nights at riddys"
misha is a robot |
|
|
The issue is likely that hats have changed to Accessories. So in your code you need to use IsA("Accoutrement") instead of IsA("Hat"). |
|
|
Okay they use this script...
function onTouched(hit)
local d = hit.Parent:GetChildren()
for i=1, #d do
if (d[i].className == "Hat" then
d[i].Handle.Transparency = 1
end
end
end
script.Parent.Touched:connect(onTouched)
So what do i change? |
|
|
|
PooTheManJoin Date: 2015-02-13 Post Count: 70 |
just make them press = |
|
|
But that drops the hairs and somebody could pick it up and have to drop it off somewhere then another person could pick it up and have to drop it off somewhere x∞ |
|
|
That's an easy fix:
function onTouched(hit)
local d = hit.Parent:GetChildren()
for i=1, #d do
if (d[i]:IsA("Accoutrement")) then
d[i].Handle.Transparency = 1
end
end
end
script.Parent.Touched:connect(onTouched)
http://wiki.roblox.com/index.php?title=API:Class/Accoutrement
http://devforum.roblox.com/t/changes-to-hats-and-body-parts/30564
- 𝓣𝓱𝓮𝓐𝓭𝓭𝓲𝓬𝓽𝓟𝓵𝓪𝔂𝓮𝓻 | Current RAP: R$509 | #DownWithSift |
|
|
Or if you want to remove the hats:
function onTouched(hit)
local d = hit.Parent:GetChildren()
for i=1, #d do
if (d[i]:IsA("Accoutrement")) then
d[i]:Destroy()
end
end
end
script.Parent.Touched:connect(onTouched)
- 𝓣𝓱𝓮𝓐𝓭𝓭𝓲𝓬𝓽𝓟𝓵𝓪𝔂𝓮𝓻 | Current RAP: R$515 | #DownWithSift |
|
|
SIGH i need to remove Accessories too...
Y U DO DIS ROBLOX CHANGE EVERYTHING BACK TO HATS!!! |
|
|
Sigh time to Bump it again
Bump |
|