OK so basicly i want a tool that i can give to everyone in starter pack that lets you view a single security camera(a model of blocks and cylinders) for example its a show and you want a good view so you use the camera tool, im a noob at scripting so its probably not possible but if youve read this all thanks an answer would be appreciated :D
✓ ANSWER ACCEPTED
Is there a way to make a security camera tool?
1 answer
✓ Accepted answer
I created this just now, to show you an example. Made on a blank basepate, I used a part in workspace, a Tool with a Handle in starterpack w/ 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 CameraChange = workspace.CameraChange -- CameraChange is a Part.
local Player = game.Players.LocalPlayer
local Viewing = false
Tool.Activated:Connect(function()
if Viewing == false then
Camera.CameraSubject = CameraChange
Viewing = true
elseif Viewing == true then
Camera.CameraSubject = workspace[Player.Name]
Viewing = false
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
