#Animations not working for others !!!

1 messages · Page 1 of 1 (latest)

tiny needle
#

example of other's pov:

tidal rain
#

send me the script rq

tiny needle
empty hornetBOT
#

studio** You are now Level 1! **studio

tiny needle
#

Discord wont let me send it, too long (im making a cinematic)

#

ill send it in parts

#

local tweenService = game:GetService("TweenService")
local camEvent = game.ReplicatedStorage:WaitForChild("ChangeCameraEvent")
local camTarget = game.Workspace:WaitForChild("AnimCam2")
local camMoveStart = game.Workspace:WaitForChild("CamStart")
local camMoveEnd = game.Workspace:WaitForChild("CamEnd")
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local blackScreen = playerGui:WaitForChild("CinematicGui"):WaitForChild("BlackScreen")
local blueModel = game.Workspace:FindFirstChild("BlueModel2")
local musicId = "rbxassetid://109317814657036"
local animationId = "rbxassetid://138932013773058"

local camMoveDuration = 4
local returnToPlayerDelay = 1

local fadeIn = tweenService:Create(blackScreen, TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 0})
local fadeOut = tweenService:Create(blackScreen, TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {BackgroundTransparency = 1})

local function playMusic()
local sound = game.Workspace:FindFirstChild("CinematicMusic")
if not sound then
sound = Instance.new("Sound")
sound.Name = "CinematicMusic"
sound.SoundId = musicId
sound.Volume = 1
sound.Looped = false
sound.Parent = game.Workspace
sound:Play()
end
return sound

#

end

local function playAnimation()
if not blueModel then return end

local humanoid = blueModel:FindFirstChildOfClass("Humanoid")
local animController = blueModel:FindFirstChildOfClass("AnimationController")
if not humanoid and not animController then return end

local animator = humanoid and humanoid:FindFirstChildOfClass("Animator") or animController:FindFirstChildOfClass("Animator")
if not animator then
    animator = Instance.new("Animator")
    animator.Parent = humanoid or animController
end

local animation = Instance.new("Animation")
animation.AnimationId = animationId
local animTrack = animator:LoadAnimation(animation)

if animTrack then
    animTrack:Play()
    animTrack.Stopped:Wait()

    animTrack.Looped = false
    animTrack:AdjustSpeed(0) 
end

end

local function moveCamera(camera, startCFrame, endCFrame)
camera.CFrame = startCFrame
local tween = tweenService:Create(camera, TweenInfo.new(camMoveDuration, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = endCFrame})
tween:Play()
end

local function cinematicSequence()
fadeIn:Play()
fadeIn.Completed:Wait()

local playerCam = game.Workspace.CurrentCamera
playerCam.CameraType = Enum.CameraType.Scriptable
playerCam.CFrame = camTarget.CFrame

local animTrack = playAnimation()

fadeOut:Play()
fadeOut.Completed:Wait()

local music = playMusic()

if animTrack then
    animTrack.Stopped:Wait()
end

fadeIn:Play()
fadeIn.Completed:Wait()

playerCam.CFrame = camMoveStart.CFrame
fadeOut:Play()
fadeOut.Completed:Wait()

moveCamera(playerCam, camMoveStart.CFrame, camMoveEnd.CFrame)
wait(camMoveDuration)

fadeIn:Play()
fadeIn.Completed:Wait()

wait(returnToPlayerDelay)

playerCam.CameraType = Enum.CameraType.Custom
playerCam.CFrame = player.Character.HumanoidRootPart.CFrame
#

fadeOut:Play()
fadeOut.Completed:Wait()
end

camEvent.OnClientEvent:Connect(cinematicSequence)

tidal rain
#

aight

empty hornetBOT
#

studio** You are now Level 5! **studio

tidal rain
#

let me fix this up

tiny needle
#

okii, tysm!

tidal rain
#

@tiny needle

#

this work?

tiny needle
#

i think so!! ill try it later, tysm