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

Need some help making this Animation Local and OnTouch, Please?

Asked by 7 years ago
local char = script.Parent --the npc
local hum = char:WaitForChild("Humanoid") --the npc's humanoid
local animation = hum:LoadAnimation(script.Animation) 
if char ~= nil then
    animation:Play()
    animation:AdjustSpeed(0.5)
     --plays the animation
end

Hey, guys, do you think you can help me turn this into a Local Animation? So basically OnTouch it would trigger the animation for that one player and only that player and no one else can see that animation happen.

1 answer

Log in to vote
0
Answered by 7 years ago

I'm not sure it's possible. Unless you created your own animation using CFrame or lerp, I highly doubt it's possible. You could make it OnTouched by creating an OnTouched event found here:

http://wiki.roblox.com/index.php?title=API:Class/BasePart/Touched

Other than that, I don't believe It's possible to have a ROBLOX animation (an uploaded anim) client-sided as it's moving the character.

Ad

Answer this question