I made this script so when you touch a characters torso (a character in my game) a camera will appear attached to them. It doesnt work, which to be honest im not suprised by. The output wont tell me whats wrong so i was hoping you guys could take a look? Im still a very weak scripter so theres probably LOADS wrong with it.
function onTouched(hit)
Cam = Instance.new("Camera")
Cam.Parent = hit.Parent
Cam.CameraType = "Attach"
Cam.CameraSubject = game.Workspace.Terry.Torso
end
script.Parent.Touched:connect(onTouched) |