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: hats not turning transparent?

Previous Thread :: Next Thread 
15fluffblox is not online. 15fluffblox
Joined: 04 Jul 2010
Total Posts: 426
08 Aug 2016 04:37 PM
Everything else turns invisible except for my hats.. Why?


script.Parent.Activated:connect(function()
script.Parent.Handle.Cloak:Play()
script.Parent.Handle.Transparency = 0.98
script.Parent.Parent.Torso.Transparency = 0.98
script.Parent.Parent.Head.Transparency = 1
script.Parent.Parent.Head.face.Transparency = 0.98
script.Parent.Parent["Left Arm"].Transparency = 0.98
script.Parent.Parent["Right Arm"].Transparency = 0.98
script.Parent.Parent["Left Leg"].Transparency = 0.98
script.Parent.Parent["Right Leg"].Transparency = 0.98
for i=1, #character do
if (character[i].className == "Hat") then
character[i].Transparency = 0.98
end
end
end)



make it fluffy or i poke you c:
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
08 Aug 2016 04:37 PM
Hat.Handle.Transparency = 1

or remove it
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 04:42 PM
--Dat old FM script doe..

--Here is a total remake of that FM code. xD
sp = script.Parent

sp.Activated:connect(function()
local parts = {}
local function gp(input)
for i,v in pairs(input:GetChildren()) do
if v:IsA'BasePart' then
table.insert(parts, v)
end
if #v:GetChildren() > 1 then
gp(v)
end
end
end
gp(sp)
for i,v in pairs(parts) do
spawn(function()
for i = 0.1, 1 do
v.Transparency = i
end
end)
end
end)
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 04:43 PM
sp = script.Parent

sp.Activated:connect(function()
local parts = {}
local function gp(input)
for i,v in pairs(input:GetChildren()) do
if v:IsA'BasePart' then
table.insert(parts, v)
end
if #v:GetChildren() > 1 then
gp(v)
end
end
end
gp(sp)
for i,v in pairs(parts) do
if not v.Name == 'HumanoidRootPart' then--This too. xD
spawn(function()
for i = 0.1, 1 do
v.Transparency = i
wait(0.1)--Forgot the wait for a nice effect. :P
end
end)
end
end
end)
Report Abuse
15fluffblox is not online. 15fluffblox
Joined: 04 Jul 2010
Total Posts: 426
08 Aug 2016 04:54 PM
uh... Could you simplify that? im not the best at scripting, 4.5/10
Report Abuse
Auracyte is not online. Auracyte
Joined: 01 Feb 2011
Total Posts: 330
08 Aug 2016 04:59 PM
You can literally copy and paste that mate.
Report Abuse
15fluffblox is not online. 15fluffblox
Joined: 04 Jul 2010
Total Posts: 426
08 Aug 2016 05:13 PM
i mean simplify the script so i can edit it, it also doesn't work.



make it fluffy or i poke you c:
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
08 Aug 2016 05:16 PM
function transp(all)

for _,v in pairs(all:getChildren()) --for each in all's children

if v:IsA("BasePart") then
v.Transparency = 0.99
end

if #v:GetChildren() > 0 then
transp(v) --check this part
end
end

end

tranps(character)
Report Abuse
15fluffblox is not online. 15fluffblox
Joined: 04 Jul 2010
Total Posts: 426
08 Aug 2016 05:21 PM
oh i figured out an alternate method.. thanx anyways tho..



make it fluffy or i poke you c:
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