05-21-2011, 09:42 AM
-- I don't get any output
Tool = script.Parent
function Change©
if C == p then
if Tool.Parent.Parent.Character.Body.Layer ~= 0 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Character.Body.Layer-1
end
elseif C == l then
if Tool.Parent.Parent.Character.Body.Layer ~= 2 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Character.Body.Layer+1
end
end
end
link(Tool.KeyDown, Change)
Tool = script.Parent
function Change©
if C == p then
if Tool.Parent.Parent.Character.Body.Layer ~= 0 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Character.Body.Layer-1
end
elseif C == l then
if Tool.Parent.Parent.Character.Body.Layer ~= 2 then
Tool.Parent.Parent.Character.Body.Layer = Tool.Parent.Character.Body.Layer+1
end
end
end
link(Tool.KeyDown, Change)