UserInputService

Help I can’t see the print in my output.

local rp = game:GetService("ReplicatedStorage")
local remotes = rp:WaitForChild("Remotes")
local AbilitysRemote = remotes:WaitForChild("Abilitys")
local uis = game:GetService("UserInputService")
local AbilitysSlots = game:GetService("StarterGui").UI.Frame
local CooldownOne = AbilitysSlots.One.Cooldown
local Cooldown = false

uis.InputBegan:Connect(function(input, isTyping)
	if isTyping then return end
	if input.UserInputType == Enum.KeyCode.One and Cooldown == false then
		print("One Activated")
		AbilitysRemote:FireServer()
		CooldownOne.Visible = true
		CooldownOne:TweenSize(UDim2.new(1, 0,0, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 8, true)
		wait(8)
		CooldownOne.Visible = false
		CooldownOne.Size = UDim2.new(1, 0,1, 0)
	end
end)

youre supposed to be checking for the KeyCode not the UserInputType.

	if input.KeyCode == Enum.KeyCode.One and Cooldown == false then

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