Team_Alex

Untitled

Apr 1st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. Colors = {"Really black", "Navy blue", "Really red", "Bright bluish green", "New Yeller", "Royal purple", "Deep orange", "Magenta", "Lime green"}
  2. Player = game:GetService("Players").LocalPlayer
  3. Char = Player.Character
  4. Torso = Char.Torso
  5. Mouse = Player:GetMouse()
  6.  
  7. pcall(function()Char.Platform:Destroy() end)
  8. Main = Instance.new("Model",Char)
  9. Main.Name = "Platform"
  10. script.Parent = Main
  11. Mode = 10
  12. Mode2 = 0
  13. With = 5 -- Must be 5 and larger. Idk why.
  14. Highth = .5
  15. OnColor = 1
  16.  
  17. MainP = Instance.new("Part",Main)
  18. MainP.FormFactor = "Custom"
  19. MainP.Size = Vector3.new(With,Highth,With)
  20. MainP.BrickColor = BrickColor.new(Colors[OnColor])
  21. MainP.Anchored = true
  22. MainP:BreakJoints()
  23. Instance.new("CylinderMesh",MainP)
  24.  
  25. game:GetService("RunService").Stepped:connect(function()
  26. if Mode == 1 then
  27. if Mode2 == 1 then
  28. Torso.CFrame = Torso.CFrame*CFrame.new(0,-.5,0)
  29. elseif Mode2 == 2 then
  30. Torso.CFrame = Torso.CFrame*CFrame.new(0,.5,0)
  31. end
  32. MainP.CFrame = Torso.CFrame * CFrame.new(0,-3+-.225,0)
  33. elseif Mode == 2 then
  34. MainP.CFrame = Torso.CFrame * CFrame.new(5,5,5)
  35. else
  36. Mode = 1
  37. MainP.CFrame = Torso.CFrame * CFrame.new(0,-3+-.225,0)
  38. end
  39. end)
  40.  
  41. LastPart = MainP
  42. Num = 4
  43. game:GetService("RunService").Stepped:connect(function()
  44. local a = OnColor+1
  45. if #Colors < a then
  46. OnColor = 1
  47. else
  48. OnColor = OnColor+1
  49. end
  50. a = MainP:Clone()
  51. a.Mesh.Scale = Vector3.new(.8,.8,.8)
  52. a.Parent = MainP.Parent
  53. a.BrickColor = BrickColor.new(Colors[OnColor])
  54. a.CanCollide = false
  55. aPOS = a.CFrame
  56. coroutine.wrap(function()
  57. for i = 0,1,1/15 do wait()
  58. a.Transparency = i
  59. end
  60. a:Destroy()
  61. end)()
  62. coroutine.wrap(function()
  63. for i = .8,0,.8/-15 do wait()
  64. a.Mesh.Scale = Vector3.new(i,i-.05,i)
  65. end
  66. end)()
  67. end)
  68. local BHold = false
  69. Mouse.KeyDown:connect(function(Key)
  70. if Key == "c" and Mode == 1 then
  71. BHold = true
  72. repeat wait() Mode2 = 1 until BHold == false
  73. Mode2 = 0
  74. elseif Key == "z" and Mode == 1 then
  75. BHold = true
  76. repeat wait() Mode2 = 2 until BHold == false
  77. Mode2 = 0
  78. elseif Key == "p" then
  79. if Mode == 1 then
  80. Mode = 2
  81. coroutine.wrap(function()
  82. while Mode == 2 do
  83. wait()
  84. if Char:GetModelCFrame().p.y < -10 then
  85. Mode = 1
  86. end
  87. end
  88. end)()
  89. else
  90. Mode = 1
  91. end
  92. end
  93. end)
  94. Mouse.KeyUp:connect(function(Key)
  95. if Key == "c" or Key == "z" then
  96. BHold = false
  97. end
  98. end)
Add Comment
Please, Sign In to add comment