Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Workspace = game:GetService("Workspace")
- local ReplicatedStorage = game:GetService("ReplicatedStorage"):WaitForChild("ReplicatedStorage_CLOUD")
- spawn(function()
- while wait() do
- for _, v in pairs(Workspace:GetChildren()) do
- if ReplicatedStorage:FindFirstChild("Units") then
- if ReplicatedStorage.Units:FindFirstChild(v.Name) then
- if v:FindFirstChild("Configuration") then
- if v.Configuration:FindFirstChild("Owner") then
- if v.Configuration.Owner.Value == Player.Name then
- if v:FindFirstChild("Highlight") then
- local Highlight = v.Highlight
- if v:FindFirstChild("Torso") then
- Highlight.Position = v:WaitForChild("Torso").Position + Vector3.new(0, -1.5, 0)
- end
- else
- local Highlight = ReplicatedStorage:WaitForChild("Highlight"):Clone()
- Highlight.Name = "Highlight"
- Highlight.Parent = v
- if v:FindFirstChild("Torso") then
- Highlight.Position = v:WaitForChild("Torso").Position + Vector3.new(0, -1.5, 0)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment