Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why isn't my pixel script not working? not changing Color or Material on display screen

Asked by 5 years ago
Edited 5 years ago

this script makes 2 grid 1 to display the Color / material the other to detect parts in front of it so it knows what Color / Material it should display No errors it changes Color / Material but that's perminite i want it to dispaear when you stop touching a detectorPart it Crashes studio Code:

01local Size = Vector2.new(script.Parent.Backround.Size.X,script.Parent.Backround.Size.Y)
02Distance = 10
03Resaoltion = Vector3.new(1,1,1)
04FPS = 1
05BasePosition = Vector3.new(-21.5, -0.5, 0.5)
06------function------------
07    GetPart = function(Part1,Part2)
08        Part1.Touched:Connect(function(hit)
09            Part2.Color = hit.Color
10            Part2.Material = hit.Material
11        end)
12    end
13-----Mirror------
14for X=1, Size.X do
15    for Y=1, Size.Y do
View all 59 lines...

Answer this question