Advertisement
This is comment for paste
(Doors) Entity Creator Script
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- The new one is
- local Spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors%20Entity%20Spawner/Source.lua"))()
- -- Create entity
- local entityTable = Spawner.createEntity({
- CustomName = "UrEntityNameHere", -- Custom name of your entity
- Model = "rbxassetid://UrIdHere", -- Can be GitHub file or rbxassetid
- Speed = 100, -- Percentage, 100 = default Rush speed
- DelayTime = 2, -- Time before starting cycles (seconds)
- HeightOffset = 0,
- CanKill = true,
- KillRange = 50,
- BackwardsMovement = false,
- BreakLights = true,
- FlickerLights = {
- true, -- Enabled/Disabled
- 1, -- Time (seconds)
- },
- Cycles = {
- Min = 1,
- Max = 4,
- WaitTime = 2,
- },
- CamShake = {
- true, -- Enabled/Disabled
- {3.5, 20, 0.1, 1}, -- Shake values (don't change if you don't know)
- 100, -- Shake start distance (from Entity to you)
- },
- Jumpscare = {
- true, -- Enabled/Disabled
- {
- Image1 = "rbxassetid://10483855823", -- Image1 url
- Image2 = "rbxassetid://10483999903", -- Image2 url
- Shake = true,
- Sound1 = {
- 10483790459, -- SoundId
- { Volume = 0.5 }, -- Sound properties
- },
- Sound2 = {
- 10483837590, -- SoundId
- { Volume = 0.5 }, -- Sound properties
- },
- Flashing = {
- true, -- Enabled/Disabled
- Color3.fromRGB(255, 255, 255), -- Color
- },
- Tease = {
- true, -- Enabled/Disabled
- Min = 1,
- Max = 3,
- },
- },
- },
- -- Death message moved to entityTable.Debug.OnDeath, added Curious light as "Yellow" and improved the death message
- })
- -----[[ Debug -=- Advanced ]]-----
- entityTable.Debug.OnEntitySpawned = function()
- print("Entity has spawned:", entityTable)
- end
- entityTable.Debug.OnEntityDespawned = function()
- print("Entity has despawned:", entityTable)
- end
- entityTable.Debug.OnEntityStartMoving = function()
- print("Entity has started moving:", entityTable)
- end
- entityTable.Debug.OnEntityFinishedRebound = function()
- print("Entity has finished rebound:", entityTable)
- end
- entityTable.Debug.OnEntityEnteredRoom = function(room)
- print("Entity:", entityTable, "has entered room:", room)
- end
- entityTable.Debug.OnLookAtEntity = function()
- print("Player has looked at entity:", entityTable)
- end
- entityTable.Debug.OnDeath = function()
- print(entityTable, "killed a player")
- -- Custom Guiding light/Curious light
- -- replace Custom text with your own guiding/curious light text
- -- you can replace "Blue" to "Yellow" to show curious light instead of guiding light
- -- Add , "YourTextHere" for more spaces in the guiding light (replace YourTextHere to any text u want)
- firesignal(game.ReplicatedStorage.EntityInfo.DeathHint.OnClientEvent, {"Custom text"}, "Blue")
- end
- ------------------------------------
- -- Run the created entity
- Spawner.runEntity(entityTable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement