Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago
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

Log in to vote
0
Answered by 4 years ago

Isnt it workspace.CurrentCamera? Not workspace.Camera.

0
I used CurrentCamera before but since it's not working I tried Camera only since I never mess around camera. eromusics 10 — 4y
Ad

Answer this question