Hello, I have just recently started getting back into developing on Roblox after a while and I’ve attempted to make a script that tweens the transparency of a textlabel when you touch a part (e.g. when you walk indoors and touch the floor), though the script doesn’t seem to work.
Script:
local Floor2 = workspace:WaitForChild("Spawn"):WaitForChild("Touch2")
local Tip = game.StarterGui:WaitForChild("Bottom Text"):WaitForChild("Tip1")
local TweenService = game:GetService("TweenService")
Floor2.Touched:Connect(function(hit)
Tip.Parent.Enabled = true
TweenService:Create(Tip, TweenInfo.new(1), {TextTransparency = 0}):Play()
Floor2:Destroy()
wait(2.5)
TweenService:Create(Tip, TweenInfo.new(1), {TextTransparency = 1}):Play()
end)
Explorer:
Circled is the script, part that you need to touch and text that I’m trying to tween.
Any help is appreciated.