[SOLVED] Modulescript, path varable not working

  1. What do you want to achieve?
    so basicly i want to create a modulescript that creates a frame and move it to the parent (its something complicater but basicly this, i did the rest --that is not included in here–)
  2. What is the issue?
    I get a parent, what works when printed, but when it goes to the modulescipt it is suddendly a table?

Bevore sending
afbeelding

After (when send, i printed it in the code)
afbeelding
it prints
afbeelding

  1. What solutions have you tried so far?
    i have searched on internet for a while, but i couldend find anything. i also have no idea why this happens.

Can you show the Script?

sure, heres the script where the problem lies (the entire script is like 150 rows long)
script:


Modulescript (the print is already a table)
afbeelding

Also ignore that there is no varialbe where the parent is needed, i deleted it, because it didn’t even work.

Change A:Random to A.Random

1 Like

Thanks, i have litterly no idea why that didn’t come to my mind.

1 Like

If you were wondering why it was erroring, it’s because using : instead of . will use self.

It’s used in OOP implementation. Like for example you would use object:GetName() instead of module.GetName(object). self is pretty advanced, so you can read more about it here.

1 Like