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 9 years ago

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

1if chat:lower() == "fly" and checkadmin(v) and v.onstand.Value == true and v.fly.Value == false then
2        v.fly.Value = true
3        t = game.Workspace.Rest.Ring
4        copy = game.Lighting.FlyScript:Clone()
5        copy.Parent = v.Backpack
6        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 9 years ago

I guess you want something like this?

01v.fly.Value = true
02local t = game.Workspace.Rest.Ring:clone()
03t.Parent = game.Workspace
04 
05local w = Instance.new( "Weld",  v.Character.Torso )
06w.Part0 = w.Parent
07w.Part1 = t
08w.C0 = CFrame.new( 0, -3, 0 )
09 
10local copy = game.Lighting.FlyScript:clone()
11copy.Parent = v.Backpack
12copy.Disabled = false
0
Yes Thank You! Dominqx 0 — 9y
Ad
Log in to vote
0
Answered by 9 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