I am trying to make a spawn part script that spawns a part right in front of the player and to do so I need to make a script like
if script.Parent.MouseButton1Click:Connect(function()
Instance.new("Part", game.Workspace)
Part.Position = Vector3.New( )
The script above may have been scuffed because I haven't really experimented with Instance.new but I hope that helps you guys further understand what I am trying to do here.
Also, if you don't know how to do this that's perfectly fine. Thanks!

3 comments
the second argument of Instance.new() is deprecated. Instead, set the parent of the new object after its other properties have been set.
Also have to ask, do you want everyone to see the part or just the player?
you have to do