Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (LOCAL SCRIPT)
- repstorage = game:GetService("ReplicatedStorage")
- RemoteEvent = repstorage:WaitForChild("HakiOn")
- RemoteEvent2 = repstorage:WaitForChild("HakiOff")
- Player = game.Players.LocalPlayer
- -----
- game.Workspace:WaitForChild(Player.Name)
- Debounce = 1
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.H and Debounce == 1 then -- if Player press H and debounce = 1
- Debounce = 3 -- then debounce is 3 (Cannot manipulate with this debounce)
- RemoteEvent:FireServer() -- fire server
- wait(3) -- Wait 3 seconds till Debounce is 2
- Debounce = 2
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input) -- if Player press H and debounce = 2
- if input.KeyCode == Enum.KeyCode.H and Debounce == 2 then
- Debounce = 3 -- again cannot manipulate
- RemoteEvent2:FireServer()
- wait(6) -- wait 6 seconds till debounce is 1
- Debounce = 1
- end
- end)
- (SERVER SCRIPT)
- repstorage = game:GetService("ReplicatedStorage")
- RemoteEvent = repstorage:WaitForChild("HakiOn")
- RemoteEvent2 = repstorage:WaitForChild("HakiOff")
- RemoteEvent.OnServerEvent:Connect(function(Player)
- --RightARM
- Model = Instance.new("Model", Player.Character)
- RUA = Instance.new("Part", Model) -- Create a part that will represent your Arm so we can change color of it
- RUA.Anchored = false
- RUA.CanCollide = true
- RUA.BrickColor = BrickColor.new("White")
- RUA.Material = "Neon"
- RUA.Size = Player.Character:FindFirstChild("RightUpperArm").Size -Vector3.new(0,0.9,0)
- RUA.Size = RUA.Size +Vector3.new(0.1,0,0.1)
- --Welding
- local weld = Instance.new("Weld")
- weld.Name = "ArmWeld"
- weld.Part0 = Player.Character.RightUpperArm -- weld RUA to Arm
- weld.Part1 = RUA
- weld.C0 = CFrame.new(0,0,0) -- Placement
- weld.Parent = RUA
- --
- RLA = Instance.new("Part", Model)
- RLA.Anchored = false
- RLA.CanCollide = true
- RLA.BrickColor = BrickColor.new("White")
- RLA.Material = "Neon"
- RLA.Size = Player.Character:FindFirstChild("RightUpperArm").Size -Vector3.new(0,0.9,0)
- RLA.Size = RLA.Size +Vector3.new(0.1,0,0.1)
- --Welding
- local weld = Instance.new("Weld")
- weld.Name = "ArmWeld"
- weld.Part0 = Player.Character.RightLowerArm
- weld.Part1 = RLA
- weld.C0 = CFrame.new(0,-0.2,0)
- weld.Parent = RLA
- --LeftArm
- LUA = Instance.new("Part", Model)
- LUA.Anchored = false
- LUA.CanCollide = true
- LUA.BrickColor = BrickColor.new("White")
- LUA.Material = "Neon"
- LUA.Size = Player.Character:FindFirstChild("LeftUpperArm").Size -Vector3.new(0,0.9,0)
- LUA.Size = LUA.Size +Vector3.new(0.1,0,0.1)
- --Welding
- local weld = Instance.new("Weld")
- weld.Name = "ArmWeld"
- weld.Part0 = Player.Character.LeftUpperArm -- weld LUA to Arm
- weld.Part1 = LUA
- weld.C0 = CFrame.new(0,0,0) -- Placement
- weld.Parent = LUA
- --
- LLA = Instance.new("Part", Model)
- LLA.Anchored = false
- LLA.CanCollide = true
- LLA.BrickColor = BrickColor.new("White")
- LLA.Material = "Neon"
- LLA.Size = Player.Character:FindFirstChild("LeftLowerArm").Size -Vector3.new(0,0.9,0)
- LLA.Size = LLA.Size +Vector3.new(0.1,0,0.1)
- --Welding
- local weld = Instance.new("Weld")
- weld.Name = "ArmWeld"
- weld.Part0 = Player.Character.LeftLowerArm
- weld.Part1 = LLA
- weld.C0 = CFrame.new(0,-0.2,0)
- weld.Parent = LLA
- --------------------------------------
- for i = 1,30 do -- Making it bigger :)
- RUA.Size = RUA.Size +Vector3.new(0,0.03,0)
- RLA.Size = RUA.Size +Vector3.new(0,0.03,0)
- LUA.Size = LUA.Size +Vector3.new(0,0.03,0)
- LLA.Size = LLA.Size +Vector3.new(0,0.03,0)
- wait(0.05)
- end
- Player.Character.RightUpperArm.Transparency = 1
- Player.Character.LeftUpperArm.Transparency = 1
- Player.Character.LeftLowerArm.Transparency = 1
- Player.Character.LeftHand.Transparency = 1
- Player.Character.RightLowerArm.Transparency = 1
- Player.Character.RightHand.Transparency = 1
- -- Make the created part for Haki black
- RUA.BrickColor = BrickColor.new("Black")
- RLA.BrickColor = BrickColor.new("Black")
- LUA.BrickColor = BrickColor.new("Black")
- LLA.BrickColor = BrickColor.new("Black")
- end)
- RemoteEvent2.OnServerEvent:Connect(function(Player)
- -- Make the created part for Haki white
- RUA.BrickColor = BrickColor.new("White")
- RLA.BrickColor = BrickColor.new("White")
- LUA.BrickColor = BrickColor.new("White")
- LLA.BrickColor = BrickColor.new("White")
- -- Make your arms appear
- if Player.Character.RightUpperArm.Transparency == 1 then
- Player.Character.RightUpperArm.Transparency = 0
- end
- if Player.Character.RightLowerArm.Transparency == 1 then
- Player.Character.RightLowerArm.Transparency = 0
- end
- if Player.Character.LeftUpperArm.Transparency == 1 then
- Player.Character.LeftUpperArm.Transparency = 0
- end
- if Player.Character.LeftLowerArm.Transparency == 1 then
- Player.Character.LeftLowerArm.Transparency = 0
- end
- if Player.Character.RightHand.Transparency == 1 then
- Player.Character.RightHand.Transparency = 0
- end
- if Player.Character.LeftHand.Transparency == 1 then
- Player.Character.LeftHand.Transparency = 0
- end
- --------------------------------------------------------------
- for i = 1,30 do -- Making it smaller :)
- RUA.Size = RUA.Size -Vector3.new(0,0.03,0)
- RLA.Size = RUA.Size -Vector3.new(0,0.03,0)
- LUA.Size = LUA.Size -Vector3.new(0,0.03,0)
- LLA.Size = LLA.Size -Vector3.new(0,0.03,0)
- wait(0.05)
- end
- RUA:Destroy()
- RLA:Destroy()
- LUA:Destroy()
- LLA:Destroy()
- end)
Add Comment
Please, Sign In to add comment