|
| 08 Dec 2012 02:19 AM |
I have two co-working scripts, an animation script, which runs on the loading frames CFrameValues and a expression changer which reads using "while true do" if a the frame value is 5, 10, and 15 which would change the objects decal.
Problem is, the expression script when unlocked or whatever, freezes the Studio entirely and my mouse too. |
|
|
| Report Abuse |
|
|
gaara51
|
  |
| Joined: 20 Oct 2007 |
| Total Posts: 7395 |
|
|
| 08 Dec 2012 02:30 AM |
| Sounds like a glitch, send this forum to @Shedletsky on twitter. |
|
|
| Report Abuse |
|
|
Monkey727
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 969 |
|
|
| 08 Dec 2012 04:36 AM |
| If you are using a while true do, Make sure you have a wait() in there somewhere. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2012 11:22 AM |
| I forgot to add a wait() so I'm guessing it bugged it, if it doesn't fix it I will message Shedletsky. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2012 06:56 PM |
| This is insane, it crashed AGAIN! |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 08 Dec 2012 07:02 PM |
It sounds like you have an infinite loop without a wait somewhere, or are attempting to do way too much in too little time.
How many CFrame values are you reading and changing per frame? Post the script maybe? |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2012 07:19 PM |
-- v.01
local frame = script.Parent.Frame local model = script.Parent.Bob
while true do if model.Expression.FaceA.FPS.Value == Frame.Value then model.Head.FaceA.Transparency = 0 model.Head.FaceB.Transparency = 1
if model.Expression.FaceB.FPS.Value == frame.Value then model.Head.FaceB.Transparency = 1 model.Head.FaceB.Transparency = 0
if model.Expression.FaceB.FPSB.Value == frame.Value then model.Head.FaceB.Transparency = 1 model.Head.FaceB.Transparency = 0 end end end end
The amount of frames, 20, and it's reading like 7 parts so it's 7x20 frames a millisecond I think. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2012 07:20 PM |
| Thing is, it's only the Frame number, which is 1-20, and the speed for the frame change is 0.05 I think. |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 08 Dec 2012 07:48 PM |
...Yes, that's an infinite loop with no wait.
That will always crash your game. |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2012 07:58 PM |
| I fixed it, I had to break it down to being a wait inside the frame render script, they were separate scripts originally. |
|
|
| Report Abuse |
|
|