Hello, first of all thanks for reading
I’m mainly a builder so my code is simple, but not functional :I
What do you want to achieve? Keep it simple and clear!
I want both the text and the images to fade out at same time.
What is the issue? Include screenshots / videos if possible!
For some reason, the text takes longer to fade out.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried looking for other posts in here… didn’t find anything helpful or something that i could understand.
-- local block = workspace["Shards of Hazel"]
local podeHit = true
local Text1 = script.Parent.TextLabel
local Text2 = script.Parent.TextLabel2
local Image1 = script.Parent.TextLabel.ImageLabel1
local Image2 = script.Parent.TextLabel2.ImageLabel1
block.Touched:Connect(function(hit)
if hit and hit.Parent:FindFirstChild("Humanoid") then
if podeHit == true then
podeHit = false
for i = 1, 100 do
Text1.TextTransparency -= 0.05
Text2.TextTransparency -= 0.05
Image1.ImageTransparency -= 0.05
Image2.ImageTransparency -= 0.05
wait(.025)
end
for i = 1,100 do
Text1.TextTransparency += 0.05
Text2.TextTransparency += 0.05
Image1.ImageTransparency += 0.05
Image2.ImageTransparency += 0.05
wait(.025)
end
podeHit = true
end
end
end)