KrYn0MoRe

really cool stairs

Nov 29th, 2020 (edited)
560
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local f = Instance.new("Folder",script)
  2.  
  3. local y,z = 1,1
  4. local extra = 10
  5. local max = 300
  6.  
  7. for i = 1,max do
  8.     local n = i/25
  9.     local center = CFrame.new(0,0.5,20)
  10.     local p = Instance.new("Part")
  11.     p.Color = Color3.new(math.cos(n),math.sin(n),math.cos(n))
  12.     p.CFrame = center*CFrame.new(0,(i*y)-y,i*z)
  13.     p.Size = Vector3.new(20, y, z)
  14.     p.Anchored = true
  15.     p.CanCollide = true
  16.     p.Locked = true
  17.     p.Parent = f
  18.     if i == max then
  19.         p.Size = Vector3.new(20, y, z + extra)
  20.         p.CFrame = center*CFrame.new(0,(i*y)-y,i*z)*CFrame.new(0,0,extra/2)
  21.     end
  22. end
RAW Paste Data