Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Equipping tool causes my character to rotate and move?

Asked by 6 years ago
Edited 6 years ago

Before Responding Please Read Below Writing

Part Is Already Un-Anchored Changing Physical Density Has Not Fixed The Problem Interchanging The Welds Part0 and Part1 Changed Nothing Question has been asked many times but none of the answers so far have worked

Tool Hierarchy https://gyazo.com/1d013fb71494a3a44a8acbee751f96b5

GIF Of Problem https://gyazo.com/db1296909ec848ef5530dce9f9b47753

Equipping the tool for the first time usually doesn't cause any problems, but any subsequent equips does.

local play = game.Players.LocalPlayer
char = play.Character
hum = char:WaitForChild("Humanoid")
rhand = char:WaitForChild("RightHand")
tool = script.Parent
sword = tool.LawSword

tool.Equipped:connect(function()
    workspace.LawSwordSheathed.Transparency = 1
    workspace.Sheath.Transparency = 0
    sword.CFrame = rhand.CFrame * CFrame.new(0,1.75,-4)
    sword.CFrame = sword.CFrame * CFrame.Angles(3.7,0,1.45)
    local weld = Instance.new("Weld")
    weld.Parent = sword
    weld.Part0 = sword
    weld.C0 = sword.CFrame:inverse()
    weld.Part1 = rhand
    weld.C1 = rhand.CFrame:inverse()
    sword.Anchored = false
end)

tool.Unequipped:connect(function()
    workspace.LawSwordSheathed.Transparency = 0
    workspace.Sheath.Transparency = 1
end)
0
probably something with the union hellmatic 1523 — 6y
0
Union of what? nicktooner 119 — 6y

Answer this question