#Animations only work in studio not when i open it on roblox

1 messages · Page 1 of 1 (latest)

next yew
#

help

frosty basin
next yew
#

uhh i think so

frosty basin
#

Do you have Ids?

next yew
#

yep

frosty basin
#

You uploaded it yourself?

next yew
#

and they work when i play in studio

next yew
frosty basin
#

Send me 1 Id if you can

next yew
#

ok

frosty basin
#

I'll test if I can use it too

next yew
#

130255890632277

#

that one should work

frosty basin
#

Soccer game it works

#

Send me the (part of the) script that plays the anim

next yew
#

huh

next yew
#

ill have to find it lol

frosty basin
#

You can use Find All tool

next yew
#

k

frosty basin
#

And type: :Play()

peak novaBOT
#

studio** You are now Level 10! **studio

next yew
#

i right clicked but nothing of that showed up

frosty basin
next yew
#

oh ok

#

lemme find the thing this connects to

peak novaBOT
#

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

next yew
#

userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if gameProcessedEvent then return end
if input.KeyCode == Enum.KeyCode.One then
Ability(1)
elseif input.KeyCode == Enum.KeyCode.Two then
Ability(2)
elseif input.KeyCode == Enum.KeyCode.Three then
Ability(3)
elseif input.KeyCode == Enum.KeyCode.Four then
Ability(4)
elseif input.KeyCode == Enum.KeyCode.Five then
Ability(5)
end
end)

#

gimme a sec

#

might have to send the whole thing

frosty basin
#

Ok

next yew
#

is that ok

frosty basin
#

Yes

next yew
#

theres one script

#

wrong one mb

#

i think

#

ill delet it

#

so its not in the way

#

anyway

#

lemme find it

frosty basin
#

