Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone explain why a one way door needs 2 parts to it?

Asked by 10 years ago

Like there are 2 bricks that make up the door Also a yes a no question.. Can "Instance.new " be used to change maps for a game, if no then what is used to make a map change

2 answers

Log in to vote
0
Answered by
Azarth 3141 Moderation Voter Community Moderator
10 years ago

You don't need two bricks.

script.Parent.Touched:connect(function(hit)
    if hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) then
        local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
        local char = plr.Character
        local tor = char.Torso
        tor.Velocity=script.Parent.CFrame.lookVector * 100
    end
end)

'Can "Instance.new " be used to change maps for a game, if no then what is used to make a map change'

Instance.new() creates objects, anything you can see in the object browser. You can use InsertService to insert maps and other models that you or the user ROBLOX own.

Ad
Log in to vote
0
Answered by 10 years ago

The common one way door require 2 part since the first part serves as the trigger for itself and the second part which is the blocker. The blocker will prevent you to activate or go in the door once more.

Instance.new is used to create an object using its class name. You may use the ServerStorage to store a map and clone it into the workspace with a script.

I hope that helps!

Answer this question