Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make when someone steps on a brick it changes decal?

How do I make when someone steps on a brick it changes the face decal then after a short ammount of time it changes back? I really want to animate someone talking when you go up to them. Please reply if you know >.< Thank you for helping! :D

1 answer

✓ Accepted answer

An example: Insert a script in the Part which will be touched. Put inside:

local NewDecal = 32578004 -- Put the Image ID of the Decal you want to appear when the brick is touched.
local Decal = game.Workspace.DecalPart.Decal -- DecalPart is an example. Put the location of your part.
function onTouch(hit)
	Decal.Texture = "http://www.roblox.com/asset/?id="..NewDecal -- It changes the Decal's texture to the variable we determined.
end
script.Parent.Touched:connect(onTouch)

4 comments

0

thank you!

0

plse approve my answer

0

"rbxassetid://" works aswell. Its shorter than http://www.roblox.com/asset/?id=

0

true but who minds... xD

This discussion is preserved as it was. New answers, comments, and votes are closed.