Advertisement
munciseek

Untitled

Oct 13th, 2024
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 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 = "Trauma",
  10. Asset = "https://github.com/munciseek/DOORS-entity-models/raw/main/Nightmare/Trauma.rbxm",
  11. HeightOffset = 0
  12. },
  13. Lights = {
  14. Flicker = {
  15. Enabled = true,
  16. Duration = 5
  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 = 600,
  31. Delay = 5,
  32. Reversed = false
  33. },
  34. Rebounding = {
  35. Enabled = false,
  36. Type = "Ambush", -- "Blitz"
  37. Min = 1,
  38. Max = 1,
  39. Delay = 2
  40. },
  41. Damage = {
  42. Enabled = true,
  43. Range = 100,
  44. Amount = 99999
  45. },
  46. Crucifixion = {
  47. Enabled = true,
  48. Range = 100,
  49. Resist = false,
  50. Break = true
  51. },
  52. Death = {
  53. Type = "Guiding", -- "Curious"
  54. Hints = {"You died to Trauma", "It will come every 3-4 minutes", "Note their location", "Don't worry, Try again!"},
  55. Cause = ""
  56. }
  57. })
  58.  
  59. ---====== Debug entity ======---
  60.  
  61. entity:SetCallback("OnDamagePlayer", function(newHealth)
  62. if newHealth == 0 then
  63. local Players = game:GetService("Players")
  64. local RunService = game:GetService("RunService")
  65. local TweenService = game:GetService("TweenService")
  66. local starterGui = Players.LocalPlayer:WaitForChild("PlayerGui")
  67.  
  68. local jumpScareGui = Instance.new("ScreenGui")
  69. jumpScareGui.Name = "JumpScareGui"
  70. jumpScareGui.Parent = starterGui
  71.  
  72. local backgroundFrame = Instance.new("Frame")
  73. backgroundFrame.Name = "BackgroundFrame"
  74. backgroundFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  75. backgroundFrame.Size = UDim2.new(1, 0, 1.1, 0)
  76. backgroundFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  77. backgroundFrame.Parent = jumpScareGui
  78. backgroundFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  79. backgroundFrame.BackgroundTransparency = 0
  80.  
  81. local jumpScareImage = Instance.new("ImageLabel")
  82. jumpScareImage.Name = "JumpScareImage"
  83. jumpScareImage.AnchorPoint = Vector2.new(0.5, 0.5)
  84. jumpScareImage.Size = UDim2.new(0.7, 0, 1, 0)
  85. jumpScareImage.Position = UDim2.new(0.5, 0, 0.5, 0)
  86. jumpScareImage.Image = "rbxassetid://136572789552041"
  87. jumpScareImage.BackgroundTransparency = 1
  88. jumpScareImage.Parent = backgroundFrame
  89.  
  90. local jumpScareSound = Instance.new("Sound")
  91. jumpScareSound.SoundId = "rbxassetid://10483837590"
  92. jumpScareSound.Parent = jumpScareImage
  93. jumpScareSound:Play()
  94.  
  95. local originalPosition = jumpScareImage.Position
  96. local originalRotation = jumpScareImage.Rotation
  97. local intensity = 30
  98. local angleIntensity = 10
  99.  
  100. local shakeConnection = RunService.RenderStepped:Connect(function()
  101. jumpScareImage.Position = originalPosition + UDim2.fromOffset(math.random(-intensity, intensity), math.random(-intensity, intensity))
  102. jumpScareImage.Rotation = originalRotation + math.random(-angleIntensity, angleIntensity)
  103. end)
  104.  
  105. wait(2)
  106. shakeConnection:Disconnect()
  107. backgroundFrame.BackgroundTransparency = 1
  108.  
  109. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
  110. local imageTween = TweenService:Create(jumpScareImage, tweenInfo, {ImageTransparency = 1})
  111. imageTween:Play()
  112. imageTween.Completed:Connect(function()
  113. jumpScareGui:Destroy()
  114. end)
  115. end
  116. end)
  117.  
  118. ---====== Run entity ======---
  119.  
  120. entity:Run()
  121.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement