why isnt the frame appearing, the blur works and other things but the frame jsut doesnt appear,
eg.Blur, 0.1, {Size = 0})
changeVisibilityS(Store, val6)
debounce = false
end
end
why isnt the frame appearing, the blur works and other things but the frame jsut doesnt appear,
eg.Blur, 0.1, {Size = 0})
changeVisibilityS(Store, val6)
debounce = false
end
end
Hello! This is because you are calling StarterGui instead of the LocalPlayer’s PlayerGui.
You are calling starter gui. To actually make it work, you need to call player gui, which is in a folder called PlayerGui in the player object.
Hey! This is because you are calling StarterGui rather than the PlayerGui folder in the player. I have edited a little of your script and it should work now:
elseif frame.Name == “Store” then
debounce = true
local Player = game.Players.LocalPlayer
local Menus = Player.PlayerGui.Menus
local Store = Menus:WaitForChild(“Case”)
local val6 = Store.Visible
Store.Visible = not val6
Store.TopFrame.ExitFrame.Transparency = val6 and 0 or 1
if frame.Name == “Store” and not val6 then
Store.Position = UDim2.fromScale(0.5, 0.65)
if UserInputService.TouchEnabled then
Store:TweenPosition(UDim2.fromScale(0.5, 0.45))
else
Store:TweenPosition(UDim2.fromScale(0.5, 0.5))
end
local caseopeningframe = game:GetService(“StarterGui”).Menus.CaseOpening
local player = game.Players.LocalPlayer
local rs = game.ReplicatedStorage
local scroll = game:GetService(“StarterGui”).Menus.Case.Case
wait(0.1)
scroll:ClearAllChildren()
for i,case in pairs(rs.cases:GetChildren()) do
local frame = script.CaseItem:Clone()
frame.name.Text = case.Name
frame.SwordIcon.Image = case.ImageLabel.Image
frame.Parent = scroll
end
script.UIGridLayout:Clone().Parent = scroll
script.UIPadding:Clone().Parent = scroll
yieldingTween(frame, 0.3, {Size = UDim2.new(0.85, 0,1.25, 0)})
changeVisibilityS(Store, val6)
yieldingTween(game.Lighting.Blur, 0.1, {Size = 10})
yieldingTween(Store.TopFrame.ExitFrame, 0.27, {Transparency = 0})
debounce = false
elseif frame.Name == “Store” then
yieldingTween(frame, 0.1, {Size = UDim2.new(0.75, 0,1.1, 0)})
yieldingTween(game.Lighting.Blur, 0.1, {Size = 0})
changeVisibilityS(Store, val6)
debounce = false
end
end
Thanks for the help, in the future ill refer to PlayerGui instead.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.