Advertisement
munciseek

Untitled

Nov 30th, 2024 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. local spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Entity%20Spawner/V2/Source.lua"))()
  2.  
  3. ---====== Create entity ======---
  4.  
  5. local entity = spawner.Create({
  6. Entity = {
  7. Name = "Smiler",
  8. Asset = "rbxassetid://75922777251456",
  9. HeightOffset = 1
  10. },
  11. Lights = {
  12. Flicker = {
  13. Enabled = true,
  14. Duration = 1
  15. },
  16. Shatter = true,
  17. Repair = false
  18. },
  19. Earthquake = {
  20. Enabled = false
  21. },
  22. CameraShake = {
  23. Enabled = true,
  24. Range = 100,
  25. Values = {20, 20, 1, 2} -- Magnitude, Roughness, FadeIn, FadeOut
  26. },
  27. Movement = {
  28. Speed = 850,
  29. Delay = 12,
  30. Reversed = false
  31. },
  32. Rebounding = {
  33. Enabled = true,
  34. Type = "Ambush", -- "Blitz"
  35. Min = 5,
  36. Max = 20,
  37. Delay = 1
  38. },
  39. Damage = {
  40. Enabled = true,
  41. Range = 100,
  42. Amount = 200
  43. },
  44. Crucifixion = {
  45. Enabled = true,
  46. Range = 100,
  47. Resist = false,
  48. Break = false
  49. },
  50. Death = {
  51. Type = "Guiding", -- "Curious"
  52. Hints = {"You die to Smiler", "It's stronger than Ambush", "It is now Ambush upgraded", "Must concentrate"},
  53. Cause = "Smiler"
  54. }
  55. })
  56.  
  57. ---====== Debug entity ======---
  58.  
  59. entity:SetCallback("OnSpawned", function()
  60. local abrt = Instance.new("ColorCorrectionEffect")
  61. abrt.Name = "Smiler Light Flicker"
  62. abrt.Parent = game.Lighting
  63. abrt.Brightness = 0.1
  64. abrt.Contrast = 0.3
  65. abrt.Enabled = false
  66. abrt.Saturation = -0.4
  67. abrt.TintColor = Color3.fromRGB(255, 255, 255)
  68.  
  69. local val1 = Instance.new("IntValue")
  70. val1.Name = "SmilerVal1"
  71. val1.Parent = game.Players.LocalPlayer
  72. val1.Value = 0
  73.  
  74. local val2 = Instance.new("IntValue")
  75. val2.Name = "SmilerVal2"
  76. val2.Parent = game.Players.LocalPlayer
  77. val2.Value = 0
  78.  
  79. game:GetService("ReplicatedStorage").Sounds.BulbCharge:Play()
  80. wait(0.772)
  81.  
  82. while true do
  83. wait(0.1)
  84. if val1.Value == 0 then
  85. abrt.Enabled = true
  86. game:GetService("ReplicatedStorage").Sounds.BulbZap.PlaybackSpeed = 0.9
  87. game:GetService("ReplicatedStorage").Sounds.BulbZap:Play()
  88. val1.Value = val1.Value + 1
  89. val2.Value = val2.Value + 1
  90. elseif val1.Value == 1 then
  91. abrt.Enabled = false
  92. val1.Value = val1.Value + 1
  93. if val1.Value == 2 then
  94. val1.Value = 0
  95. end
  96. val2.Value = val2.Value + 1
  97. end
  98. if val2.Value == 100 then
  99. wait(0.1)
  100. game:GetService("ReplicatedStorage").Sounds.BulbZap.PlaybackSpeed = 1
  101. break
  102. end
  103. end
  104.  
  105. abrt:Destroy()
  106. val1:Destroy()
  107. val2:Destroy()
  108. end)
  109.  
  110. entity:SetCallback("OnDamagePlayer", function(newHealth)
  111. if newHealth == 0 then
  112. local jumpscare = loadstring(game:HttpGet("https://pastebin.com/raw/MwNSDg7E"))()
  113. local JS = jumpscare.Create({
  114. image = {
  115. Asset = "rbxassetid://100301640019139"
  116. },
  117. Audio = {
  118. Asset = "rbxassetid://5263560566",
  119. AC = false -- Play full audio
  120. }
  121. })
  122. JS:Run()
  123. end
  124. end)
  125.  
  126. ---====== Run entity ======---
  127.  
  128. entity:Run()
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement