Advertisement
ert178

Script 1

Jun 25th, 2023
1,118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. --- Equip/UnEquip
  2. local Tool = script.Parent
  3.  
  4. Tool.Equipped:Connect(function()
  5.     Tool.Equip.Value = true
  6. end)
  7.  
  8. Tool.Unequipped:Connect(function()
  9.     Tool.Equip.Value = false
  10. end)
  11.  
  12. --- Skill
  13. local UIS = game:GetService("UserInputService")
  14. local plr = game.Players.LocalPlayer
  15. local Debounce = true
  16. Player = game.Players.LocalPlayer
  17.  
  18. UIS.InputBegan:Connect(function(Input)
  19.     if Input.KeyCode == Enum.KeyCode.Z and Debounce == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
  20.         Debounce = false
  21.         Tool.Active.Value = "BariWall"
  22.         wait(0.1)
  23.         local Track1 = Player.Character.Humanoid:LoadAnimation(script.Anim01)
  24.         Track1:Play()
  25.         wait(0.1)
  26.         script.Fire:FireServer()
  27.     local hum =  Player.Character.Humanoid
  28.     for i = 1,10 do
  29.         wait()
  30.         hum.CameraOffset = Vector3.new(
  31.             math.random(-1,1),
  32.             math.random(-1,1),
  33.             math.random(-1,1)
  34.         )
  35.     end
  36.     hum.CameraOffset = Vector3.new(0,0,0)
  37.         wait(0.15)
  38.         Tool.Active.Value = "None"
  39.         wait(2)
  40.         Debounce = true
  41.     end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement