Custom Debris Service
Overview
"Custom Debris Service" is a module that created by iyiinsan5555 and created to delete things in roblox studio in unique way. It's similar to roblox's Debris service. The thing make my debris service is it's own animations.
Let's take a look at animations:
Delete Directly
Fade In
Get Away Randomly
Get Smaller
Parcalara Ayirma
Rotated
Patlamali
Looks good?
If you love it let's learn how to install and setup it.
Installation
Get module from this link: iyiinsan5555_Debris_Service
Or you can search it on toolbox like that: "iyiinsan5555_Debris_Service" and get module.
I suggest putting module inside ReplicatedStorage. So you can use it on client and server.
Setup
Alright! Let's open a script (client or server doesn't matter). So first thing first we need to require module to use it. Example of requiring (if you don't know) module:
local ReplicatedStorage = game("ReplicatedStorage")
local Custom_Debris_Module = require(ReplicatedStorage:WaitForChild("iyiinsan5555_Debris_Service"))
After requiring module when we want to add a item to debris service we need to call this function.
local ReplicatedStorage = game("ReplicatedStorage")
local Custom_Debris_Module = require(ReplicatedStorage:WaitForChild("iyiinsan5555_Debris_Service"))
Custom_Debris_Module:Add_Item()
Add_Item() function needs 3 parameters.
1-Item :Instance (If you want to use all animations you need to give BasePart as a parameter)
2-Lifetime :number (The time after item going to get deleted)
3-Debris_Type :string (You can find all debris types by typing this in script: "Custom_Debris_Module.Debris_Types")
Let me show an example:
local ReplicatedStorage = game("ReplicatedStorage")
local Custom_Debris_Module = require(ReplicatedStorage:WaitForChild("iyiinsan5555_Debris_Service"))
Custom_Debris_Module:Add_Item(workspace.Baseplate, 5, Custom_Debris_Module.Debris_Types.Get_Smaller )
Nice! If you read all of it, you know how to add item (with lifetime) to custom debris service.
Let's learn picking different Debris_Types:
--There is currently 7 debris types.
Custom_Debris_Module.Debris_Types.Delete_Directly
Custom_Debris_Module.Debris_Types.Fade_In
Custom_Debris_Module.Debris_Types.Get_Away_Randomly
Custom_Debris_Module.Debris_Types.Get_Smaller
Custom_Debris_Module.Debris_Types.Parcalara_Ayirma
Custom_Debris_Module.Debris_Types.Patlamali
Custom_Debris_Module.Debris_Types.Rotated
-- As i taught before you need to type Debris_Type in Add_Item function. Like that:
Custom_Debris_Module:Add_Item(workspace.Baseplate, 5, Custom_Debris_Module.Debris_Types.Parcalara_Ayirma )
I think you learned Add_Item function very well. Let's take a look other functions that you can use.
1-
Custom_Debris_Service:Get_Item_Count() 2-
Custom_Debris_Module:Get_Item_Lifetime(Item :Instance)
Time_Table = {
Item_Lifetime, --Lifetime of item
Item_Current_Lifetime, --Time that has passed
Remaining_Time --Remaining time to delete item
}.And it also prints info like that :
print ("Item's lifetime: "..Item_Lifetime.."s. The time that passed: "..Item_Current_Lifetime.."s. The remaining time: "..Remaining_Time.."s."))
I think usage of module is done! Let's take a look at module settings.
Module Settings
To setup module settings you need to type
Custom_Debris_Module.Settings
There is the videos of about what settings do:
Fast_Mode
Here is the how to use settings and what they do:
Custom_Debris_Module.Settings.Defualt_Lifetime = 5 -- If you don't give Lifetime as a parameter it will get deleted after 5 seconds
Custom_Debris_Module.Settings.Fade_In.TweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) -- TweenInfo that will control Fade_In tween.(I'm not gonna explain what is TweenInfo)
Custom_Debris_Module.Settings.Get_Smaller.TweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) -- TweenInfo that will control Get_Smaller tween.(I'm not gonna explain what is TweenInfo)
Custom_Debris_Module.Settings.Get_Away_Randomly.TweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) -- TweenInfo that will control Get_Away_Randomly tween.(I'm not gonna explain what is TweenInfo)
Custom_Debris_Module.Settings.Patlamali.Smaller_Tween_TweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) -- TweenInfo that will control Patlamali tween.(I'm not gonna explain what is TweenInfo)
Custom_Debris_Module.Settings.Patlamali.Patlamali_Tween_TweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0) -- TweenInfo that will control Patlamali tween.(I'm not gonna explain what is TweenInfo)
Custom_Debris_Module.Settings.Parcalara_Ayirma.Min_Size_Item_X = 0.5 -- In Parcalara_Ayirma debris type it creates this effect if a part is smaller that a size. This settings setup the min size on X axis.
Custom_Debris_Module.Settings.Parcalara_Ayirma.Min_Size_Item_Y = 0.5 -- In Parcalara_Ayirma debris type it creates this effect if a part is smaller that a size. This settings setup the min size Y axis.
Custom_Debris_Module.Settings.Parcalara_Ayirma.Min_Size_Item_Z = 0.5 -- In Parcalara_Ayirma debris type it creates this effect if a part is smaller that a size. This settings setup the min size Z axis.
Custom_Debris_Module.Settings.Min_Lifetime = 0.05 -- The minimum number of seconds before an item is removed
Custom_Debris_Module.Settings.Max_Items = 10000 -- The maximum number of items that can be added to the module
Custom_Debris_Module.Settings.Fast_Mode = false -- I highly don't suggest opening this. It could cause bugs. And weird movements but it's still a choice. It works faster for models if you open it. And you can delete things immediately
Contributors
iyiinsan5555 (Developed this website and module)