Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- Char = Player.Character
- Torso = Char.Torso
- Mouse = Player:GetMouse()
- function onKeyDown(key)
- key = key:lower()
- if key == "v" then
- Ball = Instance.new("Part")
- Ball.Parent = Workspace
- Ball.Shape = "Ball"
- Ball.Size = Vector3.new(5,5,5)
- Ball.BrickColor = BrickColor.new("Really red")
- Ball.Transparency = 0.4
- Ball.TopSurface = 0
- Ball.BottomSurface = 0
- Ball.CFrame = Torso.CFrame * CFrame.new(0,0.5,-5)
- Bv = Instance.new("BodyVelocity")
- Bv.Parent = Ball
- Bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- Bv.velocity = Torso.CFrame.lookVector * 3500
- game.Debris:AddItem(Ball,1.5)
- end
- end
- Mouse.KeyDown:connect (onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement