Still plays floruish anim while not equipped tool

  1. i maked a script that when player clicks X it play an floruish anim so when player unequipped tool it still can play it

video:

script:

UserInputService.InputEnded:Connect(function(Key, IsTyping)
	if Key.KeyCode == Enum.KeyCode.F and Equipped and not IsTyping then
		charging:Stop()
		chargingidle:Stop()
		wait()
		ReplicatedStorage.Events.BindableEvents.MoveChar:Fire(Player)
		Hitbox:HitStart(0.24)
		chargingSwing:Play()
	end
end)

UserInputService.InputEnded:Connect(function(Key, IsTyping)
	if Key.KeyCode == Enum.KeyCode.X and Equipped and not IsTyping then
		inspect:Play()
	end
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

if equipped is a bool then try saying

	UserInputService.InputEnded:Connect(function(Key, IsTyping)
	if Key.KeyCode == Enum.KeyCode.X and Equipped == true and not IsTyping then
		inspect:Play()
	end
end)

lmk if this worked

1 Like

i just fixed it myself thank you for your time for respondingi was just did not do set the equipped boolean false

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.