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

Why Cant My Parts Ever Move?

Asked by 4 years ago

So Im Trying To Make A Maze Generator And At First I've Been Trying To Generate A Grid But When I Try And Duplicate the X Axis And Move It It Doesnt Move And I Did As A Test To Teleport The Duplicated Parts To 0,0,0 And Thats Not Working Either So What Is Going On Heres The Script btw

01BIG = {X = 100, Y = 100, Z = 5}
02Chunks = 20
03Ratio = BIG.X*BIG.Y
04Size = 1
05T = 0
06function X() -- Generating The X Value
07    for i = 1,(Chunks * 10) do
08        local ChunkSplit = T*(Chunks)
09        print(ChunkSplit)
10        local Part = Instance.new("Part")
11        Part.Position = Vector3.new(0 - ChunkSplit,BIG.Z,0)
12        Part.Size = Vector3.new(Chunks,Size,Size)
13        Part.Anchored = true
14        Part.Name = T
15        Part.Parent = game.Workspace
View all 47 lines...

so uh I don't know what's wrong can anybody tell me what's happening or give me the fixed code please?

0
bruh excuse me you cant move anchored parts :v you anchored "T" at line 13 making it immovable. NGC4637 602 — 4y
0
perhaps you can make it massless to make sure it doesn't fall to the floor? NGC4637 602 — 4y

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

At line 36, you did not set CloneC's parent. The parent was turned to nil, therefore there is no reason to error when you put a part parent to nil. Consider set CloneC parent to workspace

Ad

Answer this question