Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Workspace = game:GetService("Workspace")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Map = Workspace:WaitForChild("Map")
- local Path = Map:WaitForChild("Path")
- local Arrows = Map:WaitForChild("Arrows")
- local Sounds = Map:WaitForChild("Sounds")
- local Configuration = Map:WaitForChild("Configuration")
- local Self = script.Parent
- function refresh()
- if Configuration.Health.Value <= 0 then
- Self:WaitForChild("Bar").Size = UDim2.new(0, 0, 1, 0)
- Self:WaitForChild("Label").Text = "0/100"
- else
- Self:WaitForChild("Bar").Size = UDim2.new((Configuration.Health.Value / 100), 0, 1, 0)
- Self:WaitForChild("Label").Text = Configuration.Health.Value.. "/100"
- end
- end
- Configuration.Health.Changed:Connect(function()
- refresh()
- end)
- refresh()
Advertisement
Add Comment
Please, Sign In to add comment