"PRO" Builder Swaps Jobs With a "PRO" Scripter...
Вставка
- Опубліковано 1 гру 2024
- Check out my asset store! (Free Stuff to!): shoprobuilder....
RoBuilder Games (second Channel): / @robuildergames8563
For weekly Asset Packs check out our Patreon!: www.patreon.co...
RoBuilder Discord
/ discord
RoBuilder Fan Shirt
www.roblox.com...
Thanks for watching! Discord -- / discord
Congrats Learning Scripting RoBuilder And Also I Love Your Videos Its So Insporational And It Always Makes My Day
theres a new ai in roblox helps beginners btw
@@_Sickk honestly I had no idea that existed and honestly I think it has the possibility to make it so you don't have to learn scripting (which is scary)
@Bubba Caudo no it's from roblox it self
in roblox studio
@@_Sickk how do i use it
@@_Sickk bro what is it?
You should make a channel with him where he teaches you how to script, that way we could also kinda learn alongside you
That would be fun
yes
Yeh I agree
Agreed
yeah!
I love how the scripter tried to help you by having his own idea and making the model work really easily when scripted with that idea, but you just do your own thing :D
For the teleporter I’m pretty sure it would be a lot better if you checked if the object that touched the part is a player and then instead of using MoveTo you could change the position of the HumanoidRootPart part inside the character, really good effort for a beginner.
Litterally does the same thing
The amount of confidence that the colors changing gives you is amazing
I like the way he scripts it's actually a unique way of thinking he actually has decent potential
Hes just using tutorials online.
Bro! I just saw you at Walmart like 15 mins ago. Love your videos!
Bro Is Truly The Greatest Scripter
Lol
As a scripter who had all but given up trying to persuade you to learn scripting this brings tears of joy to my eyes! You did so good too 😊
Good to see someone like you in this world mate, and no before you say, I am not a bot.
@@stuntfax9004 bot
@@stuntfax9004bot 😂
Awesome video! There is a special feeling when you code something and it's acatually works lol. Your question at the start about not quite understanding when and where to use spaces and periods is a really good question! It's important to learn the why rather than use period here, caps here etc, vs understand why you use it there. (I make a living teaching people how to code) If you ever want a free lesson for a video shoot me an email 👍
i cant code for the life of me
Am a scripter and i made a grave mistake as a noob not learning CFrame before learning anything the fact RoBuilder learned it faster and did it first is a impressive and good start!
More of these types of videos, these are fun to watch!
If you have any ideas for more videos like these let me know! I would love to make this a series!
@@RoBuilder Can u help me make a space pvp game I just started making it
@@musicdemon999no just no
5:21 very happy!
You're better than i was when i started too
You and gnome code really need to do a collab! It would be pretty epic but its really up to you and gnome code!
Here is a replica of a lua script that I made:
-- Define the two locations you want to teleport between
local startLocation = Vector3.new(0, 5, 0)
local endLocation = Vector3.new(10, 5, 0)
-- Define the teleport function
local function teleport(player)
-- Move the player to the end location
player.Character.HumanoidRootPart.CFrame = CFrame.new(endLocation)
end
-- Connect the teleport function to a trigger part
local portal = script.Parent -- Assuming the script is attached to a part
portal.Touched:Connect(function(other)
if other:IsA("Player") then
teleport(other)
end
end)
That is just a simple one
Yup that’s ez a
You can just put wait() and it will be a very small number
I commented in the sculpting video that you should make a vid where you try to script and you did! ❤
just put a hinge and set a certain setting to motor and it will spin the part attached to the hinge
Lol this video actually taught me a few things about scripting and that windmill thingy is so cool btw
Dot's are needed when you want to index something, or [name: string],
Instead of wait(n: number?) you can use the newest wait ( task.wait(n: number?) ) which runs 1/60 vs wait which is 1/30,
Capitals and Lowercases are needed because of how the functions were made
lets say we have a function here that print's Hello, World!
function Hello()
print('Hello, World!')
end
You would not be able to call the function Hello by using a lowercase h
hello() -- Error's
Hello() -- Prints Hello World
you can also use CFrame *= CFrame.Angles(x: number, y: number, z: number) -- Numbers will be in radians, convert the number to radians with math.rad(n: number)
if you have anymore questions, feel free to ask them below and I will try my best to answer them all 👍
for function* stuff you don't need to call the function? I didn't know I'm used to seeing like
function Hello()
print("Hello World!")
end
Hello()
@@breezy4500 What do you mean?
Lets go! you made my idea a video!! Keep up the good work!🥳
Tip: U cant go below wait(0.03), to do that use task.wait(0.0001) or whatever number you want!
so slow at typing scripts, but watching you script was kinda fun ngl
It would be cool if you did a video where you try to make a game in another game engine such as unity
Congrats to learing a little scripting in lua program language! I love ur vids 😀
If you want a better optimalized lua program to rotate that Union part use tweenservice and more wait like this >
while wait(2) do
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {CFrame = CFrame.fromEulerAnglesXYZ(2, 0, 0)}):Play()
end
you should really try to learn scripting
as a scripter I would love to see you script
I learned basic scripting from this video tysm this is so helpful
Hey just a tip, Collection Service is a good way of not making a crap ton of scripts. Roblox Documentation should have info on it
This was a really good video, thanks for making my day better!
I'm glad!
i am gonna call you Robilder now and forever i really like it
ngl even though the pls spin joke u thought wasn't funny I still laughed
idea: in the video where they do their original rolls, have an animation and camera angles set and a whole different world where they fly through the teleporter and in the middle is like this space magical world, and then fly out.
Like the daily videos, keep up the good work
You can fix double teleporting by creating new variable and make a if statement if variable == false and at beggining make that variable true and after teleport part wait 0.1 second and set variable to false.
yes so it dosent spam fire the function. basically a cooldown for debounce
yes pls make a game with robocrafter
I think "." Is used when you want to call a function
-me(a python user)
for ur first time making a portal i guess its decent, but yeah, you used a deprecated namecall "findFirstChild" its FindFirstChild, you didnt add a player table and do debounces with it and you should use CFrame instead of using Humanoid namecall "MoveTo" , instead of doing part.Parent:FindFirstChild("Humanoid") i prefer doing:
local PS = game:GetService("Players")
local players = {}
PS.PlayerAdded:Connect(function(plr)
players[plr] = false
end)
PS.PlayerRemoving:Connect(function(plr)
players[plr] = nil -- to prevent memory leak
end)
portal.Touched:Connect(function(Part)
if not Part:IsA("Part") then return end -- if its not a part it will not continue the function code
local plr = PS:GetPlayerFromCharacter(Part.Parent) or PS:GetPlayerFromCharacter(Part.Parent.Parent) -- just incase if the part is a bodypart or an accessory
if plr ~= nil and plr.Character ~= nil and players[plr] == false then
-- debounce is false and player's character is not nil
players[plr] = true
Plr.Character.HumanoidRootPart.CFrame = exit.CFrame
players[plr] = false
end
end)
very needed comment to a builder
nice you did that one guys idea
I started building 2 years ago and scripting 1 year ago, I used to forget to anchor everything, lol.
7:25 Yes, Putting a while loop with no wait in it is LETHAL, It could even crash your game.
Alternative title: RoBuilder feels like a God at scripting for 18 minutes
Very entertaining video, Can't wait for more! ❤❤❤
Thank you so much!!
New video less go
to make it face out of the portal, rotate the exit part, Its pretty easy..-
i really love this new format of videos!
"gacha gacha" 15:56
RoBuilder = RoScripter
It is the rise of the RoScripter
as a scripter good job you're a first learner
This is so funnny
It finally happend, good job :D
4:30 its "while wait()"
End if the script: "do"
Who's the "PRO" builder?
I hope you make more videos like this. Really good for your first time scripting. I would have coded the tp script like this:
local debounce = true
--the function when the player touches this part
script.Parent.Touched:Connect(function(hit)
--If it is a player
if hit.Parent:FindFirstChild("Humanoid") then
if debounce == true then
debounce = false
--Variables
local char = hit.Parent
local plr = game.Players:FindFirstChild(char.Name)
--Tp
char.HumanoidRootPart.CFrame = game.Workspace.Portal1.EndPart.CFrame
wait(0.5)
debounce = true
else
end
else
end
end)
local lastTouched = 0 -- Or the use of dictionaries for humanoid-specific debounces
script.Parent.Touched:Connect(function(hitObj)
local humObj = hitBp.Parent:FindFirstChildOfClass("Humanoid")
if (humObj and os.clock() - lastTouched > 2) then
lastTouched = os.clock()
script.Parent:PivotTo(Location) -- Teleporting
humObj:TakeDamage(50) -- Damaging
-- etc.
end
end)
Is an efficient way of handling debounces and timeouts for events.
@Seburrito nah it’s easier using cframe. Plus you don’t NEED everything the guy wrote such as the debounce
I'd replace
1. hit.Parent:FindFirstChild("Humanoid") with hit.Parent:FindFirstChildOfClass("Humanoid") with
2. All waits would be replace by task.wait()
3. Make the debounce return if its false
4. Get the plr using :GetPlayerFromCharacter(char)
But these are minor changes that barely speed up the script so it wouldn't make a noticeable difference.
5:54 you could do CFrame += cuz that's a smaller version
Nice video like always lol
can you make a racing game? or even better: a drifting game?
Rotation would be way easier than CFrame but I guess you did it
A easier way to do a function is: game.Workspace.Part.Touched:Connect(function(hit)
-code here
end)
The windmill was spinning the wrong Way 🥶
I'm not a scripter so I have no idea if this works but he could probably just rotate it or make it -0.1 (idk so don't judge me)
nice video and all but im here to let you know you misspelt "swapping" in your thumbnail you missed an p!
"robilder" beautiful 😭
1:48 i use the dummy for size all the time and i am -261 on a scale of 1 to 10 in building
How can i get hired to build in someones game?
Suggestion: You teach him how to build and he teaches you how to code
.1 is perfectly fine compared to 0.1, in fact, the shorter the script, the better and faster it runs
no you noob
So you're telling us, you do not know, how to script, and how to model, you just know how to build ? How do you make an optimised game if you don't know both then, cause you need both knowledge so everything can fit together
As a scripter i have one suggestion for the windmill next time you should use runservice but you did great for your first time! :D
Thanks for the tip!
Legendary
You did really well as a scripter
Good job
No he didnt
I DROPED A LIKE FOR THAT VIDEO YOU PROMISSED, ILL BE WAITING...
Nice job at scripting, RoBuilder!
bro i remember when u were intelplayz, time moves so fast bro
U got 3x 500 Likes+ XD
Thank you for pinning my last comment legend!
As a scripter, this video makes me annoyingly mad. But great video robuilder
why?
@@HolySlap112 he does alot of mistakes
@@blackus2k oh ok
Nice vid keep up the good work
bruh i am a scripter and this made me rage a little
but this is a good start to be ahonest
Bro im not even a good builder but ok heres how you make the windmill spin correctly, make it spin on the z axis, and group the union and a an invisible part the the moddle, sitting upright and set the groups primary part to that part in properties. Ez
If you want to know if there a error in a script look for a red under line
''robilder'' thats what we should call u now XDDDDD
game:GetService("Players").PlayerAdded:Connect(function(player)
local hrp = player.Character:FindFirstChild("HumanoidRootPart")
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hrp.Position = game.Workspace.Part.Position -- Replace teleport part with part. this text will not be used in the script.
end
end)
end)
-- Script Complete For The Portal Script
W video
Ya better in scripting than me-
i like how how half his teleport script literally does nothing the checking if humanoid does nothing and either his friend is just being nice or is clueless to
i am a scripter and a builder and looking at him figuring out what to do is fun
One of my fav vids ever
me: spends 10 hours scripting
Robuiler: 56 minutes is all i need to be better >:)
this is like mumbo jumbo and grian of roblox
3:36 yes there is a better way of doing it and no I don’t know any of either
Hello I want to script on roblox studio but I am so confused how did you learn how to script very well? 😅
script.Parent *= CFrame.Angles(.1, 0, 0)
task.wait() -- just better, and you dont need the number
once you exit a script you can start and you can start while in a script
If you're learning scripting, make sure to make a new channel called RoScripter after you learn scripting! ;)
As a developer, the way he made those scripts..........
Not me thinking it should be orientation
Im a beginner scripter and i was laughing so hard when i saw his scripts
I want to see you guys make a game. it would be legendary
Tbh you kinda look like one guy in Linus tech tips I think he’s called Jake or something
epic
Hey rebuilder you should make a pair of pants for the jacket you made in the tutorial for it and put it on the group as well