Module script parameter nil when not?

I made a module function and the last parameter is returning nil when its not? Does anyone know how to fix this?

-- local

placement:Place(rp.Units[unitToPlace.Name], cf,Placement:isColliding(unitToPlace),"test")

-- module

function Placement:Place(model, cf, isColliding,test)
    if (not isColliding and isServer) then
        print(model) -- model's name
        print(cf) -- cframe
        print(isColliding) --false
        print(test) -- nil
1 Like

are you putting anything in the last parameter? show me the function that casts the function

1 Like

nevermind I figured it out, it was cause of the isServer part, apparently the string didnt replicate to the server

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.