How Could I Potentially Fix a sword not dissapearing on script

my issue here is that I am trying to make a sword that dissapears once the tool version of it is equipped and when it is unequipped, The Sword on the back reappears. but my issue here is that even though my script isn’t givng any errors. it isn’t working either. The script it’s self appears to not work for some reason. So I need help figuring out how to make the script work so the sword will dissapear off the back. here is my script. "

local gui = game.StarterGui.LightGui
local realsword = script.Parent
local SWORD = script.Parent.Parent.Sword

realsword.Equipped:Connect(function()
	SWORD.Transparency = 1
end)


realsword.Unequipped:Connect(function()
	SWORD.Transparency = 0
end)
1 Like

You could try parenting it to something else? I guess

1 Like

If you put the Gear into the StarterPack and the FakeSword inside the RealSword then the Script should look something like this:

local RealSword = script.Parent

local FakeSword = RealSword.FakeSword

local Player = RealSword.Parent.Parent

Player.CharacterAdded:Connect(function(Character)

FakeSword.Parent = Character

end)

RealSword.Equipped:Connect(function()

FakeSword.Transparency = 1

end)

RealSword.Unequipped:Connect(function()

FakeSword.Transparency = 0

end)
1 Like

Can you show us its places in the Explorers tab?

1 Like

Sure let me show

So where is the script you’re having problems with?

it’s inside the tool as a normal script (atleast what it was last before i deleted) Am I suppose to put it somewhere else? because i want it to dissapear but only for the local player but i want everyone to be able to see it server sided without the sword dissapearing from other players back which could possibly happen