I'm very confused, can someone please help me figure out where to put the spawn function to spawn the spear? I'm making a game which involves crafting and really need all the help I can get.(Did I put it in the right place?)
script.Parent.Touched:connect(function(Part)
if Part.Name=="Stick" and script.Parent.Name=="PointedStone" then
workspace.Stick:remove()
workspace.PointedStone:remove()
end
end)
script.Parent:remove()
function spawn()local Spear=Instance.new("Part", game.Workspace)
--Adjust shape/color/size of product item here.1
Spear.CFrame=CFrame.new(Part.Position)--My change
end
end)

3 comments
I think I understand now :)
Lol, I just realized I destroyed it XD
Would this work? @Perci1 function spawn()local Spear=Instance.new("Part", game.Workspace) --Shape/Size/Color Spear.CFrame=CFrame.new(Part.Position) script.Parent.Touched:connect(function(Part) if Part.Name=="Stick" and script.Parent.Name=="PointedStone" then workspace.Stick:remove() workspace.PointedStone:remove() end end) end end) function spawn() script.Parent:remove