#R6
1 messages · Page 1 of 1 (latest)
One more question I made a idle animation and I was wondering how do I make it's repeat it's just doing it once and stoping
** You are now Level 2! **
Send the animation properties
** You are now Level 8! **
Send
Chat that's what in asking fr
i'll make a script really quick
local giocatore = game.Players.LocalPlayer
local personaggio = giocatore.Character or giocatore.CharacterAdded:Wait()
local humanoidRootPart = personaggio:WaitForChild("HumanoidRootPart")
local umanoide = personaggio:WaitForChild("Humanoid")
local idleAnimation = Instance.new("Animation")
idleAnimation.AnimationId = "rbxassetid://128542024454911" -- replace w ur animation id
local traccia = umanoide:LoadAnimation(idleAnimation)
traccia.Looped = true
local animazioneAttiva = false
game:GetService("RunService").Heartbeat:Connect(function()
if not personaggio or not humanoidRootPart then return end
local velocita = humanoidRootPart.Velocity.Magnitude
if velocita < 0.1 then
if not animazioneAttiva then
traccia:Play()
animazioneAttiva = true
end
else
if animazioneAttiva then
traccia:Stop()
animazioneAttiva = false
end
end
end)
put this inside a local script inside starterplayerscript
Oh ok
also i think you need to server side it
So is there anything I would need to change or just put it in
i added a comment where you need to change the animation id
Ok thanks alot