Can anybody help me with my play button screen in roblox studio

Hey

I made a play button on my game,

But when I made it this happened,

robloxapp-20210403-1154225.wmv (1.9 MB)

  1. My other guis are on the screen

  2. The camera is on my character

  3. I can move around and do the obby whilst in the play screen.

Can someone help?

Screenshot 2021-04-03 115714

1 Like

Use this:

local button = script.Parent
local blur = game.Lighting.Blur
local Humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
Humanoid.PlatformStand = true
-- Code for button click
Humanoid.PlatformStand = false

A more (visually pleasing?) way would be to set the WalkSpeed and JumpPower to 0, then back to the original values when the button is clicked.

EDIT: For the rest of the GUIs, just make it so the buttons and stuff are invisible until the button click.

1 Like

I’m not really the one for scripting, im more into building and making guis so uh could you be able to tell me how to make this :-/

Could you please give me a pic of your GUIs? Like where they’re located and stuff?

What do you mean?
Like this?

No, like in explorer. Where the GUIs are parented and stuff.

R to reset
Donate 20
100
1000

and

Play?

Like this:
image

20 robux
Screenshot 2021-04-03 120551

100 robux
Screenshot 2021-04-03 120651

1000 robux
Screenshot 2021-04-03 120727

R To Reset
Screenshot 2021-04-03 120754

That’s not what I mean. Like where they are located under StarterGui.
image

the playbutton? or all the guis?

All GUIs you don’t want to be shown when the Play Button is visible and the Play Button.

Screenshot 2021-04-03 121026 Screenshot 2021-04-03 121013 Screenshot 2021-04-03 121000
Screenshot 2021-04-03 121101

You’d have to do something like this:

local PlayButton = -- Path to Button here
if PlayButton.Visible = true then
for _, v in pairs(game.Players.LocalPlayers.PlayerGui:GetChildren()) do
if v ~= PlayButton.Parent then -- Or the GUI the Play Button is located in
v.Enabled = false
end
end
else 
PlayButton.MouseButton1Down:Connect(function()
for _, v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
if v ~= PlayButton.Parent then
v.Enabled = true
else
v.Enabled = false
end)

robloxapp-20210403-1216376.wmv (1.2 MB)

local PlayButton = -- Path to Button here
if PlayButton.Visible == true then
for _, v in pairs(game.Players.LocalPlayers.PlayerGui:GetChildren()) do
print(v.Name)
if v ~= PlayButton.Parent then -- Or the GUI the Play Button is located in
v.Enabled = false
end
end

PlayButton.MouseButton1Down:Connect(function()
print("Player Clicked!")
for _, v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
if v ~= PlayButton.Parent then
v.Enabled = true
else
v.Enabled = false
end)

See if the print statements run.

Print Statement?

It should print in the output. Also, where have you put the local script?

I put the localscript in the textbutton

Screenshot 2021-04-03 122236

Wait I forgot an equals sign, try the updated code above where I said “See if the print statements run”