Universal Script 📌
927 Views
120 Executions

Gif Player (idk if its working or not)

Universal Script 📌
sjjsksjsnnnsns
sjjsksjsnnnsnsPublished 100
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Gif player (open source) How it works: Download a gif from tenor Put the gif inside your executors folder and put the gif name Click play And the gif will be played in 1:1 ratio. Idk if this is working or not

View Raw
local targetFPS = 12
local uiWidth, uiHeight = 400, 240
local playerRoot = "gif_player"
local framesSub = playerRoot .. "/frames"
local copiedGifName = playerRoot .. "/current.gif"
local maxAutoFrames = 5000
local tryAutoFFmpeg = true

local CoreGui = game:GetService("CoreGui")
local RunService = game:GetService("RunService")

local function hasfn(fn) return type(fn) == "function" end
local function safe_isfile(p) if hasfn(isfile) then local ok,res = pcall(isfile,p) if ok then return res end end return false end
local function safe_readfile(p) if hasfn(readfile) then local ok,res = pcall(readfile,p) if ok then return res end end return nil end
local function safe_writefile(p,d) if hasfn(writefile) then local ok,res = pcall(writefile,p,d) return ok end return false end
local function safe_isfolder(p) if hasfn(isfolder) then local ok,res = pcall(isfolder,p) if ok then return res end end return false end
local function safe_makefolder(p) if hasfn(makefolder) then pcall(makefolder,p) end end

local screen = Instance.new("ScreenGui")
screen.Name = "GifExecutorPlayer"
screen.ResetOnSpawn = false
screen.Parent = CoreGui

local main = Instance.new("Frame", screen)
main.Size = UDim2.new(0, uiWidth, 0, uiHeight)
main.Position = UDim2.new(0, 10, 0, 10)
main.BackgroundColor3 = Color3.fromRGB(30,30,30)
main.BorderSizePixel = 0
local mainCorner = Instance.new("UICorner", main)
mainCorner.CornerRadius = UDim.new(0,12)

local title = Instance.new("TextLabel", main)
title.Size = UDim2.new(1, 0, 0, 24)
title.Position = UDim2.new(0,0,0,0)
title.BackgroundTransparency = 1
title.Text = "GIF Player — filename in executor folder"
title.TextColor3 = Color3.fromRGB(255,255,255)
title.Font = Enum.Font.SourceSansBold
title.TextSize = 16
local titleCorner = Instance.new("UICorner", title)


Comments

3
Log in to join the conversation. Login
OnurXD_404's profile picture
OnurXD_40411 months ago

is it serversided

1
sjjsksjsnnnsns's profile picture
sjjsksjsnnnsnsUploader1 year ago(edited)

Customize the script how ever you like but please don't credit yourself and if its a remake then credit yourself and put the original credits to me.

1
sjjsksjsnnnsns's profile picture
sjjsksjsnnnsnsUploader1 year ago(edited)

Also you can add your own image format in the local PNG thing such as webp or TGA (just rename the PNG or jpg to that image format you want)

1

More universal scripts

See all
Universal Script 📌
526.6k
336.7k
Bumped 1 hour ago
Script hub
2.4k
2.2k
Bumped 2 hours ago
Key System
Universal Script 📌
192
16
Approved 2 hours ago
Script hub
2.8M
661.6k
Bumped 3 hours ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
227
21
Approved 5 hours ago