#[RESOLVED]
1 messages · Page 1 of 1 (latest)
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
Go to your screen gui that holds the frame, and set ResetOnSpawn to false
I'm not completely sure, but just try it.
nice
What did it break?
its not suppost to look like that
What is it supposed to look like
Also may I ask, why are you setting all of the descendants of the shop ui visibility to false?
MY EYES
One more thing are all of those local scripts for tweening
Okay
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
Well, I think you can handle the rest
Alright have a nice day, goodluck on your game
u have a nice day