Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. --SynapseX Decompiler
  2.  
  3. wait(2)
  4. local RunService = game:GetService("RunService")
  5. local TweenService = game:GetService("TweenService")
  6. local Camera = game.Workspace.Camera
  7. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  8. local Workspace = game:GetService("Workspace")
  9. local UserInputService = game:GetService("UserInputService")
  10. local Player = game.Players.LocalPlayer
  11. local Char = Player.Character
  12. repeat
  13. wait(0.1)
  14. until Player.PlayerGui:FindFirstChild("CoreGUI") ~= nil
  15. local Core = Player.PlayerGui.CoreGUI
  16. local EnabledT1 = Player.PlayerGui.CoreGUI.MoveUsing
  17. local EnabledT2 = Player.PlayerGui.CoreGUI.MoveUsing2
  18. local Stun = Player.PlayerGui.CoreGUI.Stun
  19. local Spike = Char.Humanoid:LoadAnimation(script.Parent.StabSelf)
  20. Using = false
  21. tool = script.Parent
  22. tool.Equipped:connect(function(mouse)
  23. Using = true
  24. end)
  25. tool.Unequipped:connect(function(mouse)
  26. Using = false
  27. end)
  28. UserInputService.InputBegan:connect(function(input, gameProcessed)
  29. if not gameProcessed then
  30. wait()
  31. if Using == false then
  32. return
  33. end
  34. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  35. if not Char:FindFirstChildOfClass("Tool") then
  36. return
  37. end
  38. if not Char:FindFirstChildOfClass("Tool") == script.Parent then
  39. return
  40. end
  41. if EnabledT1.Value == true or Core.MoveUsing2.Value == true then
  42. return
  43. end
  44. if Player.Character.Status.Hamon.Value == true then
  45. return
  46. end
  47. if Char.Status.StandOut.Value == false then
  48. return
  49. end
  50. script.Parent.CanBeDropped = false
  51. Core.MoveUsing2.Value = true
  52. Char.Humanoid.WalkSpeed = 0
  53. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
  54. delay(0.5, function()
  55. script.Parent.Handle.Sound:Play()
  56. end)
  57. game.ReplicatedStorage.Events.Event10:InvokeServer()
  58. Core.MoveUsing2.Value = false
  59. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  60. end
  61. end
  62. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement