I'm making a camera for a Tool and if that Tool is picked up by another player, you can see the Tool still.

I got the ball working, but I don't know how to identify the tool if it's inside the player model.

ball = workspace.Flickball:FindFirstChild("Handle")

num = 1
if ball then
	script.Parent.Selected:connect(function (mouse)
	mouse.Button1Down:connect(function ()
	game.Workspace.CurrentCamera.CameraSubject = ball
	game.Workspace.CurrentCamera.CameraType = "Track"
		if num >= 6 then
		num = 1
		else
		num = num + 1
		end
	end)
	end)
else
	script.Parent.Selected:connect(function (mouse)
	mouse.Button1Down:connect(function ()
	game.Workspace.CurrentCamera.CameraSubject = workspace.
	game.Workspace.CurrentCamera.CameraType = "Track"
		if num >= 6 then
		num = 1
		else
		num = num + 1
		end
	end)
end)
end
script.Parent.Deselected:connect(function ()
game.Workspace.CurrentCamera.CameraSubject = script.Parent.Parent.Parent.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
num = 1
end)

This is what I have

game.Workspace.CurrentCamera.CameraSubject = workspace.

I need to fill this in. It has to be the Player's model in the workspace, but I cannot identify it. I just don't know how.

1 comment

0

Player's character will always be in Workspace. (workspace.PlayerName)