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.
COMMUNITY QUESTION
Animation change on touch?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Can you post some code at least showing us you attempted it
I'd have a block of code change the ID of the animation objects that are in the character's animate script
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.
local function OnTouch (hit) script.Parent.Touched.connect(OnTouch) while true do if newPlayer.Character ~= nil then break end wait(.1)
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