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

Guys I really need help. I made a play button and a intro gui. I need help anybody?

Asked by 4 years ago
Edited by SerpentineKing 4 years ago

Ok ok so i made a play button and a intro gui but it seems when i reset when the intro screen is there i seem to get the play button appeared! I really tried everything i could to fix it but nothing worked :( here is the script

Button script

local playergui = game.Players.LocalPlayer.PlayerGui
local player = game.Players.LocalPlayer
local character = player.Character
local camera = workspace.CurrentCamera
local PlayerGui = player.PlayerGui
local hum = character:WaitForChild("Humanoid")

wait(0.01)
script.Parent.Parent.ResetOnSpawn = false
script.Parent.Visible = true

script.Parent.ZIndex = 1

script.Parent.MouseButton1Click:Connect(function(player)
    repeat
        wait(0.1)
        camera.CameraType = Enum.CameraType.Scriptable
    until camera.CameraType == Enum.CameraType.Scriptable

    camera.CFrame = workspace.CameraPosition2.CFrame
    script.Parent.Visible = false
    wait(0.1)

    local fadingclone = playergui.BlackFadingGui.Frame:Clone()
    fadingclone.Parent = playergui.BlackFadingGui

    wait(0.1)
    playergui.CharacterSelectionGui.Frame.Visible = true
end)

script.Parent.MouseEnter:Connect(function()
    script.Parent.BackgroundTransparency = .5
end)

script.Parent.MouseLeave:Connect(function()
    script.Parent.BackgroundTransparency = 1
end)


hum.Died:Connect(function()
    script.Parent.ZIndex = 1
    script.Parent.Visible = false
    wait(0.01)
    script.Parent.ZIndex = 1
    script.Parent.Visible = true
end

LoadingScreen script


local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui") local GUI = script.Parent GUI.Frame.Visible = true PlayerGui:SetTopbarTransparency(0) GUI.Frame.TextLabel.ZIndex = 2 GUI.Parent = PlayerGui GUI.Frame.TextLabel.Text = 'For a better experience, we recommend headphones.' wait(5) GUI.Frame.TextLabel.Text = "From the works of jkiop23 and NervousKrystof" wait(5) GUI.Frame.TextLabel.Text = "jkiop23 presents" wait(5) GUI.Frame.TextLabel.TextColor3 = Color3.fromRGB(85,0,127) GUI.Frame.TextLabel.Text = "Fredbear and Friends Family Dinner" wait(3) local frame= GUI.Frame --the frame you added wait (2) for loop = 1,10 do wait (0.1) frame.TextLabel.TextTransparency = loop/10 game:GetService ("RunService"). Stepped:Wait() end frame.TextLabel.BackgroundTransparency = 1 for loop = 1,10 do wait (0.1) frame.BackgroundTransparency = loop/10 game:GetService ("RunService"). Stepped:Wait() end frame:Destroy() frame.Visible = false

3 answers

Log in to vote
0
Answered by 4 years ago

in the ScreenGui that has the play button, change it's ResetOnSpawn property to false..

0
tried that it didn't show the play button when i reseted trickortreat333444 -6 — 4y
0
i thought that's what ur trying to do.. isn't it?? User#23252 26 — 4y
Ad
Log in to vote
0
Answered by
G2001H 75
4 years ago
Edited 4 years ago

Button script Line 46 add ) to the end

end)
Log in to vote
-1
Answered by
Lakodex 711 Moderation Voter
4 years ago

The english on this post I don't get what you are trying to say, Please correct the english so I can help you.

Answer this question