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

Why doesn't this work?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
Player = game.Players.LocalPlayer
function Close()
    local Play = script.Parent
    Play.Visible = false
    local cam = game.Workspace.CurrentCamera
    cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
    cam.CameraType = "Custom"
    script.Parent.Parent.Parent.Camera.Disabled = true
    Player.TeamColor = BrickColor.new("Really red")
    Player:LoadCharacter()
end
script.Parent.MouseButton1Click:connect(Close)

Tried to make a team changer gui, however it doesnt work

any ideas?

0
Errors? Shawnyg 4330 — 8y
0
Try setting the CameraType before the CameraSubject. That might work. SynphonyKnight 85 — 8y

Answer this question