Advertisement
RobloxScripTTPoster

(Doors) Entity Creator Script

Dec 4th, 2022 (edited)
758
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. local Creator = loadstring(game:HttpGet("https://raw.githubusercontent.com/Xactver/LUA-Scripts/main/ShopItemCrucifix"))()
  2.  
  3. -- Create entity
  4. local entity = Creator.createEntity({
  5. CustomName = "EntityNameHere", -- Custom name of your entity
  6. Model = "rbxassetid://11735614255", -- Can be GitHub file or rbxassetid
  7. Speed = 100, -- Percentage, 100 = default Rush speed
  8. DelayTime = 1.5, -- Time before starting cycles (seconds)
  9. HeightOffset = 0,
  10. KillRange = 50,
  11. BreakLights = true,
  12. BackwardsMovement = false,
  13. FlickerLights = {
  14. true, -- Enabled/Disabled
  15. 5, -- Time (seconds)
  16. },
  17. Cycles = {
  18. Min = 1,
  19. Max = 1,
  20. WaitTime = 3,
  21. },
  22. CamShake = {
  23. true, -- Enabled/Disabled
  24. {3.5, 20, 0.1, 1}, -- Shake values (don't change if you don't know)
  25. 0, -- Shake start distance (from Entity to you)
  26. },
  27. Jumpscare = {
  28. false, -- Enabled/Disabled
  29. {
  30. Image1 = "rbxassetid://10110576663", -- Image1 url
  31. Image2 = "rbxassetid://10110576663", -- Image2 url
  32. Shake = true,
  33. Sound1 = {
  34. 8880765497, -- SoundId
  35. { Volume = 1 }, -- Sound properties
  36. },
  37. Sound2 = {
  38. 9045199073, -- SoundId
  39. { Volume = 1 }, -- Sound properties
  40. },
  41. Flashing = {
  42. true, -- Enabled/Disabled
  43. Color3.fromRGB(255, 255, 255), -- Color
  44. },
  45. Tease = {
  46. false, -- Enabled/Disabled
  47. Min = 1,
  48. Max = 3,
  49. },
  50. },
  51. },
  52. CustomDialog = {"You died to who you call A-60.", "It's a tricky one!", "Use what you have learned from ambush!"}, -- Custom death message
  53. })
  54.  
  55. -----[[ Advanced ]]-----
  56. entity.Debug.OnEntitySpawned = function(entityTable)
  57. print("Entity has spawned:", entityTable.Model)
  58. end
  59.  
  60. entity.Debug.OnEntityDespawned = function(entityTable)
  61. print("Entity has despawned:", entityTable.Model)
  62. end
  63.  
  64. entity.Debug.OnEntityStartMoving = function(entityTable)
  65. CanKill = true
  66. end
  67.  
  68. entity.Debug.OnEntityFinishedRebound = function(entityTable)
  69. print("Entity has finished rebound:", entityTable.Model)
  70. end
  71.  
  72. entity.Debug.OnEntityEnteredRoom = function(entityTable, room)
  73. print("Entity:", entityTable.Model, "has entered room:", room)
  74. end
  75.  
  76. entity.Debug.OnLookAtEntity = function(entityTable)
  77. print("Player has looked at entity:", entityTable.Model)
  78. end
  79.  
  80. entity.Debug.OnDeath = function(entityTable)
  81. end
  82. ------------------------
  83.  
  84. -- Run the created entity
  85. Creator.runEntity(entity)
Advertisement
Comments
  • MCM_MCM
    2 years
    # text 3.13 KB | 0 0
    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)
  • CANTGETUP
    1 year
    # text 0.02 KB | 0 0
    1. maybe a working script
Add Comment
Please, Sign In to add comment
Advertisement