#should i just retire living

1 messages · Page 1 of 1 (latest)

marble nexus
#
local Party = {}
Party.__index = Party  
Party.ClassName = "Party"

function Party.new(guest: number)
    return setmetatable({
        _guest = guest;
    }, Party)
end

function Party:Celebrate()
    print(self._guest, "people are at the party")
end

return Party

ReplicatedStorage.ModuleScript:12: attempt to index nil with '_guest' - Server - ModuleScript:12

cosmic geyser
buoyant needle
#

pretty sure celebrate() should expect argument self (since it's a method)

keen sphinxBOT
#

studio** You are now Level 8! **studio

azure eagle
#

your code works

#

check your server script

azure eagle
keen sphinxBOT
#

studio** You are now Level 1! **studio