Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SynapseX Decompiler
- wait(2)
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local Camera = game.Workspace.Camera
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Workspace = game:GetService("Workspace")
- local UserInputService = game:GetService("UserInputService")
- local Player = game.Players.LocalPlayer
- local Char = Player.Character
- repeat
- wait(0.1)
- until Player.PlayerGui:FindFirstChild("CoreGUI") ~= nil
- local Core = Player.PlayerGui.CoreGUI
- local EnabledT1 = Player.PlayerGui.CoreGUI.MoveUsing
- local EnabledT2 = Player.PlayerGui.CoreGUI.MoveUsing2
- local Stun = Player.PlayerGui.CoreGUI.Stun
- local Spike = Char.Humanoid:LoadAnimation(script.Parent.StabSelf)
- Using = false
- tool = script.Parent
- tool.Equipped:connect(function(mouse)
- Using = true
- end)
- tool.Unequipped:connect(function(mouse)
- Using = false
- end)
- UserInputService.InputBegan:connect(function(input, gameProcessed)
- if not gameProcessed then
- wait()
- if Using == false then
- return
- end
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- if not Char:FindFirstChildOfClass("Tool") then
- return
- end
- if not Char:FindFirstChildOfClass("Tool") == script.Parent then
- return
- end
- if EnabledT1.Value == true or Core.MoveUsing2.Value == true then
- return
- end
- if Player.Character.Status.Hamon.Value == true then
- return
- end
- if Char.Status.StandOut.Value == false then
- return
- end
- script.Parent.CanBeDropped = false
- Core.MoveUsing2.Value = true
- Char.Humanoid.WalkSpeed = 0
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
- delay(0.5, function()
- script.Parent.Handle.Sound:Play()
- end)
- game.ReplicatedStorage.Events.Event10:InvokeServer()
- Core.MoveUsing2.Value = false
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement