#Trying to add tools on your back

2 messages · Page 1 of 1 (latest)

rocky comet
#

local TOOL = script.Parent
local replcitedstorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")

TOOL.Equipped:Connect(function()
local player = players.LocalPlayer
local character = player.Character

if character:FindFirstChild("backitem") then
    character.backitem:Destroy()
end

end)

TOOL.Unequipped:Connect(function()

local UnEquipTool = TOOL.Handle:Clone()
UnEquipTool.Parent = replcitedstorage
local player = players.LocalPlayer
local character = player.Character
local Torso = character.Torso
local accesory = Instance.new("Accessory")
accesory.Parent = character
accesory.Name = "backitem"
UnEquipTool.CanCollide = false
UnEquipTool.CanTouch = false
UnEquipTool.CanQuery = false



UnEquipTool.Parent = character:WaitForChild("backitem")

end)

#

So the unequiptool already has the attachment inside and I want it to become a accessory so it will instance put it in the right place but the problem is that it does not work, in studio I remove the accessory and put it back it puts it in the right place whats the problem