I am creating a Time stop game but I need to use key code my script is currently:
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local hum = plr.Character:WaitForChild("Humanoid")
UIS.InputBegan:Connect(function(input, gameProcessed)
if input.UserInputType == Enum.UserInputType.Keyboard then
print("Key:",input.KeyCode)
wait(1)
if input.UserInputType == Enum.KeyCode.T then
print("T was pressed at", input.Position)
local Timestop = workspace:WaitForChild("Timestop")
repeat
Timestop.Size = Vector3(Timestop.Size+1, Timestop.Size+1, Timestop.Size+1)
wait(0.1)
until Timestop.Size == Vector3(190, 190, 190)
end
wait(60)
end
end)
and I have it in Starter Character Scripts
The only output I am getting is ? Key: Enum.KeyCode.T - Client - LocalScript:7
Any help?

4 comments
Hi can you put the rest of your code in a code block. Some of it is already, but can you put the rest in one.
I dont know how to
done
Hope my answer works for you!