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

Command based issues?

Asked by 9 years ago

Basically, I'm making a command based hologram by myself..And I've got the inserting map command working, but there was an issue. The issue is when I use the command, it loads the maps and the two teams. But once I use a admin command script to change my team to red or blue. The team suddenly gets removed from the team folder..What did I do wrong?

The admin commands I use is from Kohl's Server Epix Suite. I'm not to this issue because it have always worked fine as a gui function.

01local isAdmin = {["Titanshield"] = true, ["Player1"] = true, ["Player"] = true}
02 
03function Map1(message, player)
04    if message == "//load map1" and isAdmin[player.Name] then
05 
06------------------------------------------------------------------------------------       
07        Instance.new("Hint").Parent = game.Workspace
08        game.Workspace.Message.Text = "Loading..Map1"
09        wait(2)
10        game.Workspace.Message:Destroy()
11        game.ServerStorage.Map1:clone().Parent = game.Workspace
12------------------------------------------------------------------------------------
13        local b = Instance.new("Team")
14        b.Parent = game.Teams
15        b.AutoAssignable = false
View all 34 lines...

Answer this question