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

How to make if 3 players sit on a sofa, it teleports them?

Asked by
jjjona1 -1
2 years ago

Hello, I'm a beginner scripter and I'm stuck on making this sofa.

Script:

  local Seat1 = game.Workspace.Seat1

    local Seat2 = game.Workspace.Seat2

     local Seat3 = game.Workspace.Seat3

     Seat1 and Seat2 and Seat3.Touched:Connect(function(hit)

        if hit and hit.Parent:FindFirstChild("HumanoidRootPart") then

        hit.Parent.HumanoidRootPart.CFrame = CFrame.new(0, 0.5, -14)

           end
    end)

1 answer

Ad

Answer this question