of     1   

EletricSpade1569
#220218936Saturday, July 01, 2017 7:39 PM GMT

Hello, my question is simple. I need to make a brick that when you stand on it you can input a keyboard key (example DownArrow), I want to make that when the player stand on it, the script will be enabled and the SCRIPT would be ONLY ACTIVATED for the PLAYER and NOT his SURROUNDINGS. Thanks (Just let me know how to enable just to the player, the other scripts are easy to do ^^ thanks) P.S. Do I need to use a local script?
EletricSpade1569
#220220619Saturday, July 01, 2017 8:00 PM GMT

Sorry for making this long, but is there something wrong with this? I'm trying to enable a script when you touch a brick. script.Parent.Touched:connect(function (hit) if hit.Parent.Name == "PuzzleArrowStanding" then game.Workspace.PuzzleArrows.script.Disabled = false end end)
EletricSpade1569
#220223579Saturday, July 01, 2017 8:37 PM GMT

bump
EletricSpade1569
#220229530Saturday, July 01, 2017 9:55 PM GMT

btw this is called "Logic Gate" but with keyboard inputs :) Help with: -Brick that stop player from walking until he presses close gui -When standing on the brick, the player will need to click the following sequence: (downArrow,rightArrow,downArrow) -after successfully doing that, a part will become transparent for 8 seconds. (easy to do) Thanks :))
EletricSpade1569
#220279065Sunday, July 02, 2017 11:05 AM GMT

bumpx2.
BaiYuni
#220287681Sunday, July 02, 2017 2:45 PM GMT

A solution may be having a localscript for the keyboard key and cloning it to the Player. Then, when they aren't touching the brick, you can destroy that localscript.
EletricSpade1569
#220290386Sunday, July 02, 2017 3:42 PM GMT

Mh... seems like a great solution! I will try it, i will paste the code if it doesn't work ^^ thanks.
EletricSpade1569
#220293139Sunday, July 02, 2017 4:28 PM GMT

Somebody can help, please? scriptname = game.Lighting.TreePuzzle1 Player = game.Player.LocalPlayer function onTouch() if not Player.Head:FindFirstChild(scriptname) then local puzzlescript = game.Lighting[scriptname]:clone() puzzlescript.Parent = Player.Head print("Puzzle1 Activated") end end script.Parent.Touched:connect(onTouch)
EncryptionXYZ
#220293481Sunday, July 02, 2017 4:33 PM GMT

no stop bumping...
EletricSpade1569
#220294012Sunday, July 02, 2017 4:41 PM GMT

Sorry for disturbing your entire time, by asking help. Just don't click the thread.
EletricSpade1569
#220295402Sunday, July 02, 2017 5:02 PM GMT

THIS THREAD IS CLOSED BECAUSE THE PROBLEM HAS BEEN SOLVED ----------------------------------------------------------------------------------------

    of     1