|
| 25 Jan 2015 07:30 PM |
script.Parent.Touched:connect(function(hit) local h=hit.Parent:findFirstChild("Humanoid") local weld=Instance.new("Weld") if h then script.Parent.Anchored = false weld.Parent = h.Parent weld.Part0 = h.Parent.Head weld.C = CFrame.new = CFrame.new(0,0,0) weld.Part1 = script.Parent weld.C1 = CFrame.new = CFrame.new(0,0,0) end end) |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2015 07:31 PM |
| this is my first weld script i wana know if theres any errors. Reply if you know how to fix it idgaf about your opinions. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 26 Jan 2015 09:14 AM |
| no but my studio is glitchy and 1 error might crash it. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2015 10:04 AM |
weld.Parent = h.Parent.Head -- doesn't matter a ton, but this is how it's normally done weld.Part0 = h.Parent.Head weld.Part1 = script.Parent weld.C0 = CFrame.new = CFrame.new(0,0,0) -- C0, not C weld.C1 = CFrame.new = CFrame.new(0,0,0) |
|
|
| Report Abuse |
|
|
| |
|