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!