generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: [H]Filtering Enabled

Previous Thread :: Next Thread 
xXdrstattik33Xx is not online. xXdrstattik33Xx
Joined: 28 Oct 2015
Total Posts: 189
15 Jul 2016 12:11 AM
So, i enabled filtering so i could use local blocks but none of the click GUI scripts work
what is wrong with it.

Script:[

script.Parent.MouseButton1Down:connect(function()
plr = game.Players.LocalPlayer
plr.TeamColor = BrickColor.new("Bright red")
script.Parent.Visible = false
game.Workspace["Left Menu"].Part.SurfaceGui.Frame.Blue.Visible = false
end)

]

Note:[

I tried it in both Local and Server scripts..

]
Report Abuse
wfvj014 is not online. wfvj014
Joined: 30 Apr 2012
Total Posts: 145
15 Jul 2016 12:18 AM
First of all, you need to use a Local Script. Now I haven't really used Team Service too much, but I'm pretty sure Local Scripts can't change a player's Team Color. It's also worth pointing out that Local Script don't work in workspace, and I'm going to assume this Local Script is in StarterGui.

local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Down:connect(function()
script.Parent.Visible = false
game.Workspace["Left Menu"].Part.SurfaceGui.Frame.Blue.Visible = false
end)


Good Luck.
Report Abuse
xXdrstattik33Xx is not online. xXdrstattik33Xx
Joined: 28 Oct 2015
Total Posts: 189
15 Jul 2016 12:20 AM
Yep you sure did help alot....
Report Abuse
xXdrstattik33Xx is not online. xXdrstattik33Xx
Joined: 28 Oct 2015
Total Posts: 189
15 Jul 2016 12:25 AM
also it isnt in screen gui smart guy its in a screen gui learn to read...
Report Abuse
xXdrstattik33Xx is not online. xXdrstattik33Xx
Joined: 28 Oct 2015
Total Posts: 189
15 Jul 2016 12:31 AM
StarterGui*
Report Abuse
Disillusions is not online. Disillusions
Joined: 10 Jul 2011
Total Posts: 6365
15 Jul 2016 01:13 AM
If you want to change the players' TeamColor, you need Remote events.

Put a RemoteEvent in workspace and insert a script into it:

script.Parent.OnServerEvent:connect(function(plr,color)
plr.TeamColor = color
end)

And then make a localscript inside the button:

local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Down:connect(function()
script.Parent.Visible = false
--And whatever GUI code you need
--Then you need to fire the RemoteEvent for the server:
game.Workspace.RemoteEvent:FireServer(BrickColor.new('Bright red'))
end)
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
15 Jul 2016 01:35 AM
https://www.youtube.com/playlist?list=PLatbVFCcsDB9JZE_1WQvmG0i4NrpNIybs

Learn what FilteringEnabled is and what it does.


Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image