I need to make it so my character does not slip when swinging the sword.
Here, in the video, you can see that my character falls when the sword is swung.
I have tried a few solutions such as making the sword non-collide, this didn’t work.
I think the problem may be with the swords hitbox , as shown in the image below:
Here is the code inside of StarterPlayerScripts
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Character:WaitForChild("RunAnim")
local RunAnim = Humanoid:LoadAnimation(Animation)
local animator = Character:WaitForChild("Animate")
animator:Destroy()
Character.ChildAdded:Connect(function(Tool)
if Tool:IsA("Tool") then
print(Tool.Name)
end
end)
UIS.InputBegan:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 then
RunAnim:Play()
end
end)
The sword is linked below:
BROKEN-SWORD.rbxl (84.7 KB)
Any help appreciated greatly!