Simple Transportation System!

This is a Simple Transportation System made using bodyposition

by XX_XXFRIED

Author Avatar

First of all

HI There I hope your having a good day. If not I hope this improves it and also I dont have the best english as it isn't my first langauge, so please excuse that.

Now We get to the scripting part

First

Open Up Roblox Studio

Add A Part

Then Scale it to 5,1,5

make sure its anchored and CanCallide

should look like this

img|80x45

then

add in a script and folder and

put a praticle emitter inside the folder

name it whatever

img|80x45

open up the script and type this


local con = script.Parent.con
-- con = the folder inside our part 

function onTouched(hit)
 
    local char = hit.Parent
    if char and char:FindFirstChild("Humanoid") then
        local trail = con:FindFirstChild("Name Of your particle"):Clone()
        trail.Parent = hit.Parent:FindFirstChild("HumanoidRootPart")
 - change this to whatever u want
        local b = Instance.new("BodyPosition")
        b.Position = Vector3.new(position of your part)
 --raise the Y axis by 10 or 5 
        b.MaxForce = Vector3.new(6000000000, 6000000000, 6000000000)
        b.Parent = char.HumanoidRootPart
        game.Debris:AddItem(trail, 2.5)
 -- the trail lasts for 2.5 seconds
        wait(3)
 -- how long the player stays in the air after reaching the position
        b.Parent = nil
 --the player will now drop
    end
end

script.Parent.Touched:Connect(onTouched) -- basically telling the function to play

tell me if I made any spelleing mistakes in the comments and if it dosen't work write the error you get in the output

thanks for reading and I hope you learned a thing or two

singed, X

View in-game to comment, award, and more!