Helloo. I am currently working on a game where it needs to have cutscenes.
- What do you want to achieve? Animation playing without changing positions
- What is the issue? When playing the animation, characters position changes.
- What solutions have you tried so far? I’ve tried looking up in forums but i couldnt really find anything.
So i have script here that when the trigger gets touched, animation plays but the thing is that i think i need to put some sort of position values or something like that but i couldn’t really figure it out so i need your help.
How it should lookHow it looks
Here is the script:
local cam = workspace.CurrentCamera
local debounce = false
local trigger = script.Parent
local rig = game.Workspace.CutscenePlace.HouseCutscene:WaitForChild(“Rig”)
local panic = game.Workspace.CutscenePlace.HouseCutscene:WaitForChild(“Panic”)
local r_anim = rig.Humanoid.Animator:LoadAnimation(script:WaitForChild(“ranimation”))
local p_anim = panic.Humanoid.Animator:LoadAnimation(script:WaitForChild(“panicanim”))
trigger.Touched:Connect(function(hit)
if hit then
if debounce == false then
debounce = true
trigger:Destroy()
r_anim:Play()
p_anim:Play()
r_anim.Stopped:Wait()
p_anim.Stopped:Wait()
wait(30) – animation lenght
debounce = false
end
end
end)

