Advertisement
Arcaneee

jumpscares

Dec 13th, 2022 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.42 KB | None | 0 0
  1.             getgenv().Toggled = false
  2.                 local UIS = game:GetService("UserInputService")
  3.                 UIS.InputBegan:connect(function(input,gameProcessed)
  4.                     if input.UserInputType == Enum.UserInputType.Keyboard then
  5.                         if input.KeyCode == Enum.KeyCode.I and UIS:GetFocusedTextBox() == nil and getgenv().Toggled == true then
  6.                             if UIS:GetFocusedTextBox() == nil then
  7.                                 if getgenv().Toggled == false then
  8.                                     getgenv().Toggled = true
  9.                                 else
  10.                                     getgenv().Toggled = true
  11.                                 end;end;end;end;end)
  12.  
  13. local LocalPlayer = game:GetService("Players").LocalPlayer
  14. local CoreUI = Instance.new("ScreenGui")
  15. CoreUI.Parent = game.CoreGui
  16. local Sound1 = Instance.new("Sound", workspace)
  17. local Sound2 = Instance.new("Sound", workspace)
  18. local Sound3 = Instance.new("Sound", workspace)
  19. local Sound4 = Instance.new("Sound", workspace)
  20. local Sound5 = Instance.new("Sound", workspace)
  21.  
  22. function JC1()
  23.     local Image = Instance.new("ImageLabel", CoreUI)
  24.     Image.Image = "http://www.roblox.com/asset/?id=7307851323"
  25.     Image.BackgroundTransparency = 1
  26.     Image.AnchorPoint = Vector2.new(0.5, 0.5)
  27.     Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
  28.     Image.Position = UDim2.fromScale(-0.5, 0.5)
  29.     delay(0, function()
  30.         for i = 0, 1, 0.1 do
  31.             Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.5)
  32.             Image.ImageTransparency = Image.ImageTransparency+i
  33.             wait(.3)
  34.         end
  35.         Image:Destroy()
  36.         sound:Destroy()
  37.     end)
  38. end
  39.  
  40. function JC2()
  41.     local Image = Instance.new("ImageLabel", CoreUI)
  42.     Image.Image = "http://www.roblox.com/asset/?id=9103670825"
  43.     Image.BackgroundTransparency = 1
  44.     Image.AnchorPoint = Vector2.new(0.5, 0.5)
  45.     Image.Size = UDim2.fromScale(1.2, 1.2, .12)
  46.     Image.Position = UDim2.fromScale(-0.5, 0.5)
  47.     delay(0, function()
  48.         for i = 0, 1, 0.1 do
  49.             Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.4)
  50.             Image.ImageTransparency = Image.ImageTransparency+i
  51.             wait(.3)
  52.         end
  53.         Image:Destroy()
  54.         sound:Destroy()
  55.     end)
  56. end
  57.  
  58. function JC3()
  59.     local Image = Instance.new("ImageLabel", CoreUI)
  60.     Image.Image = "http://www.roblox.com/asset/?id=11700715536"
  61.     Image.BackgroundTransparency = 1
  62.     Image.AnchorPoint = Vector2.new(0.5, 0.5)
  63.     Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
  64.     Image.Position = UDim2.fromScale(-0.5, 0.5)
  65.     delay(0, function()
  66.         for i = 0, 1, 0.1 do
  67.             Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.5)
  68.             Image.ImageTransparency = Image.ImageTransparency+i
  69.             wait(.3)
  70.         end
  71.         Image:Destroy()
  72.         sound:Destroy()
  73.     end)
  74. end
  75.  
  76. function JC4()
  77.     local Image = Instance.new("ImageLabel", CoreUI)
  78.     Image.Image = "http://www.roblox.com/asset/?id=505468377"
  79.     Image.BackgroundTransparency = 1
  80.     Image.AnchorPoint = Vector2.new(0.5, 0.5)
  81.     Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
  82.     Image.Position = UDim2.fromScale(-0.5, 0.5)
  83.     delay(0, function()
  84.         for i = 0, 1, 0.1 do
  85.             Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.4)
  86.             Image.ImageTransparency = Image.ImageTransparency+i
  87.             wait(.3)
  88.         end
  89.         Image:Destroy()
  90.         sound:Destroy()
  91.     end)
  92. end
  93.  
  94. function JC5()
  95.     local Image = Instance.new("ImageLabel", CoreUI)
  96.     Image.Image = "http://www.roblox.com/asset/?id=7307744965"
  97.     Image.BackgroundTransparency = 1
  98.     Image.AnchorPoint = Vector2.new(0.5, 0.5)
  99.     Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
  100.     Image.Position = UDim2.fromScale(-0.5, 0.5)
  101.     delay(0, function()
  102.         for i = 0, 1, 0.1 do
  103.             Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.5)
  104.             Image.ImageTransparency = Image.ImageTransparency+i
  105.             wait(.3)
  106.         end
  107.         Image:Destroy()
  108.         sound:Destroy()
  109.     end)
  110. end
  111.  
  112. local Math = math.random(1,5)
  113.     if Math == 1 then
  114.         Sound3:Stop()
  115.         Sound2:Stop()
  116.         Sound4:Stop()
  117.         Sound5:Stop()
  118.         Sound1.Volume = 7
  119.         Sound1.SoundId = "rbxassetid://5359456400"
  120.         Sound1:Play()
  121.         JC1()
  122.     elseif Math == 2 then
  123.         Sound1:Stop()
  124.         Sound3:Stop()
  125.         Sound4:Stop()
  126.         Sound5:Stop()
  127.         Sound2.Volume = 7
  128.         Sound2.SoundId = "rbxassetid://5220097513"
  129.         Sound2:Play()
  130.         JC2()
  131.     elseif Math == 3 then
  132.         Sound1:Stop()
  133.         Sound2:Stop()
  134.         Sound4:Stop()
  135.         Sound5:Stop()
  136.         JC3()
  137.         Sound3.Volume = 7
  138.         Sound3.SoundId = "rbxassetid://3058525115"
  139.         Sound3:Play()
  140.         wait(2)
  141.         Sound3:Destroy()
  142.     elseif Math == 4 then
  143.         Sound1:Stop()
  144.         Sound2:Stop()
  145.         Sound3:Stop()
  146.         Sound5:Stop()
  147.         JC4()
  148.         Sound4.Volume = 7
  149.         Sound4.SoundId = "rbxassetid://5567523008"
  150.         Sound4:Play()
  151.         wait(2)
  152.         Sound4:Destroy()
  153.     elseif Math == 5 then
  154.         Sound1:Stop()
  155.         Sound2:Stop()
  156.         Sound3:Stop()
  157.         Sound4:Stop()
  158.         JC5()
  159.         Sound5.Volume = 7
  160.         Sound5.SoundId = "rbxassetid://5029269312"
  161.         Sound5:Play()
  162.         wait(2)
  163.         Sound5:Destroy()
  164.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement