I've been trying to create a game where is you have a certain gamepass and press a letter (lets say "B") it activates a power here's what I have:
local UIS = game:GetService("UserInputService")
UIS.InputBegan:connect(function(Input)
local MouseInput = Input.UserInputType -- Get all mouse inputs
local KeyCode = Input.KeyCode -- Get all keyboard inputs
if KeyCode == Enum.KeyCode.T then
game.Workspace.InfiniteTsukuyomi.Parent = game.Lighting
wait(10)
game.Workspace.InfiniteTsukuyomi.Parent = game.Workspace
end
end)
Everything works fine other than the enum. I tried it with a simple printing script but that didn't do anything.

1 comment
enma?