#Button Image

1 messages · Page 1 of 1 (latest)

unique trail
#

Is it just me or the button image signals doesn't work.

Module Script:

print('checkpoint')

ButtonImage.MouseButton1Click:Connect(function() 
  print('button pressed')
end)

Only chekpoint logged but not the button pressed, I even added the new PressedImage property and it did change on press or tried the MouseEnter but no log.

mint robin
#

modules dont work

#

if

#

not required

#

and 2nd modules cant recieve events

unique trail
# mint robin and 2nd modules cant recieve events

Wait wha- the module script was working fine yesterday, and then I logged today, there was a new update in studio and suddenly the buttons don't work.

and yes I did try adding a local script in the button it did log, so it was pressed but how is the module script not working.

mint robin
#

well i might be wrong but um

#

show full code

unique trail
# mint robin show full code
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local TweenService = require(ReplicatedStorage.Modules.TweenService)
local Utilities = require(ReplicatedStorage.Modules.Utilities)
local Knit = require(ReplicatedStorage.Packages.Knit)

local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui

local MainMenu = {}
MainMenu.__index = MainMenu

function MainMenu.new()
    local CameraController = Knit.GetController("CameraController")
    local self = setmetatable({
        connections = {},
    }, MainMenu)

    self.MainMenuGui = PlayerGui.MainMenu

    TweenService.Prepare(self.MainMenuGui, TweenService.TweenAction.Fade)

    local MainMenuContainer = self.MainMenuGui.MainMenu

    self.Backdrop = TweenService.GroupElements(self.MainMenuGui.Backdrop:GetChildren(), TweenService.TweenAction.Fade)
    self.Container = TweenService.GroupElements(MainMenuContainer:GetDescendants(), TweenService.TweenAction.Fade)

    CameraController:SetCamera(CameraController.CameraPosition.MainMenu, false)
    self.Backdrop:state()
    self.Container:state()

    Utilities.bindConnection(
        self.connections,
        MainMenuContainer.Play.MouseButton1Click,
        Utilities.sugar(self, self.Play)
    )

    return self
end

function MainMenu:Play()
    local MenuController = Knit.GetController("MenuController")
    MenuController:SetMenu(MenuController.Menu.Game)
end

function MainMenu:Destroy()
    Utilities.disconnect(self.connections)
    self.Backdrop:state(true, true)
    self.Container:state(true)
end

return MainMenu

i have my own TweenService and Utilities module.

sudden boltBOT
#

studio** You are now Level 6! **studio

unique trail
#

This was working yesterday though

unique trail
#

Ohhhh, fk, I didn't notice I was getting kicked by my profile service.