Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mp = game.Players.LocalPlayer
- local mpc = mp.Character
- local mouse = mp:GetMouse()
- mpc.Humanoid.PlatformStand = true
- local ball = Instance.new("Part",workspace)
- ball.Transparency = 0.4
- ball.BrickColor = BrickColor:Black()
- ball.Shape = "Ball" --ball+ball yup i got them ballz
- ball.Size = Vector3.new(10,10,10)
- local weld = Instance.new("Weld",ball)
- weld.Part0 = mpc.Torso --mpc = mp.Character well here the weld.Part0 means that the main part is mpc.Torso
- weld.Part1 = ball --This is the part that has to be attached to Part0(Torso)
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(100000,5000,100000)
- mouse.Button1Down:connect(function()
- bv.velocity = mouse.hit.lookVector*80 --This means the velocity(direction in this case) is the where the mouse.hit(mouse.hit gives you 3D position of mouse x,y,z and it's CFrame) mouse.hit.lookVector this means
- --get the direction of the CFrame which will return a new cframe by multiplying it to 80 means the new cframe with longer distance there's a reason for this too
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement