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
 

i want to make a local script do something in common w/

Previous Thread :: Next Thread 
Exllumina is not online. Exllumina
Joined: 28 Jun 2014
Total Posts: 6314
25 Aug 2014 09:01 AM
I have a script.
Now I need a Local Script (because I can't set everything in one of the two).
Basically the Local Script would do this:

wait(0.5)
game.Players.LocalPlayer.Character.Torso.Anchored = false


but it needs to do that after the script (normal one) finishes.

How do I let THAT happen?
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
25 Aug 2014 09:05 AM
bindable functions/events

or if you have filtering enabled

remote functions/events

http://wiki.roblox.com/index.php?title=RBX.lua.BindableFunction_(Object)
Report Abuse
Exllumina is not online. Exllumina
Joined: 28 Jun 2014
Total Posts: 6314
25 Aug 2014 12:47 PM
how would you do that?

(btw, no filtering enabled)
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
25 Aug 2014 01:28 PM
I'd just put a BoolValue object in the normal script. When the normal script ends:

--code...
script.BoolValue.Value = true

And in the localscript:

Game.Workspace.Script.BoolValue.Changed:wait()
--code...

I hope that helps...

~sycips~
Report Abuse
Exllumina is not online. Exllumina
Joined: 28 Jun 2014
Total Posts: 6314
25 Aug 2014 01:55 PM
i'll test it and tell you here soon if it worked.
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