Hi. I have this problem where for a split nanosecond the welding apparently doesnt apply the C1 and C0 i suppose and i dont want that to happen. also how could i remove ONLY for this tool the regular roblox tool holding animation?? (ToolNone)
thanks.
Is there a script applying this?
Yes, sorry.
My server script for the weld:
local tool = script.Parent
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local weldTemplate = ReplicatedStorage:WaitForChild(“Welds”):WaitForChild(“Coelacanth”):WaitForChild(“Handle”)
tool.Equipped:Connect(function()
local character = tool.Parent
local humanoid = character:FindFirstChildOfClass(“Humanoid”)
local rightArm = character:FindFirstChild(“Right Arm”)
local handle = tool:FindFirstChild(“Handle”)
if humanoid and rightArm and handle and weldTemplate then
-- Remove auto-generated RightGrip
local rightGrip = rightArm:FindFirstChild("RightGrip")
if rightGrip then
rightGrip:Destroy()
end
-- Remove existing Motor6D named "Handle"
local existing = rightArm:FindFirstChild("Handle")
if existing then
existing:Destroy()
end
local motor = weldTemplate:Clone()
motor.Name = "Handle"
motor.Part0 = rightArm
motor.Part1 = handle
motor.C0 = CFrame.new(0.022, -3.406, -0.35)
* CFrame.Angles(math.rad(89.304), math.rad(90), math.rad(-90))
motor.C1 = CFrame.new() -- Default zero
motor.Parent = rightArm -- Parent LAST
end
end)
local script for the idle anim
local tool = script.Parent
local anim = Instance.new(“Animation”)
local anim1 = Instance.new(“Animation”)
anim.Name = “IdleAnim”
anim.AnimationId = “rbxassetid://73781990790571” – Idle Animaton ID
anim1.Name = “EquipAnim”
anim1.AnimationId = “rbxassetid://73781990790571”-- Equip Tool Animaton ID
local track
local track1
– When Tool Equipped
tool.Equipped:Connect(function()
track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
track1 = script.Parent.Parent.Humanoid:LoadAnimation(anim1)
track.Priority = Enum.AnimationPriority.Movement
track1.Priority = Enum.AnimationPriority.Movement
track.Looped = true
track:Play()
track1:Play()
end)
– When Tool UnEqiopped
tool.Unequipped:Connect(function()
if track and track1 then
track:Stop()
track1:Stop()
end
end)
As its on the server it will have a delay, make the weld on the client first so its instant, then the server will create it and over ride the client one.
(I think this is the issue otherwise there is some sort of delay somewhere else)
Why are you even creating weld each time anyway?Also as person above me mentioned it will create delay and IS JUST DUMB.Its not a “breaking the matrix” logic its “lag the game” logic.
ok… well, could u help me fix it instead of just criticizing me? i dont have as much experience as you do
You can just weld everything to handle upon tool creation and leave it as it is.
Animation can be played by a client also and if client has network ownership of character other people should see it aswell