Universal Script 📌
1.2k Views
2.6k Executions

F3x Map Convertor

Universal Script 📌
testingaccount1136
testingaccount113610K executions
2 months ago

Reviewed by ThunderModsScriptBlox staffon How review works

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

Faster generating may left some part unloaded

View Raw
local Players=game:GetService("Players")local Workspace=game:GetService("Workspace")local StarterGui=game:GetService("StarterGui")local CoreGui=game:GetService("CoreGui")_G.ConvertedLuaCode=""
local function sendNotification(title,message)pcall(function()StarterGui:SetCore("SendNotification",{Title=title,Text=message,Duration=5})end)end
local function serializeValue(v)if typeof(v)=="Vector3" then
return string.format("Vector3.new(%.3f, %.3f, %.3f)",v.X,v.Y,v.Z)elseif typeof(v)=="Color3" then
return string.format("Color3.new(%.3f, %.3f, %.3f)",v.R,v.G,v.B)elseif typeof(v)=="CFrame" then
local components={v:GetComponents()}for i,comp in ipairs(components)do components[i]=string.format("%.3f",comp)end
return string.format("CFrame.new(%s)",table.concat(components,", "))elseif typeof(v)=="number" then
return string.format("%.3f",v)elseif typeof(v)=="boolean" then
return v and "true" or "false"
elseif typeof(v)=="string" then
return string.format("%q",v)end
return "nil"
end
local function getF3XPartType(obj)if obj.Name=="Head" then
return "Normal"
elseif obj:IsA("SpawnLocation")then
return "Spawn"
elseif obj:IsA("VehicleSeat")then
return "VehicleSeat"
elseif obj:IsA("Seat")then
return "Seat"
elseif obj:IsA("TrussPart")then
return "Truss"
elseif obj:IsA("WedgePart")then
return "Wedge"
elseif obj:IsA("CornerWedgePart")then
return "Corner"
elseif obj:IsA("Part")then
if obj.Shape==Enum.PartType.Cylinder then
return "Cylinder"
elseif obj.Shape==Enum.PartType.Ball then
return "Ball"
else
return "Normal"
end
end
return nil
end
local function isPlayerCharacterPart(obj)for _,plr in ipairs(Players:GetPlayers())do
if plr.Character and obj:IsDescendantOf(plr.Character)then


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
3.6k
184.5k
Bumped 13 minutes ago
Script hub
140
7
1 hour ago
Universal Script 📌
28.4k
663.4k
Bumped 3 hours ago
Script hub
13.6k
2.7k
Bumped 5 hours ago
Key System
Paid
Script hub
263.3k
88.1k
Bumped 6 hours ago
Key System
Universal Script 📌
2.6k
9.4k
Bumped 6 hours ago
Universal Script 📌
421
35
Approved 7 hours ago
Universal Script 📌
443
31
Approved 7 hours ago