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.