Hey,
Its me again...
Now Im trying to add block feature to my game. I dont know wheres issue tbh.. Can someone help?
local UIS = game:GetService("UserInputService")
local char = game.Players.LocalPlayer.Character
local hum = char:WaitForChild("Humanoid")
local Animation = hum:LoadAnimation(script:WaitForChild("block"))
local BlockSystem = char:WaitForChild("BlockSystem")
local speed = 16
local blockspeed = 8
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
Animation:Play()
hum.Walkspeed = blockspeed
BlockSystem.Value = true
end
end)
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
Animation:Stop()
hum.Walkspeed = speed
BlockSystem.Value = false
end
end)
I know it isnt fully done, but Value and Walkspeed does not work so I cant continue.
** You are now Level 7! **