Universal Script 📌
1.2k Views
41.6k Executions

FE R6 Hug GUI

10K executions
Universal Script 📌
ddorredore
ddorredorePublished 10
3 months 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

Test it out lol

View Raw
-- Full updated HUG UI script with respawn-safe handling.
if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
    if game:GetService("CoreGui"):FindFirstChild("HUGUI") then
        game:GetService("CoreGui"):FindFirstChild("HUGUI"):Destroy()
    end

    local Players = game:GetService("Players")
    local RunService = game:GetService("RunService")
    local UserInputService = game:GetService("UserInputService")
    local LocalPlayer = Players.LocalPlayer

    -- dynamic character references (will be updated on respawn)
    local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
    local Humanoid = Character:WaitForChild("Humanoid")
    local RootPart = Character:WaitForChild("HumanoidRootPart")

    -- Animation asset ids (keep here so they can be reloaded after respawn)
    local HUG_ANIM_ID_1 = "rbxassetid://283545583"
    local HUG_ANIM_ID_2 = "rbxassetid://225975820"
    local TROLL_ANIM_ID = "rbxassetid://148840371"

-- state
local hugging = false
local trolling = false
local currentSpeed = 1.0
local lockedTargetPlayer = nil

    -- animation tracks (these will be recreated after respawn)
    local Play_1, Play_2, TrollAnimTrack

    -- helper: clamp
    local function clamp(val, a, b)
        if val < a then return a end
        if val > b then return b end
        return val
    end

    -- update displayed speed (defined later after SpeedBox is created)
    local function updateSpeedDisplay()
        if SpeedBox then


Comments

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