Line 27:
1 | x:SetPrimaryPartCFrame(CFrame.new(math.random(- 200 , 200 ),math.random( 50 , 100 ), math.random(- 200 , 200 ))) |
What am I doing wrong?
[Edits:]
01 | while wait() do |
02 | local P = Instance.new( "Part" ) |
03 | local M = Instance.new( "SpecialMesh" ) |
04 | M.MeshId = game.ReplicatedStorage.Taco.MeshId |
05 | M.TextureId = game.ReplicatedStorage.Taco.TextureId |
06 | P.CanCollide = false |
07 | if plr:FindFirstChild( "Shape" ).Value = = "Taco" then |
08 | P.Rotation = Vector 3. new(math.random( 0 , 360 ),math.random( 0 , 360 ),math.random( 0 , 360 )) |
09 | P.Size = Vector 3. new( 10 , 10 , 10 ) |
10 | P.BrickColor = BrickColor.Random() |
11 | P.Parent = game.Workspace.CurrentCamera |
12 | P.Position = Vector 3. new(math.random(- 200 , 200 ),math.random( 50 , 100 ),math.random(- 200 , 200 )) |
13 | M.Parent = P |
14 | M.Scale = Vector 3. new( 10 , 10 , 10 ) |
15 | light = Instance.new( "PointLight" , P) |