Function not working

Hello! I’m trying to make a startup button for my game but it doesnt work!

Here it is the script:

local Module require(game.ReplicatedStorage.EventsModule.StartUp)

script.Parent.ProximityPrompt.Triggered:Connect(function()
	Module:Init()
	script.Parent.ProximityPrompt.Enabled = false
	script.Disabled = true
end)

If you know how to fix this, Please reply!

(module uses module.Init = function())

Where’s the = between Module and require?

You use : instead of . for the Init function.

wh- im very blind -_- thanks it actually helped ;-;

1 Like

This mistake is silly to be made, when you are debugging your script, MAKE SURE to check spelling errors.