Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

guys can I get help with this please?

I made a script to change the shirt and pants but how do I make the hat change also ? here is the script game.Players.PlayerAdded:connect(function(player) while not player.Character do wait()end local character=player.Character

local animateScript=character.Animate 

animateScript.JumpAnim.JumpAnim.AnimationId="http://www.roblox.com/asset/?id=285362858"  

end) that's what changes the pants and shirt but I want to change the hat and I don't have idea about it cause it's not template or something like that. ty if you read and double thank you if you reply.

2 answers

Try to put something like this inside the function

all = char:GetChildren()
hat1 = ClassName = "Hat"
if hat = all:IsAncesterOf(hat1) then
--The manipulation of the hat

end

2 comments

0

Change the hat1 to something like hatClass because its a number.

0

OMG u such a bad scripter.

the script is not fully writing Idk why but I'm talking about the hat.

This discussion is preserved as it was. New answers, comments, and votes are closed.