diff --git a/content/en-us/ServerScripService b/content/en-us/ServerScripService new file mode 100644 index 000000000..97f208381 --- /dev/null +++ b/content/en-us/ServerScripService @@ -0,0 +1,65 @@ +-- Türk Güvenlik Güçleri Harita Scripti +local Teams = game:GetService("Teams") +local Players = game:GetService("Players") +local ReplicatedStorage = game:GetService("ReplicatedStorage") + +-- TAKIMLAR +local teamList = { + {Name = "Jandarma", Color = BrickColor.new("Bright blue")}, + {Name = "Trafik Polisi", Color = BrickColor.new("New Yeller")}, + {Name = "Otoyol Trafik Polisi", Color = BrickColor.new("Bright orange")}, + {Name = "Polis", Color = BrickColor.new("Really black")}, + {Name = "Asker", Color = BrickColor.new("Army green")} +} + +for _, data in ipairs(teamList) do + local team = Instance.new("Team") + team.Name = data.Name + team.TeamColor = data.Color + team.AutoAssignable = false + team.Parent = Teams +end + +print("Takımlar oluşturuldu.") + +-- XP SİSTEMİ +Players.PlayerAdded:Connect(function(player) + local leaderstats = Instance.new("Folder") + leaderstats.Name = "leaderstats" + leaderstats.Parent = player + + local XP = Instance.new("IntValue") + XP.Name = "XP" + XP.Value = 0 + XP.Parent = leaderstats + + print(player.Name.." oyuna katıldı, XP başlatıldı.") + + -- Basit Görev Bildirimi + local task = Instance.new("StringValue") + task.Name = "CurrentTask" + task.Value = "Devriyeye çık!" + task.Parent = player +end) + +-- ÖLDÜRÜNCE XP KAZANMA (örnek) +Players.PlayerAdded:Connect(function(player) + player.CharacterAdded:Connect(function(character) + local humanoid = character:WaitForChild("Humanoid") + humanoid.Died:Connect(function() + local tag = humanoid:FindFirstChild("creator") + if tag and tag.Value and tag.Value:IsA("Player") then + local killer = tag.Value + local xp = killer:FindFirstChild("leaderstats"):FindFirstChild("XP") + if xp then + xp.Value = xp.Value + 10 + print(killer.Name.." birini öldürdü +10 XP aldı.") + end + end + end) + end) +end) + +-- BİTİŞ +print("Oyun scripti başarıyla yüklendi.") + diff --git a/content/en-us/studio/align-tool.md b/content/en-us/studio/align-tool.md deleted file mode 100644 index bd42390ab..000000000 --- a/content/en-us/studio/align-tool.md +++ /dev/null @@ -1,105 +0,0 @@ ---- -title: Align Tool -description: The Align Tool lets you align objects or groups of objects along the X, Y, or Z axes. ---- - -The **Align Tool** lets you align objects or groups of objects along the **X**, **Y**, or **Z** axes. You can access it from the [Model](../studio/model-tab.md) tab. - -Studio's Model tab with the Align Tool highlighted. - -Primary benefits include: - -- Aligning the center or edge of multiple objects in one action. -- Aligning entire `Class.Model|Models` or parts within them relative to other parts, all while keeping the model intact. -- Dynamically previewing the point of alignment before confirming. - -## Mode - -You can set the alignment mode to either **Min**, **Center**, or **Max**. - - - -
- The Min icon in the toolbar. -
Min
-
-
- -
- The Center icon in the toolbar. -
Center
-
-
- -
- The Max icon in the toolbar. -
Max
-
-
-
- - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Min button on the world Z axis. A translucent orange rectangle represents where the objects align in context to each other. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Center button on the world Z axis. A translucent orange rectangle represents where the objects align in context to each other. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Max button on the world Z axis. A translucent orange rectangle represents where the objects align in context to each other. - - - -## Align In - -The **World** or **Local** option specifies which relative coordinates to align on. This is especially useful for aligning parts which don't share the same orientation or rotation. - -The **X**, **Y**, and **Z** checkboxes let you select which axes to align on. Note that you can select multiple axes in a single alignment operation. - - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are unaligned. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Max button on the world Z axis. A translucent orange rectangle represents where the objects align in context to each other. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Max button on their local Z axis. A translucent orange rectangle represents where the objects align in context to each other. - - - -## Relative To - -An alignment operation can be relative to either the **Selection Bounds** or the **Active Object**. - -### Selection Bounds - -**Selection Bounds** aligns the selected objects relative to the bounding box around them. - - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are unaligned. A translucent red rectangle represents where the objects' collective bounding box. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Min button on the world X axis relative to their collective bounding box. A translucent red rectangle represents where the objects' collective bounding box. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Max button on the world X axis relative to their collective bounding box. A translucent red rectangle represents where the objects' collective bounding box. - - - -### Active Object - -**Active Object** aligns the objects relative to the **last selected object**. This object is outlined in orange and it will not move during the operation. While parts are selected, you can switch the active object by clicking on a different object. - - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are unaligned. The large blue cube has a yellow outline to represent that it's the active object. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Min button on the world X axis relative to the active object. The large blue cube has a yellow outline to represent that it's the active object. - - -An angled side view of a small red cube, large blue cube, and a small purple cube that are aligned with the Max button on the world X axis relative to the active object. The large blue cube has a yellow outline to represent that it's the active object. - -