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

Why is my camera still at "camera manipulation" with this?

local p = script.Parent.Parent.Parent.Parent.Parent.Name
local Camera = game.Workspace.Camera

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)

What's wrong with my script? I make this script so when I click for example red team I will change to red team and spawn at the red team with the camera on custom.( camera like we usually play ) But I'm still stuck at the camera manipulation. And I also "change to red team and spawn at the red team" because I have ( red,blue,neutral ) neutral is the assigned team when joining the game so we pick the team later after main menu. By the way the camera manipulation is for the main menu.

1 answer

Isnt it workspace.CurrentCamera? Not workspace.Camera.

1 comment

0

I used CurrentCamera before but since it's not working I tried Camera only since I never mess around camera.

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