|
ok what i need is a script (preferable in workspace) that will remove the 'Interface'from a persons PlayerGui when he/she presses the ESC key (if Esc key is possible else just use the 'Q' key)
Can any1 make me such a script? |
|
|
Sorry, no script requests. |
|
|
so? never stopped other from helping me out with scripts
and as free models is just plain rubbish to get such script and the wiki hasnt been updated for ages this is the one and only place to get such a decent script |
|
|
So why don't you ask for the start of the script? If you read the stickys then you'll know that thats what this form is for |
|
|
ok then give me just the start as in finding a player hitting the ESC key |
|
|
function onKeyDown(key)
key:lower()
if (key=="Esc") then
*Insert scripting stuffz here*
end
end
function onSelected(mouse)
mouse.KeyDown:connect(function(key) onKeyDown(key) end)
end
bin.Selected:connect(onSelected) |
|
|
sorry, forgot to set "bin"
bin = script.Parent
|
|
|
Put all of that into a Hopperbin. It will only work whilst selected though, you can't make a universal onKeyDown script. |
|
|
See was that so hard? Now you know how to ask for help in the scripting form |
|
|
Bladz fails, that will not work. >.> |
|
|
What about it? The thing inside Asterix's was for him to fill out. I connected it correctly, and checked for the correct key (right? Or does the key "Esc" not exist?) |
|
|
You cannot simply put in "Esc". |
|
|
but bladz the script i put here is for a tool???
i just want a plain script that is placed in the workspace that detects any player pressing the Q key |
|
|
i meant the script u put here
that script is to place it in a hopperbin/tool |
|
|
You can't make a keylistener in the workspace...
Also, "Esc" isn't a key. Use the byte code. |
|
|
what about a script in the character of a player?
and whats a byte code? |
|
|
is there any place for such a script to be put to detect a player withtout the use of a button or tool whatsoever? |
|
|
Maybe a GUI, can be placed to track the player. |
|
|
|
bin = script.Parent
function onKeyDown(key)
key:lower()
if (key == string.char(27)) then
--stuff here
end
end
function onSelected(mouse)
mouse.KeyDown:connect(function(key) onKeyDown(key) end)
end
bin.Selected:connect(onSelected)
That is for the ESC key. |
|
|
is it possible with a Gui then?
if a place a Gui in the workspace or in the PlayerGui |
|
|
|
|
Yes, too bad. I realised it. Oh well. |
|