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: How can I get Click Detectors to work with FE?

Previous Thread :: Next Thread 
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
01 Feb 2015 09:22 PM
I recently figured out they do not work at all, and I want to find a way to use click detectors without using free models.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 Feb 2015 09:25 PM
Make your own click detectors with a local script and remote events
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
01 Feb 2015 09:34 PM
I thought I would get that answer. I am handling all click detector events within a SS and normally I wouldn't stress over it, but I would have to find a way to rewrite almost everything pertaining to it (which would counter my initial reason for handling the CDE). If there is no other way, then I will get rid of the CDs and try to replace them.
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
01 Feb 2015 09:54 PM
There is no way, it's broken with FE.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
01 Feb 2015 09:56 PM
http://www.roblox.com/item.aspx?id=185412994
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
02 Feb 2015 03:00 PM
I know how to do it, but I just decided to simulate the click detector to decrease the amount of lag inherent with remote functions/events.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Feb 2015 03:01 PM
The model I made does simulate it
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
02 Feb 2015 03:02 PM
Why didn't Roblox fix them to work with FE anyway?
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
02 Feb 2015 03:10 PM
@128GB

Thanks, that code was much cleaner than what I had in mind, and it actually worked almost the same way when I incorporated it.
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
02 Feb 2015 03:13 PM
Oh, scratch that. They were the same except for the fact that I didn't change the cursor in the script, but had an actual click detector in the part.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
02 Feb 2015 03:16 PM
the easiest way around robloxe's mistakes?

make custom everything
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Feb 2015 03:18 PM
'had an actual click detector in the part.'

That probably is a way better way to handle the cursor

Unless you want a custom cursor but otherwise thats a way better idea
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Feb 2015 03:31 PM
I updated it so if you have a tool selected it won't count as a click
Report Abuse
UristMcSparks is not online. UristMcSparks
Forum Moderator
Joined: 27 Feb 2010
Total Posts: 44
02 Feb 2015 06:10 PM
You can still use ClickDetectors with FE. To make it work you need a Script, LocalScript, and a RemoteEvent.

The LocalScript is what is listening for the clicks as it runs on the client. In this LocalScript you will bind a function to the MouseClick event of the ClickDetector and will fire the RemoteEvent. The LocalScript needs to be placed somewhere it will run (like StarterGui or StarterPack).

LocalScript:

game.Workspace.Part.ClickDetector.MouseClick:connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer()
)

The server script is what will actually do stuff. But instead of listening for the ClickDetector, it will listen for the RemoteEvent. The script can be pretty much anywhere you like, I prefer ServerScriptService.

Script:
game.ReplicatedStorage.RemoteEvent.OnServerEvent:connect(function(player)
print(player.Name .. " clicked the Part!")
)
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
02 Feb 2015 06:36 PM
@UristMcSparks
You are really late lol, OP said they already made one and I already made a free model of one
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