of     1   

593675059853
#140605464Thursday, July 17, 2014 5:59 AM GMT

I need some help with a script that spawns a part at a location 10 times with a 5 second interval before each spawning. I have gotten the script to "know" what the part I am requesting to spawn is like and it's location, but I have yet to actually have the script successfully spawn it. I have studied some tools' scripts like the Time Bomb and the Rocket Launcher to see how they create the new object in the workplace, but they all use the player's location and the target of the mouse, while I need to use a static location. Basically, I need help with getting the script to make the part. Bear in mind I have 3 days of scripting experience. Here is the script I have made so far: -----beginning of script----- function spawn() local part = Instance.new ("Part") part.BackSurface = 0 part.BottomSurface = 0 part.FrontSurface = 0 part.LeftSurface = 0 part.RightSurface = 0 part.TopSurface = 0 part.BrickColor = BrickColor.new(17) part.FormFactor = 1 part.Size = Vector3.new (4, 1.2, 2) part.Position = Vector3.new (0, 8, 0) part.Name = "SpawnedPart" part.Anchored = false end for spawncounter = 1, 10 do wait (5) spawn() end -----end of script-----
wish_z
#140605694Thursday, July 17, 2014 6:02 AM GMT

you didn't set the Parent of the part?
KEVEKEV77
#140605820Thursday, July 17, 2014 6:03 AM GMT

change this local part = Instance.new ("Part") to this local part = Instance.new ("Part", game.Workspace)
Fidgeting
#140605914Thursday, July 17, 2014 6:05 AM GMT

local part = Instance.new ("Part", game.Workspace) you forgot to add game.Workspace. the part didn't have a place to spawn in.
593675059853
#140651769Thursday, July 17, 2014 7:10 PM GMT

*facepalm*

    of     1