Hello, i was wondering how to make a Camera Tool with i think CFrame (basically a when you equip the tool the camera goes to the block) I dont know anything about scripting so it would be helpful if someone could help me.
COMMUNITY QUESTION
Camera Tool? Camera goes to a brick
2 answers
Ey I found a solution to mine, so give me credit. when you make the variable for the tool for example
cameratool = game.StarterPack.CameraTool
what you need to put is
cameratool = script.parent
Make a Tool with a Handle in starterpack with a LocalScript inside containing the following:
local Handle = script.Parent -- the tool's handle
local Tool = Handle.Parent -- the handle's parent
local Camera = workspace.CurrentCamera -- CuurentCamera refers to the camera being used, which is the camera the player is using to see around them.
local Me = workspace.Me -- Me is a Part.
local Player = game.Players.LocalPlayer
local Viewing = false
Tool.Activated:Connect(function()
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = game.Workspace.Me.CFrame
if Viewing == false then
Camera.CameraSubject = Me
Viewing = true
elseif Viewing == true then
Camera.CameraSubject = workspace[Player.Name]
Viewing = false
Camera.CameraType = Enum.CameraType.Custom
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
ur copying me
Lol, i when i made this i saw your thing XD
Search up Camera Manipulation in roblox wiki and they got u covered.