Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

2 comments

0

I don't know what's wrong with it, I tested it myself and it worked fine. Is Filtering Enabled on?

0

Is it on Localscript or Script? This has to be on a Localscript I believe.

1 answer

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.

1 comment

0

THANKS SO MUCH IT WAS BECAUSE FILTERINGENABLED WAS ON THAANNKKSS I AM TRULY APPRECIATED OF YOU

This discussion is preserved as it was. New answers, comments, and votes are closed.