local plr = game.Players.LocalPlayer
local PlayerGui = plr:WaitForChild('PlayerGui')
local ScreenGui = PlayerGui:WaitForChild('1stLoadingScreen')
local StartButton = ScreenGui.Frame.PlayLabel -- TextLabel
local rs = game:GetService("RunService")
local TS = game:GetService("TweenService")
MakeInvisible = coroutine.create(function(ObjectToMakeTransparent)
while true do
rs.RenderStepped:Wait()
ObjectToMakeTransparent.Transparency = ObjectToMakeTransparent.Transparency + 1
end
end)
while wait() do
StartButtonClone = StartButton:Clone()
coroutine.resume(MakeInvisible,StartButtonClone) -- Only runs for one clone the rest are all unaffected by this
game.Debris:AddItem(StartButtonClone,.2)
StartButtonClone.Parent = ScreenGui.Frame
StartButtonClone.Position = StartButton.Position
TS:Create(StartButtonClone, TweenInfo.new(.2, Enum.EasingStyle.Quad), {Size = UDim2.new(0.604, 0,0.150, 0)}):Play()
print(StartButtonClone.Position)
wait(1)
end
COMMUNITY QUESTION
couroutine loop works only once for a object the rest dont work?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
