
1.1k Views
86 Executions
Character Editor
Universal Script 📌
GdvinnyYtPublished 10
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Edit
-- ServerScriptService/AvatarApplyServer
-- Robust server script that ensures RemoteEvents exist, validates input, applies HumanoidDescription,
-- and returns result messages to the client.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local REQ_NAME = "ApplyAvatarDescriptionEvent"
local RES_NAME = "ApplyAvatarDescriptionResultEvent"
-- ensure events exist on the server (only server should create these)
local function ensureEvent(name)
local ev = ReplicatedStorage:FindFirstChild(name)
if ev and ev:IsA("RemoteEvent") then
return ev
end
local newEv = Instance.new("RemoteEvent")
newEv.Name = name
newEv.Parent = ReplicatedStorage
print("[AvatarApplyServer] Created RemoteEvent:", name)
return newEv
end
local reqEvent = ensureEvent(REQ_NAME)
local resEvent = ensureEvent(RES_NAME)
-- basic rate limiting
local lastRequest = {}
local MIN_INTERVAL = 0.8
local function sanitizeAssetId(str)
if not str or str == "" then return "" end
local id = tostring(str):match("(%d+)")
if id then
return "rbxassetid://" .. id
end
return ""
end
local function clampNumber(n, lo, hi, fallback)









🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡*
in the big25,🥀
🥀