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.

2 comments

0

Bump

0

Have you declared what modifier is?