Universal Script 📌
1.4k Views
3.4k Executions

F3x Map Convertor

Universal Script 📌
testingaccount1136
testingaccount113610K executions
3 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

Updates

  1. Script edited: Update script

  2. Script edited: Update script

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
Script hub
194
1.1k
Bumped 4 minutes ago
Universal Script 📌
8.3k
119.0k
Bumped 27 minutes ago
Script hub
9
0
Approved 35 minutes ago
Key System

Script hub

Lz Hub [Beta]

Script hub
479
9.4k
Bumped 55 minutes ago
Key System

Script hub

Friedpotato Hub

Script hub
17
0
Approved 1 hour ago