-
Notifications
You must be signed in to change notification settings - Fork 0
/
paimon.lua
45 lines (45 loc) · 1.4 KB
/
paimon.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
local Keybind = Enum.KeyCode.KeypadSeven
local Active = true
if not isfolder("paimon") then
makefolder("paimon")
if not isfile("paimon/paimon.webm") then
data = game:HttpGet("https://luaxx.com/Resources/PovSchuh.webm")
writefile("paimon/paimon.webm", data)
end
end
local screenPart = Instance.new("ScreenGui", game:GetService("CoreGui"))
screenPart.Enabled = true
local fram = Instance.new("Frame", screenPart)
fram.Size = UDim2.new(.09, 0, .2, 0)
fram.BackgroundTransparency = 1
fram.Visible = true
local videoFrame = Instance.new("VideoFrame")
videoFrame.Parent = fram
videoFrame.Size = UDim2.new(1, 0, 1, 0)
videoFrame.BackgroundTransparency = 1
videoFrame.Looped = true
videoFrame.Video = getsynasset("paimon/paimon.webm")
fram.Active = true
fram.Selectable = true
fram.Draggable = true
while not videoFrame.IsLoaded do
task.wait()
end
videoFrame:Play()
game.UserInputService.InputBegan:Connect(function(Key, Verified)
if (not Verified) then
if (Key.KeyCode == Keybind) then
if Active == true then
screenPart.Enabled = false
videoFrame:Pause()
Active = false
else
Active = true
if Active then
videoFrame:Play()
screenPart.Enabled = true
end
end
end
end
end)