Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I Spawn This Part?

Asked by
tanzane 100
10 years ago
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

Log in to vote
1
Answered by
Bman8765 270 Moderation Voter
10 years ago

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
Ad
Log in to vote
0
Answered by
Moxeh 84
10 years ago
while true do
    wait()
    Insert = Instance.new("Part", workspace)
    Insert.Name = "EncryptX Helped"
    Insert.Position = CFrame.new(-6.5, 27.74, 14.99)

end

Answer this question