i like your vides thx for it local mybaseplate = game.Workspace.Baseplate local bignumber = 1000 local truestatement = true local function myfunction() local result = nil if result == nil then local result1 = true print(result1) else local result2 = false print(result2) end end myfunction()
@MM-rl5xl17 минут бұрын
This is War local baseplate = game.Workspace.Baseplate local function WarBetweenTwoGames() local TdsFight = nil if TdsFight == nil then local TdxWar = "Geting ready" print(TdxWar) else local TdsWar = "Cartoony" print(TdsWar) end end WarBetweenTwoGames()
@bit_of_8827 минут бұрын
finnaly a good playlist
@bobthebuilder-do1rt54 минут бұрын
Vector 3 is easy it just looks complicated
@heyheythatismynameee-e9hСағат бұрын
local basePlate = game.Workspace.Baseplate basePlate.Material = "Glass" basePlate.CastShadow = false basePlate.Transparency = 0.75 basePlate.BrickColor = BrickColor.new("Really red") task.wait(5) basePlate.CanCollide = false wait(3) basePlate.CanCollide = true wait(5) basePlate.BrickColor = BrickColor.new("Really Baby blue") this is fun :D
@professianl_idiotСағат бұрын
im to tried to watch videpo i wanan read
@yousif.professorСағат бұрын
here is mineeeeeeeeeeeeeeeeeeeeeee!!!!!!!!!!!!!!!!! if 2 + 2 == 4 and 34 + 1 == 35 then if 2 * 2 == 4 then print("your correct!!") else print("incorrect") end else print("One or more conditions were incorrect in the first block") end if 5 + 2 == 7 and 3 + 1 == 35 then if 2 * 2 == 4 then print("your correct!!") else print("incorrect") end else print("f you") end
@BeeAddictionСағат бұрын
local myLava = game.Workspace.Lava local function changeTransparency() myLava.Transparency = 1 myLava.Transparency = 0.5 myLava.Transparency = 0 myLava.Transparency = 1 myLava.Transparency = 0.5 end changeTransparency() changeTransparency() I know we have the almost same example but I tried with a new part (I named the part Lava)
@Username8281Сағат бұрын
Gooooood
@aishviswonderlandСағат бұрын
function operation (Operator) local function addition (num1,num2) local result = num1+num2 return result end local function substraction (num1,num2) local result = num1-num2 return result end local function multiplication (num1,num2) local result = num1*num2 return result end local num1 = 10 local num2 = 20 if Operator == "+" then local result = addition(num1,num2) print(result) elseif Operator == "-" then local result = substraction(num1,num2) print(result) elseif Operator == "*" then local result = multiplication(num1,num2) print(result) else print("Operators to be used: *,+,-") end end operation("*") operation("+") operation("-") operation("a")
@yousif.professor2 сағат бұрын
here is mine local gyyyat = game.Workspace.Baseplate local hi = 50000 local fuyou = true local function hi() local result = nil if result == nil then print("you are gaaay") else print("migaaa") end end local function html() local result = nil if result == nil then print("you are jaaay") else print("migaaa") end end html() local function a() local mega = "your gau end
@anshikaahuja86012 сағат бұрын
local bbfjvdfvdfcv = game.Workspace.Baseplate while true do local randomblueguy = math.random(0, 1) bbfjvdfvdfcv.Transparency = randomblueguy task.wait(0.5) end
@Laureins2 сағат бұрын
I made something really cool! local Part = game.Workspace.Part Part.Transparency = 0.5 Part.CanCollide = false for counter = 10,1,-1 do wait(1) print(counter) if counter == 1 then wait(1) print("go!") Part.Transparency = 0 Part.CanCollide = true end end
@Laureins2 сағат бұрын
You need to make a part called Part or it will not work, btw your tutorials are so great, I already feel like a real roblox developer!
@yousif.professor2 сағат бұрын
here is mine local function hello(number1, number2) local result = number1 + number2 if result ==4 then print("you arer correct!!") else print("you are not correct") end end local function w(number1, number2) local result = number1 * number2 if result ==30 then print("you arer correct!!") else print("you are not correct") end end local function hi(number1, number2) local result = number1 + number2 if result ==2 then print("you arer correct!!") else print("you are not correct") end end hello(2, 2) hello(3, 2) w(3, 10) hello(1, 1) hi(1, 1)
@Darkminem82 сағат бұрын
I made a house with stone
@anshikaahuja86012 сағат бұрын
its scripted by me not using random but it will be help to give an item to a player who touched the part- local Players = game:GetService("Players") script.Parent.Touched:Connect(function(ITemGiving) -- part should be the parent of this script local classy = script.ClassicSword -- change the item name with classicsword and it should be an child of the script local player = game.Players:GetPlayerFromCharacter(ITemGiving.Parent) local app = classy:Clone() if player.Backpack:FindFirstChild("ClassicSword") then return end -- here also change the item name with classicsword and it should be an child of the script app.Parent = player.Backpack end)
@tobyktoby26363 сағат бұрын
Does the return do the exact same as the other code?
@REALnaoufy3 сағат бұрын
print("Hello!") print("How are you doing?") print("I'm doing very well!") print("nice") print("Do you like roblox studio?") print("Yes, i love it!") print("Thats very nice") print("Im gonna continue watching the tutorial ok?") print("Ye thats fine")
@mostafaal-shafey9163 сағат бұрын
how from the few advanced differences between programing he answered it all like when he said the most programing langs start at index 0 when i was thinking about it
@Classic_Davi3 сағат бұрын
local Baseplate = game.Workspace.Baseplate Baseplate.Transparency = 0.25 Baseplate.Material = "Brick" Baseplate.CastShadow = false local BluePart = game.Workspace.BluePart BluePart.Transparency = 0.5 BluePart.Material = "Ground" BluePart.CastShadow = false Tysm man for helping a lot
@Hashem4403 сағат бұрын
Hi
@MM-rl5xl4 сағат бұрын
local function Addition(num1, num2) local result = num1 + num2 return result end local function Sutraction(num1, num2) local minus = num1 - num2 return minus end local function Division(num3, num4) local div = num3 / num4 return div end local function AllInOne(num1, num2, num3, num4, num5, num6) local all = num1 +num2 / num3 * num4 / num5 + num6 - num1 return all end local adddtion = Addition(56, 23) local sub = Sutraction(10, 5) local div = Division(99, 58) local all = AllInOne(25, 5 ,5, 5, 6, 88, 3, 770) print(adddtion) print(sub) print(div) print(all)
@Am_zort4 сағат бұрын
btw if your in roblox studio and you want to put a note you can put -- this before it so the prgram dose not read it
@LittleBat30744 сағат бұрын
made enough functions for all basic math local function add(n1, n2) local result = n1 + n2 print(result) return end local function minus(n1, n2) local result = n1 - n2 print(result) return end local function multiply(n1, n2) local result = n1 * n2 print(result) return end local function divide(n1, n2) local result = n1 / n2 print(result) return end
@Classic_Davi4 сағат бұрын
print("Hi bro, how are you??") print("I'm trying to learn how to script on roblox studio!") print("It's not as difficult as it seems, I'm sure you can do it") print("Thanks bro!") print(true) print(false) print(100) print(-100) print(100.50) print("This is a string.") print('This is a string.') print(5+10) print(190+210) print(9/3) print(2137*7321)
@asuko-san74404 сағат бұрын
i tried to go and make a rough replicate of an hellenestic temple, the got lazy halfway lol. I decided to hit play button and see how my players interacted with it. i soon realized the pillards would fall over, and so i soon discovered other propreties like anchoring and collision.
@Annidoesstuff4 сағат бұрын
here's what I did! -- The brackets and dash things disables the code local food = 1 while food <= 1000 do print("Yummy") if food == 50 then print("I'm full.") break end food += 1 end for tiredness = 1, 100 do print("I'm very tired..") if tiredness == 10 then print("Wait!") print("I'm not tired!") break end end
@tobyktoby26365 сағат бұрын
I have learned a bit of scripting before, so i used this code: local Variable = "Hello world!" local Variable2 = "Goodbye!" print (Variable) print (Variable2) "local" can be used to make a variable which can be a string of text which can be printed
@Classic_Davi5 сағат бұрын
print("Hi bro, how are you??") wait(2) print("I'm trying to learn how to script on roblox studio!") wait(2) print("It's not as difficult as it seems, I'm sure you can do it") wait(2) print("Thanks bro :)")
@lookitsadrian5 сағат бұрын
my script print("helo") print("wareehert") print("excuse me") print("wdawfrge") print("uhhh") print("HDAIUWGIAEHK") print("UUUUHHHH") print("IUHFHAIUGHIUAWGHUI") end
@tobyktoby26365 сағат бұрын
I went into properties and changed the reflectance and part type then changed the material and colour and resized and duplicated the part
@iftekharhasan28106 сағат бұрын
local function compareNumber(number1,number2) if number1>number2 then return 1 elseif number1==number2 then return 0 else return -1 end end local result =compareNumber(3,2) if result == 1 then print("Number1 is greater than number2") elseif result == 0 then print("Number1 is equal to number2") else print("Number1 is less than number2") end
@TheSuperSurvivalist6 сағат бұрын
you're very good at explaining :)
@Jobb9116 сағат бұрын
i made a big tower with no interior design but a cool looking outside
@TheSuperSurvivalist7 сағат бұрын
methinks you deserve at least 10 billion subscribers <3
@rip_zonez7 сағат бұрын
I made a spawn point purple which is made of neon and I added a part which is inside the ground a bit and it is sized so it is outlined outside the spawn point and I anchored it
@Projektva7 сағат бұрын
I made several islands with bridges and a lil dude named gibbles
this is what I made I think this script is a little bit confusing, but I manage to do it. -- Math Operations Script -- Addition Function local function addition(Number1, Number2) local result = Number1, Number2 return result end local printResult = addition (59, 90) print (printResult) -- Subtraction Function local function subtraction(Number1, Number2) local result = Number1 - Number2 return result end local printResult = subtraction (47, 81) print (printResult) -- Multiplication Function local function multiplication(Number1, Number2) local result = Number1 * Number2 return result end local printResult = multiplication (12, 15) print (printResult) -- Division Function local function division(Number1, Number2) local result = Number1 / Number2 return result end local printResult = division (52, 0) print (printResult) -- Average Function local function average(Number1, Number2) local result = (Number1 + Number2) return result end local printResult = average(10, 20) print("Average of 10 and 20 is:", printResult)
@Commander_1_10 сағат бұрын
I made a house
@T4CO-T2UESDAY12 сағат бұрын
-- This script makes a part have random colors for 2 seconds after touching it. local i = game.Workspace.TouchPart local partIsTouched = false i.Touched:Connect(function(otherPart) if partIsTouched == false then partIsTouched = true print(otherPart.Name) for partIsTouched = 0, 10, 1 do i.BrickColor = BrickColor.Random() task.wait(0.2) end i.BrickColor = BrickColor.new("Medium Stone Grey") partIsTouched = false end end)
@Knx-h1b12 сағат бұрын
if 2 + 3 >= 4 and 6 * 2 == 12 and not (3 < 2) then print("this statement is true!") end
@PixelplayLabYT12 сағат бұрын
local Myvarible1 = 50 local Myvarible2 = 10 print(Myvarible1) task.wait(1) print(Myvarible2) end
@T4CO-T2UESDAY12 сағат бұрын
print("john is born!") for john = 0, 100, 1 do print("john has aged one year!") task.wait(1) if john == 13 then print("john is now a teenager!") continue end if john == 18 then print("john is now an adult!") continue end if john == 22 then print("john just got hist first car! and job!") continue end if john == 35 then print("john is now officially a father!") continue end if john == 40 then print("john got divorced...") continue end if john == 55 then print("jonh has retired from his job!") continue end if john == 60 then print("john has been moved into housing for the elderley.") continue end if john == 73 then print("uh oh! john had a heart attack and is no longer here... RIP john.") break end end
@Knx-h1b13 сағат бұрын
local function subtration(n1, n2) local result = n1 - n2 if result > 0 then print("The result is positive") elseif result == 0 then print("The result is zero") else print("The result is negative") end end subtration(-7, 1) subtration(7, 7) subtration(9, 3)
@dos-x8q13 сағат бұрын
Made a door only opens when touched local secretdoor = game.Workspace.SecretDoor local partIsTouched = false secretdoor.Touched:Connect(function(player) if partIsTouched == false then partIsTouched = true print('Door has been opened.') secretdoor.Transparency = 0.5 secretdoor.CanCollide = false wait(2) partIsTouched = false secretdoor.Transparency = 0 secretdoor.CanCollide = true end end)
@TheNewBeh56413 сағат бұрын
local function subtraction(number10, number5) local result = number10 - number5 if result == 4 then print("The result is eqaul to 4!") elseif result == 5 then print("The result is equal to 5!") else print("The subtraction has failed!") end end subtraction(10, 5)
@MR-VOXELATOR11713 сағат бұрын
Yessir: local TouchPart1 = game.Workspace.TouchPart local Colour = "White" TouchPart1.Touched:Connect(function(OtherPart) if Colour == "White" then TouchPart1.BrickColor = BrickColor.new("Dark red") task.wait(1) TouchPart1.BrickColor = BrickColor.new("Sand green") task.wait(1) TouchPart1.BrickColor = BrickColor.new("Earth green") task.wait(1) TouchPart1.BrickColor = BrickColor.new("Hot pink") task.wait(1) TouchPart1.BrickColor = BrickColor.new("Electric blue") task.wait(1) task.wait(4) print("cooldown done!") Colour = "White" end end)