So when I equip my tool it just randomly disappear. I don’t think this is my script bug but maybe its a studio bug…
So i use Local script → Server script to make a motor6d that links to the character (R6 rig btw)
and this is the local script:
EventsFold:WaitForChild("ToolEvents"):FireServer(char, tool) -- This is the event part that sends to the serverscript
-- Ignore this part below.
local animation = Instance.new("Animation", script)
animation.AnimationId = "rbxassetid://14970380585"
if humanoid then
humanoid:LoadAnimation(animation):Play()
end
end)
And this is the server script:
EventsFold:WaitForChild("ToolEvents").OnServerEvent:Connect(function(char, tool)
if char then
local new6d = Instance.new("Motor6D", char:WaitForChild("Torso"))
new6d.Name = "ToolWeld"
new6d.Part0 = char:WaitForChild("Torso")
new6d.Part1 = tool.PrimaryPart -- i already set the tool primary part
end
end)
so this is an image.
can anyone help? or this is like studio bug?