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

How would I weld the player to the bottom of an elevator?

Asked by 3 years ago

i'm making an elevator and I need the players to be welded onto it and I can't figure out how I do that

2 answers

Log in to vote
0
Answered by 3 years ago

You first need to understand how welds work. A weld has 2 "attachments" called Part0 and Part1. So for example lets say we want to weld PartA with PartB, we put the weld object in lets say PartA, and we set the weld's Part0 as PartA and the weld's Part1 as PartB, they will get welded.

local PartA = workspace.Part1
local PartB = workspace.Part2
local weld = instance.new("Weld")

weld.Parent = PartA
weld.Part0 = PartA
weld.Part1 = PartB

--Both parts are welded.

Now using this try to weld the character to the elevator's floor.

Ad
Log in to vote
0
Answered by 3 years ago

You probaly wanna do sum like BottomOfElevator.Touched:Connect(function(hit) then find the player and weld them to the bottom

Answer this question