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 » Scripting Helpers
Home Search
 

Re: HotKey Mouse Error

Previous Thread :: Next Thread 
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
07 Apr 2014 06:03 PM
Workspace.ActivateDoor.Trigger.Script:23: attempt to index local 'plr' (a nil value)


local mouse = plr:GetMouse()

What's wrong?
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
07 Apr 2014 06:05 PM
did you define "plr"?
Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
07 Apr 2014 06:05 PM
local plr = game.Players.LocalPlayer
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
07 Apr 2014 06:07 PM
don't make it local maybe
Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
07 Apr 2014 06:13 PM
The Local in LocalPlayer, or Local plr?
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
07 Apr 2014 06:15 PM
this is a localscript
in startergui
I hope
and local plr
Report Abuse
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
07 Apr 2014 06:16 PM
No, this is a script that's in a brick. Not the full script is dealing with the GUI. Only this one part.
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
07 Apr 2014 06:17 PM
pretty sure it must be a localscript to hold "LocalPlayer"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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