Im making a basketball game and my animations look great. The ball is connected to the humanoid root part via a motor6d with the part0 being the root part, and part1 being the ball. The animations look correct on the client with the basketball going up and down as it’s supposed to, but on the server it stays in the humanoid root part as if it’s not even being animated. The odd thing is that the animations are played on the server. Help would be appreciated, thanks.
You’ll need to perform the animation in a server script for it to replicate locally to all players in the current server instance.
thats what im doing already but it still happens.
Oh, I see the last line of the paragraph “The odd thing is that the animations are played on the server. Help would be appreciated, thanks.”. Ignore my previous post.
local function Dribble(hand,bool)
local dribbles = {tracks.DL,tracks.DR}
if bool == true then
dribbles[hand]:Play(0.2)
dribbles[hand]:AdjustSpeed(1)
else
dribbles[hand]:Stop(0.2)
end
end
char.ChildAdded:Connect(function(addition)
if addition.Name == “Basketball” then
Others.BallDebounce.Value = true
addition.CanCollide = false
local Connect = Instance.new(“Motor6D”)
Connect.Name = “Connect”
Connect.Part0 = hrp
Connect.Part1 = addition
Connect.Parent = addition
local DefaultC1 = Instance.new(“CFrameValue”)
DefaultC1.Name = “DefaultC1”
DefaultC1.Parent = Connect
addition:SetNetworkOwner(plr)
currentHand = 1
Dribble(currentHand,true)
end
end)
Forgot to update but somehow fixed it by making a new place and moving everything to that place. I have no idea why it worked but it did.