(I have the "Room100A" at the ServerStorage) The problem is that it should give me a room when I say "Room", but it doesn't. Please tell me what's wrong with it.
while true do
wait()
function onChatted(msg)
if msg == "Room" then
local enabled = true
if game.Players.LocalPlayer.Backpack:findFirstChild(tostring("Room100A")) == nil and enabled == true then
game.ServerStorage:findFirstChild(tostring("Room100A")):clone().Parent = game.Players.LocalPlayer.Backpack
enabled = false
end
end
end
end

2 comments
You are only repeatedly defining a function. There is no event listener or anything actually calling the function. You're also calling tostring on a literal string.
So I should change torstrings for strings? That would be it?