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

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

Asked by 4 years ago

This question has been solved by the original poster.
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.

0
Don't use strings for enum values. Use Enum.CameraType.Custom. Fifkee 2017 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

Ad

Answer this question