Advertisement
Guest User

BUSO Haki Script / ROBLOX

a guest
Feb 5th, 2019
12,317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.41 KB | None | 0 0
  1. (LOCAL SCRIPT)
  2.  
  3. repstorage = game:GetService("ReplicatedStorage")
  4. RemoteEvent = repstorage:WaitForChild("HakiOn")
  5. RemoteEvent2 = repstorage:WaitForChild("HakiOff")
  6. Player = game.Players.LocalPlayer
  7. -----
  8. game.Workspace:WaitForChild(Player.Name)
  9. Debounce = 1
  10.  
  11. game:GetService("UserInputService").InputBegan:Connect(function(input)
  12.     if input.KeyCode == Enum.KeyCode.H and Debounce == 1 then                   -- if Player press H and debounce = 1
  13.         Debounce = 3 -- then debounce is 3 (Cannot manipulate with this debounce)
  14.         RemoteEvent:FireServer() -- fire server
  15.         wait(3) -- Wait 3 seconds till Debounce is 2
  16.         Debounce = 2
  17.        
  18.     end
  19. end)
  20.  
  21.  
  22. game:GetService("UserInputService").InputBegan:Connect(function(input)   -- if Player press H and debounce = 2
  23.     if input.KeyCode == Enum.KeyCode.H and Debounce == 2 then
  24.         Debounce = 3 -- again cannot manipulate
  25.         RemoteEvent2:FireServer()
  26.         wait(6) -- wait 6 seconds till debounce is 1
  27.         Debounce = 1
  28.     end
  29. end)
  30.  
  31.  
  32.  
  33. (SERVER SCRIPT)
  34.  
  35.  
  36. repstorage = game:GetService("ReplicatedStorage")
  37. RemoteEvent = repstorage:WaitForChild("HakiOn")
  38. RemoteEvent2 = repstorage:WaitForChild("HakiOff")
  39.  
  40. RemoteEvent.OnServerEvent:Connect(function(Player)
  41.     --RightARM
  42.     Model = Instance.new("Model", Player.Character)
  43.    
  44.     RUA = Instance.new("Part", Model) -- Create a part that will represent your Arm so we can change color of it
  45.     RUA.Anchored = false
  46.     RUA.CanCollide = true
  47.     RUA.BrickColor = BrickColor.new("White")
  48.     RUA.Material = "Neon"
  49.     RUA.Size = Player.Character:FindFirstChild("RightUpperArm").Size -Vector3.new(0,0.9,0)
  50.     RUA.Size = RUA.Size +Vector3.new(0.1,0,0.1)
  51.     --Welding
  52.    
  53.     local weld = Instance.new("Weld")
  54.     weld.Name = "ArmWeld"
  55.     weld.Part0 = Player.Character.RightUpperArm -- weld RUA to Arm
  56.     weld.Part1 = RUA
  57.     weld.C0 = CFrame.new(0,0,0)         -- Placement
  58.    
  59.     weld.Parent = RUA
  60.    
  61.     --
  62.    
  63.     RLA = Instance.new("Part", Model)
  64.     RLA.Anchored = false
  65.     RLA.CanCollide = true
  66.     RLA.BrickColor = BrickColor.new("White")
  67.     RLA.Material = "Neon"
  68.     RLA.Size = Player.Character:FindFirstChild("RightUpperArm").Size -Vector3.new(0,0.9,0)
  69.     RLA.Size = RLA.Size +Vector3.new(0.1,0,0.1)
  70.    
  71.     --Welding
  72.    
  73.     local weld = Instance.new("Weld")
  74.     weld.Name = "ArmWeld"
  75.     weld.Part0 = Player.Character.RightLowerArm
  76.     weld.Part1 = RLA
  77.     weld.C0 = CFrame.new(0,-0.2,0)
  78.    
  79.     weld.Parent = RLA
  80.    
  81.     --LeftArm
  82.    
  83.     LUA = Instance.new("Part", Model)
  84.     LUA.Anchored = false
  85.     LUA.CanCollide = true
  86.     LUA.BrickColor = BrickColor.new("White")
  87.     LUA.Material = "Neon"
  88.     LUA.Size = Player.Character:FindFirstChild("LeftUpperArm").Size -Vector3.new(0,0.9,0)
  89.     LUA.Size = LUA.Size +Vector3.new(0.1,0,0.1)
  90.     --Welding
  91.    
  92.     local weld = Instance.new("Weld")
  93.     weld.Name = "ArmWeld"
  94.     weld.Part0 = Player.Character.LeftUpperArm -- weld LUA to Arm
  95.     weld.Part1 = LUA
  96.     weld.C0 = CFrame.new(0,0,0)         -- Placement
  97.  
  98.     weld.Parent = LUA
  99.    
  100.     --
  101.    
  102.     LLA = Instance.new("Part", Model)
  103.     LLA.Anchored = false
  104.     LLA.CanCollide = true
  105.     LLA.BrickColor = BrickColor.new("White")
  106.     LLA.Material = "Neon"
  107.     LLA.Size = Player.Character:FindFirstChild("LeftLowerArm").Size -Vector3.new(0,0.9,0)
  108.     LLA.Size = LLA.Size +Vector3.new(0.1,0,0.1)
  109.    
  110.     --Welding
  111.    
  112.     local weld = Instance.new("Weld")
  113.     weld.Name = "ArmWeld"
  114.     weld.Part0 = Player.Character.LeftLowerArm
  115.     weld.Part1 = LLA
  116.     weld.C0 = CFrame.new(0,-0.2,0)
  117.    
  118.     weld.Parent = LLA
  119.     --------------------------------------
  120.    
  121.     for i = 1,30 do -- Making it bigger :)
  122.         RUA.Size = RUA.Size +Vector3.new(0,0.03,0)
  123.         RLA.Size = RUA.Size +Vector3.new(0,0.03,0)
  124.         LUA.Size = LUA.Size +Vector3.new(0,0.03,0)
  125.         LLA.Size = LLA.Size +Vector3.new(0,0.03,0)
  126.         wait(0.05)
  127. end
  128.     Player.Character.RightUpperArm.Transparency = 1
  129.     Player.Character.LeftUpperArm.Transparency = 1
  130.     Player.Character.LeftLowerArm.Transparency = 1
  131.     Player.Character.LeftHand.Transparency = 1
  132.     Player.Character.RightLowerArm.Transparency = 1
  133.     Player.Character.RightHand.Transparency = 1
  134.     -- Make the created part for Haki black
  135.     RUA.BrickColor = BrickColor.new("Black")
  136.     RLA.BrickColor = BrickColor.new("Black")
  137.     LUA.BrickColor = BrickColor.new("Black")
  138.     LLA.BrickColor = BrickColor.new("Black")
  139.    
  140. end)
  141.  
  142.  
  143. RemoteEvent2.OnServerEvent:Connect(function(Player)
  144.     -- Make the created part for Haki white
  145.     RUA.BrickColor = BrickColor.new("White")
  146.     RLA.BrickColor = BrickColor.new("White")
  147.     LUA.BrickColor = BrickColor.new("White")
  148.     LLA.BrickColor = BrickColor.new("White")
  149.    
  150.     -- Make your arms appear
  151.     if Player.Character.RightUpperArm.Transparency == 1 then
  152.         Player.Character.RightUpperArm.Transparency = 0
  153.     end
  154.     if Player.Character.RightLowerArm.Transparency == 1 then
  155.         Player.Character.RightLowerArm.Transparency = 0
  156.     end
  157.     if Player.Character.LeftUpperArm.Transparency == 1 then
  158.         Player.Character.LeftUpperArm.Transparency = 0
  159.     end
  160.     if Player.Character.LeftLowerArm.Transparency == 1 then
  161.         Player.Character.LeftLowerArm.Transparency = 0
  162.        
  163.     end
  164.     if Player.Character.RightHand.Transparency == 1 then
  165.         Player.Character.RightHand.Transparency = 0
  166.     end
  167.     if Player.Character.LeftHand.Transparency == 1 then
  168.         Player.Character.LeftHand.Transparency = 0
  169.     end
  170.     --------------------------------------------------------------
  171.     for i = 1,30 do -- Making it smaller :)
  172.         RUA.Size = RUA.Size -Vector3.new(0,0.03,0)
  173.         RLA.Size = RUA.Size -Vector3.new(0,0.03,0)
  174.         LUA.Size = LUA.Size -Vector3.new(0,0.03,0)
  175.         LLA.Size = LLA.Size -Vector3.new(0,0.03,0)
  176.         wait(0.05)
  177.     end
  178.     RUA:Destroy()
  179.     RLA:Destroy()
  180.     LUA:Destroy()
  181.     LLA:Destroy()
  182.    
  183. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement