#help

1 messages · Page 1 of 1 (latest)

kind folio
#

Someone can help me? i have a npc shop but when i press "E" the frame of the npc dont appear and if the npc frame dont appear the shop also dont appear

dapper yokeBOT
#

studio** You are now Level 2! **studio

hidden sable
kind folio
hidden sable
#

we cant help you with your code if you dont show your code

#

idk what u have to send here, its your code

kind folio
#

but is in spanish

#

local Lighting = game:GetService("Lighting")
local Boton = script.Parent
local TiendaFrame = script.Parent.Parent.Parent
local Musica = script.Parent.Parent.Parent.Parent.Sonidos.MusicaTienda
local Blur = Lighting:WaitForChild("DesenfoqueTienda")


local NivelDeDesenfoque = 38 -- El nivel de desenfoque de "Blur" en lighting cuando la tienda abre
local DesenfoqueTiempo = 1 -- Tiempo que tarda en desenfocarse la pantalla
local PocisionFueraTienda = UDim2.new(-1.293, 0,0.122, -1) -- Pocision Fuera deL Frame Tienda
local PocisionDentroTienda = UDim2.new(0.293, 0,0.122, 0) -- Pocision Dentro deL Frame Tienda
local TiempoAnimacionTienda = 1 -- Tiempo que tarda en cumplirse las animaciones de la tienda (DEFAULT: 1)
local TransicionFadeOutMusica = 0.5
local TrancisionBlurout = 0.5

local function fadeOutBlur(blurEffect, duration)
local currentSize = blurEffect.Size
for i = currentSize, 0, -currentSize / (duration * 30) do
blurEffect.Size = i
wait(1/30) -- Espera aproximadamente 1/30 segundos para el próximo decremento
end
blurEffect.Size = 0
end

local function fadeOutMusic(music, duration)
local currentVolume = music.Volume
for i = currentVolume, 0, -currentVolume / (duration * 30) do
music.Volume = i
wait(1/30) -- Espera aproximadamente 1/30 segundos para el próximo decremento
end
music:Pause()
end

Boton.MouseButton1Click:Connect(function()
if TiendaFrame.Position == PocisionDentroTienda then -- Pocision Dentro de la pantalla
TiendaFrame:TweenPosition(PocisionFueraTienda, Enum.EasingDirection.Out, Enum.EasingStyle.Sine, TiempoAnimacionTienda) -- Pocision Fuera de la pantalla
fadeOutBlur(Blur, TrancisionBlurout)
fadeOutMusic(Musica, TransicionFadeOutMusica)
end
end)
this is when close

#

what is bad?

#

why the frame dont appear