Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make an onClick script to put on custom armor?

Asked by 8 years ago

Hi, I'm trying to make it so I can put on the backpack I made once I click it

I know it would be an onClick function but everything else I don't know. Can anyone help?

0
Use welds to weld the part(s) of armor to the character. Discern 1007 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

May I remind you this is not a request site. But anyway! Here's what it'd look like:

script.Parent.ClickDetector.MouseClick:connect(function(hit)
local Armour = game.ReplicatedStorage.Armor:Clone()
Armour.Parent = workspace
Armour.Position = hit.Character
--Armor Welding script would go here
end)
Ad

Answer this question