Advertisement
munciseek

Untitled

Dec 1st, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 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 = "Dimensional eye",
  10. Asset = "rbxassetid://108269161773810",
  11. HeightOffset = 0
  12. },
  13. Lights = {
  14. Flicker = {
  15. Enabled = false,
  16. Duration = 1
  17. },
  18. Shatter = true,
  19. Repair = false
  20. },
  21. Earthquake = {
  22. Enabled = false
  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 = 1,
  31. Delay = 99999,
  32. Reversed = true
  33. },
  34. Rebounding = {
  35. Enabled = false,
  36. Type = "Ambush", -- "Blitz"
  37. Min = 1,
  38. Max = 1,
  39. Delay = 2
  40. },
  41. Damage = {
  42. Enabled = false,
  43. Range = 40,
  44. Amount = 125
  45. },
  46. Crucifixion = {
  47. Enabled = false,
  48. Range = 40,
  49. Resist = false,
  50. Break = true
  51. },
  52. Death = {
  53. Type = "Guiding", -- "Curious"
  54. Hints = {"Death", "Hints", "Go", "Here"},
  55. Cause = ""
  56. }
  57. })
  58.  
  59. ---====== Run entity ======---
  60. entity:Run()
  61.  
  62. local running = true
  63.  
  64. coroutine.wrap(function()
  65. local hum = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  66. local eyeModel = game.Workspace:FindFirstChild("Dimensional eye")
  67. local eyes = eyeModel and eyeModel:FindFirstChild("Eye")
  68.  
  69. while running and eyeModel and eyes do
  70. local camera = workspace.CurrentCamera
  71. local _, onScreen = camera:WorldToViewportPoint(eyes.Position)
  72.  
  73. if onScreen then
  74. hum.Health -= 1 -- 每帧减少1点血量
  75. if hum.Health <= 0 then
  76. game:GetService("ReplicatedStorage").GameStats["Player_" .. game.Players.LocalPlayer.Name].Total.DeathCause.Value = "Dimensional Eye"
  77. firesignal(game.ReplicatedStorage.RemotesFolder.DeathHint.OnClientEvent, {
  78. "You died to Dimensional Eye.",
  79. "It will appear above the door",
  80. "Don't look at it"
  81. }, "Blue")
  82. end
  83. end
  84. task.wait(0.01)
  85. end
  86. end)()
  87.  
  88. game.ReplicatedStorage.GameData.LatestRoom.Changed:Wait()
  89. coroutine.wrap(function()
  90. local eyeModel = game.Workspace:FindFirstChild("Dimensional eye")
  91. wait(10)
  92. running = false
  93. eyeModel:Destroy()
  94. end)()
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement