Need help with modulescript

Hi, I am creating a door system where there is a door and button, which are two separate models. I am using a ModuleScript and regular script stored in ServerStorage, with the ModuleScript containing a tween function/animation for the door, and the regular script playing the function when the button model is clicked. I don’t know where I should put the ModuleScript and script, but I have them in ServerStorage. They don’t seem to work, even though Roblox isn’t detecting any problems. Any help is appreciated!

Button Script, along with where the ModuleScript and regular script are stored

ModuleScript

2 Likes

The first image that you showed write this instead. You do not need the () when calling module.GateBOpenFunction:

GateBButton.MouseClick:Connect(module.GateBOpenFunction)
2 Likes

Thanks, I can click the button now but the door doesn’t move. No errors are being reported in the script, any ideas why?

1 Like

Move Script outside of ServerStorage

2 Likes