Поиск в блоге

неділя, 1 грудня 2024 р.

Гра Хрестики нолики в Roblox Studio

 



buttons = script.Parent.Buttons:GetChildren()
script.Parent.Result.Text = "Result"
 
function check_win_X()
         if buttons[1].Text == "X" and buttons[2].Text == "X" and buttons[3].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
         if buttons[4].Text == "X" and buttons[5].Text == "X" and buttons[6].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
         if buttons[7].Text == "X" and buttons[8].Text == "X" and buttons[9].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
 
         if buttons[1].Text == "X" and buttons[4].Text == "X" and buttons[7].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
         if buttons[2].Text == "X" and buttons[5].Text == "X" and buttons[8].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
         if buttons[3].Text == "X" and buttons[6].Text == "X" and buttons[9].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
 
         if buttons[1].Text == "X" and buttons[5].Text == "X" and buttons[9].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
         if buttons[3].Text == "X" and buttons[5].Text == "X" and buttons[7].Text == "X" then
                   script.Parent.Result.Text = "X win"        
         end
end

вівторок, 26 листопада 2024 р.

Калькулятор в Roblox Studio

 


Скрипт


a = script.Parent.A

b = script.Parent.B

c = script.Parent.C

 

butPlus = script.Parent.PLUS

butMinus = script.Parent.MINUS

butMul = script.Parent.MUL

butDiv = script.Parent.DIV

 

butClear = script.Parent.CLEAR

 

function Plus()

         c.Text = a.Text + b.Text

end

 

function Minus()

         c.Text = a.Text - b.Text

end

 

function Mul()

         c.Text = a.Text * b.Text

end

 

function Div()

         c.Text = a.Text / b.Text

end

 

function Clear()

         a.Text=0

         b.Text=0

         c.Text=0

end

 

butPlus.MouseButton1Click:Connect(Plus)

butMinus.MouseButton1Click:Connect(Minus)

butMul.MouseButton1Click:Connect(Mul)

butDiv.MouseButton1Click:Connect(Div)


butClear.MouseButton1Click:Connect(Clear)




Будинок - 3D модель в Roblox Studio

 



Озеро - 3D модель в Roblox Studio


 

Острів - 3D модель в Roblox Studio


 

неділя, 22 серпня 2021 р.