local Players = game:GetService("Players")
local Player = game.Players.LocalPlayer
local Playerid = Player.UserId
local TweenService = game:GetService("TweenService")
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local PartProximity = game.Workspace:WaitForChild("TrainingPart")
local Button = PartProximity:WaitForChild("ProximityPrompt")
local CameraPart = game.Workspace:WaitForChild("TrainingCamera")
local info = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
0,
true
)
local Ora = {}
Ora.BackgroundTransparency = 0
local Camera = game.Workspace.CurrentCamera
Button.Triggered:Connect(function(Plr)
if Plr == Player then
local Dummy = game.ReplicatedStorage:WaitForChild("TrainingAnimationDummy"):Clone()
local TraHum = Dummy.Humanoid
local Animation = TraHum:LoadAnimation(script:WaitForChild("Animation"))
Dummy.Parent = game.Workspace
Camera.CameraType = Enum.CameraType.Scriptable
local Desc = Players:GetHumanoidDescriptionFromUserId(Playerid)
TraHum:ApplyDescription(Desc)
local Gui = Player.PlayerGui.TeleportingGui
local Frame = Gui.Frame
local TWA = TweenService:Create(Frame, info, Ora):Play()
task.spawn(function()
task.wait(2)
for _, Guis in Player.PlayerGui:GetChildren() do
if Guis ~= Gui then
Guis.Enabled = false
end
end
Camera.CFrame = CameraPart.CFrame
Animation:Play()
end)
end
end)
``` its a local script
#Animation Doesnt Work
1 messages · Page 1 of 1 (latest)