Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Any ideas on why my camera script wont work event when I followed all instructions?

Anyone know why this camera script wont work? My friend supplied it and it worked for him, I followed every instruction he gave me yet it wont work at all.

local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer






repeat wait() until Player.Character

Camera.CameraType = "Scriptable"
Camera.CFrame = game.Workspace.CameraPart.CFrame
script.Parent.Enabled = true

local MasterControl = require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("ControlScript"):WaitForChild("MasterControl"))

MasterControl:Disable()










script.Parent.Spawn.MouseButton1Click:connect (function ()
	script.Parent.Enabled = false
	Camera.CameraType = "Scriptable"
end)

1 comment

0

waht view u tryna get?

1 answer

localscript in StarterPlayerScripts u can play with the Vector3.new(0, 40, -9) for different views this will give 1 error then work perfectly fine

local Camera = workspace:WaitForChild("Camera")

local Player = game:GetService("Players").LocalPlayer

game:GetService("RunService").RenderStepped:Connect(function()
	if Camera then
		Camera.CameraType = "Scriptable" 
		Camera.CFrame = CFrame.new(Player.Character:WaitForChild("HumanoidRootPart").CFrame.p + Vector3.new(0, 40, -9), Player.Character:WaitForChild("HumanoidRootPart").CFrame.p)
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.