Advertisement
TheUnknownDiscord

Platform

Nov 4th, 2021 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. local a = Instance.new("Part", owner.Character)
  2. a.Size = Vector3.new(0.25, 12.5, 12.5)
  3. a.CFrame = a.CFrame * CFrame.Angles(0,0,math.rad(90))
  4. local a2 = Instance.new("Part", owner.Character)
  5. a2.Size = Vector3.new(0.3, 12.6, 12.6)
  6. local a3 = Instance.new("Part", owner.Character)
  7. a3.Size = Vector3.new(0.225, 16, 16)
  8. a3.Transparency = 1
  9. local outside = Instance.new("Part", owner.Character)
  10. outside.Size = Vector3.new(0.225, 16, 16)
  11. outside.Material = Enum.Material.Metal
  12. outside.Color = Color3.fromRGB(84, 81, 86)
  13. outside.Reflectance = .2
  14. a2.Transparency = .5
  15. a2.Color = Color3.fromRGB(91, 130, 255)
  16. a2.Material = Enum.Material.Glass
  17. a.Color = Color3.fromRGB(91, 130, 255)
  18. a.Material = Enum.Material.Neon
  19. a2.CFrame = a2.CFrame * CFrame.Angles(0,0,math.rad(90))
  20. outside.CFrame = outside.CFrame * CFrame.Angles(0,0,math.rad(90))
  21. local b = Instance.new("BodyVelocity", a)
  22. b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  23. b.Velocity = Vector3.new()
  24. local b3 = Instance.new("BodyVelocity", a2)
  25. b3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  26. b3.Velocity = Vector3.new()
  27. a:SetNetworkOwner(owner)
  28. a2:SetNetworkOwner(owner)
  29. outside:SetNetworkOwner(owner)
  30. a3:SetNetworkOwner(owner)
  31. a3.Name = "The4"
  32. a.Name = "The"
  33. a2.Name = "The2"
  34. a.CanCollide = false
  35. a2.CanCollide = false
  36. a.Shape = Enum.PartType.Cylinder
  37. a2.Shape = Enum.PartType.Cylinder
  38. a3.Shape = Enum.PartType.Cylinder
  39. outside.Shape = Enum.PartType.Cylinder
  40. outside.Name = "The3"
  41. outside.CanCollide = false
  42. NLS([[
  43. a = owner.Character:WaitForChild("The")
  44. a2 = owner.Character:WaitForChild("The2")
  45. outside = owner.Character:WaitForChild("The3")
  46. a3 = owner.Character:WaitForChild("The4")
  47. local b2 = Instance.new("BodyGyro", a)
  48. b2.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  49. local b4 = Instance.new("BodyGyro", a2)
  50. b4.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  51. b4.CFrame = b4.CFrame * CFrame.Angles(0,0,math.rad(90))
  52. local b5 = Instance.new("BodyVelocity", outside)
  53. b5.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  54. b5.Velocity = Vector3.new()
  55. local b6 = Instance.new("BodyGyro", outside)
  56. b6.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  57. b2.CFrame = b2.CFrame * CFrame.Angles(0,0,math.rad(90))
  58. b6.CFrame = b6.CFrame * CFrame.Angles(0,0,math.rad(90))
  59. local b7 = Instance.new("BodyVelocity", a3)
  60. b7.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  61. b7.Velocity = Vector3.new()
  62. local b8 = Instance.new("BodyGyro", a3)
  63. b8.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  64. b8.CFrame = b8.CFrame * CFrame.Angles(0,0,math.rad(90))
  65. tall = owner.Character.HumanoidRootPart.Position.y - 2.5
  66. height = 0
  67. mouse = owner:GetMouse()
  68. mouse.KeyDown:Connect(function(key)
  69. key = key:lower()
  70. if key == "q" then
  71. height = 1
  72. elseif key == "e" then
  73. height = -1
  74. end
  75. end)
  76. mouse.KeyUp:Connect(function(key)
  77. key = key:lower()
  78. if key == "q" then
  79. height = 0
  80. elseif key == "e" then
  81. height = 0
  82. end
  83. end)
  84. game:GetService("RunService").RenderStepped:Connect(function()
  85. if height == -1 then
  86. tall = tall - 0.25
  87. elseif height == 1 then
  88. tall = tall + 0.25
  89. end
  90. a.Position = Vector3.new(owner.Character.HumanoidRootPart.Position.x,tall,owner.Character.HumanoidRootPart.Position.z)
  91. a2.Position = Vector3.new(owner.Character.HumanoidRootPart.Position.x,tall,owner.Character.HumanoidRootPart.Position.z)
  92. outside.Position = Vector3.new(owner.Character.HumanoidRootPart.Position.x,tall,owner.Character.HumanoidRootPart.Position.z)
  93. a3.Position = Vector3.new(owner.Character.HumanoidRootPart.Position.x,tall,owner.Character.HumanoidRootPart.Position.z)
  94. end)
  95. ]],owner.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement