Hello, I am making it so that I can place a part already existing into the server. I am not familiar with FE, and have watched countless videos on how to get this to work.
Here is the code inside of LocalScript
local Tool = script.Parent
UseValue = 20
function PlaceSpike(Mouse)
local strip = script.Parent.SpikeStrip:Clone()
strip.Parent = workspace
strip:MoveTo(Mouse.Hit.p)
UseValue = UseValue - 1
if UseValue < 1 then
Tool:Remove()
end
end
function Selector(Mouse)
Mouse.Button1Down:connect(function()PlaceSpike(Mouse)end)
end
Tool.Selected:connect(Selector)
And inside of Script is nothing, since I cannot get that part. Please help me!
