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

Can anybody show me how to script like welding? Or can somebody help me with my cafe?

Asked by
Ron1Ronja -17
6 years ago

I just want somebody to script my cafe, I wanna be done so everyone will be happy! <3 The problem is that everybody is saying no to me! And I don't know how to script. It would be great if someone learned me. But please help me! It is not that easy.

0
This is not a place to ask people to script for you.. User#20388 0 — 6y
1
If everybody says no to you here, it’s because this isn’t the right place to ask. Ask here instead -> https://forum.scriptinghelpers.org/category/7/collaboration-requests User#20279 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

An easy welding script to follow:

function Weld(p1, p2) -- Defines 2 parameters, parts 1 & 2
    local w = Instance.new("Weld", game.JointsService)
    w.C1 = p1.CFrame:toObjectSpace(p2.CFrame) -- Defines the weld's CFrame
    w.Part0 = p1 -- 1st part
    w.Part1 = p2 -- 2nd part
end
Weld(game.Workspace.Part1, game.Workspace.Part2) -- Call the function
Ad

Answer this question