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

I have a Main Menu Script when i spawn in i cant game?

Asked by 5 years ago

-- Contstants --

local Camera = game.Workspace.CurrentCamera local Player = game.Players.LocalPlayer

-- Camera -- repeat wait() until Player.Character

Camera.CameraType = "Scriptable" Camera.CFrame = game.Workspace.CamPart.CFrame

script.Parent.Enabled = true

local MasterControl = require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("ControlScript"):WaitForChild("MasterControl"))

MasterControl:Disable()

--Main--

script.Parent.Spawn.MouseButton1Click:connect (function () script.Parent.Enabled = false Camera.CameraType = "Custom"

function setTeam(player, teamName) player.TeamColor = game.Teams[teamName].TeamColor if player.Character then
end end

for _, player in pairs(game.Players:GetPlayers()) do setTeam(player, "Gangster") ---- Change this to the team you want them to be on once they are done customizing their character end

local MasterControl = require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("ControlScript"):WaitForChild("MasterControl"))

MasterControl:Enable()

end)

0
did u copy this User#23365 30 — 5y
0
Put in code block, and this is probably copied Bloxulen 88 — 5y

Answer this question