So I am trying to make a script that turns people into zombies on touch,now I have a problem with an animation (R6). I can't figure out how to make a script that changes the player's walking and idle animation on touch. I look at other animation scripts but I just can't find the one that changes the animations of only the player that touched the part.Help? I am making it for the R6 avatars.

5 comments

0

Can you post some code at least showing us you attempted it

0

I'd have a block of code change the ID of the animation objects that are in the character's animate script

0

I am still very new to coding,and I am trying to modify a script I found on youtube tutorial but everything just confuses me,this is my attempt to code it.

0

local function OnTouch (hit) script.Parent.Touched.connect(OnTouch) while true do if newPlayer.Character ~= nil then break end wait(.1)

0

And so on... You can just find it by searching for free models "animation changer" but I cannot modify it to only affect the player that touched the modified part