Nightmare Emote Script (Roblox Bedwars)

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 22

  • @thomasleecastro
    @thomasleecastro День тому +1

    Rekinose doesn't do anything, I subscribed, give us another link.

  • @TellizEditz
    @TellizEditz 3 дні тому

    why wont the glow show on others pov

    • @realyowaveee
      @realyowaveee  3 дні тому

      idk only you can see the effects prob just for trolling

  • @ik3eas
    @ik3eas День тому

    rekinose link does nothing the steps just lead you back to your channel js leak the script 🙏

  • @Bloxfruits22805
    @Bloxfruits22805 4 дні тому

    it doesn't work

  • @realyowaveee
    @realyowaveee  4 дні тому

    GUYS WHEN U EXECUTE NOTHING WILL HAPPEN SO CLICK M TO DO THE EMOTE

    • @JayNeedsIdeas
      @JayNeedsIdeas 3 дні тому

      mobile?

    • @SyncPlaysYTx
      @SyncPlaysYTx 3 дні тому

      what executor do u use for pc

    • @realyowaveee
      @realyowaveee  3 дні тому

      @@SyncPlaysYTx xeno

    • @SyncPlaysYTx
      @SyncPlaysYTx 3 дні тому

      @@realyowaveee how do you get it to work because mine says cannot sync virtual files

    • @RealYoMaxStar
      @RealYoMaxStar 2 дні тому

      Bro I didn't got it​@@realyowaveee

  • @ThatDamnAstro
    @ThatDamnAstro 5 днів тому

    Credits?

  • @RealYoLevi
    @RealYoLevi 2 дні тому

    post the dam link

  • @CheerfulParfait-yy3zr
    @CheerfulParfait-yy3zr 5 днів тому

    Scprit plsss

  • @Bxconic
    @Bxconic 6 днів тому +1

    i know that script lol

  • @realyowaveee
    @realyowaveee  День тому

    local replicatedStorage = game:GetService("ReplicatedStorage")
    local players = game:GetService("Players")
    local tweenService = game:GetService("TweenService")
    local userInputService = game:GetService("UserInputService")

    local activeTweens = {}
    local activeAnimationTrack = nil
    local activeModel = nil
    local emoteActive = false

    local function spinParts(model)
    for _, part in ipairs(model:GetDescendants()) do
    if part:IsA("BasePart") and (part.Name == "Middle" or part.Name == "Outer") then
    local tweenInfo, goal
    if part.Name == "Middle" then
    tweenInfo = TweenInfo.new(12.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, false, 0)
    goal = { Orientation = part.Orientation + Vector3.new(0, -360, 0) }
    elseif part.Name == "Outer" then
    tweenInfo = TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, false, 0)
    goal = { Orientation = part.Orientation + Vector3.new(0, 360, 0) }
    end

    local tween = tweenService:Create(part, tweenInfo, goal)
    tween:Play()
    table.insert(activeTweens, tween)
    end
    end
    end

    local function placeModelUnderLeg()
    local player = players.LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")

    if humanoidRootPart then
    local assetsFolder = replicatedStorage:FindFirstChild("Assets")
    if assetsFolder then
    local effectsFolder = assetsFolder:FindFirstChild("Effects")
    if effectsFolder then
    local modelTemplate = effectsFolder:FindFirstChild("NightmareEmote")
    if modelTemplate and modelTemplate:IsA("Model") then
    local clonedModel = modelTemplate:Clone()
    clonedModel.Parent = workspace

    if clonedModel.PrimaryPart then
    clonedModel:SetPrimaryPartCFrame(humanoidRootPart.CFrame - Vector3.new(0, 3, 0))
    else
    warn("PrimaryPart not set for NightmareEmote model!")
    return
    end

    spinParts(clonedModel)
    activeModel = clonedModel
    else
    warn("NightmareEmote model not found or is not a valid model!")
    end
    else
    warn("Effects folder not found in Assets!")
    end
    else
    warn("Assets folder not found in ReplicatedStorage!")
    end
    else
    warn("HumanoidRootPart not found in character!")
    end
    end

    local function playAnimation(animationId)
    local player = players.LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:FindFirstChild("Humanoid")

    if humanoid then
    local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
    local animation = Instance.new("Animation")
    animation.AnimationId = animationId
    activeAnimationTrack = animator:LoadAnimation(animation)
    activeAnimationTrack:Play()
    else
    warn("Humanoid not found in character!")
    end
    end

    local function stopEffects()
    for _, tween in ipairs(activeTweens) do
    tween:Cancel()
    end
    activeTweens = {}

    if activeAnimationTrack then
    activeAnimationTrack:Stop()
    activeAnimationTrack = nil
    end

    if activeModel then
    activeModel:Destroy()
    activeModel = nil
    end

    emoteActive = false
    end

    local function monitorWalking()
    local player = players.LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:FindFirstChild("Humanoid")

    if humanoid then
    humanoid.Running:Connect(function(speed)
    if speed > 0 and emoteActive then
    stopEffects()
    end
    end)
    else
    warn("Humanoid not found in character!")
    end
    end

    local function activateEmote()
    if emoteActive then
    return
    end

    emoteActive = true
    local success, err = pcall(function()
    monitorWalking()
    placeModelUnderLeg()
    playAnimation("rbxassetid://9191822700")
    end)

    if not success then
    warn("Error occurred: " .. tostring(err))
    emoteActive = false
    end
    end

    userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
    if gameProcessedEvent then
    return
    end

    if input.KeyCode == Enum.KeyCode.M then
    activateEmote()
    end
    end)