Hi guys I'd like to weld a part called "Ring" to player legs.
1 | if 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?
I guess you want something like this?
01 | v.fly.Value = true |
02 | local t = game.Workspace.Rest.Ring:clone() |
03 | t.Parent = game.Workspace |
04 |
05 | local w = Instance.new( "Weld" , v.Character.Torso ) |
06 | w.Part 0 = w.Parent |
07 | w.Part 1 = t |
08 | w.C 0 = CFrame.new( 0 , - 3 , 0 ) |
09 |
10 | local copy = game.Lighting.FlyScript:clone() |
11 | copy.Parent = v.Backpack |
12 | copy.Disabled = false |
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