TheUnknownDiscord

ball

Aug 22nd, 2021 (edited)
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. local marble = Instance.new("Part", owner.Character)
  2. marble.Position = Vector3.new(0, 10, 0)
  3. owner.Character.Humanoid.RequiresNeck = false
  4. marble.Shape = Enum.PartType.Ball
  5. marble.Size = Vector3.new(8,8,8)
  6. local decal = Instance.new("Decal", marble)
  7. decal.Face = Enum.NormalId.Top
  8. local happyFace = "http://www.roblox.com/asset/?id=4435280948"
  9. decal.Texture = happyFace
  10. marble.Material = "Slate"
  11. marble.BrickColor = BrickColor.new("Bright yellow")
  12. marble.BottomSurface = Enum.SurfaceType.Smooth
  13. marble.TopSurface = Enum.SurfaceType.Smooth
  14. marble.Name = "Ball"
  15. marble:SetNetworkOwner(owner)
  16. local density = 1
  17. local friction = 1
  18. local elasticity = 0
  19. local frictionWeight = 100000000000
  20. local elasticityWeight = 0
  21. local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionWeight, elasticityWeight)
  22. marble.CustomPhysicalProperties = physProperties
  23. NLS([[
  24. local char = owner.Character
  25. local HRP = owner.Character.Head
  26. local marble = owner.Character:WaitForChild("Ball")
  27. workspace.CurrentCamera.CameraSubject = marble
  28. local Velocity = Instance.new("BodyAngularVelocity")
  29. Velocity.Parent = marble
  30. local Hum = char:WaitForChild("Humanoid")
  31. Hum.PlatformStand = true
  32. local velocitylol = Instance.new("BodyVelocity", marble)
  33. velocitylol.MaxForce = Vector3.new(0,0,0)
  34. local bg = Instance.new("BodyGyro",marble)
  35. bg.P = 10000000
  36. bg.MaxTorque = Vector3.new(0,0,0)
  37. local Mouse = owner:GetMouse()
  38. function KeyDown(key)
  39. key = key:lower()
  40. if key:byte() == 32 then
  41. velocitylol.MaxForce = Vector3.new(0,math.huge,0)
  42. velocitylol.Velocity = Vector3.new(0,50,0)
  43. wait(0.25)
  44. velocitylol.Velocity = Vector3.new(0,0,0)
  45. velocitylol.MaxForce = Vector3.new(0,0,0)
  46. end
  47. end
  48. Mouse.KeyDown:Connect(KeyDown)
  49. local speed = 24
  50. function sprinton(key)
  51. key = key:lower()
  52. if key:byte() == 48 then
  53. speed = 50
  54. end
  55. end
  56. function sprintoff(key)
  57. key = key:lower()
  58. if key:byte() == 48 then
  59. speed = 24
  60. end
  61. end
  62. Mouse.KeyUp:connect(sprintoff)
  63. Mouse.KeyDown:connect(sprinton)
  64. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  65. local grow = ReplicatedStorage:WaitForChild("growinglol")
  66. function gro(key)
  67. key = key:lower()
  68. if key == "q" then
  69. grow:FireServer("Grolol")
  70. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + 25
  71. elseif key == "e" then
  72. grow:FireServer("shrink")
  73. workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 25
  74. end
  75. end
  76. Mouse.KeyDown:connect(gro)
  77. while true do
  78. task.wait()
  79. marble.BodyAngularVelocity.AngularVelocity = Vector3.new(char.Humanoid.MoveDirection.z * 16,0,char.Humanoid.MoveDirection.x * -16)
  80. marble.BodyAngularVelocity.MaxTorque = Vector3.new(1000000,1000000,1000000)
  81. bg.MaxTorque = Vector3.new(0,0,0)
  82. velocitylol.MaxForce = Vector3.new(0,0,0)
  83. if char.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  84. marble.BodyAngularVelocity.MaxTorque = Vector3.new(0,0,0)
  85. bg.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  86. bg.CFrame = marble.CFrame
  87. velocitylol.MaxForce = Vector3.new(math.huge,0,math.huge)
  88. velocitylol.Velocity = Vector3.new()
  89. end
  90. end
  91. ]],marble)
  92. owner.Character.HumanoidRootPart.Position = Vector3.new(10000,10000,10000)
  93. wait(0.1)
  94. owner.Character.HumanoidRootPart.Anchored = true
  95. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  96. local grow = Instance.new("RemoteEvent", ReplicatedStorage)
  97. grow.Name = "growinglol"
  98.  
  99. local function sizer(player, action)
  100. if action == "shrink" then
  101. marble.Size = marble.Size * 0.75
  102. elseif action == "Grolol" then
  103. marble.Size = marble.Size * 1.25
  104. end
  105. end
  106.  
  107. grow.OnServerEvent:Connect(sizer)
Add Comment
Please, Sign In to add comment