I updated the script, please try using the new script
it works but it doesnt stay on the character
Sorry, it was my mistake, the problem should be fixed now. Try the new script
Sorry, it was a typo. It should be fixed now
The script looks fine to me, let me test it out and I will let you know
The script works perfectly fine for me. Did you make sure to change the variable values?
local equipEvent = game.ReplicatedStorage:WaitForChild("BoxingGloves")
equipEvent.OnServerEvent:Connect(function(player,tool) -- detecting the Fired RemoteEvent
if tool:IsDescendantOf(game.Workspace) then
local rbg = tool.RightBoxingGlove
local lbg = tool.LeftBoxingGlove
local Char = player.Character or player.CharacterAdded:Wait()
local rweld = Instance.new("Weld")
rweld.Part0 = Char.RightHand
rweld.Part1 = rbg
rbg.Position = Char.RightHand.Position
rbg.Parent = Char.RightHand
local lweld = Instance.new("Weld")
lweld.Part0 = Char.LeftHand
lweld.Part1 = lbg
lbg.Position = Char.LeftHand.Position
lbg.Parent = Char.LeftHand
end
end)
Can I see the local script please?
local tool = script.Parent
local equipEvent = game.ReplicatedStorage:WaitForChild("BoxingGloves")
tool.Equipped:Connect(function()
equipEvent:FireServer(tool) -- Fires a remoteEvent when a player equips the tool and passes the tool as an argument
end)
Do you have discord, because I donât wanna flood this post with comments. We can talk to discord to avoid spam.
yes what is your discord i will add you if you want
My discord is TheBrainy06#7100