Mamamamamoeokwam

Blitz spawner

Nov 2nd, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. ---====== Load spawner ======---
  2.  
  3. local spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Entity%20Spawner/V2/Source.lua"))()
  4.  
  5. ---====== Create entity ======---
  6.  
  7. local entity = spawner.Create({
  8. Entity = {
  9. Name = "Template Entity",
  10. Asset = "https://github.com/RegularVynixu/Utilities/raw/main/Doors/Entity%20Spawner/Assets/Entities/BackdoorRush.rbxm",
  11. HeightOffset = 0
  12. },
  13. Lights = {
  14. Flicker = {
  15. Enabled = true,
  16. Duration = 1
  17. },
  18. Shatter = true,
  19. Repair = false
  20. },
  21. Earthquake = {
  22. Enabled = true
  23. },
  24. CameraShake = {
  25. Enabled = true,
  26. Range = 100,
  27. Values = {1.5, 20, 0.1, 1} -- Magnitude, Roughness, FadeIn, FadeOut
  28. },
  29. Movement = {
  30. Speed = 100,
  31. Delay = 0,
  32. Reversed = false
  33. },
  34. Rebounding = {
  35. Enabled = true,
  36. Type = "Blitz", -- "Ambush"
  37. Min = 69,
  38. Max = 696,
  39. Delay = 1.2
  40. },
  41. Damage = {
  42. Enabled = false,
  43. Range = 40,
  44. Amount = 125
  45. },
  46. Crucifixion = {
  47. Enabled = true,
  48. Range = 40,
  49. Resist = false,
  50. Break = false
  51. },
  52. Death = {
  53. Type = "Curious", -- "Guiding"
  54. Hints = {"E", "are you scripter", "omg thats so gyattie!", "can it jiggle?"},
  55. Cause = ""
  56. }
  57. })
  58.  
  59. ---====== Debug entity ======---
  60.  
  61. entity:SetCallback("OnSpawned", function()
  62. print("Entity has spawned")
  63. end)
  64.  
  65. entity:SetCallback("OnStartMoving", function()
  66. print("Entity has started moving")
  67. end)
  68.  
  69. entity:SetCallback("OnEnterRoom", function(room, firstTime)
  70. if firstTime == true then
  71. print("Entity has entered room: ".. room.Name.. " for the first time")
  72. else
  73. print("Entity has entered room: ".. room.Name.. " again")
  74. end
  75. end)
  76.  
  77. entity:SetCallback("OnLookAt", function(lineOfSight)
  78. if lineOfSight == true then
  79. print("Player is looking at entity")
  80. else
  81. print("Player view is obstructed by something")
  82. end
  83. end)
  84.  
  85. entity:SetCallback("OnRebounding", function(startOfRebound)
  86. if startOfRebound == true then
  87. print("Entity has started rebounding")
  88. else
  89. print("Entity has finished rebounding")
  90. end
  91. end)
  92.  
  93. entity:SetCallback("OnDespawning", function()
  94. print("Entity is despawning")
  95. end)
  96.  
  97. entity:SetCallback("OnDespawned", function()
  98. print("Entity has despawned")
  99. end)
  100.  
  101. entity:SetCallback("OnDamagePlayer", function(newHealth)
  102. if newHealth == 0 then
  103. print("Entity has killed the player")
  104. else
  105. print("Entity has damaged the player")
  106. end
  107. end)
  108.  
  109. --[[
  110.  
  111. DEVELOPER NOTE:
  112. By overwriting 'CrucifixionOverwrite' the default crucifixion callback will be replaced with your custom callback.
  113.  
  114. entity:SetCallback("CrucifixionOverwrite", function()
  115. print("Custom crucifixion callback")
  116. end)
  117.  
  118. ]]--
  119.  
  120. ---====== Run entity ======---
  121.  
  122. entity:Run()
Advertisement
Add Comment
Please, Sign In to add comment