#Cant figure it out
1 messages · Page 1 of 1 (latest)
you missspelled OpenShop
local openShop = GUI.OpenShop
instead of
local openShop = GUI.openShop
Also try to use waitforchild("if the script has to run when stuff is still loading")
hmmmm
Missing tween :Play()
i guess also the script is in the wrong place ... its in the gui itself , not StarterPlayerScripts
also no close button function
Btw you can also just disable and enable the entire shopgui if you made a separate screengui for it
wdym by that
Yk a screengui? The blue tv box icob
oh wait is it OpenShop or openShop
yh
You can enable and disable it and you wont be able to see or use anything when its diabled
Everything inside the screengui wil vanish
but if I click the button shop it should appear but it doesnt do it at all
he wants it to tween you cant tween a boolean
theres no error so it should work
Hm position isint a bool right?
well ur explorer says OpenShop and your script says openShop
yes but how are you supposed to tween something wehn you enable disable the screengui
it doesnt matter if its off screen
fixed but if I open it doesnt close
..
Hew and right
You never made a script to close it
oh
how can I fix this
tho
I dont want it appear before
ohh
I gotta add the script in that part
to
Thats bc you only made the shpp invisible, not the stuff in it. If i were you id use screenguis for the shop and just enable and disable it
he still wants the tween
Oh mighty lord
you need to box everything in a frame and then tween the frame
wdym by tween
Hes not gonna understand that
theres 2 frames?
before I open the shop
I mean
the Shop 2
is the one before I open the shop
that appears
The stuff you want to appear and dissappear
omfg
Has to be in onr single box
I dont get it
And then use tweenservice on that box
like people are getting alone this far and then they dont understand the simpliest shit wehn they go make a thread
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local GUI = playerGui:WaitForChild("ScreenGui")
local ShopWindow = playerGui:WaitForChild("Shop")
local openShop = GUI:WaitForChild("openShop")
local closeButton = ShopWindow:WaitForChild("Exit")
ShopWindow.Enabled = false
local function OpenWindow()
ShopWindow.Enabled = true
ShopWindow.Frame.Position = UDim2.new(0.5, 0, -0.5, 0)
TweenService:Create(ShopWindow.Frame, TweenInfo.new(0.5, Enum.EasingStyle.Back), {
Position = UDim2.new(0.5, 0, 0.5, 0)
}):Play()
end
local function CloseWindow()
TweenService:Create(ShopWindow.Frame, TweenInfo.new(0.3, Enum.EasingStyle.Back), {
Position = UDim2.new(0.5, 0, -0.5, 0)
}):Play()
wait(0.3)
ShopWindow.Enabled = false
end
openShop.MouseButton1Click:Connect(OpenWindow)
closeButton.MouseButton1Click:Connect(CloseWindow)
local GUI = playerGui:WaitForChild("ScreenGui")
local ShopWindow = playerGui:WaitForChild("Shop")
local openShop = GUI:WaitForChild("openShop")
local closeButton = ShopWindow:WaitForChild("Exit")
make sure to rename things correctly
this should now tween correctly + has a function for X
this isnt gonna fix his issue
Make a box with the shop stuff (box = frame) all the stuf you want to make appear and dissappear. Then tween that frame and all the other stuff should follow
Theres only so much i can do ob mobile 🫡
it doesnt work
I already said that
that this wont work
we helped you with your tween here Swxgy why dont you try to fix this issue yourself and if you cant you come back @rustic gyro
how can I fix it
what Tween
..
why are you using things you dont understand
yt / ai