Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().Toggled = false
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:connect(function(input,gameProcessed)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- if input.KeyCode == Enum.KeyCode.I and UIS:GetFocusedTextBox() == nil and getgenv().Toggled == true then
- if UIS:GetFocusedTextBox() == nil then
- if getgenv().Toggled == false then
- getgenv().Toggled = true
- else
- getgenv().Toggled = true
- end;end;end;end;end)
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local CoreUI = Instance.new("ScreenGui")
- CoreUI.Parent = game.CoreGui
- local Sound1 = Instance.new("Sound", workspace)
- local Sound2 = Instance.new("Sound", workspace)
- local Sound3 = Instance.new("Sound", workspace)
- local Sound4 = Instance.new("Sound", workspace)
- local Sound5 = Instance.new("Sound", workspace)
- function JC1()
- local Image = Instance.new("ImageLabel", CoreUI)
- Image.Image = "http://www.roblox.com/asset/?id=7307851323"
- Image.BackgroundTransparency = 1
- Image.AnchorPoint = Vector2.new(0.5, 0.5)
- Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
- Image.Position = UDim2.fromScale(-0.5, 0.5)
- delay(0, function()
- for i = 0, 1, 0.1 do
- Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.5)
- Image.ImageTransparency = Image.ImageTransparency+i
- wait(.3)
- end
- Image:Destroy()
- sound:Destroy()
- end)
- end
- function JC2()
- local Image = Instance.new("ImageLabel", CoreUI)
- Image.Image = "http://www.roblox.com/asset/?id=9103670825"
- Image.BackgroundTransparency = 1
- Image.AnchorPoint = Vector2.new(0.5, 0.5)
- Image.Size = UDim2.fromScale(1.2, 1.2, .12)
- Image.Position = UDim2.fromScale(-0.5, 0.5)
- delay(0, function()
- for i = 0, 1, 0.1 do
- Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.4)
- Image.ImageTransparency = Image.ImageTransparency+i
- wait(.3)
- end
- Image:Destroy()
- sound:Destroy()
- end)
- end
- function JC3()
- local Image = Instance.new("ImageLabel", CoreUI)
- Image.Image = "http://www.roblox.com/asset/?id=11700715536"
- Image.BackgroundTransparency = 1
- Image.AnchorPoint = Vector2.new(0.5, 0.5)
- Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
- Image.Position = UDim2.fromScale(-0.5, 0.5)
- delay(0, function()
- for i = 0, 1, 0.1 do
- Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.5)
- Image.ImageTransparency = Image.ImageTransparency+i
- wait(.3)
- end
- Image:Destroy()
- sound:Destroy()
- end)
- end
- function JC4()
- local Image = Instance.new("ImageLabel", CoreUI)
- Image.Image = "http://www.roblox.com/asset/?id=505468377"
- Image.BackgroundTransparency = 1
- Image.AnchorPoint = Vector2.new(0.5, 0.5)
- Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
- Image.Position = UDim2.fromScale(-0.5, 0.5)
- delay(0, function()
- for i = 0, 1, 0.1 do
- Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.4)
- Image.ImageTransparency = Image.ImageTransparency+i
- wait(.3)
- end
- Image:Destroy()
- sound:Destroy()
- end)
- end
- function JC5()
- local Image = Instance.new("ImageLabel", CoreUI)
- Image.Image = "http://www.roblox.com/asset/?id=7307744965"
- Image.BackgroundTransparency = 1
- Image.AnchorPoint = Vector2.new(0.5, 0.5)
- Image.Size = UDim2.fromScale(1.2, 1.2, 1.2)
- Image.Position = UDim2.fromScale(-0.5, 0.5)
- delay(0, function()
- for i = 0, 1, 0.1 do
- Image.Position = UDim2.fromScale(-Image.Position.X.Scale+i, 0.5)
- Image.ImageTransparency = Image.ImageTransparency+i
- wait(.3)
- end
- Image:Destroy()
- sound:Destroy()
- end)
- end
- local Math = math.random(1,5)
- if Math == 1 then
- Sound3:Stop()
- Sound2:Stop()
- Sound4:Stop()
- Sound5:Stop()
- Sound1.Volume = 7
- Sound1.SoundId = "rbxassetid://5359456400"
- Sound1:Play()
- JC1()
- elseif Math == 2 then
- Sound1:Stop()
- Sound3:Stop()
- Sound4:Stop()
- Sound5:Stop()
- Sound2.Volume = 7
- Sound2.SoundId = "rbxassetid://5220097513"
- Sound2:Play()
- JC2()
- elseif Math == 3 then
- Sound1:Stop()
- Sound2:Stop()
- Sound4:Stop()
- Sound5:Stop()
- JC3()
- Sound3.Volume = 7
- Sound3.SoundId = "rbxassetid://3058525115"
- Sound3:Play()
- wait(2)
- Sound3:Destroy()
- elseif Math == 4 then
- Sound1:Stop()
- Sound2:Stop()
- Sound3:Stop()
- Sound5:Stop()
- JC4()
- Sound4.Volume = 7
- Sound4.SoundId = "rbxassetid://5567523008"
- Sound4:Play()
- wait(2)
- Sound4:Destroy()
- elseif Math == 5 then
- Sound1:Stop()
- Sound2:Stop()
- Sound3:Stop()
- Sound4:Stop()
- JC5()
- Sound5.Volume = 7
- Sound5.SoundId = "rbxassetid://5029269312"
- Sound5:Play()
- wait(2)
- Sound5:Destroy()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement