Advertisement
Nutgear

pk trap debug

Apr 26th, 2023 (edited)
728
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.02 KB | None | 0 0
  1. local tex_jumpscares = {"http://www.roblox.com/asset/?id=4204898333","http://www.roblox.com/asset/?id=15016407","http://www.roblox.com/asset/?id=9118806617","http://www.roblox.com/asset/?id=6337170651"}
  2. local aud_cutout = {"rbxassetid://8724367184","rbxassetid://7224422552","rbxassetid://5171923555"}
  3. local aud_prejump = {"rbxassetid://7229804590","rbxassetid://4883181281","rbxassetid://6932519682"}
  4. local unfortunate = owner
  5. local secret_chance = 69
  6.  
  7.  local vox = Instance.new("Sound",unfortunate.PlayerGui)
  8.             local jumpscare = Instance.new("ScreenGui",unfortunate.PlayerGui)
  9.            
  10.             jumpscare.Name = "HERE"
  11.             jumpscare.Enabled = true
  12.            
  13.             local image = Instance.new("ImageLabel",jumpscare)
  14.             print(image.Name .. " PRESENT! KENICHI!")
  15.             image.Active = true
  16.             image.Size = UDim2.new(1,0,1,0)
  17.            
  18.             local click = Instance.new("Sound",unfortunate.PlayerGui)
  19.             click.SoundId = "rbxassetid://7811669782"
  20.             click.Volume = 10
  21.             click:Play()
  22.            
  23.             image.Image = "http://www.roblox.com/asset/?id=7188341508"
  24.             image.ImageColor3 = Color3.new(0,0,0)
  25.             wait(0.03)
  26.             image.ImageColor3 = Color3.new(1,1,1)
  27.             wait(0.03)
  28.             image.ImageColor3 = Color3.new(0,0,0)
  29.             wait(0.03)
  30.             image.ImageColor3 = Color3.new(1,1,1)
  31.            
  32.             image.Image = "http://www.roblox.com/asset/?id=9468576413"
  33.            
  34.             vox.SoundId = aud_cutout[math.random(1,#aud_cutout)]
  35.             vox.Volume = 3
  36.             vox:Play()
  37.            
  38.             wait(vox.TimeLength)
  39.            
  40.             click:Play()
  41.            
  42.             image.Image = "http://www.roblox.com/asset/?id=7188341508"
  43.             image.ImageColor3 = Color3.new(0,0,0)
  44.             wait(0.03)
  45.             image.ImageColor3 = Color3.new(1,1,1)
  46.             wait(0.03)
  47.             image.ImageColor3 = Color3.new(0,0,0)
  48.             wait(0.03)
  49.             image.ImageColor3 = Color3.new(1,1,1)
  50.    
  51.                
  52.             image.Image = "http://www.roblox.com/asset/?id=78918078"
  53.             vox:Stop()
  54.         vox.PlaybackSpeed = 1.5
  55.             vox.SoundId = aud_prejump[math.random(1,#aud_prejump)]
  56.             vox.Volume = 5
  57.             vox:Play()
  58.            
  59.             wait(vox.TimeLength)
  60.            
  61.                 for i = 1,30 do
  62.             wait(0.05)
  63.             image.ImageColor3 = Color3.new(1/i,1/i,1/i)
  64.         end
  65.  
  66.             local screech = Instance.new("Sound",unfortunate.PlayerGui)
  67.            
  68.             screech.Volume = 4
  69.             screech.Looped = true
  70.             screech.SoundId = "rbxassetid://9078619391"
  71.            
  72.             if math.random(0,1000) <= secret_chance then
  73.                 secret = true
  74.                 image.Image = "http://www.roblox.com/asset/?id=10840742363"
  75.             else
  76.                 image.Image = tex_jumpscares[ math.random(1,#tex_jumpscares) ]
  77.                 screech.SoundId = "rbxassetid://6555091799" --rbxassetid://8280196339
  78.                 screech.PlaybackSpeed = 8
  79.             end
  80.            
  81.             screech:Play()
  82.            
  83.             for i = 1,(screech.TimeLength*5) do
  84.                 wait()        
  85.         image.Size = UDim2.new(1,5*math.sin(i*2),1,5*math.sin(i*2),0)
  86.                 image.ImageColor3 = Color3.new(1,0,0)
  87.                 wait()
  88.         image.Size = UDim2.new(1,5*math.sin(i*2),1,5*math.sin(i*2),0)
  89.                 image.ImageColor3 = Color3.new(1,1,1)
  90.             end
  91.  
  92.         wait(1)
  93.             image.Size = UDim2.new(1,0,1,0)
  94.             click:Play()
  95.             image.Image = "http://www.roblox.com/asset/?id=7188341508"
  96.             image.ImageColor3 = Color3.new(0,0,0)
  97.             wait(0.03)
  98.             image.ImageColor3 = Color3.new(1,1,1)
  99.             wait(0.03)
  100.             image.ImageColor3 = Color3.new(0,0,0)
  101.             wait(0.03)
  102.             image.ImageColor3 = Color3.new(1,1,1)
  103.  
  104.             screech:Destroy()
  105.             jumpscare.Enabled = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement