how can I make transparent not an object but a texture? Using a script
Textures also have a transparency property, it is pretty much analogous to making BaseParts
transparent. They share properties of decals though.
You can show this with an example pls?
Part:
script.Parent.Transparency = 0
Texture:
???
I am pretty sure its that same.
Script.Parent.Texture.Transperancy = 0.5
IDK for sure
the s have to be not capital, The script could not be that.I dont work a lot with texture
Wait its bc u had two varibales XD
“Transperancy” is a typo, it is Transparency
. Note trans-
and -parency
.
Oop yeah I am on mobile so my spelling and typinis weird
you are still assigining two values. Can you show full script?
workspace.KeyCardDoor.ProximityPrompt.Triggered:Connect(function(player)
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false
wait(3.5)
script.Parent.Texture.Transparency = 0,5
script.Parent.CanCollide = true
end)
first its a comma instead of a period… that is the reason its two variables
The outlier is the 0,5
, use dots(periods) to create decimals instead.
your using a comma, not a dot, so it thinks ur setting 2 values
script.Parent.Texture.Transparency = 0.5
texture does not disappear
workspace.KeyCardDoor.ProximityPrompt.Triggered:Connect(function(player)
script.Texture.Transparency = 0
script.Parent.CanCollide = false
wait(3.5)
script.Texture.Transparency = 1
script.Parent.CanCollide = true
end)
its script.Parent.Texture.Transparency not script.Texture
is it still not working??? characters
Yes. this still not working.
workspace.KeyCardDoor.ProximityPrompt.Triggered:Connect(function(player)
script.Parent.Texture.Transparency = 0
script.Parent.CanCollide = false
wait(3.5)
script.Parent.Texture.Transparency = 1
script.Parent.CanCollide = true
end)
its bc there is two textures. rename one of them then do it like Rename one of the texture to texture2 and do the same script as this
script.Parent.Texture.Transparency = 1
script.Parent.Texture2.Transparency = 1