Roblox Module Script Status Bar Source Code

Notes: Put the Status value in the ReplicatedStorage. It is a STRINGVALUE.

LocalScript in the TextLabel in the ScreenGui:

local status = game.ReplicatedStorage:WaitForChild("Status")

script.Parent.Text = status.Value

status.Changed:Connect(function()

script.Parent.Text = status.Value

end

Code in ModuleScript

local module = {}

function module.updateStatus(statusMessage)

game.ReplicatedStorage:WaitForChild(“Status”).Value = statusMessage

end

return module

Code in Server Script

local module = require(game.ServerStorage.ModuleScript)
module.updateStatus(“Your Message Here”)

Become an AlvinBlox Channel Member and benefit from a range of perks!