You can search for :LoadAnimation(

next yew
#

ok

#

local module = {}

local camera = workspace.CurrentCamera
local tweenService = game:GetService("TweenService")

local replicatedStorage = game:GetService("ReplicatedStorage")
local resources = replicatedStorage:WaitForChild("Resources")

local modules = resources.Modules

local function Weld(Part0, Part1)
local weld = Instance.new("Weld")
weld.Part0 = Part0
weld.Part1 = Part1
weld.Parent = Part0
end

function module:ClientSide()
tweenService:Create(camera, TweenInfo.new(0.3, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {FieldOfView = 80}):Play()
task.wait(0.35)
camera.FieldOfView = 65
tweenService:Create(camera, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
end

function module:Activate(player: Player)
local character: typeof(player.Character) = player.Character
local humanoid: Humanoid = character:WaitForChild("Humanoid")
local animator: Animator = humanoid.Animator

local root: Part = character:WaitForChild("HumanoidRootPart")

local originalWalkSpeed = humanoid.WalkSpeed
local originalJumpPower = humanoid.JumpPower

humanoid.WalkSpeed = 0
humanoid.JumpPower = 0

character:SetAttribute("Freeze", true)

local track = animator:LoadAnimation(script.Animation)
track.Priority = Enum.AnimationPriority.Action3
track:Play()

task.wait(0.31)

character:SetAttribute("Freeze", false)

humanoid.WalkSpeed = originalWalkSpeed
humanoid.JumpPower = originalJumpPower

local DS_VFX = script.DirectShotVFX:Clone()
DS_VFX.Parent = workspace.Debris
DS_VFX.Anchored = false
DS_VFX.CanCollide = false
DS_VFX.Transparency = 1
DS_VFX.CFrame = root.CFrame

task.spawn(function()
    local Wave_VFX = script.Wave:Clone()
    Wave_VFX.Parent = workspace.Debris
    Wave_VFX.Size = Vector3.new(1, 2, 1)
    Wave_VFX.CanCollide = false
    Wave_VFX.Anchored = true
    Wave_VFX.CFrame = root.CFrame:ToWorldSpace(CFrame.new(0, 0, -2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)))

    tweenService:Create(Wave_VFX, TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {Size = Vector3.new(10, 31, 10)}):Play()
    tweenService:Create(Wave_VFX, TweenInfo.new(1.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {CFrame = root.CFrame:ToWorldSpace(CFrame.new(0, 0, -10) * CFrame.Angles(math.rad(90), math.rad(270), math.rad(0)))}):Play()
    tweenService:Create(Wave_VFX, TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Transparency = 1}):Play()
    
    game.Debris:AddItem(Wave_VFX, 3)
end)

task.spawn(function()
    for i, v in pairs(DS_VFX:GetDescendants()) do
        if v:IsA("ParticleEmitter") then
            task.wait()
            v:Emit(5)
        end
    end
end)
game.Debris:AddItem(DS_VFX, 3)

end

return module

#

and i alr sent the id

#

130255890632277

frosty basin
#

The account publishing the game is the same that the one you published the Id?

next yew
#

for the script.Animation

frosty basin
#

You need to use same account or give the publisher permissions to use your animations

next yew
#

hmm

#

how do i give perms

#

ill ask him to animation spoof everything if u think thats gonna work

frosty basin
#

Idk

peak novaBOT
#

studio** You are now Level 2! **studio

frosty basin
#

To spoof an anim you just need 1 command

next yew
#

i spoofed some of them

#

and the others idk

frosty basin
#

game:GetObjects("rbxassetid://YOUR_ANIM_ID")[1].Parent = game.Workspace

#

Ok

frosty basin
next yew
#

i published it i think

#

cyberpunk_alt is me

frosty basin
#

Mmmm

#

Your game is in a group?

next yew
#

idk why

#

im asking him to donwload animation spoofer

frosty basin
#

Go in-game, and screenshot your console's client output if you can

#

That could maybe help

next yew
#

uhh

#

like roblox

#

not studio?

frosty basin
#

Yes, in the actual game

#

That's where your problem is, right?

next yew
#

yeah

#

ok gimme a sec

#

how do i get to that

#

oh

#

isnt it F9

#

or f5

#

or wtv

frosty basin
#

F9

next yew
#

ok

#

just anim errors

frosty basin
#

Ok, so it seems like there could be 2 ways to make this work

#

Or nvm, best way is still to make your game in a group

#

Looks like it fixes it for most people

#

You can also try to Enable "ClientAnimatorThrottling"

#

Not sure if that will work, but never hurts to try

next yew
#

lemme get the owner in here

next yew
#

@timber nacelle

next yew
#

@timber nacelle

#

bro

next yew
#

@frosty basin

#

the game is in a group now

#

animations still don’t work

#

@timber nacelle

timber nacelle
#

?

#

hi

frosty basin
next yew
#

I think he might’ve set them as his animations

peak novaBOT
#

studio** You are now Level 3! **studio

next yew
#

I’ll ask him to do it again

timber nacelle
#

Yea maybe

peak novaBOT
#

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

frosty basin
#

Animations to have been uploaded inside the Group like this:

next yew
#

yup @timber nacelle

timber nacelle
#

ohh alr

#

didn't work

#

@frosty basin

frosty basin
#

How are you playing the animations?

timber nacelle
#

Wdym?

frosty basin
#

The script that plays the animation

timber nacelle
frosty basin
#

Try to put the Animation with the Id already entered in ReplicatedStorage

#

Instead of creating it automatically

#

You should also use Humanoid > Animator

#

Loading animations with the Humanoid is the old way

next yew
#

how

frosty basin
#

How what?

next yew
#

hold on

next yew
frosty basin
#

You can pre-load things inside ReplicatedStorage so all the animations are loaded and ready when the game starts

timber nacelle
frosty basin
#

If that is in RP, it's good

next yew
#

it is

#

but the anim for it still doesn’t work

#

lemme see if he can spoof it to the group

#

hold on

timber nacelle
#

Do i have to put in module scripts or can i do local scripts and stuff

#

@frosty basin

frosty basin
#

LocalScript is good

#

You can use others if you want to

timber nacelle
#

Okay

#

im going to send my script and if you can tell me whats wrong that would be perfect

peak novaBOT
#

studio** You are now Level 2! **studio

timber nacelle
#

local player: Player? = game:GetService("Players").LocalPlayer
local character: typeof(player.Character) = player.Character or player.CharacterAdded:Wait()
local humanoid: Humanoid = character:WaitForChild("Humanoid")
local animator: Animator = humanoid.Animator
local camera: Camera = workspace.CurrentCamera

local mouse: Mouse = player:GetMouse()

local userInputService = game:GetService("UserInputService")

local replicatedStorage = game:GetService("ReplicatedStorage")
local resources = replicatedStorage:WaitForChild("Resources")
local modules = resources.Modules

local inputHandler = require(modules.InputHandler)
local remoteMessenger = require(modules.RemoteMessenger)

local shootPower = {
min = 10,
max = 30,
}

local tweenService = game:GetService("TweenService")
local shootPowerValue: NumberValue = Instance.new("NumberValue")
shootPowerValue.Value = shootPower.min

local power: number = shootPower.min

local tween = tweenService:Create(shootPowerValue, TweenInfo.new(0.5), {Value = shootPower.max})

local chargeTrack = animator:LoadAnimation(script.Charge)
local chargeLoopTrack = animator:LoadAnimation(script.Charge_Loop)
chargeLoopTrack.Looped = true
local kickTrack = animator:LoadAnimation(script.Kick)

chargeTrack.Priority = Enum.AnimationPriority.Action4
chargeLoopTrack.Priority = Enum.AnimationPriority.Action3
kickTrack.Priority = Enum.AnimationPriority.Action4

local runService = game:GetService("RunService")

local hold = false
local highlighted = false

local function highlight()
if not highlighted then
highlighted = true
local highlight1 = Instance.new("Highlight", character)
highlight1.Adornee = character
highlight1.FillColor = Color3.fromRGB(255, 255, 255)
highlight1.OutlineTransparency = 0
highlight1.FillTransparency = 0.2

    local light = Instance.new("PointLight", character.HumanoidRootPart)
    light.Brightness = 2
    light.Range = 8
    
    local part = script.FullPowerEffect:Clone()
    part.Parent = workspace.Debris
    part.CFrame = character.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(0, -3, 0))
    part.Attachment.ParticleEmitter:Emit(5)
    
    tweenService:Create(highlight1, TweenInfo.new(0.75), {FillTransparency = 1}):Play()
    tweenService:Create(highlight1, TweenInfo.new(0.75), {FillColor = Color3.fromRGB(0, 0, 0)}):Play()
    tweenService:Create(highlight1, TweenInfo.new(0.75), {OutlineTransparency = 1}):Play()
    tweenService:Create(light, TweenInfo.new(0.75), {Brightness = 0}):Play()
    game.Debris:AddItem(highlight1, 0.75)
    game.Debris:AddItem(light, 0.75)
    game.Debris:AddItem(part, 1.6)
end

end

userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if gameProcessedEvent then return end
inputHandler:Input(input.KeyCode)
end)

mouse.Button1Down:Connect(function()
highlighted = false
power = shootPower.min
shootPowerValue.Value = shootPower.min
tween:Play()
kickTrack:Stop(0)
chargeTrack:Play()
chargeLoopTrack:Play(1)
hold = true
end)

mouse.Button1Up:Connect(function()
power = shootPowerValue.Value
tween:Cancel()
chargeTrack:Stop(0)
chargeLoopTrack:Stop(0)
kickTrack:Play(0)
shootPowerValue.Value = shootPower.min
hold = false
local lookVector = character.HumanoidRootPart.CFrame.LookVector
local direction = Vector3.new(lookVector.X, camera.CFrame.LookVector.Y, lookVector.Z)
remoteMessenger.SendServer("/Ball_Kick/", power, direction)
end)

runService.RenderStepped:Connect(function()
if hold then
humanoid.WalkSpeed = 6
end
if shootPowerValue.Value >= shootPower.max then
highlight()
end
end)

#

@frosty basin

frosty basin
#

This doesn't work?

timber nacelle
#

yea

frosty basin
#

Then I have no idea