> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/arsiv/roblox/lua-ile-oyun-gelistirmeye-giris.md).

# Lua ile Oyun Geliştirmeye Giriş

## 🌐 Lua'ya Genel Bakış

🔹 Lua, Roblox oyunları için kullanılan bir scripting dili.

🔹 Dinamik, yorumlanan ve hafif bir dildir.

🔹 Yüksek seviye ve genişletilebilir olması nedeniyle, özellikle oyun geliştirmede tercih edilir.

## 🏁 Lua'ya Başlarken

🔹 İlk olarak, bir Lua dosyası oluşturmanız gerekiyor. Lua dosyaları ".lua" uzantısıyla kaydedilir.

🔹 Lua dosyasını oluşturduktan sonra, basit bir 'Merhaba, Dünya!' scripti yazabiliriz. İşte bir örnek:

```lua
print("Merhaba, Dünya!")
```

## 📚 Lua Temel Konseptler

### **🔢 Değişkenler**

🔹 Değişkenler, verileri depolamak için kullanılır. İşte bir örnek:

```lua
local benimSayim = 10
print(benimSayim)  -- Bu, 10 değerini yazdırır
```

### **💡 Mantıksal Operatörler**

🔹 Lua'da üç mantıksal operatör vardır: `and`, `or`, `not`.

🔹 `and` ve `or` operatörleri ikili operatörlerdir, yani iki argüman alır.

```lua
print(true and false)  -- Bu, false yazdırır
print(true or false)   -- Bu, true yazdırır
```

🔹 `not` operatörü tekli bir operatördür ve argümanın tersini döndürür.

```lua
print(not true)  -- Bu, false yazdırır
```

### **🔄 Döngüler**

🔹 Döngüler, belirli bir kod bloğunu bir dizi kez çalıştırmanıza olanak sağlar.

🔹 En yaygın kullanılan döngüler `for` ve `while` döngüleridir.

🔹 `for` döngüsü genellikle belirli bir sayıda yineleme yaparken kullanılır:

```lua
for i = 1, 5 do
  print(i)  -- Bu, 1'den 5'e kadar olan sayıları yazdırır
end
```

🔹 `while` döngüsü genellikle belirli bir koşul geçerli olduğu sürece çalıştırılır:

```lua
local i = 1
while i <= 5 do
  print(i)  -- Bu, 1'den 5'e kadar olan sayıları yazdırır
  i = i + 1
end
```

Lua'nın temellerini öğrenmeye başlamak için bu kadarı yeterli. Şimdi, bu bilgileri kullanarak Roblox'da kendi oyunlarınızı oluşturmaya başlayabilirsiniz. İleride daha gelişmiş konseptleri

öğrenmek isteyebilirsiniz, ancak her şeyin temeli buradan başlar. Her zaman için "Merhaba, Dünya!" dediğiniz ilk günü hatırlayın ve her yeni bilgi birikimine bu denli heyecanla yaklaşın. Happy coding!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.yemreak.com/arsiv/roblox/lua-ile-oyun-gelistirmeye-giris.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
