Ad
Log in to vote
0

How do I make it so once a part is touched, another part appears?

Asked by 12 days ago

I just wondered whether anybody could help me with my problem, in my game I’m working on I’d like to make it, once you have touched one part another part appears and becomes available, the game is that you spawn in a public toilet and discover a crack in the wall, the only problem is, is that I want people to go into the crack in the wall before they go into a toilet stall and teleport into the sewers! Let me know if you can help!

1 answer

Log in to vote
0
Answered by 12 days ago

Put this script inside of a part.

script.Parent.Touched:Connect(function(otherPart)
    if otherPart.Parent:FindFirstChildWhichIsA("Humanoid") then
        local newPart = Instance.new("Part")
        newPart.Parent = game.Workspace
    end
end)
0
Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer. sata5pa3da 264 — 11d
0
Do I put this in the part that you click or do I put it in the part that appears? PiggBlxx 2 — 11d
Ad

Answer this question