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

How to weld this?

Asked by 8 years ago

Hi guys I'd like to weld a part called "Ring" to player legs.

if chat:lower() == "fly" and checkadmin(v) and v.onstand.Value == true and v.fly.Value == false then
        v.fly.Value = true
        t = game.Workspace.Rest.Ring
        copy = game.Lighting.FlyScript:Clone()
        copy.Parent = v.Backpack
        copy.Disabled = false   

It should look like player is flying on the part, Can You please help me?

2 answers

Log in to vote
0
Answered by 8 years ago

I guess you want something like this?

v.fly.Value = true
local t = game.Workspace.Rest.Ring:clone()
t.Parent = game.Workspace

local w = Instance.new( "Weld",  v.Character.Torso )
w.Part0 = w.Parent
w.Part1 = t
w.C0 = CFrame.new( 0, -3, 0 )

local copy = game.Lighting.FlyScript:clone()
copy.Parent = v.Backpack
copy.Disabled = false
0
Yes Thank You! Dominqx 0 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

If you want to learn more about welding and how to weld things yourself watch this video, it taught me how to weld things.

https://www.youtube.com/watch?v=eBMWLUAgNMs

note: I wanted to post this as a comment and not as an answer but I didn't see where comment reply was

Answer this question