Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. --if you bully me about my ugly bad practise coding I will cry, so don't
  2.  
  3.  
  4. local player = game.Players.LocalPlayer
  5. local mouse = player:GetMouse()
  6. local count = 0
  7. local cooldown = false
  8.  
  9.  
  10. local function move1(player, character)
  11. player.Character.Humanoid.WalkSpeed = 0
  12. player.Character.Humanoid.JumpPower = 0
  13. player.Character.Humanoid.AutoRotate = false
  14.  
  15. wait(.5)
  16.  
  17. local x = Instance.new("Part",workspace)
  18. x.Anchored = true
  19. x.CanCollide = false
  20. x.Shape = "Cylinder"
  21. x.Color = Color3.fromRGB(0,0,0)
  22. x.Material = Enum.Material.Neon
  23. x.Size = Vector3.new(.3,3,3)
  24. x.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,-3,-20) * CFrame.Angles(0,0,1.575)
  25.  
  26. local tweenservice = game:GetService("TweenService")
  27.  
  28. local info = TweenInfo.new(.5,Enum.EasingStyle.Bounce)
  29.  
  30. local goal = {}
  31.  
  32. goal.Size = Vector3.new(.3,7,7)
  33.  
  34.  
  35. local tween = tweenservice:Create(x,info,goal)
  36.  
  37. tween:Play()
  38.  
  39. x.Anchored = false
  40. local debounce = true
  41. x.Touched:Connect(function(hit)
  42. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name and debounce then
  43. debounce = false
  44. local damage = 15
  45. game.ReplicatedStorage.remotevents.damage:FireServer(hit,damage)
  46. print("damage2")
  47. wait(2)
  48. debounce = true
  49. end
  50. end)
  51.  
  52. local bp = Instance.new("BodyVelocity")
  53. bp.Parent = x
  54. bp.MaxForce = Vector3.new(500000000000,50000000000,50000000000)
  55. bp.P = 200
  56. bp.Velocity = Vector3.new(0,-0.5,0)
  57. game.Debris:AddItem(bp,2.5)
  58.  
  59.  
  60. local bladepart = Instance.new("Part")
  61. bladepart.Parent = workspace
  62. bladepart.CFrame = x.CFrame * CFrame.new(-4,0,0)
  63. bladepart.Anchored = true
  64. bladepart.CanCollide = false
  65.  
  66. local tweenservice = game:GetService("TweenService")
  67.  
  68. local info = TweenInfo.new(.3,Enum.EasingStyle.Linear)
  69.  
  70. local goal = {}
  71.  
  72. goal.CFrame = bladepart.CFrame * CFrame.new(7.5,0,0)
  73.  
  74.  
  75. local tween = tweenservice:Create(bladepart,info,goal)
  76.  
  77. tween:Play()
  78.  
  79.  
  80. bladepart.Anchored = false
  81. local debounce = true
  82. bladepart.Touched:Connect(function(hit)
  83. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name and debounce then
  84. debounce = false
  85. local damage = 15
  86. print("damage")
  87. game.ReplicatedStorage.remotevents.damage:FireServer(hit,damage)
  88. wait(1)
  89. debounce = true
  90. end
  91. end)
  92.  
  93. local bp = Instance.new("BodyVelocity")
  94. bp.Parent = bladepart
  95. bp.MaxForce = Vector3.new(500000000000,50000000000,50000000000)
  96. bp.P = 200
  97. bp.Velocity = Vector3.new(0,-0.5,0)
  98. game.Debris:AddItem(bp,2.5)
  99.  
  100.  
  101. wait(.5)
  102.  
  103. player.Character.Humanoid.WalkSpeed = 16
  104. player.Character.Humanoid.JumpPower = 50
  105. player.Character.Humanoid.AutoRotate = true
  106.  
  107. local tweenservice = game:GetService("TweenService")
  108.  
  109. local info = TweenInfo.new(.5,Enum.EasingStyle.Linear)
  110.  
  111. local goal = {}
  112.  
  113. goal.CFrame = bladepart.CFrame * CFrame.new(-7.5,0,0)
  114. goal.Transparency = 1
  115.  
  116.  
  117. local tween = tweenservice:Create(bladepart,info,goal)
  118.  
  119. tween:Play()
  120.  
  121. local info = TweenInfo.new(.5,Enum.EasingStyle.Linear)
  122.  
  123. local goal = {}
  124.  
  125. goal.Size = Vector3.new(.3,.1,.1)
  126. goal.Transparency = 1
  127.  
  128.  
  129. local tween = tweenservice:Create(x,info,goal)
  130.  
  131. tween:Play()
  132.  
  133. wait(.5)
  134.  
  135. x:Destroy()
  136. bladepart:Destroy()
  137. end
  138.  
  139.  
  140.  
  141.  
  142. mouse.Button1Down:Connect(function()
  143. if cooldown then return end
  144. cooldown = true
  145. game.ReplicatedStorage.remotevents.shunsuimove1:FireServer()
  146. local player1 = game.Players.LocalPlayer
  147. local character2 = player1.Character
  148. move1(player1,character2)
  149. wait(.75)
  150. cooldown = false
  151. end)
  152.  
  153.  
  154. game.ReplicatedStorage.remotevents.shunsuimove1.OnClientEvent:Connect(function(player, character)
  155. move1(player,character)
  156. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement