I’ve looked this error up, and I’m not exactly sure what the cause is, nor do I know how to fix it.
Both the animation and the game are under the ownership of my friend. My sole job was to provide the scripts. I don’t really know how to fix this at all.
I’ll provide the script as well. No other errors occur besides the one I displayed in the screenshot.
local plr = game.Players.LocalPlayer
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
local cam = workspace.CurrentCamera
local id = "https://www.roblox.com/asset/?id=132969515881166"
local animating = false
local e = Instance.new("Animation")
e.AnimationId = id
local f = animator:LoadAnimation(e)
game.ReplicatedStorage.startanim.OnClientEvent:Connect(function()
task.wait(3)
plr.PlayerGui:FindFirstChild("blackscreen"):Destroy()
cam.CameraType = Enum.CameraType.Scriptable
animating = true
f:Play()
f.Stopped:Wait()
animating = false
hum.WalkSpeed = 16
end)
game["Run Service"].RenderStepped:Connect(function()
if animating then
cam.CFrame = char.Head.CFrame
end
end)
if it his game and his anim, then thats not a problem the anims will play in roblox they dont appear to u only in roblox studio, but if u both got it, then idk
Strange. When I tested it in game and not in Studio, the animations worked. At least I know they work now, but this is sure gonna make playtesting way more difficult lol. Thank you, nonetheless!
local _assetIdNumber = 132969515881166
local RunService = game:GetService("RunService")
local KeyFrameService = game:GetService("KeyframeSequenceProvider")
local id = "rbxassetid://".._assetIdNumber
if RunService:IsStudio() then
local _keyFrame = KeyFrameService:GetKeyframeSequenceAsync(id)
id = KeyFrameService:RegisterKeyframeSequence(_keyFrame)
end