Mechanical Mirror | Roblox Studio

Аватар автора
Игровые Возможности
Mechanical Mirror | Roblox Studio Hey Guys!, In this video I will make a Mechanical Mirror, sort of... Just watch till the end and you&see, and also, don&forget to subscribe. :D Script: local Pix = game.Workspace.Pix local fullSize = Pix.Size.Y local halfSize = fullSize/2 local Ldist = 30 for YAx = 1,40 do local newY = Pix:Clone() newY.Parent = game.Workspace.Pixels newY.Position = Vector3.new(0,(halfSize+((YAx-1)*fullSize)),0) for XAx = 1,25 do local newX = newY:Clone() newX.Parent = game.Workspace.Pixels newX.Position = newY.Position + Vector3.new(fullSize*XAx,0,0) end end Pix:Destroy() while wait() do for i,v in pairs(game.Workspace.Pixels:GetChildren()) do v.Color = Color3.new(1, 1, 1) local RayC = workspace:Raycast(v.Position, v.CFrame.LookVector * Ldist) if RayC then if RayC.Instance then local Lmag = (RayC.Position - v.Position).magnitude / Ldist local nColor = Color3.new(Lmag-1, Lmag-1, Lmag-1) v.Color = nColor end end end end

0/0


0/0

0/0

0/0