Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local waitTime = 0.1
- local spill
- if game.PlaceId == 915545262 then
- local spill = game.Workspace.ActiveSpills:GetChildren("Spill")
- game.Workspace.ActiveSpills.ChildAdded:Connect(function()
- for i,v in pairs(spill) do
- wait(waitTime)
- local BillboardGui = Instance.new("BillboardGui")
- local Frame = Instance.new("Frame")
- BillboardGui.Parent = v
- BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui.Active = true
- BillboardGui.AlwaysOnTop = true
- BillboardGui.LightInfluence = 1.000
- BillboardGui.Size = UDim2.new(0, 50, 0, 50)
- Frame.Parent = BillboardGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Frame.BackgroundTransparency = 0.200
- Frame.Size = UDim2.new(0, 30, 0, 30)
- wait(waitTime)
- end
- end)
- elseif game.PlaceId == 961426258 then
- game.Workspace["Spill Assets"].ChildAdded:Connect(function()
- local spill = game.Workspace["Spill Assets"].Spills:GetChildren("DrinkSpill")
- while true do
- for i,v in pairs(spill) do
- local BillboardGui = Instance.new("BillboardGui")
- local Frame = Instance.new("Frame")
- BillboardGui.Parent = v
- BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui.Active = true
- BillboardGui.AlwaysOnTop = true
- BillboardGui.LightInfluence = 1.000
- BillboardGui.Size = UDim2.new(0, 50, 0, 50)
- Frame.Parent = BillboardGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Frame.BackgroundTransparency = 0.200
- Frame.Size = UDim2.new(0, 30, 0, 30)
- wait(waitTime)
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement