Back to Scripts
pepug
ScriptBlox
Universal
Free
Game: Universal Script 📌
74
Views
0
Likes
0
Dislikes
gdgj
offline
Features
mpjg
Script Code
-- 重複防止
if game.CoreGui:FindFirstChild("PainSufferingFix") then
game.CoreGui.PainSufferingFix:Destroy()
end
local isActive = false
local lp = game.Players.LocalPlayer
-- UI作成
local sg = Instance.new("ScreenGui")
sg.Name = "PainSufferingFix"
sg.Parent = game.CoreGui
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0, 180, 0, 70)
btn.Position = UDim2.new(0.5, -90, 0.2, 0)
btn.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
btn.Text = "1: PAIN & SUFFERING\n[OFF]"
btn.TextColor3 = Color3.new(1, 1, 1)
btn.Font = Enum.Font.SpecialElite
btn.TextSize = 14
btn.Active = true
btn.Draggable = true
btn.Parent = sg
local stroke = Instance.new("UIStroke")
stroke.Color = Color3.new(1, 1, 1)
stroke.Thickness = 2
stroke.Parent = btn
-- メインロジック
local function performAction()
local char = lp.Character
if not char then return end
local hum = char:FindFirstChildOfClass("Humanoid")
if not hum then return end
-- 1. エモート動作(見た目の動き)を再生
pcall(function()
local desc = hum:FindFirstChildOfClass("HumanoidDescription")
if desc then
local emotes = desc:GetEmotes()
local count = 0
for name, _ in pairs(emotes) do
count = count + 1
if count == 1 then
hum:PlayEmote(name) -- 装備中1番目を再生
break
end
end
end
end)
-- 2. リアクションメニューの「1番目」をシステム的に実行
pcall(function()
local playerGui = lp:WaitForChild("PlayerGui")
-- 「リアクション」メニュー内の最初のボタンを探してクリック
local reactionMenu = playerGui:FindFirstChild("Reaction", true) or playerGui:FindFirstChild("リアクション", true)
if reactionMenu then
local targetBtn = reactionMenu:FindFirstChildOfClass("ImageButton", true) or reactionMenu:FindFirstChildOfClass("TextButton", true)
if targetBtn then
firesignal(targetBtn.MouseButton1Click)
firesignal(targetBtn.Activated)
end
end
-- PC版のバックアップ操作(キーボードの1を押す)
game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.One, false, game)
task.wait(0.01)
game:GetService("VirtualInputManager"):SendKeyEvent(false, Enum.KeyCode.One, false, game)
end)
end
-- ループ
task.spawn(function()
while true do
if isActive then
performAction()
end
task.wait(0.3) -- エモートが途切れない程度の速さ
end
end)
-- 切り替え
btn.MouseButton1Click:Connect(function()
isActive = not isActive
if isActive then
btn.Text = "1: PAIN & SUFFERING\n[ACTIVE]"
stroke.Color = Color3.fromRGB(255, 0, 0)
else
btn.Text = "1: PAIN & SUFFERING\n[OFF]"
stroke.Color = Color3.new(1, 1, 1)
end
end)
Comments (0)
Please login to comment
Login with Discord
Loading comments...