Personal Script Problem

Help how does ROBLOX not think there’s a function, am i stupid or is this a bug?



This is because when you wrote your functions in the ModuleScript, they aren’t actually part of the module table object.

In order for them to be accessible, you need to define them as member functions belonging to that object.

Use this syntax instead:

function module.PartToPart() --//basically make the function header look like this

end
1 Like

Thank you so much :slight_smile:

1 Like

New problem! How can i subtract the variables of x y z, using “position.x” doesn’t work.