I'm trying to make text fade in, but the transparency of the text just refuses to change. I feel like I'm being a huge idiot here, but here's the script...
local petrifier = script.Parent
local badEndingClone = game.ServerStorage["Bad Ending."]:Clone()
local texttransparency = badEndingClone.TextLabel.TextTransparency
local textStrokeTransparency = badEndingClone.TextLabel.TextStrokeTransparency
local function steppedOn(part)
local parent = part.Parent
if game.Players:GetPlayerFromCharacter(parent) then
print(parent.Name .. " is being petrified!")
local player = game.Players:FindFirstChildOfClass("Player")
-- (there's coding here)
print("Bad ending thingy coming up")
badEndingClone.Parent = player.PlayerGui
for a = 1, 0, -0.1 do
texttransparency = (a)
print(texttransparency)
wait(1)
end
end
end
petrifier.Touched:connect(steppedOn)

4 comments
Are all the prints printing through? Is this a localscript or a script?
All the prints are printing. This is a script inside of the workspace.
It could be because you can't change GUI stuff in a PlayerGui with a server script. Try using RemoteEvents and see if it works.
I literally have no idea how remove events work; I'll try to figure it out. Thanks for the advice