Advertisement
Guest User

scripting for form

a guest
Feb 20th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function createPart(transparency,color,anchored)
  2. local part = Instance.new("Part")
  3. part.Transparency = transparency
  4. part.Color = color
  5. part.Anchored = anchored
  6. part.Parent = workspace
  7.  
  8. return part
  9. end
  10.  
  11.  
  12.  
  13.  
  14. local myReturnPart = createPart(0.5,Color3.fromRGB(255,0,0), true )
  15. myReturnPart.Color = Color3.fromRGB(0,255,0)
  16.  
  17.  
  18. -- practicing returning
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement