Hey guys I'm Gamer M8 and welcome back to a new video. Today I'm back inside
Roblox Studio and today I'm going to be
showing you how to make your very own speedrun
game inside Roblox. So first thing is
if we actually add in a part so this is
going to be the main spawn area to make
sure this part is anchored and then you
can pick what color you want so mine is going to be green. Then in my speedrun game
I'm just gonna be making my part quite
tall and quite big like that. Then what
we can do is rename this part to spawn
point just so we know this is the actual
spawn area so now once we click play
we won't actually spawn in this part so what
we need to do is click model, spawn and add in this spawn location and
inside Explorer click the spawn
location change transparency to one then
can collide off and then if you want we
can just change the forcefield duration
to zero I also make sure neutral is on
and then if you open up the spawn
location and remove the decal then we
should just have this invisible spawn
point if clicks play and then then we should spawn on this
platform here we go so you can see I'm on this platform now of click stop
now we can start building
our map so what we can do is duplicate this
part rename it to platform
and then we can just start building our
map
so this is gonna be my level one you can
make yours look way more detailed
if you want but before we actually carry on I'm just going to quickly add in
a new part and then this is going to be
the border so players can't actually just
escape the map this time let's  make it blue but then make
sure it fills the entire map also make
sure they are anchored so they just don't fall over
there you go
and then we can just rename these to
invisible wall. And then the last
thing I'm gonna be doing is adding a part
and then this is going to be the lava or
water or whatever you want to call it so
this is where if a player falls into it
then they die so just make sure this
fills the entire map
so what we're going to be doing is change the colour so let's make it orange so
people know it's lava so then let's
rename it to lava like that and now what
we can do is this group this map
make sure it's all anchored then we can
name this to "map one" but what you need to do it's actually start scripting so
add another part which is going to be
the speed brick we can change
colour and also the size there we go
so colour let's make it
yellow and then we can also rename is
part to "speed giver" once again we could
drag this inside "map one" so inside this
part we can add in a script remove "print
hello world" and then what we could do is
function on touch brackets and then in
betweens brackets we can  do hit you
press enter
they can see a new end should appear then what we need to do is local humanoid
equals to hit dot parent : find first
child bracket speech marks and then we
can do humanoid like that if you go down
we can do humanoid dot walk speed
equals to and then because the normal
play speed is 16 I'm going to be doing
32 then last thing we need to do is
go down twice and do script dot parent.touched
connect then two brackets. In between these brackets we can
do on touch which is this function here
and then if we close off our script click
play and then we should be able to touch
it and get faster speed
okay so once we spawn in we can touch it
I can see we're slightly faster so I
need to figure out if it's going to be possible, oh it might be let's just see. O Okay so
let's quickly just change the speed  because it's too slow let's do it to 50
okay that should do it so let's go and
click play
then touch it you can see we're slightly
faster let's see if we can actually
complete this map here we go
so you can see that I've finished the
map all we need to do now is make the portal and the lava kill you so let's do the
quick lava so inside the part we can add
in a script once again inside it we can
do function on touch like the last script and then brackets hit go down once again then we
can do local humanoid equals to hit dot
parent :
find first child once again bracket speech
marks then Humanoid
so what you need to do now is humanoid dot health equals to 0 then underneath this
end is script dot parent dot touched connect and then on touch then close off the
script click play and once we jump into
the lava we should be able to actually
die and respawn back onto this spawn
point so if we jump off then you can see we die
and once we respawn that we should spawn
back onto this platform like this and
then we can complete the obby again
so once again you can see once we jump off then we die so now that's working all
we need to do now is quickly make the
end portal so this is the end here let's
just rename it to end platform to finish
platform
and then if you already have a portal
then you can just skip this part out I am
going to be quickly building a portal
I'm gonna be making it blue and neon
actually let's make it yellow then
quickly build a frame once again make
sure it's anchored then we can quickly
group this model together name it to
portal then we need to actually find
the middle one which is this, we can
name this to teleport part inside of it once again add a script but
before we do that we need to actually
just drag this portal into map one so
inside the script in the script once
again we can remove print hello world and
do function on touch brackets and then
hit so this is gonna be similar to the
last two scripts I just did and then we
could do local humanoid equals to hit
dot parent find first child and bracket
speech marks humanoid and this time we
can do if  humanoid doesn't equal to nil then once again go
down and a new and should appear and this time can do humanoid torso dot CFrame
equals Cframe dot new and
then we need to put our position in
between these brackets in a second but before we do that over we can go down
twice on the end
and then do script dot parent dot touched
connect and then on touch
so now what I'm going to do is quickly find
the position so I'm gonna add in a part lift it above the air so
players don't glitch in to the floor scroll down copy the position and
then back inside your script and paste it in make sure your in between brackets as well
and then if we test it so play here we
walk into it and then you can see I've
teleported back to the beginning and
guys that's gonna be it for today's
video. If this video helped make sure to
LIKE comment and subscribe down below
In the description make sure to check my Roblox group and Discord server and I'll see
you later
bye
