User talk:Anaminus/Script:Welder

From Legacy Roblox Wiki
Revision as of 04:05, 7 August 2008 by >Kaze
Jump to navigationJump to search

This script is a little defective... You need to change

script.Parent.Parent:FindFirstChild(script.Parent.Name)

To

c = script.Parent.Parent:GetChildren()
for a = 1, #c do
if c[i].className ~= "Model" then return end
--Script
end

It's safer, and less 'breakable'. Since the FindFirstChild() function finds the FIRST CHILD, which in this case seems to be a part, it doesn't work. It tries to weld the script to the brick, which is impossible.


--Kaze 23:05, 6 August 2008 (CDT)