Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Player = script.Parent.Parent -- Gets LocalPlayer
  2. Character = Player.Character -- Gets Players Character
  3. Mouse = Player:GetMouse() -- Gets players Mouse
  4. function onKeyDown(key)
  5. key = key:lower()
  6. if key == "z" then
  7. x = Instance.new("Part")
  8. x.TopSurface = "Smooth"
  9. x.BottomSurface = "Smooth"
  10. x.Shape = "Ball"
  11. x.Transparency = .7
  12. x.BrickColor = BrickColor.new("Bright red")
  13. f = Instance.new("Fire")
  14. f.Parent = x
  15. f.Size = 12
  16. f.Heat = 0
  17. y = Instance.new("BodyVelocity")
  18. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  19. y.velocity = Character.Torso.CFrame.lookVector*80
  20. y.Parent = x
  21. x.Parent = Workspace
  22. x.CFrame = Character.Torso.CFrame*CFrame.new(0, 0, -12)
  23.  
  24. end
  25. end
  26. Mouse.KeyDown:connect(onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement