what this script is supposed to do is that when the RemoteEvent is fired, the player who fired the scripts GUI (aka playergui) will change the transparency for the GUI by taking away -.25 for every GUI object listed in the script, once that repeated 4 times, the script will wait 10 seconds before kicking the player who fired it. but the script doesn't work, it doesn't change the gui's transparency or anything at all, if anyone could find a solution that would be great
Script (LocalScript)
local a = game.ReplicatedStorage["Finish Game"]
local b = game:GetService('Players').LocalPlayer.PlayerGui
local c = game:GetService('Players').LocalPlayer
a.OnClientEvent:Connect(function()
b.Ending.Enabled = true
for i = 1, 4 do
b.Ending.Frame.BackgroundTransparency -= .25
b.Ending.Frame.ImageLabel.ImageTransparency -= .25
b.Ending.Frame.ImageLabel.UIStroke.Transparency -= .25
b.Ending.Frame.TextLabel.TextTransparency -= .25
b.Ending.Frame.TextLabel.UIStroke.Transparency -= .25
wait(.1)
end
wait(10)
c:Kick("Thank You For Playing")
end)

1 comment
I updated my post