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

How can I make it happens when the player clicks instead of equipping the tool?

local Tool = script.Parent;

local shirt = game.ReplicatedStorage.Clothes.CurseMarkShirt:Clone()

Tool.Equipped:connect(function()

local player = script.Parent.Parent

player.SasukeClassicShirt:remove()

shirt.Parent = player

Tool.CurseMark.Parent = player.Head

end)

script.Parent.Unequipped:connect(function()

script.Parent:remove()

end)

2 comments

0

hmmm, clear things up please? this is not even a question

0

there is a different event that happens whenever you click on it

1 answer

✓ Accepted answer
local Tool = script.Parent
local shirt = game.ReplicatedStorage.Clothes.CurseMarkShirt:Clone()
Tool.Activated:connect(function()
	local player = script.Parent.Parent
	player.SasukeClassicShirt:remove()
	shirt.Parent = player
	Tool.CurseMark.Parent = player.Head
end)
script.Parent.Activated:connect(function()
	--So you can remove it when you click again. 
	script.Parent:remove()
end)		

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