I am trying to make a model with an animation in Roblox Studio, but my animation refuses to play despite having everything, but the PrimaryPart “Core” in the model “Main” in “FL1”.
Could anyone help me resolve my ongoing issue?
local Tween = TweenInfo.new(17, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local FastTween = TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local TweenService = game:GetService("TweenService")
local PL1Overload = game.ReplicatedStorage.Events.PL1Overload
local PowerLazer = script.Parent.Main
PL1Overload.Event:Connect(function()
PowerLazer.Utilities.Sounds.Explode:Play()
wait(0.1)
PowerLazer.Utilities.Explosion.MiddlePoint.Ember:Emit(20)
PowerLazer.Utilities.Explosion.MiddlePoint.Fireball:Emit(20)
PowerLazer.Utilities.Explosion.MiddlePoint.Smoke:Emit(20)
PowerLazer.Utilities.Explosion.MiddlePoint2.Fire.Enabled = true
game.Workspace.Map.ReactorChamber.Components.FusionLazers.FL1.Main.OuterBeam.ParticleEmitter.Enabled = false
TweenService:Create(game.Workspace.Map.ReactorChamber.Components.FusionLazers.FL1.Main.InnerBeam, FastTween, { Transparency = 1 }):Play()
TweenService:Create(game.Workspace.Map.ReactorChamber.Components.FusionLazers.FL1.Main.OuterBeam.beam.Beam, FastTween, { Brightness = 0 }):Play()
for _, objects in pairs(PowerLazer.Lights:GetDescendants()) do
TweenService:Create(objects, FastTween, { Color = Color3.fromRGB(17, 17, 17) }):Play()
end
wait(2)
PowerLazer.Utilities.Sounds.Screech:Play()
PowerLazer.AnimationController:LoadAnimation(PowerLazer.Animation):Play()
end)
there is one major issue here, AnimationController is completely broken when I last tried it and will not play the animation!
add a Animator Instance in the animation controller and use it instead
idk it might have something to do with animation but can you try like putting it into a variable like
local Animator = PowerLazer.AnimationController:WaitForChild(“Animator”)
local Animation = Animator:LoadAnimation(PowerLazer.Animation)
Animation:Play()