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: Make it affect only who clicked it

Previous Thread :: Next Thread 
Devlin is not online. Devlin
Joined: 21 May 2008
Total Posts: 692
04 Jul 2017 06:13 PM
This is what i've got so far, It affects the whole server but I need it to affect only the player who clicked on the GUI button.
Can someone tell me how to make this affect only the one who clicked?

ColorCorrection is inside Lightning.
Script is a Local Script (Parent = Textbutton)
----------------------------------------------------------------------------------------

local song = Instance.new("Sound")
song.SoundId = "h###########################################song.Parent = script.Parent
song.Volume = 0.5
song.Name = "Song"

function c3(r,g,b) return r/255, g/255, b/255 end


script.Parent.MouseButton1Click:connect(function()

if game.Lighting.ColorCorrection.Enabled == true then
game.Lighting.ColorCorrection.Enabled = false
script.Parent.Text = "Scarry Mode: OFF"
song:play()
game.Lighting.Ambient = Color3.new(c3(20,20,20))

else
game.Lighting.ColorCorrection.Enabled = true
script.Parent.Text = "Scarry Mode: ON"
song:play()
game.Lighting.Ambient = ###########################
end

end)





Report Abuse
Devlin is not online. Devlin
Joined: 21 May 2008
Total Posts: 692
04 Jul 2017 06:13 PM
Wherever it says hashtags are just numbers and links


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 Jul 2017 06:14 PM
You need to use filtering enabled.


Report Abuse
Devlin is not online. Devlin
Joined: 21 May 2008
Total Posts: 692
04 Jul 2017 06:18 PM
And how do I do that, I am new to this


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 Jul 2017 06:22 PM
http://wiki.roblox.com/index.php?title=FilteringEnabled
http://wiki.roblox.com/index.php?title=Building_Games_with_Filtering_Enabled


Report Abuse
Devlin is not online. Devlin
Joined: 21 May 2008
Total Posts: 692
04 Jul 2017 06:24 PM
Thank you


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 Jul 2017 06:25 PM
If you need more explanation on FE just ask


Report Abuse
Devlin is not online. Devlin
Joined: 21 May 2008
Total Posts: 692
04 Jul 2017 06:26 PM
Ok, I am going to try. Let the games begin!


Report Abuse
Devlin is not online. Devlin
Joined: 21 May 2008
Total Posts: 692
04 Jul 2017 06:31 PM
OMG It actually worked! Thank you so much!


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