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: Changing Decal script not working.

Previous Thread :: Next Thread 
snowwater5 is not online. snowwater5
Joined: 20 Apr 2012
Total Posts: 342
11 Apr 2015 05:21 AM
Oddly enough the first one does, the others don't.
(I wont paste in 300 lines, so I shortened it.):

for i=1, 1 do
script.Parent.PLEXUS.Image = "rbxassetid://236256364"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256389"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256422"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256468"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256494"
end
Report Abuse
SeizureMadness is not online. SeizureMadness
Joined: 23 Apr 2011
Total Posts: 154
11 Apr 2015 05:23 AM
use while wait(0.1) do instead. for i = 1, 1 won't work, as there is no difference between 1 and 1. Here's the new code.

while wait(0.1) do
script.Parent.PLEXUS.Image = "rbxassetid://236256364"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256389"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256422"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256468"
wait(0.1)
script.Parent.PLEXUS.Image = "rbxassetid://236256494"
end
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
11 Apr 2015 05:24 AM
@Seizure actually it will work

Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> for i = 1, 1 do print("works") end
works
>
Report Abuse
SeizureMadness is not online. SeizureMadness
Joined: 23 Apr 2011
Total Posts: 154
11 Apr 2015 05:26 AM
Yes, but a loop?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
11 Apr 2015 05:27 AM
he didn't say he wanted it doing it infinitely
Report Abuse
SeizureMadness is not online. SeizureMadness
Joined: 23 Apr 2011
Total Posts: 154
11 Apr 2015 05:28 AM
He said '(I don't want to paste 300 lines)'.

Hmmm :o?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
11 Apr 2015 05:30 AM
150 different frames for his small gif-like animation thing?
Report Abuse
snowwater5 is not online. snowwater5
Joined: 20 Apr 2012
Total Posts: 342
11 Apr 2015 05:35 AM
Yeah, basicly, a plexus animation from After Effects, of which I turned into frames.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
11 Apr 2015 06:10 AM
Let's try an alternative way. :P

images = {"rbxassetid://236256364","rbxassetid://236256389","rbxassetid://236256422","rbxassetid://236256468","rbxassetid://236256494"}

for i, v in pairs(images) do
script.Parent.PLEXUS.Image = v
wait(0.1)
end
Report Abuse
snowwater5 is not online. snowwater5
Joined: 20 Apr 2012
Total Posts: 342
11 Apr 2015 06:54 AM
Well kindof don't want to make a news script after just finishing this one, and the amount of assets is over 100.

One problem now: How do I stop flickering? So when it changes it doesn't give a flash of white?
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
11 Apr 2015 07:11 AM
You should preload the assets before running the animation. Also, if you wish, you could pm me the script. I can just do some REGEX magic to put it all into a table :)
Report Abuse
snowwater5 is not online. snowwater5
Joined: 20 Apr 2012
Total Posts: 342
11 Apr 2015 07:31 AM
Roblox is playing a joke on me. All the assets broke, no idea why and I can't be bothered to type every single 179 asset numbers in AGAIN. F THIS, IM GOING BACK TO UNITY IF I CAN'T FIX THIS.
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
11 Apr 2015 07:34 AM
How do you mean all the asserts broke?
Report Abuse
snowwater5 is not online. snowwater5
Joined: 20 Apr 2012
Total Posts: 342
11 Apr 2015 07:52 AM
Basicly I get a long spam of errors.
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
11 Apr 2015 08:04 AM
and these errors say?
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
11 Apr 2015 08:08 AM
it works for me.
Report Abuse
snowwater5 is not online. snowwater5
Joined: 20 Apr 2012
Total Posts: 342
11 Apr 2015 08:32 AM
Fixed it,
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