Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

2 comments

0

tried that it didn't show the play button when i reseted

0

i thought that's what ur trying to do.. isn't it??

Button script Line 46 add ) to the end

end)

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

This discussion is preserved as it was. New answers, comments, and votes are closed.