Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createPart(name1,x1,y1,z1,parent1,xs,ys,zs)
- --Sets the properties of part.
- part = Instance.new("Part",parent1)
- part.Name = name
- part.FormFactor = "Custom"
- part.Size = Vector3.new(xs,ys,zs)
- part.Position = Vector3.new(x1,y1,z1)
- part.Anchored = true
- part.BottomSurface = 10
- part.TopSurface = 10
- part.RightSurface = 10
- part.LeftSurface = 10
- part.FrontSurface = 10
- part.BackSurface = 10
- end
- function adjustParts(x2,y2,z2,parent2)
- --Gets the children.
- local c = model2:GetChildren()
- for index, child in pairs(c) do
- --Adjusts by addition.
- child.Position = child.Position + Vector3.new(x2,y2,z2)
- end
- end
- _G.createPart = createPart
- _G.adjustParts = adjustParts
- _G.FunctionsStored = true
- script:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement