Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---====== Load spawner ======---
- local spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Entity%20Spawner/V2/Source.lua"))()
- ---====== Create entity ======---
- local entity = spawner.Create({
- Entity = {
- Name = "Trauma",
- Asset = "https://github.com/munciseek/DOORS-entity-models/raw/main/Nightmare/Trauma.rbxm",
- HeightOffset = 0
- },
- Lights = {
- Flicker = {
- Enabled = true,
- Duration = 5
- },
- Shatter = true,
- Repair = false
- },
- Earthquake = {
- Enabled = true
- },
- CameraShake = {
- Enabled = true,
- Range = 100,
- Values = {1.5, 20, 0.1, 1} -- Magnitude, Roughness, FadeIn, FadeOut
- },
- Movement = {
- Speed = 600,
- Delay = 5,
- Reversed = false
- },
- Rebounding = {
- Enabled = false,
- Type = "Ambush", -- "Blitz"
- Min = 1,
- Max = 1,
- Delay = 2
- },
- Damage = {
- Enabled = true,
- Range = 100,
- Amount = 99999
- },
- Crucifixion = {
- Enabled = true,
- Range = 100,
- Resist = false,
- Break = true
- },
- Death = {
- Type = "Guiding", -- "Curious"
- Hints = {"You died to Trauma", "It will come every 3-4 minutes", "Note their location", "Don't worry, Try again!"},
- Cause = ""
- }
- })
- ---====== Debug entity ======---
- entity:SetCallback("OnDamagePlayer", function(newHealth)
- if newHealth == 0 then
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local starterGui = Players.LocalPlayer:WaitForChild("PlayerGui")
- local jumpScareGui = Instance.new("ScreenGui")
- jumpScareGui.Name = "JumpScareGui"
- jumpScareGui.Parent = starterGui
- local backgroundFrame = Instance.new("Frame")
- backgroundFrame.Name = "BackgroundFrame"
- backgroundFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- backgroundFrame.Size = UDim2.new(1, 0, 1.1, 0)
- backgroundFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- backgroundFrame.Parent = jumpScareGui
- backgroundFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- backgroundFrame.BackgroundTransparency = 0
- local jumpScareImage = Instance.new("ImageLabel")
- jumpScareImage.Name = "JumpScareImage"
- jumpScareImage.AnchorPoint = Vector2.new(0.5, 0.5)
- jumpScareImage.Size = UDim2.new(0.7, 0, 1, 0)
- jumpScareImage.Position = UDim2.new(0.5, 0, 0.5, 0)
- jumpScareImage.Image = "rbxassetid://136572789552041"
- jumpScareImage.BackgroundTransparency = 1
- jumpScareImage.Parent = backgroundFrame
- local jumpScareSound = Instance.new("Sound")
- jumpScareSound.SoundId = "rbxassetid://10483837590"
- jumpScareSound.Parent = jumpScareImage
- jumpScareSound:Play()
- local originalPosition = jumpScareImage.Position
- local originalRotation = jumpScareImage.Rotation
- local intensity = 30
- local angleIntensity = 10
- local shakeConnection = RunService.RenderStepped:Connect(function()
- jumpScareImage.Position = originalPosition + UDim2.fromOffset(math.random(-intensity, intensity), math.random(-intensity, intensity))
- jumpScareImage.Rotation = originalRotation + math.random(-angleIntensity, angleIntensity)
- end)
- wait(2)
- shakeConnection:Disconnect()
- backgroundFrame.BackgroundTransparency = 1
- local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
- local imageTween = TweenService:Create(jumpScareImage, tweenInfo, {ImageTransparency = 1})
- imageTween:Play()
- imageTween.Completed:Connect(function()
- jumpScareGui:Destroy()
- end)
- end
- end)
- ---====== Run entity ======---
- entity:Run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement