Mryeetmemes

Script

Dec 9th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.20 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local Player = Players.LocalPlayer
  3. local Workspace = game:GetService("Workspace")
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage"):WaitForChild("ReplicatedStorage_CLOUD")
  5.  
  6.  
  7. spawn(function()
  8.     while wait() do
  9.         for _, v in pairs(Workspace:GetChildren()) do
  10.             if ReplicatedStorage:FindFirstChild("Units") then
  11.                 if ReplicatedStorage.Units:FindFirstChild(v.Name) then
  12.                     if v:FindFirstChild("Configuration") then
  13.                         if v.Configuration:FindFirstChild("Owner") then
  14.                             if v.Configuration.Owner.Value == Player.Name then
  15.                                 if v:FindFirstChild("Highlight") then
  16.                                     local Highlight = v.Highlight
  17.                                     if v:FindFirstChild("Torso") then
  18.                                         Highlight.Position = v:WaitForChild("Torso").Position + Vector3.new(0, -1.5, 0)
  19.                                     end
  20.                                 else
  21.                                     local Highlight = ReplicatedStorage:WaitForChild("Highlight"):Clone()
  22.                                     Highlight.Name = "Highlight"
  23.                                     Highlight.Parent = v
  24.                                     if v:FindFirstChild("Torso") then
  25.                                         Highlight.Position = v:WaitForChild("Torso").Position + Vector3.new(0, -1.5, 0)
  26.                                     end
  27.                                 end
  28.                             end
  29.                         end
  30.                     end
  31.                 end
  32.             end
  33.         end
  34.     end
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment