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: I need some new help with those blinkers

Previous Thread :: Next Thread 
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
02 Aug 2016 08:42 PM
Hey, it's me again ^^' Got another problem with my blinkers. On my last thread I was asking someone to make me a blinker script for my car as I'm new to scripting. Woolhat's script is working very well, but I've got another problem. Before I explain it here are the scripts :


local Blinking = false

function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
Blinking = not Blinking
while Blinking do
script.Parent.Turn1:play()
wait(0.1)
script.Parent.RightIndicator.Material = "Neon"
script.Parent.RightIndicator2.Material = "Neon"
wait(0.5)
script.Parent.Turn2:play()
wait(0.1)
script.Parent.RightIndicator.Material = "SmoothPlastic"
script.Parent.RightIndicator2.Material = "SmoothPlastic"
wait(0.5)
end
end
end

game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.C)


And the left one :


local Blinking = false

function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
Blinking = not Blinking
while Blinking do
script.Parent.Turn1:play()
wait(0.1)
script.Parent.LeftIndicator.Material = "Neon"
script.Parent.LeftIndicator2.Material = "Neon"
wait(0.5)
script.Parent.Turn2:play()
wait(0.1)
script.Parent.LeftIndicator.Material = "SmoothPlastic"
script.Parent.LeftIndicator2.Material = "SmoothPlastic"
wait(0.5)
end
end
end

game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.Z)


Alright, so when I create 2 scripts file and paste in the first one the right signal script and in the second one the left signal script, only one script activates.

I thinked of putting the two scripts together in one script file so there wouldn't be any conflicts (I guess) but I can't figure out how to do that without avoiding the problem.

So if one of you guys know how to do that please reply below

Thank you
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
02 Aug 2016 08:52 PM
Which one is the one that activates?
Report Abuse
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
02 Aug 2016 09:01 PM
The left script activates when the scripts are either separated or in the same file
Report Abuse
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
02 Aug 2016 09:02 PM
Wait nevermind it depends on which key you press when first entering test mode in Studio
Report Abuse
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
02 Aug 2016 09:27 PM
bump
Report Abuse
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
03 Aug 2016 08:48 AM
bump


Report Abuse
sentry3 is not online. sentry3
Joined: 01 May 2010
Total Posts: 538
03 Aug 2016 10:14 AM
Blinking = not Blinking?
Report Abuse
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
03 Aug 2016 01:04 PM
Idk, I got the script like that


Report Abuse
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
03 Aug 2016 02:38 PM
bump
Report Abuse
Selantox is not online. Selantox
Joined: 01 Dec 2011
Total Posts: 388
03 Aug 2016 03:06 PM
bump
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