Custom Tool Equip working but parts are falling even tho welded

Here is my script but when the tool is equipped using a GUI, the tool parts fall but everything is welded.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local remoteEvent = ReplicatedStorage:WaitForChild("EquipTool")
local function Handle_Event(player, get_Item_Name)
    local gw = game.Workspace
    local get_humanoid = gw:FindFirstChild(player.Name)
    local actual_HM = get_humanoid.Humanoid
    local Item_Clone = ReplicatedStorage.Items_Clone_Tool:FindFirstChild(get_Item_Name)

Hello, could you please provide the welding code and put the code in the correct format using the “Formatted Text” button, thanks.

Nvm thanks for the reply anyways, I was able to fix it by making it local script and adding it on my StarterGui Inventory.

1 Like

Oh alright, glad you were able to fix it, also, you should post the updated code and mark it as a solution for any future devs looking for an answer to this problem.

2023-06-11 06_27_11-Inventory_Handler - Roblox Studio

local sc_prt = script.Parent
local player = sc_prt.Parent.Parent.Parent.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Equip_Button = sc_prt.Equip
	local leaderstats = player.leaderstats
	local accessplrgui = player.PlayerGui
	local Item_Name = sc_prt.Item_Name:FindFirstChildWhichIsA("TextLabel")
	local get_Item_Name = Item_Name.Name
	local get_Player_Character = game.Players.LocalPlayer.Character
	local Item_Stats = player.Item_Inventory:FindFirstChild(get_Item_Name)
	if Item_Stats.Value > 0 then
		if not get_Player_Character:FindFirstChild(get_Item_Name) then
			local Item_Clone = ReplicatedStorage.Items_Clone_Tool:FindFirstChild(get_Item_Name):Clone()
			Item_Clone.Parent = get_Player_Character

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.