Hey there, so recently I made a animation which opens a vent.
It works and plays once I click on the Vent, now the problem is I added the vent as a Item in the Animation in Moon Animator to move with the rig’s arms, and when it plays the animation in person the vent just stays there in one place.
Is there anything I can do to include the item aka Vent that I moved with the arms in the Animation using Moon Animator.
Any help or conclusion would be appreciated been struggling on this for an hour, here is the code for clicking the Vent and the animation playing.
game.Workspace.VENTOPEN.ClickDetector.MouseClick:Connect(function()
if debounce == false and HasScrewdriver == true then
debounce = true
print("Opening Vent")
game.ReplicatedStorage.RemoteEvents.VentInteract:FireServer()
game.ReplicatedStorage.BindableEvent.AnimationScene:Fire()
wait(1)
Cam.CameraType = Enum.CameraType.Attach
Character:MoveTo(venttele.Position)
script.Parent.Controls_1st.Enabled = false
Character.HumanoidRootPart.CFrame = venttele.CFrame
--wait(0.001)
Player.Character:WaitForChild("Humanoid").WalkSpeed = 0
Player.Character:WaitForChild("Humanoid").JumpHeight = 0
Cam.CameraSubject = head
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://12912082700"
local track = animator:LoadAnimation(anim)
highlightAlright = false
track:Play()
track.Ended:Wait()
Cam.CameraSubject = head
Player.CameraMode = Enum.CameraMode.Classic
Cam.CameraType = Enum.CameraType.Scriptable
script.Parent.Controls_1st.Enabled = true
Player.Character:WaitForChild("Humanoid").WalkSpeed = 16
Player.Character:WaitForChild("Humanoid").JumpHeight = 7.2
vent.Position = game.Workspace.ventend.Position
end
end)