10-18-2010, 12:33 AM
(This post was last modified: 10-18-2010, 12:33 AM by Jacob__mybb_import1.)
It should be:
or
The second argument is a function, not just a piece of code.
Code:
link(script.Parent.selected,
function()
cam.FollowObject = car
cam.ScaleFactor = 50
end)
or
Code:
function onSelected()
cam.FollowObject = car
cam.ScaleFactor = 50
end
link(script.Parent.selected, onSelected)
The second argument is a function, not just a piece of code.