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: animated decal

Previous Thread :: Next Thread 
Momoiko is not online. Momoiko
Joined: 12 Dec 2015
Total Posts: 629
10 Apr 2017 10:04 PM
anyone have a script that changes a decal to another decal

ex. i wanted to make a dancing person and i uploaded a gif frame by frame i'd need a script to change the decals


refugeez' right hand goon
Report Abuse
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
10 Apr 2017 10:08 PM
decal = yourdecal


while wait(0.5) do

decal.Id = blablabla
wait(0.5)

decal.Id = blablabla
wait(0.5)

decal.Id = blablabla
wait(0.5)

decal.Id = blablabla
wait(0.5)

decal.Id = blablabla
wait(0.5)
end

-- etc

end


#code -- This is a comment in Lua. --
Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
10 Apr 2017 10:10 PM
You could just use a sprite sheet


Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
10 Apr 2017 10:10 PM
--Put this in a script inside your part

local decals = script:GetChildren() --Put the decals inside the script and name them in the order they should appear (e.g. 1, 2, 3, etc.)

local d = Instance.new("Decal", script.Parent)

while wait() do
for i,v in pairs(decals) do
d.Image = v.Image
wait()
end
end
Report Abuse
Momoiko is not online. Momoiko
Joined: 12 Dec 2015
Total Posts: 629
10 Apr 2017 10:33 PM
neither seemed to work but then again it's likely i'm doing it wrong


refugeez' right hand goon
Report Abuse
szkiller_dev is not online. szkiller_dev
Joined: 07 Oct 2016
Total Posts: 3572
10 Apr 2017 10:53 PM
Lol are u srs ?

Just use transparency m9 XD
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