local Ball = Instance.new("Part"), game.Workspace Ball.Shape = Ball Ball.Position = game.Workspace.Part.Position
local Ball = Instance.new("Part", game.Workspace) Ball.Shape = "Ball" Ball.Position = game.Workspace.Part.Position
look in roblox wiki for the arguments/parameters for each function
Instance.new(Object in string "", location of newfound object)
make sure to use string for Shape or Enum
Check if you have Filtering Enabled, If you dont or if it doesn't work when you disable the Filtering Enabled try to use this script:
local Ball = Instance.new("Part") Ball.Shape = Ball Ball.Parent = game.Workspace
You dont need the position.
Hello there. I hope this explanation helps:
local ball = Instance.new("Part") -- here we create the part ball.Shape = "Ball" -- shape has to be a string ball.Parent = game.Workspace -- here we set the parent to workspace so that you will see it spawn ball.Name = "SuperBall" -- this is optional though it helps if you have other parts in the workspace ball.Position = game.Workspace:WaitForChild("SuperBall"):FindFirstChild("Position") -- here we want to make sure that the ball is actually there with the WaitForChild
Hope this helps. Have a great day scripting!