local userInputService = game:GetService("UserInputService")
local lightningService = game:GetService("Lighting")
local animation = lightningService:WaitForChild("Animation")
local idle = animation:WaitForChild("Idle")
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local animationTrack = humanoid:LoadAnimation(idle)
local animationPlaying = false
userInputService.InputBegan:Connect(function(Input, Chat)
if Input.KeyCode == Enum.KeyCode.F and not Chat and humanoid.Health >= 0 then
if not animationPlaying then
player["LeftHand"].Reflectance = 0.5 wait(0.1) player["LeftHand"].Reflectance = 1
player["RightHand"].Reflectance = 0.5 wait(0.1) player["RightHand"].Reflectance = 1
animationTrack:Play()
animationPlaying = true
elseif animationPlaying then
player["LeftHand"].Reflectance = 0.5 wait(0.1) player["LeftHand"].Reflectance = 0
player["RightHand"].Reflectance = 0.5 wait(0.1) player["RightHand"].Reflectance = 0
animationTrack:Stop()
animationPlaying = false
end
end
end)
when i try to change the left and right hand propreties the script stops working
