I want to make a better version of the roblox classic, "Hint" class by turning it into an open source module script which will soon contain customisable settings like color, font, animation type, animation speed, etc. And that's my idea of I want it to be in the near future.
Basically, how do I make this serversided or something?
I don't know how to do this in a module script because If I use remote events, it's obviously not going to work, server's never handle GUI's and will fail because of that, so only the client can handle GUI's.
Module located at game.StarterGui
local HintModule = {}
HintModule.Show = function(player, text, delayTime, everyone)
if everyone == true then
local guiClone = script:FindFirstChild("ScreenGui"):Clome()
-- help how do I make this clone and show text to everybody at the same time??
else
if not player then return end
if player then
script:FindFirstChild("ScreenGui"):Clone().Parent = player.PlayerGui
player.PlayerGui:FindFirstChild("ScreenGui").Frame.Visible = true
player.PlayerGui:FindFirstChild("ScreenGui").Frame.TextLabel.Text = text
task.wait(delayTime)
player.PlayerGui:FindFirstChild("ScreenGui"):Destroy()
end
end
end
return HintModule
The script that calls the module is a local script in the same parent as the module script is.

5 comments
Yes, you are right, I AM a noob scripter indeed, just like from my profile bio in ScriptingHelpers.
Okay, I just found somerthing, for some reason, not referencing the player when calling "SendHint" or "ShowHint" will not work, I'll try doing something about this.
It does work, but it doesn't show to everybody at the same time & already I broke the regeneration script, so the entirety of this thing doesn't work anymore. I give up. I shouldn't jump into a massive module script project way too quickly. I need to do simple things first and THEN I will be able to do this myself.
don't give up noob, I had mistake in my answer, LocalScript should have passed the player parameter to the module, I edited my answer, see if it works now.
damn I haven't responded to this in a long, long time