Advertisement
thelegend14532

99% fail script

Aug 6th, 2022
702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1.  
  2. --Name: "99% Fail Script | MEMORY [Open Source]"
  3.  
  4. --// Services \\--
  5. local Workspace = game:GetService("Workspace")
  6. local Players = game:GetService("Players")
  7. --// Variables \\--
  8. local Player = Players.LocalPlayer
  9. local Tiles = Workspace:WaitForChild("Map"):WaitForChild("Game"):WaitForChild("Tiles")
  10. local Original = Color3.fromRGB(198, 237, 255)
  11. --// Remember Broken Glass \\--
  12. Tiles.DescendantAdded:Connect(function(A_1)
  13. if A_1.Name == "GlassShatter" then
  14. -- Set Color
  15. A_1.Parent.Color = Color3.new(1, 0, 0)
  16. -- Get Lane
  17. local Lane = A_1.Parent.Parent.Name
  18. if Lane == "Right" then
  19. Lane = "Left"
  20. else
  21. Lane = "Right"
  22. end
  23. -- Set Sibling Color
  24. local Number = A_1.Parent.Name:match("%d+")
  25. Tiles[Lane]["Tile" .. Number].Color = Color3.new(0, 1, 0)
  26. end
  27. end)
  28. --// Remember Stepped Glass \\--
  29. for _, A_1 in next, Tiles:GetDescendants() do
  30. if A_1:IsA("TouchTransmitter") then
  31. local Part = A_1.Parent
  32. Part.Touched:Connect(function(A_2)
  33. -- Check if already broken
  34. if A_2.Transparency == 1 then
  35. return
  36. end
  37. -- Timer
  38. local Timer = tick() + 0.5
  39. repeat
  40. task.wait()
  41. until tick() - Timer > 0 or Part.Transparency == 1
  42. -- Get Lane
  43. local Lane = A_1.Parent.Parent.Name
  44. if Lane == "Right" then
  45. Lane = "Left"
  46. else
  47. Lane = "Right"
  48. end
  49. -- Check if broke
  50. if Part.Transparency == 1 then
  51. -- Set Glass Color
  52. Part.Color = Color3.new(1, 0, 0)
  53. -- Set Sibling Color
  54. local Number = A_1.Parent.Name:match("%d+")
  55. Tiles[Lane]["Tile" .. Number].Color = Color3.new(0, 1, 0)
  56. elseif A_2.Parent.Humanoid.Health == 100 then
  57. -- Set Glass Color
  58. Part.Color = Color3.new(0, 1, 0)
  59. -- Set Sibling Color
  60. local Number = A_1.Parent.Name:match("%d+")
  61. Tiles[Lane]["Tile" .. Number].Color = Color3.new(1, 0, 0)
  62. end
  63. end)
  64. end
  65. end
  66. --// UI Library \\--
  67. local Library = loadstring(game:HttpGetAsync('https://raw.githubusercontent.com/Just-Egg-Salad/roblox-scripts/main/uwuware'))()
  68. local Window = Library:CreateWindow("Memory by Ezpi")
  69. Window:AddButton({
  70. text = "Clear Colors",
  71. callback = function()
  72. for _, A_1 in next, Tiles:GetDescendants() do
  73. if A_1:IsA("BasePart") then
  74. A_1.Color = Original
  75. end
  76. end
  77. end
  78. })
  79. Library:Init()
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement