Universal Script 📌
1.1k Views
86 Executions

Character Editor

Universal Script 📌
GdvinnyYt
GdvinnyYtPublished 10
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

Edit

View Raw
-- 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)


Comments

3
Log in to join the conversation. Login
GdvinnyYt's profile picture
GdvinnyYtUploader1 year ago

🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡🚡*

1
voltex's profile picture
voltexKeyless Creator
Keyless Script Creator Badge
Keyless Script Creator
1 year ago

in the big25,🥀

1
lebron_jamal's profile picture
lebron_jamal1 year ago

🥀

1

More universal scripts

See all
Script hub
1.6M
2.0M
Bumped 37 minutes ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
268.9k
114.4k
Bumped 1 hour ago
Key System
Script hub
171.1k
1.4M
Bumped 4 hours ago
Key System
Script hub
16.5k
3.2k
Bumped 6 hours ago
Key System
Paid
Script hub
17.2k
87.3k
Bumped 6 hours ago