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: Decal Changing Script.

Previous Thread :: Next Thread 
GIGI777 is not online. GIGI777
Joined: 28 Jul 2011
Total Posts: 2935
20 Oct 2013 12:51 PM
while true do
script.Parent.Decal.Texture = "http://www.roblox.com/zombie-item?id=90226630"
wait(10)--
script.Parent.Decal.Texture = "http://www.roblox.com/Zombies-eat-flesh-item?id=2730004"
wait(5)
end


^^^^

I made it for a TV I'm working on, but every time I put it in, it shows the picture for half a second then goes all black, what am I doing wrong?

(Warning, I do and only understand simple scripts.)
Report Abuse
Bassics is not online. Bassics
Joined: 24 Apr 2012
Total Posts: 415
20 Oct 2013 12:55 PM
10 seconds seems like a long time. You might want to test it at 1 second.
Report Abuse
GIGI777 is not online. GIGI777
Joined: 28 Jul 2011
Total Posts: 2935
20 Oct 2013 01:06 PM
Same results.
Report Abuse
GIGI777 is not online. GIGI777
Joined: 28 Jul 2011
Total Posts: 2935
20 Oct 2013 01:19 PM
Bump1
Report Abuse
breezybasalt is not online. breezybasalt
Joined: 24 Mar 2011
Total Posts: 76
20 Oct 2013 01:21 PM
What are the two minus operators beside the wait(10) line?

PS: I'm a newb at Lua.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
20 Oct 2013 01:22 PM
Note that you're not getting the images at all; you're getting their item pages.
Report Abuse
breezybasalt is not online. breezybasalt
Joined: 24 Mar 2011
Total Posts: 76
20 Oct 2013 01:23 PM
Wait!

Try this:

while true do
script.Parent.Decal.Texture = "http://www.roblox.com/zombie-item?id=90226629"
wait(10)--
script.Parent.Decal.Texture = "http://www.roblox.com/Zombies-eat-flesh-item?id=2730003"
wait(5)
end

Like Blocco said, you're not actually getting the images.
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
20 Oct 2013 01:26 PM
while true do
script.Parent.Decal.Texture = "http://www.roblox.com/asset/id?=90226629"
wait(10) then
script.Parent.Decal.Texture = "http://www.roblox.com/asset/id?=2730003"
wait(5)
end

--Done
Report Abuse
Bassics is not online. Bassics
Joined: 24 Apr 2012
Total Posts: 415
20 Oct 2013 01:26 PM
@breezy You need the asset link.
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
20 Oct 2013 01:29 PM
I'm the pro, thank me.
Report Abuse
Bassics is not online. Bassics
Joined: 24 Apr 2012
Total Posts: 415
20 Oct 2013 01:32 PM
@TheRobloxian909 Thank you, mister.

game.Players.TheRobloxian909.Pro.Value = game.Players.TheRobloxian909.Pro.Value + math.huge
Report Abuse
GIGI777 is not online. GIGI777
Joined: 28 Jul 2011
Total Posts: 2935
20 Oct 2013 02:53 PM
Same results.

What am I doing wrong .3.
Report Abuse
GIGI777 is not online. GIGI777
Joined: 28 Jul 2011
Total Posts: 2935
20 Oct 2013 03:14 PM
Now I tried this:

M = script.Parent.Main

while true do
M.Texture = "http://www.roblox.com/asset/?id=90226630"
wait(3)
M.Texture = "http://www.roblox.com/asset/?id=2730004"
wait(3)
M.Texture = "http://www.roblox.com/asset/?id=133148960"
wait(3)
end



And it shows me SOMETHING, but not what I want. It looks like white and black diamonds, and they're blurred in a checkered form.

Well?
Report Abuse
GIGI777 is not online. GIGI777
Joined: 28 Jul 2011
Total Posts: 2935
20 Oct 2013 07:12 PM
b2
Report Abuse
Sieora is not online. Sieora
Joined: 12 Aug 2013
Total Posts: 298
20 Oct 2013 07:15 PM
That's why you get the 'Assest ID'
which is the id of your decal, but minus the last digit.

Ex: my asset id is 1234
I change the "4" to a "3"

◙ℐᾔᾔ◎√α⊥℮◙
Report Abuse
TheEliteDonphan is not online. TheEliteDonphan
Joined: 16 Jun 2013
Total Posts: 2647
20 Oct 2013 07:16 PM
[ Content Deleted ]
Report Abuse
Sieora is not online. Sieora
Joined: 12 Aug 2013
Total Posts: 298
20 Oct 2013 07:17 PM
^I'm assuming TheElite's is right.

◙ℐᾔᾔ◎√α⊥℮◙
Report Abuse
GIGI777 is not online. GIGI777
Joined: 28 Jul 2011
Total Posts: 2935
20 Oct 2013 07:18 PM
God bless.

Thank you so much!
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