Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is my tool not cloning into players backpack?

Ok so I have a textbutton in a gui that when clicked, its supposed to check if a boolvalue in the player is true, and if so it will clone a specified tool from replicated storage, but it doesnt work. Any ideas why? Script:

script.Parent.MouseButton1Down:Connect(function()
	local player = game.Players.LocalPlayer
	local Sharingan = game.ReplicatedStorage.KG:FindFirstChild("Itachi Mangekyou"):Clone()
	local ItaShar = player.KGvalues:FindFirstChild("Sharingan")
	ItaShar:GetPropertyChangedSignal("Value"):Connect(function()
		if ItaShar.Value == true then
			Sharingan.Parent = player.Backpack
		end
	end)
end)

Its in a localscript btw

1 answer

you can't clone item with local script. You need RemoteEvent

1 comment

0

Oh ok, ill try it

This discussion is preserved as it was. New answers, comments, and votes are closed.