#[RESOLVED]

1 messages · Page 1 of 1 (latest)

shut pecan
#

i made a shop right but whenever u and reset it jus BREAKS and doesnt open

#
local proximityPrompt = script.Parent
local remoteevent = game.ReplicatedStorage.ShopEvent

proximityPrompt.Triggered:Connect(function(player)
    remoteevent:FireClient(player)
end)

proximity prompt that sends event

#
script.Parent.MouseButton1Down:Connect(function()
    local player = game.Players.LocalPlayer
    local ui = script.Parent.Parent:GetDescendants()

    for _, v in pairs(ui) do
        if v:IsA("Frame") or v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("ImageButton") or v:IsA("ImageLabel") or v:IsA("ScrollingFrame") then
            v.Visible = false
        end
    end

    local humanoid = player.Character:FindFirstChild("Humanoid")
    if humanoid then
        humanoid.WalkSpeed = 16
    end
end)
#

exit shop

#
local player = game.Players.LocalPlayer
local shopUI = player:WaitForChild("PlayerGui"):WaitForChild("shopui")

player.CharacterAdded:Connect(function()
    for _, v in pairs(shopUI:GetDescendants()) do
        if v:IsA("Frame") or v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("ImageButton") or v:IsA("ImageLabel") or v:IsA("ScrollingFrame") then
            v.Visible = false
        end
    end
end)

game.ReplicatedStorage.ShopEvent.OnClientEvent:Connect(function()
    for _, v in pairs(shopUI:GetDescendants()) do
        if v:IsA("Frame") or v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("ImageButton") or v:IsA("ImageLabel") or v:IsA("ScrollingFrame") then
            v.Visible = true
        end
    end

    local humanoid = player.Character:FindFirstChild("Humanoid")
    if humanoid then
        humanoid.WalkSpeed = 0
    end
end)

shop entrance

#

im not sure how to fix it since uh idk whats causing it

#

no problem no nun

#

no error code too

echo seal
#

Go to your screen gui that holds the frame, and set ResetOnSpawn to false

shut pecan
#

dud

#

is that srsly it

echo seal
#

I'm not completely sure, but just try it.

shut pecan
#

OK ill try gmme a min

#

that worked

#

no way

echo seal
#

nice

shut pecan
#

but 1 more thing

#

it broke my entire ui

echo seal
#

What did it break?

shut pecan
#

its not suppost to look like that

echo seal
#

What is it supposed to look like

shut pecan
#

sec

#

i made a pic before

#

i mean i could jus place it back

#

i suppose

echo seal
#

Also may I ask, why are you setting all of the descendants of the shop ui visibility to false?

shut pecan
#

oh because of this

echo seal
#

MY EYES

shut pecan
#

sorry

#

but theres a bunch of folders in the

#

playerui

echo seal
#

One more thing are all of those local scripts for tweening

shut pecan
#

no

#

descriptions and stuff

echo seal
#

Okay

shut pecan
#

oh i fixed it

#

all i had to do was set

#

screen insents

#

to none

#

BUT

#

i didnt reset

#

so lemme try doin that

#

now it doesnt open

#

again

#

because it turned on

#

reset thing

#

there

echo seal
#

Well, I think you can handle the rest

shut pecan
#

it all got fixed in the end

#

good endine

#

tanks a b unch

#

[RESOLVED]

echo seal
#

Alright have a nice day, goodluck on your game

shut pecan
#

u have a nice day