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: I was wondering.

Previous Thread :: Next Thread 
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
14 Sep 2013 07:10 PM
After your Player goes nil, can you still use key events? I know your camera still works fine, but I see nothing wrong with my tests, everything is tagged correctly, but here is the chunk so you can take a look for yourself.

h = Instance.new("Hint", game.Workspace)

m.KeyDown:connect(function()
if k:byte() == 47 or k:byte() == 48 and typing == false then
typing = true
h.Text = "Please begin typeing..."

end
end)

This event does not fire until after the player is nil by the way.
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
14 Sep 2013 07:34 PM
bump.
Report Abuse
Geomaster is not online. Geomaster
Joined: 05 Jul 2008
Total Posts: 1480
14 Sep 2013 07:35 PM
KeyDown is connected to Mouse, which is a descendant of player, I'd assume
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
14 Sep 2013 07:37 PM
Property of player
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
14 Sep 2013 07:38 PM
Yeah, but if key events did not work afterwards, your camera would not still move, and people use keys for 'camballs' all the time. :/ So maybe it is my code, does anyone see any problems with this chunk of code, provided that everything is tagged correctly.
Report Abuse
WillScriptForFood is not online. WillScriptForFood
Joined: 03 Aug 2013
Total Posts: 701
14 Sep 2013 07:39 PM
The Chatted event still works when removed, so I would assume that, as long as you already had the mouse previously, it'd work.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
14 Sep 2013 07:39 PM
m.KeyDown:connect(function(k)
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
14 Sep 2013 07:42 PM
Such a silly mistake, thank-you I apologize for wasting SH's time. Thanks. Have a nice day everyone.
Report Abuse
WillScriptForFood is not online. WillScriptForFood
Joined: 03 Aug 2013
Total Posts: 701
14 Sep 2013 07:44 PM
I wont type for the whole of SH, but even I have simple mistakes. You weren't wasting our times, those who request do.
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