Simply Code [EARLY SNEAK PEAKS]

FREE MODULE SOON


This will be a free module as soon as I’Am finished adding more stuff
and finalizing the generality of the functionality.


image

I Won’t be providing any original code yet since I want it to be really fresh but
I can provide at least some little sneak peaks.


Ownership Of Certain Part’s:

function module:RemoveOwnership(Part)
	-- Handling of the ownership of the parts recieved without any errors
	local Success, Error = pcall(function()
		Part.Locked = true
		for _, Child in pairs(Part:GetDescendants()) do
			if Child:IsA("BasePart") then
				Child:SetNetworkOwner(nil)
			end
		end
	end)
end

“Multi Task” in one:

function module:MultiTask(Remove, Set, Part)
	-- Handling both Remove and Set Ownership Functions with one function
	if Remove then
		module:RemoveOwnership(Part)
	end
	if Set then 
		module:SetOwnerShip(Part, Set)
	end
end

Simply ban example usage:


module:TimeBan(myDataStore, banDuration, userID)

For banning players for a certain duration.


module:PermBan(myDataStore, userID)

For banning players permanently


module:UnBan(myDataStore, userID)

For unbanning players no matter if they had an duration or not
it will unban them directly.


The checking if the user is banned is being monitored by the SimpleData.
The hardware ban is not REALLY an hardware ban just a ban that is really
hard to get rid of, Basically only the owner can remove this kind of ban.
And you’ll need to manually enter the userid of the player into the script.

Shadow Banning on the other hand is actually something i wanted to do for so
long now, and finally did, It was rather simple tho i had it harder in mind.

However it works perfectly fine, The moment the player joins, It runs the
Default checks and makes everyone disappear from the screen and he’ll get muted.


I’d like to know if this is a good idea and if i should release a form of this
as an ui, If so I’ll work on a ui form of this.

1 Like

at this point your kinda making your own admin script but it doesnt spoon feed the devs because they gotta use those functions in their own script instead of inserting it and using the commands

i think this is a great idea you should release form of this as an UI

1 Like