Universal Script πŸ“Œ
1.2k Views
125 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

Updates

  1. Script edited: Update script

  2. Script edited: Update script

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
33.2k
298.5k
Bumped 3 hours ago
Script hub
23.7k
5.2k
Bumped 3 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
251
772
Bumped 3 hours ago
Universal Script πŸ“Œ
1.7k
31.0k
Bumped 3 hours ago
Script hub
4.1M
559.5k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
29.2k
Bumped 5 hours ago
Key System