I’m trying to make boxing gloves tool and weld left glove to left hand and right glove to right hand but everytime i’m trying to do this gloves aren’t welded to the hands.
ServerScript:
local equipEvent = game.ReplicatedStorage.Remote:WaitForChild("BoxingGloves")
equipEvent.OnServerEvent:Connect(function(player,tool)
if tool:IsDescendantOf(game.Workspace) then
local rbg = tool.RBG
local lbg = tool.LBG
local Char = player.Character or player.CharacterAdded:Wait()
local rweld = Instance.new("WeldConstraint")
rweld.Part0 = Char.RightHand
rweld.Part1 = rbg
rbg.Position = Char.RightHand.Position
local lweld = Instance.new("WeldConstraint")
lweld.Part0 = Char.LeftHand
lweld.Part1 = lbg
lbg.Position = Char.LeftHand.Position
end
end)
LocalScript:
local tool = script.Parent
local equipEvent = game.ReplicatedStorage.Remote:WaitForChild("BoxingGloves")
tool.Equipped:Connect(function()
equipEvent:FireServer(tool)
end)
There aren’t any errors in the output and this is the result: