I'm making a script where you can see yourself and hidden passages through ROBLOX, essentially an illusion game.
Problem:
me=script.Parent.Parent.Parent.Parent.Character:Clone()
while wait(0.2) do
script.Parent.CurrentCamera = workspace.CurrentCamera
me.Parent = script.Parent
wait()
end
It then ends up with:
22:30:18.473 - Players.kolbyplaysroblox123.PlayerGui.ScreenGui.ViewportFrame.LocalScript:4: attempt to index global 'me' (a nil value)
22:30:18.474 - Stack Begin
22:30:18.475 - Script 'Players.kolbyplaysroblox123.PlayerGui.ScreenGui.ViewportFrame.LocalScript', Line 4
22:30:18.475 - Stack End
If you can help i'll give a shout-out if i make a game out of it.

5 comments
Please?
Post the entire script
Done.
If this is inside a GUI, I'd suggest you change the value of "me" to game.Players.LocalPlayer.Character:Clone(). Also, if this is in a normal script, use LocalScript.
This IS inside of a GUI, but if it's local or not, it gives me the nil value anyway.