Dribble glitch anim, made youtube video abt it heres the link
Glitch smh
- YouTube
If you dont know what the glitch is by look at the video, itâs the ball going too high
Can you show your code, please?
local Character = script.Parent
local Hit = nil
Character:WaitForChild(âHumanoidâ).Touched:Connect(function(Hit)
if Hit.Name == âBasketballâ then
if Character:FindFirstChild(âBallâ)then return end
if Hit:FindFirstChild(âBallâ)then return end
local Weld = Instance.new("Motor6D",Character)
Weld.Part0 = Character.HumanoidRootPart
Weld.Part1 = Hit
Weld.Name = "Ball_Weld"
local CharacterBall = Instance.new("BoolValue",Character)
local RegularBall = Instance.new("BoolValue",Hit)
CharacterBall.Name = "Ball"
RegularBall.Name = "Ball"
local PickUp = Character.Humanoid:LoadAnimation(script.PickUp)
PickUp:Play()
PickUp.Stopped:Wait()
local DribleRight = Character.Humanoid:LoadAnimation(script.DribbleRight)
DribleRight:Play()
local DribleLeft = Character.Humanoid:LoadAnimation(script.DribbleLeft)
script.Values.Hand.Changed:Connect(function()
if Character:FindFirstChild("Ball") then
print(script.Values.Hand.Value)
if script.Values.Hand.Value == "Right" then
DribleRight:Play()
DribleLeft:Stop()
else
DribleRight:Stop()
DribleLeft:Play()
end
end
end)
script.Main.OnServerEvent:Connect(function(Action,Value)
if Character:FindFirstChild("Ball") then
if Action == "SwitchHands" then
if script.Values.Hand.Value == "Right" then
script.Values.Hand.Value = "Left"
else
script.Values.Hand.Value = "Right"
end
end
end
end)
end
end)