When i player types( the kind of type when they press "/" and say type word with there keyboards") it runes the UIS script that is supposed to work when a player presses a key. Although even when they type(by pressing "/") it still runes that UIS script. How can i stop this from happening?
local Player = game.Players.LocalPlayer
local char = Player.Character
local den = true
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
if not den then return end
den = false
local Part = Instance.new("Part")
Part.Parent = workspace
Part.CFrame = char.Head.CFrame * CFrame.new(0,0,-5)
wait(3)
den = true

2 comments
'If' needs to be all lowercase on line 1
Lol yeah.. I was typing on a phone that has a laggy keyboard.