Advertisement
mjv2023

Untitled

Aug 31st, 2023
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. ---====== Define spawner ======---
  2.  
  3. local Spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Entity%20Spawner/Source.lua"))()
  4.  
  5. ---====== Create entity ======---
  6.  
  7. local entity = Spawner.createEntity({
  8. CustomName = "Template Entity",
  9. Model = "rbxassetid://11327312794", -- Your entity's model url here ("rbxassetid://1234567890" or GitHub raw url)
  10. Speed = 100,
  11. MoveDelay = 2,
  12. HeightOffset = 0,
  13. CanKill = true,
  14. KillRange = 50,
  15. SpawnInFront = false,
  16. ShatterLights = true,
  17. FlickerLights = {
  18. Enabled = true,
  19. Duration = 1
  20. },
  21. Cycles = {
  22. Min = 1,
  23. Max = 1,
  24. Delay = 2
  25. },
  26. CamShake = {
  27. Enabled = true,
  28. Values = {1.5, 20, 0.1, 1},
  29. Range = 100
  30. },
  31. ResistCrucifix = false,
  32. BreakCrucifix = true,
  33. DeathMessage = {"Custom", "death", "message", "goes", "here."},
  34. IsCuriousLight = false
  35. })
  36.  
  37. ---====== Debug ======---
  38.  
  39. entity.Debug.OnEntitySpawned = function()
  40. print("Entity has spawned")
  41. end
  42.  
  43. entity.Debug.OnEntityDespawned = function()
  44. print("Entity has despawned")
  45. end
  46.  
  47. entity.Debug.OnEntityStartMoving = function()
  48. print("Entity started moving")
  49. end
  50.  
  51. entity.Debug.OnEntityFinishedRebound = function()
  52. print("Entity finished rebound")
  53. end
  54.  
  55. entity.Debug.OnEntityEnteredRoom = function(room)
  56. print("Entity entered room:", room)
  57. end
  58.  
  59. entity.Debug.OnLookAtEntity = function()
  60. print("Player looking at entity")
  61. end
  62.  
  63. entity.Debug.OnDeath = function()
  64. print("Player has died")
  65. end
  66.  
  67. --[[
  68. NOTE: By overwriting 'OnUseCrucifix', the default crucifixion will be ignored and this function will be called instead
  69.  
  70. entity.Debug.OnUseCrucifix = function()
  71. print("Custom crucifixion script here")
  72. end
  73. ]]--
  74.  
  75. ---====== Run entity ======---
  76.  
  77. Spawner.runEntity(entity)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement