Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do I Spawn This Part?

while true do
	wait(0.3)
	Instance.new("Part", workspace)
 wait(0.1)
Part.Position = CFrame.new(-6.5, 27.74, 14.99)
end

As you can see, there is a script above. What I'm trying to do is, how exactly do I get this script to spawn a part in a certain spot constantly. Every time I write this script it has a blue line under Part and I'm unable to run it. Needz S0me halp pwese.

P.S. Also, how exactly would I edit that part so all the parts that spawn would look and do the same thing?

2 answers

✓ Accepted answer

If you want to change this part's position you should define the part as a variable when you create the instance. Also use Vector3 when changing the location of the part. This should work, if you have any issues or questions please message me them!

while true do
    wait(0.3)
    local Part = Instance.new("Part", workspace)
    Part.Position = Vector3.new(-6.5, 27.74, 14.99)
 wait(0.1)
end
while true do
	wait()
	Insert = Instance.new("Part", workspace)
	Insert.Name = "EncryptX Helped"
	Insert.Position = CFrame.new(-6.5, 27.74, 14.99)
	
end

This discussion is preserved as it was. New answers, comments, and votes are closed.