-
What do you want to achieve? Keep it simple and clear!
I want knockback to knock a character back on the x and z axis, not the y. -
What is the issue? Include screenshots / videos if possible!
For whatever reason, after taking knockback the character will begin floating and falling over. This does not replicate across clients.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried these solutions:
char.Humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.PlatformStanding then
char.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false)
end
end)
Setting network owner to attacker
if plr ~= nil then
for i,v in pairs(humanoid.Parent:GetDescendants()) do
if v:IsA("BasePart") then
v:SetNetworkOwner(plr)
end
end
end
Neither of which worked