So I created a Script to be able to look through walls and The script can Destroy your place forever. By that I mean even by deleting the script after, the game remains destroyed. Errors Everywhere, scripts stop working, all sorts of code with variables become nil. I've already Destroyed two of my places. I don't know if this is a Roblox Bug or the script has the power to destroy a Place permanently. I couldn't reverse the process.
Here's the code, Use with caution, I've already warned you:
01 | local player = game.Players.LocalPlayer |
02 |
03 | function lookforHumanoid() |
04 | local child = workspace:GetChildren() |
05 | for child, humanoid in pairs (child) do |
06 | local outline = Instance.new( "SelectionBox" ) |
07 | if humanoid:IsA( "BasePart" ) and humanoid.Name = = "Humanoid" and outline.Parent ~ = humanoid then |
08 | outline.Parent = humanoid |
09 | outline.Adornee = humanoid |
10 | outline.SurfaceTransparency = 1 |
11 | outline.Transparency = 1 |
12 | outline.LineThickness = 0.5 |
13 | local Start = player.Character.Head.CFrame.p |
14 | local End = humanoid.CFrame.p |
15 | local ray = Ray.new(Start,(End - Start).unit * 300 ) |
If you are saying it turns invisible, heres why:
You put a outline transparency as One. This causes many errors to occur, such as:
Script Errors Game Malfunctions, such as: Lag Exploding for No Reason
If this does not fix it then its probably the fact that multiple commands did NOT get finished. Such as "outline == humanoid then" and then a new command was started.