script.Parent.MouseButton1Click:connect(function()
local pup = game.ReplicatedStorage.Jump:Clone()
local cup = game.ReplicatedStorage.Jump:Clone()
--CONDITIONS
print("k")
if script.Parent.Equip.Text == "Equip!" and script.Parent.Parent.Value.Value == "0" then
print("YESSSSSS")
--CODE
script.Parent.Equip.Text = "Unequip!"
script.Parent.Parent.Value.Value = "1"
pup.Parent = game.Players.LocalPlayer.Backpack
cup.Parent = game.StarterPlayer.StarterCharacterScripts
script.Parent.Parent.Parent.Parent.Abdisp.Image = "rbxgameasset://Images/jkj"
--UNEQUIP
elseif script.Parent.Equip.Text == "Unequip!" and script.Parent.Parent.Value.Value == "1" then
script.Parent.Parent.Value.Value = "0"
script.Parent.Equip.Text = "Equip!"
script.Parent.Parent.Parent.Parent.Abdisp.Image = ""
pup:Destroy()
cup:Destroy()
elseif script.Parent.Equip.Text == "Equip!" and script.Parent.Parent.Value.Value == "1" then
script.Parent.Equip.Text = "An abilility is already equiped!"
wait(2)
script.Parent.Equip.Text = "Equip!"
end
end)
the script places scripts inside players just fine, but wont delete them. What is wrong here?

1 comment
I actually figured it out myself. The script i wanted to destroy was actually being destroyed, but the script wrote to certain properties. I forgot whatever a script does will no be reversed when it's destoryed XD. I'm so stupid. Thanks for your response though