Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

guys can I get help with this please?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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
0
Change the hat1 to something like hatClass because its a number. SeptorHD 15 — 9y
0
OMG u such a bad scripter. FiredDusk 1466 — 8y
Ad
Log in to vote
-1
Answered by 9 years ago

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

Answer this question