Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Equip/UnEquip
- local Tool = script.Parent
- Tool.Equipped:Connect(function()
- Tool.Equip.Value = true
- end)
- Tool.Unequipped:Connect(function()
- Tool.Equip.Value = false
- end)
- --- Skill
- local UIS = game:GetService("UserInputService")
- local plr = game.Players.LocalPlayer
- local Debounce = true
- Player = game.Players.LocalPlayer
- UIS.InputBegan:Connect(function(Input)
- if Input.KeyCode == Enum.KeyCode.Z and Debounce == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
- Debounce = false
- Tool.Active.Value = "BariWall"
- wait(0.1)
- local Track1 = Player.Character.Humanoid:LoadAnimation(script.Anim01)
- Track1:Play()
- wait(0.1)
- script.Fire:FireServer()
- local hum = Player.Character.Humanoid
- for i = 1,10 do
- wait()
- hum.CameraOffset = Vector3.new(
- math.random(-1,1),
- math.random(-1,1),
- math.random(-1,1)
- )
- end
- hum.CameraOffset = Vector3.new(0,0,0)
- wait(0.15)
- Tool.Active.Value = "None"
- wait(2)
- Debounce = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement