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
 

FE Blocking GUI Popup!

Previous Thread :: Next Thread 
BlueFluffyNinja is not online. BlueFluffyNinja
Joined: 25 Aug 2016
Total Posts: 768
12 Nov 2017 07:04 AM
FilteringEnabled is blocking my Popup, and does nothing. It works inside studio, and does exactly what I want it to do, but when inside a real game, it does nothing and shows with the error: "attempt to index local 'plr' (a nil value)", and I would like to fix that. The script is inside a part in the workspace called Jerry (just for now), and the gui is inside the script to be copied. and this is the script that doesn't work:

local debounce = false
local gui = script.gui

game.Workspace.Censor.Touched:connect(function()
local plr = game.Players.LocalPlayer
if debounce == false then
debounce = true
pizzajob:Clone().Parent = plr.PlayerGui
wait(3)
debounce = false
end
end)




Report Abuse
Pastures is not online. Pastures
Joined: 15 Aug 2015
Total Posts: 943
12 Nov 2017 07:07 AM
LocalPlayer can only be accessed through a LocalScript.

Put this script inside a LocalScript and it should work.
Report Abuse
mattscy is online. mattscy
Joined: 06 May 2011
Total Posts: 1079
12 Nov 2017 07:08 AM
put it in a local script in startercharacterscripts
Report Abuse
BlueFluffyNinja is not online. BlueFluffyNinja
Joined: 25 Aug 2016
Total Posts: 768
12 Nov 2017 07:09 AM
Alright thanks guys. It worked! :D

Very appreciated.


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