ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
local UserInputService = game:GetService(\"UserInputService\")\r\nlocal RunService = game:GetService(\"RunService\")\r\nlocal Camera = workspace.CurrentCamera\r\n\r\nlocal SPEED_MULTIPLIER = 30\r\nlocal JUMP_POWER = 60\r\nlocal JUMP_GAP = 0.3\r\n\r\nlocal character = game.Players.LocalPlayer.Character\r\n\r\nfor i,v in ipairs(character:GetDescendants()) do\r\n if v:IsA(\"BasePart\") then\r\n v.CanCollide = false\r\n end\r\nend\r\n\r\nlocal ball = character.HumanoidRootPart\r\nball.Shape = Enum.PartType.Ball\r\nball.Size = Vector3.new(5,5,5)\r\nlocal humanoid = character:WaitForChild(\"Humanoid\")\r\nlocal params = RaycastParams.new()\r\nparams.FilterType = Enum.RaycastFilterType.Blacklist\r\nparams.FilterDescendantsInstances = {character}\r\n\r\nlocal tc = RunService.RenderStepped:Connect(function(delta)\r\n ball.CanCollide = true\r\n humanoid.PlatformStand = true\r\nif UserInputService:GetFocusedTextBox() then return end\r\nif UserInputService:IsKeyDown(\"W\") then\r\nball.RotVelocity -= Camera.CFrame.RightVector * delta * SPEED_MULTIPLIER\r\nend\r\nif UserInputService:IsKeyDown(\"A\") then\r\nball.RotVelocity -= Camera.CFrame.LookVector * delta * SPEED_MULTIPLIER\r\nend\r\nif UserInputService:IsKeyDown(\"S\") then\r\nball.RotVelocity += Camera.CFrame.RightVector * delta * SPEED_MULTIPLIER\r\nend\r\nif UserInputService:IsKeyDown(\"D\") then\r\nball.RotVelocity += Camera.CFrame.LookVector * delta * SPEED_MULTIPLIER\r\nend\r\n--ball.RotVelocity = ball.RotVelocity - Vector3.new(0,ball.RotVelocity.Y/50,0)\r\nend)\r\n\r\nUserInputService.JumpRequest:Connect(function()\r\nlocal result = workspace:Raycast(\r\nball.Position,\r\nVector3.new(\r\n0,\r\n-((ball.Size.Y/2)+JUMP_GAP),\r\n0\r\n),\r\nparams\r\n)\r\nif result then\r\nball.Velocity = ball.Velocity + Vector3.new(0,JUMP_POWER,0)\r\nend\r\nend)\r\n\r\nCamera.CameraSubject = ball\r\nhumanoid.Died:Connect(function() tc:Disconnect() end)
Password
Anyone with the link will still need this password to view.
Self Destruct
5 minutes
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel