I am not sure if it’s possible to do this: I’ve made a function in a module script and I want to change the preview in Script Editor for the parameter to “plr” and add a Description
Look at the 4th Line:
As you can see, the Preview is a long text (plr: t2 where t1…) with no description
How can I make it say “plr” and add a description like here:
I don’t know if necessary, but that’s my Module Script code:
local ext = {}
ext.all = "all"
ext.Warn = true
ext.kill = function(plr)
if plr == ext.all then
for i, v in pairs(game:GetService("Players"):GetChildren()) do
v.Character:WaitForChild("Humanoid").Health = 0
end
elseif plr:IsA("Player") then
plr.Character:WaitForChild("Humanoid").Health = 0
elseif ext.Warn == true and not plr:IsA("Player") then
warn("[ext.kill] Given plr is not a Player)")
else
warn("[ext.kill] An Error has occurred")
end
end
return ext
Is this even possible to do?
Thanks in advance