#Cant figure it out

1 messages · Page 1 of 1 (latest)

rustic gyro
#

I cant seem to figure it out nothing works the shop wont even pop up and the little cube with shop in it even appears when its not supposed to

glass wraith
#

you missspelled OpenShop

local openShop = GUI.OpenShop

instead of

local openShop = GUI.openShop
solemn narwhal
#

Also try to use waitforchild("if the script has to run when stuff is still loading")

grave karma
#

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

solemn narwhal
#

Btw you can also just disable and enable the entire shopgui if you made a separate screengui for it

solemn narwhal
#

Yk a screengui? The blue tv box icob

rustic gyro
rustic gyro
solemn narwhal
#

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

rustic gyro
glass wraith
rustic gyro
solemn narwhal
glass wraith
glass wraith
#

it doesnt matter if its off screen

rustic gyro
#

..

solemn narwhal
rustic gyro
#

@glass wraith

#

and this shouldnt appear

#

yet

solemn narwhal
rustic gyro
rustic gyro
#

tho

#

I dont want it appear before

#

ohh

#

I gotta add the script in that part

#

to

solemn narwhal
glass wraith
#

he still wants the tweenevilcat

rustic gyro
#

im so confused

#

how do I make this also be gone

solemn narwhal
#

Oh mighty lord

rustic gyro
#

and when I click shop

#

it opens

glass wraith
#

you need to box everything in a frame and then tween the frame

rustic gyro
#

wdym by tween

solemn narwhal
#

Hes not gonna understand that

rustic gyro
#

theres 2 frames?

#

before I open the shop

#

I mean

#

the Shop 2

#

is the one before I open the shop

#

that appears

solemn narwhal
#

The stuff you want to appear and dissappear

glass wraith
#

omfg

solemn narwhal
#

Has to be in onr single box

glass wraith
#

I dont get it

solemn narwhal
#

And then use tweenservice on that box

glass wraith
#

like people are getting alone this far and then they dont understand the simpliest shit wehn they go make a thread

grave karma
#
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

glass wraith
#

this isnt gonna fix his issue

solemn narwhal
#

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 🫡

glass wraith
#

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

rustic gyro
#

how can I fix it

glass wraith
#

why are you using things you dont understand

rustic gyro
#

yt / ai