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: Is this a glitch?!

Previous Thread :: Next Thread 
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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 is not online. 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 is not online. 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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
08 Dec 2012 06:56 PM
This is insane, it crashed AGAIN!
Report Abuse
swmaniac is not online. 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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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 is not online. 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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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
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