Make a SIMPLE Conveyor Belt | Roblox Scripting Tutorial

  Рет қаралды 5,813

MacAndSwiss

MacAndSwiss

Күн бұрын

Пікірлер: 38
@MacAndSwiss
@MacAndSwiss 4 жыл бұрын
Here are the finished scripts! Disclaimer: Please try to follow along in the video and create the scripts yourself before resorting to copy+pasting. The only person that you're cheating is yourself. --Conveyor Belt script.Parent.Velocity = script.Parent.CFrame.LookVector * 5 -- --Click Detector local ClickDetector = script.Parent.ClickDetector ClickDetector.MouseClick:Connect(function(player) local Item = player.Backpack:FindFirstChild("Tool") Item.Parent = script.Parent Item:FindFirstChild("Handle").CFrame = script.Parent.CFrame + Vector3.new(0,3,0) --Make sure that everything is held together for _, part in ipairs(Item:GetDescendants()) do if(part:IsA("BasePart") or part:IsA("MeshPart")) then part.CanCollide = true end end -- end) -- --Weld/Tool for _, part in pairs(script.Parent:GetDescendants()) do if(part:IsA("BasePart") or part:IsA("MeshPart")) then local NewWeld = Instance.new("WeldConstraint") NewWeld.Part0 = part NewWeld.Part1 = script.Parent:FindFirstChild("Handle") NewWeld.Parent = part end end script.Parent.Equipped:Connect(function() for _, part in ipairs(script.Parent:GetDescendants()) do if(part:IsA("BasePart") or part:IsA("MeshPart")) then part.CanCollide = false end end end) --
@profloth270
@profloth270 3 жыл бұрын
MacAndSwiss please do a new tutorial bc the surface option isn't available now so please help me
@profloth270
@profloth270 3 жыл бұрын
I can't find the 'surface' in properties
@kevgaming222
@kevgaming222 2 жыл бұрын
I have a problem, when i press the button, my luggage wont come out.
4 жыл бұрын
amazing video!
@wythernz765
@wythernz765 4 жыл бұрын
I can’t see surfaces in properties ;-;
@MacAndSwiss
@MacAndSwiss 4 жыл бұрын
Yeah, they removed it. One way you can kinda figure it out is to use a surfaceUI on the front
@wythernz765
@wythernz765 4 жыл бұрын
MacAndSwiss thanks. I used that earlier after noticing but thanks for the suggestion!
@cyan5454
@cyan5454 4 жыл бұрын
@@wythernz765 Hey how to use it same problem pls reply
@profloth270
@profloth270 3 жыл бұрын
@@MacAndSwiss how i don't understand can you do a video ?
@blueas958
@blueas958 3 жыл бұрын
Wow!!!!!!!! This is useful for my upcoming story game! Thank you!
@SwissAviator
@SwissAviator Жыл бұрын
i think roblox updated roblox studio because you can no longer change the surface to a motor for some reason, could you make a new video or tell me how i can add a motor with updated version
@Pineyyyyy
@Pineyyyyy 7 ай бұрын
anchor the part and insert this into the script. local ConveyerSpeed = 14 -- Change this to how ever fast you want your conveyer to move while true do script.Parent.Velocity = script.Parent.CFrame.lookVector *ConveyerSpeed wait(0.1) end
@SwissAviator
@SwissAviator 7 ай бұрын
@@Pineyyyyy tysm
@Omosha61
@Omosha61 4 жыл бұрын
Wow! I am Korean. I learned well after watching your video. Thank you for uploading the video.
@profloth270
@profloth270 3 жыл бұрын
how to make the baggage item
@frenchfries4294
@frenchfries4294 4 жыл бұрын
Hi can u do a plane storage tutorial like u put it in ur plane and then click it to place the suitcase and also be able to pick it up again when clicked
@aviamud
@aviamud 3 жыл бұрын
Hi there. I just saw this. I'm gonna make that a model, and i'll reply to this comment with it.
@OrionHartwick
@OrionHartwick 4 жыл бұрын
Thanks so much, Subscribed and liked
@haxelux31
@haxelux31 3 жыл бұрын
But how to send this baggage to another airport in same game
@pieroalexis1014
@pieroalexis1014 Жыл бұрын
paying robux
@louiseking1756
@louiseking1756 3 жыл бұрын
I have a error which says ‘attempt to index nil with parent’ on line 5 can anyone help?
@MacAndSwiss
@MacAndSwiss 3 жыл бұрын
A couple of things that might be the issue: - "index nil with parent" means that you're trying to get the parent of nil, or something that doesn't exist. You might wanna double-check the object or whatever you're trying to get, and make sure things are spelled correctly. - Getting the parent of something is Parent with a capital P (just in case)
@louiseking1756
@louiseking1756 3 жыл бұрын
I’ve checked the spelling of ‘Suitcase’ and it’s the exact same. I have added all my Parents with a capital P. Still doesn’t work :/ Edit: It’s now worked but I’m not able to say SuitCase now it has to be called tool. Is there a way that when clicked on Click part the suitcase is on its back instead of up straight?
@jaydensantiago9035
@jaydensantiago9035 4 жыл бұрын
it didnt work for me it was moving everything on the floor. and it was moving the wrong way.
@MacAndSwiss
@MacAndSwiss 4 жыл бұрын
Make sure that the part (and stuff touching it) are either anchored or welded to an anchored part. As for the moving the wrong way part, make sure that the conveyor is facing the right way (check to see which side is the "front").
@Devingx
@Devingx 4 жыл бұрын
@@MacAndSwiss I can't seem to find a plug-in that let's you see the front or back
@Buddy_Playz
@Buddy_Playz 4 жыл бұрын
@@Devingx Go to properties, scroll all the way down and go to Surface.
@Cedricx
@Cedricx 4 жыл бұрын
Can you script things on my tech company?
@MacAndSwiss
@MacAndSwiss 4 жыл бұрын
Unfortunately, I'm busy with school and other things right now so I'm not taking on any additional jobs.
@PinguPlays
@PinguPlays 4 жыл бұрын
can u put script in comments
@Gxdurf
@Gxdurf 2 жыл бұрын
Now i have made this now i need a baggage claim
@SkyfromJapan
@SkyfromJapan 4 жыл бұрын
Give me script
@PinguPlays
@PinguPlays 4 жыл бұрын
Ok. thx for answer me with this vid
@yellow_bloxplayz8720
@yellow_bloxplayz8720 4 жыл бұрын
me thinking you had a few hunderd k subs
@MacAndSwiss
@MacAndSwiss 4 жыл бұрын
Hit that subscribe button and maybe that can be real one day 😉
@mu33ins74
@mu33ins74 4 жыл бұрын
I DM you on discord please look thanks :)
@sunsarbrilem
@sunsarbrilem Жыл бұрын
Learn piano
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
How pro Roblox developers learnt to script
10:03
AlvinBlox
Рет қаралды 872 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Reviewing ALL of my airports that I've made!
12:44
jayiiful
Рет қаралды 13 М.
Create Life From a Simple Rule
14:37
Brainxyz
Рет қаралды 795 М.
Essential UI Tips & Tricks | Roblox Studio
9:19
Stewiepfing
Рет қаралды 90 М.
Roblox Animated Conveyor Belt Tutorial | Roblox Studio
14:44
CyberCreator
Рет қаралды 25 М.
Can you make a VR game in Scratch? (devlog #1)
10:00
STEM MC
Рет қаралды 105 М.
5 Golden Rules of Game Cards Graphic Design You MUST OBEY
11:27
Dave Jeltema
Рет қаралды 171 М.
choosing a game engine is easy, actually
15:08
samyam
Рет қаралды 664 М.
Training an unbeatable AI in Trackmania
20:41
Yosh
Рет қаралды 15 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН