✓ Accepted answer
local part = Instance.new("Part")
function go()
end
script.Parent.MouseButton1Click:connect(go)
The changes I made and why I made them : First; I made Instance.new("Part") able to be referred to by using the word "part". This allows you to easily set up the properties of it. Second; I made a function where you can put all of your properties (preferably beginning with part.). Example: part.Parent = game.Workspace. Last, I made the function fire when the scripts parent (in this case a TextButton) is clicked.
If my answer helped you, accept and upvote it. If not, please tell me the error message in the comments below.
1 comment
little confusing but i went around thanks .3.