Dark_EccentricYT

Untitled

Mar 31st, 2017
1,527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. --created by metabase
  2. local Players=game:service'Players'
  3. local Player=Players.LocalPlayer
  4. local Mouse=Player:GetMouse''
  5. local RenderStepped=game:service'RunService'.RenderStepped
  6.  
  7. local MeshId='http://www.roblox.com/asset?id=162005808'
  8. local TextureId='http://www.roblox.com/asset/?id=165751746'
  9.  
  10. local BeeSpeed=12
  11.  
  12. local QHold=false
  13. local EHold=false
  14.  
  15. Mouse.Button1Down:connect(function()
  16. if Mouse.Target then
  17. local Bee=Instance.new('Part',Player.Character)
  18. Bee.CanCollide=false
  19. Bee.Size=Vector3.new(5,5,5)
  20. Bee.CFrame=Player.Character.Torso.CFrame
  21. local BeeMesh=Instance.new('SpecialMesh',Bee)
  22. BeeMesh.MeshType='FileMesh'
  23. BeeMesh.MeshId=MeshId
  24. BeeMesh.TextureId=TextureId
  25. BeeMesh.Scale=Vector3.new(2,2,2)
  26. local BodyVel=Instance.new('BodyVelocity',Bee)
  27. BodyVel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  28. local BodyGyro=Instance.new('BodyGyro',Bee)
  29. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  30. BodyGyro.P=2e4
  31. coroutine.wrap(function()
  32. RenderStepped:connect(function()
  33. BodyGyro.cframe=CFrame.new(Bee.Position,Mouse.Hit.p)
  34. BodyVel.velocity=Bee.CFrame.lookVector*BeeSpeed
  35. end)
  36. end)()
  37. Bee.Touched:connect(function(p)
  38. if p.Parent~=Player.Character and p.Parent:FindFirstChild'Humanoid'then
  39. p.Parent:BreakJoints()
  40. Bee:Destroy''
  41. end
  42. end)
  43. end
  44. end)
  45.  
  46.  
  47. Mouse.KeyDown:connect(function(k)
  48. local Key=k:lower''
  49. if Key=='q'then
  50. QHold=true
  51. elseif Key=='e'then
  52. EHold=true
  53. end
  54. end)
  55.  
  56. Mouse.KeyUp:connect(function(k)
  57. local Key=k:lower''
  58. if Key=='q'then
  59. QHold=false
  60. elseif Key=='e'then
  61. EHold=false
  62. end
  63. end)
  64.  
  65. coroutine.wrap(function()
  66. RenderStepped:connect(function()
  67. if QHold then
  68. if BeeSpeed>0 then
  69. BeeSpeed=BeeSpeed-1
  70. end
  71. elseif EHold then
  72. BeeSpeed=BeeSpeed+1
  73. end
  74. end)
  75. end)()
Add Comment
Please, Sign In to add comment