So basically, If player pressed the Random Printed Keyword, then a print appears "Won a Point" but It doesn't and I don't get any error
Server Script
local allTheKeyWords = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
workspace.Rooms.RoomOne.randomKey.Value = allTheKeyWords[math.random(1, #allTheKeyWords)]
text.Value = randomKeyChosen.Value
Local Script
local UIS = game:GetService("UserInputService")
local randomKey = workspace.Rooms.RoomOne.randomKey
local player = game.Players.LocalPlayer
local RoomOneTable = require(game.ReplicatedStorage.Rooms.RoomOne.RoomOneMod)
UIS.InputBegan:Connect(function(key, whileTalking)
if whileTalking then return end
if key.KeyCode == Enum.KeyCode[randomKey.Value] then
print("Won a point")
end
end)
