Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me?

Asked by 10 years ago

I NEED HELP! My credits script isn't working for some reason. The Frame pops up but there is litterally no text that pops up. I need it for a release of my game.

if game.Workspace.EndCredits.Value == true then
    camera.CameraType = "Scriptable"
    camera.CameraSubject = target19
 camera.CoordinateFrame = CFrame.new(target19.Position) 
   * CFrame.Angles(0, math.rad(180), 0)
wait(3)
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Visible = true
repeat wait(0.01) game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency = game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency - 0.01 until game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency  >= 0
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency  = 1
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.Text = "sf200 for over 25% of the entire game models!"
repeat wait(0.01) game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency = game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency - 0.01 until game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency  >= 0
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency  = 1
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.Text = "Unclear for scripting help!"
repeat wait(0.01) game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency = game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency - 0.01 until game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency  >= 0
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.TextTransparency  = 1
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Credit.Text = "blox876 for scripting help!"
 game.Players.LocalPlayer.PlayerGui.TheEnd.Credits.Visible = false
    repeat wait(0.01) game.Players.LocalPlayer.PlayerGui.TheEnd.Frame.TextLabel.TextTransparency = game.Players.LocalPlayer.PlayerGui.TheEnd.Frame.TextLabel.TextTransparency - 0.01 until game.Players.LocalPlayer.PlayerGui.TheEnd.Frame.TextLabel.TextTransparency >= 0
    game.Workspace.EndCredits.Value = false
end

2 answers

Log in to vote
1
Answered by 10 years ago

I think the problem is you're making it repeat until it's >=0, so it would stop if the TextTransparency is GREATER than 0. Try to make it repeat until the transparency is <=0.

0
THANK YOU :D deputychicken 226 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

no idea buddy... is this the whole script?

Answer this question