Skip to content

Commit 93daf90

Browse files
Create Anti peace
This game is my first game.I think people like my game
1 parent 3768d20 commit 93daf90

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Anti peace

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
-- Create Grass Floor
2+
local grass = Instance.new("Part")
3+
grass.Size = Vector3.new(500, 1, 500)
4+
grass.Position = Vector3.new(0, 0, 0)
5+
grass.Anchored = true
6+
grass.Material = Enum.Material.Grass
7+
grass.Name = "GrassFloor"
8+
grass.Parent = workspace
9+
10+
-- Add Trees
11+
for i = 1, 10 do
12+
local tree = Instance.new("Model")
13+
tree.Name = "Tree"
14+
15+
local trunk = Instance.new("Part")
16+
trunk.Size = Vector3.new(2, 10, 2)
17+
trunk.Position = Vector3.new(math.random(-200, 200), 5, math.random(-200, 200))
18+
trunk.Anchored = true
19+
trunk.Material = Enum.Material.Wood
20+
trunk.Parent = tree
21+
22+
local leaves = Instance.new("Part")
23+
leaves.Size = Vector3.new(10, 6, 10)
24+
leaves.Position = trunk.Position + Vector3.new(0, 8, 0)
25+
leaves.Anchored = true
26+
leaves.Material = Enum.Material.Grass
27+
leaves.Color = Color3.fromRGB(34, 139, 34)
28+
leaves.Parent = tree
29+
30+
tree.Parent = workspace
31+
end
32+
33+
-- Add Houses
34+
for i = 1, 5 do
35+
local house = Instance.new("Part")
36+
house.Size = Vector3.new(20, 15, 20)
37+
house.Position = Vector3.new(math.random(-200, 200), 7.5, math.random(-200, 200))
38+
house.Anchored = true
39+
house.Color = Color3.fromRGB(200, 150, 120)
40+
house.Name = "House"
41+
house.Parent = workspace
42+
end

0 commit comments

Comments
 (0)