Ok so I have a localscript in a textbutton that checks if a boolvalue thats in the player is true or not, and then if its true it clones a specified tool into the players backpack but it doesn't clone. Heres the script:
script.Parent.MouseButton1Down:Connect(function()
local player = game.Players.LocalPlayer
local Sharingan = game.ReplicatedStorage.KG:FindFirstChild("Itachi Mangekyou"):Clone()
local SharValue = player.KGvalues:FindFirstChild("Sharingan")
SharValue.Changed:Connect(function()
if SharValue.Value == true then
Sharingan.Parent = player.Backpack
end
end)
end)

2 comments
Ok thanks
It didn't work :(