Advertisement
otorp2

magic platform

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