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: Capturing MouseClick if player's character doesn't exist.

Previous Thread :: Next Thread 
Wehttam664 is not online. Wehttam664
Joined: 02 Oct 2009
Total Posts: 767
29 Jul 2014 05:46 PM
I'm working on a game, and, for the entire game, the player's character's parent has been set to nil (essentially removing it but keeping the camera). However, I need a brick to be clickable. A ClickDetector will not work, as the character is missing and ClickRange causes it to be unclickable.

Is there anything that could work here?
Report Abuse
MomoiroCloverZ is not online. MomoiroCloverZ
Joined: 06 Jan 2013
Total Posts: 825
29 Jul 2014 05:47 PM
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down:connect(function()
if mouse.Target and mouse.Target == partyouwanthere then



MomoiroCloverZ, newbag expert Lua coder.
Report Abuse
Wehttam664 is not online. Wehttam664
Joined: 02 Oct 2009
Total Posts: 767
29 Jul 2014 05:54 PM
Ah, completely forgot about LocalMouse. This requires a bit more effort to throw through a LocalScript, but that idea should work. Thanks.
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