Advertisement
MCM_MCM
Mar 3rd, 2023
60
0
Never
This is comment for paste (Doors) Entity Creator Script
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- The new one is
  2.  
  3.  
  4. local Spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors%20Entity%20Spawner/Source.lua"))()
  5.  
  6.  
  7. -- Create entity
  8. local entityTable = Spawner.createEntity({
  9. CustomName = "UrEntityNameHere", -- Custom name of your entity
  10. Model = "rbxassetid://UrIdHere", -- Can be GitHub file or rbxassetid
  11. Speed = 100, -- Percentage, 100 = default Rush speed
  12. DelayTime = 2, -- Time before starting cycles (seconds)
  13. HeightOffset = 0,
  14. CanKill = true,
  15. KillRange = 50,
  16. BackwardsMovement = false,
  17. BreakLights = true,
  18. FlickerLights = {
  19. true, -- Enabled/Disabled
  20. 1, -- Time (seconds)
  21. },
  22. Cycles = {
  23. Min = 1,
  24. Max = 4,
  25. WaitTime = 2,
  26. },
  27. CamShake = {
  28. true, -- Enabled/Disabled
  29. {3.5, 20, 0.1, 1}, -- Shake values (don't change if you don't know)
  30. 100, -- Shake start distance (from Entity to you)
  31. },
  32. Jumpscare = {
  33. true, -- Enabled/Disabled
  34. {
  35. Image1 = "rbxassetid://10483855823", -- Image1 url
  36. Image2 = "rbxassetid://10483999903", -- Image2 url
  37. Shake = true,
  38. Sound1 = {
  39. 10483790459, -- SoundId
  40. { Volume = 0.5 }, -- Sound properties
  41. },
  42. Sound2 = {
  43. 10483837590, -- SoundId
  44. { Volume = 0.5 }, -- Sound properties
  45. },
  46. Flashing = {
  47. true, -- Enabled/Disabled
  48. Color3.fromRGB(255, 255, 255), -- Color
  49. },
  50. Tease = {
  51. true, -- Enabled/Disabled
  52. Min = 1,
  53. Max = 3,
  54. },
  55. },
  56. },
  57. -- Death message moved to entityTable.Debug.OnDeath, added Curious light as "Yellow" and improved the death message
  58. })
  59.  
  60.  
  61. -----[[ Debug -=- Advanced ]]-----
  62. entityTable.Debug.OnEntitySpawned = function()
  63. print("Entity has spawned:", entityTable)
  64. end
  65.  
  66. entityTable.Debug.OnEntityDespawned = function()
  67. print("Entity has despawned:", entityTable)
  68. end
  69.  
  70. entityTable.Debug.OnEntityStartMoving = function()
  71. print("Entity has started moving:", entityTable)
  72. end
  73.  
  74. entityTable.Debug.OnEntityFinishedRebound = function()
  75. print("Entity has finished rebound:", entityTable)
  76. end
  77.  
  78. entityTable.Debug.OnEntityEnteredRoom = function(room)
  79. print("Entity:", entityTable, "has entered room:", room)
  80. end
  81.  
  82. entityTable.Debug.OnLookAtEntity = function()
  83. print("Player has looked at entity:", entityTable)
  84. end
  85.  
  86. entityTable.Debug.OnDeath = function()
  87. print(entityTable, "killed a player")
  88. -- Custom Guiding light/Curious light
  89. -- replace Custom text with your own guiding/curious light text
  90. -- you can replace "Blue" to "Yellow" to show curious light instead of guiding light
  91. -- Add , "YourTextHere" for more spaces in the guiding light (replace YourTextHere to any text u want)
  92.  
  93. firesignal(game.ReplicatedStorage.EntityInfo.DeathHint.OnClientEvent, {"Custom text"}, "Blue")
  94.  
  95. end
  96. ------------------------------------
  97.  
  98.  
  99. -- Run the created entity
  100. Spawner.runEntity(entityTable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement