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

I made a team change gui, and it works in solo test mode, but not in servers?

Asked by 7 years ago

I tried making a simple team change gui that obviously changes your team.

Here is the local script for one of the buttons:

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
    player.TeamColor = BrickColor.new ('Bright blue')
    player.Character.Humanoid.Health = 0
end)

It was working a couple days ago but now it isn't.

0
I don't know what's wrong with it, I tested it myself and it worked fine. Is Filtering Enabled on? BaconMan1455 4 — 7y
0
Is it on Localscript or Script? This has to be on a Localscript I believe. RjsMc 48 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

A few things, 1. Make sure FilteringEnabled in workspace is turned off 2. Make sure you put in a LocalScript in StarterPack, StarterPlayerScripts, or the Gui itself. 3. If it still doesn't work, tell me and try again.

In the future, please be more descriptive with your answers, I have little to nothing to work with here.

0
THANKS SO MUCH IT WAS BECAUSE FILTERINGENABLED WAS ON THAANNKKSS I AM TRULY APPRECIATED OF YOU IsaacPineapplez 0 — 7y
Ad

Answer this question