Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I keep getting error's when trying to use Clonetroppers Module3D. Help?

Asked by
Sei4or -3
7 years ago

So I have this code that connects to Clonetroppers module3D. But it doesn't work.

Here it is:

                local handler = require(script.Parent.Module3D)
                local oldGui = script.Parent
                local newGui,modifier = handler:AdornScreenGuiToWorld(script.Parent,3)
                print(oldGui.Parent,newGui.Parent)
                wait(1)
                modifier:SetAdorneeStudWidth(2)
                wait(1)
                modifier:End()
                print(oldGui.Parent,newGui.Parent)

The error I get is: 07:25:42.093 - Players.Sei4or.PlayerGui.ScreenGui.LocalScript:6: attempt to index local 'modifier' (a nil value)

I still don't get why this would be wrong. If someone could help that would be great.

0
Bump Sei4or -3 — 7y
0
Have you declared what modifier is? Capemanner 55 — 7y

Answer this question