local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Animation = Character:WaitForChild("Dab")
local Humanoid = Character.Humanoid
local UserInputService = game:GetService("UserInputService")
local Debounce = true

local AnimTrack = Humanoid:LoadAnimation(Animation)




 UserInputService.InputBegan:Connect(function(Input, IsTyping)
    if not IsTyping and not AnimTrack.IsPlaying and Input.KeyCode == Enum.KeyCode.E then
      AnimTrack:Play()
    end
end)

Infinite yield possible on 'Workspace.PastorCL3Z:WaitForChild("Dab")'

3 comments

0

Do you have another script putting that in your character?

0

If there is an infinite yield, either you never add the anim to the character or you add it after this script starts running, it the second case, this is normal and ok as the script will yield until "dab" is found

0

try increasing yield time like this > Animation = Character:WaitForChild("Dab",10)