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: LocalScript only works once?

Previous Thread :: Next Thread 
im2awsm is not online. im2awsm
Joined: 25 Aug 2010
Total Posts: 2295
13 Jun 2013 08:37 AM
local cam = workspace.CurrentCamera

cam.CameraSubject=Workspace.CameraAim
cam.CameraType = "Attach"
wait(0.1)
cam.CameraType = "Scriptable"

This LocalScript in StarterGui only works once, if the character resets, the script does not excecute again. How can I make it execute it each time the player respawns?
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
13 Jun 2013 08:39 AM
Cause you only live once.

Try setting it in starterpack
Report Abuse
im2awsm is not online. im2awsm
Joined: 25 Aug 2010
Total Posts: 2295
13 Jun 2013 08:41 AM
Nope, still works only once.
Report Abuse
sam8985 is not online. sam8985
Joined: 12 Nov 2011
Total Posts: 582
13 Jun 2013 08:44 AM
I don't know if this is impractical, but:
game.Players.LocalPlayer.CharcterAdded:connect(function()
--blah
end)
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
13 Jun 2013 08:44 AM
Make sure archivable is false
Report Abuse
im2awsm is not online. im2awsm
Joined: 25 Aug 2010
Total Posts: 2295
13 Jun 2013 08:48 AM
Both of them didnt make a difference. They just made the script not work at all.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
13 Jun 2013 08:51 AM
Lolidk
Report Abuse
im2awsm is not online. im2awsm
Joined: 25 Aug 2010
Total Posts: 2295
13 Jun 2013 08:52 AM
Well then, I have no use for you here.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
13 Jun 2013 09:01 AM
Well then maybe you should rewrite your script. I also bet you just put the other guys script in a local script and putting your lines of coding it between.
Stop being so shallow, don't expect too much.
Report Abuse
im2awsm is not online. im2awsm
Joined: 25 Aug 2010
Total Posts: 2295
13 Jun 2013 09:03 AM
Well, 'lolidk' isn't very helpful. I got the script from the roblox wiki, but modified it, since the original script on there isn't working for me. I'm probably doing something wrong, but this way works. Just with error.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
13 Jun 2013 09:15 AM
Maybe because I said it after helping you, or attempting. I also didn't mean it to take offense
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