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

Why can' I set my camera manipulation back to custom?

local p = script.Parent.Parent.Parent.Parent.Parent.Name
	local Camera = game.Workspace.CurrentCamera
	 
	script.Parent.MouseButton1Click:Connect(function()
	    game.Players[p].TeamColor = BrickColor.new("Really red")
	    game.Workspace[p].Humanoid.Health = 0
	    script.Parent.Parent.Parent.Enabled = false
	    Camera.CameraType="Custom"
	end)

Any idea? I put this script inside a button which acts like a play button where we click the button it will bring us to our team and the play button will disappear and the camera is back with our character. I'm sure my script is correct.

1 comment

0

Don't use strings for enum values. Use Enum.CameraType.Custom.

1 answer

Never mind I found the reason why. It's because I make it in Script not Local script.

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