Skip to content

Instantly share code, notes, and snippets.

@casualdegenerate
Last active February 17, 2022 00:16
Show Gist options
  • Save casualdegenerate/2efa4faeb77fb5e0fe25fbe83058fc66 to your computer and use it in GitHub Desktop.
Save casualdegenerate/2efa4faeb77fb5e0fe25fbe83058fc66 to your computer and use it in GitHub Desktop.
Patch#1 for Project-JoJo on roblox.com + This is an early patch of this, I have to fix up a few bits, and I want to add a few more changes on how things work on it.
-- // slua (https://x.synapse.to)
print('slua https://x.syanpse.to', 'Project JoJo Metalica Patch')
-- Decompiled with the Synapse X Luau decompiler.
loadfile('Player.lua')()
Player.DescendantAdded:Connect(function(Metallica)
if Metallica.ClassName == 'LocalScript' and Metallica.Name == 'Metallica' then
Metallica.Disabled = true
print('disabled')
end
end)
Player.Backpack.Metallica.Disabled = true
Player.CharacterAdded:Connect(function(Character)
u29 = false
local DESTROY = {
'ForceField',
'wortheffect',
'Menacing',
'ParticleEmitter',
'Sound'
}
Character.DescendantAdded:Connect(function(Object)
for _, v in next, DESTROY do
if Object.ClassName == v or Object.Name == v then
fwait()--task.delay(0, v)
Object:Destroy()
end
end
end)
end)
Player.Character.Humanoid.Health = 0
wait(7)
local l__Parent__1 = Player
local l__mouse__2 = l__Parent__1:GetMouse();
while true do
wait();
if l__Parent__1.Character then
break;
end;
end;
local l__Character__3 = l__Parent__1.Character;
local l__CurrentCamera__4 = workspace.CurrentCamera;
local l__PlayerGui__5 = l__Parent__1:WaitForChild("PlayerGui");
local l__Humanoid__6 = l__Character__3:WaitForChild("Humanoid");
local l__Container__7 = l__Character__3.Head:WaitForChild("Container");
local l__silenced__8 = l__Character__3:WaitForChild("silenced");
local l__UserInputService__13 = game:GetService("UserInputService");
local l__sendjoints__14 = game:GetService("ReplicatedStorage").Logic.sendjoints;
local l__receivejoints__15 = game:GetService("ReplicatedStorage").Logic.receivejoints;
local l__hitbox__16 = game:GetService("ReplicatedStorage").Logic.hitbox;
local l__misc__17 = game:GetService("ReplicatedStorage").Logic.misc;
local v18 = 1;
if l__Parent__1:WaitForChild("IsHamon").Value == true then
ScreenGui0 = Instance.new("ScreenGui");
ImageLabel1 = Instance.new("ImageLabel");
ImageLabel2 = Instance.new("ImageLabel");
ScreenGui0.Name = "HamonCharge";
ScreenGui0.Parent = l__Parent__1.PlayerGui;
ImageLabel1.Name = "BarFront";
ImageLabel1.Parent = ScreenGui0;
ImageLabel1.Transparency = 1;
ImageLabel1.Size = UDim2.new(0, 0, 0, 20);
ImageLabel1.Position = UDim2.new(0.449999988, 0, 0.850000024, 0);
ImageLabel1.BackgroundColor3 = Color3.new(1, 1, 1);
ImageLabel1.BackgroundTransparency = 1;
ImageLabel1.ZIndex = 2;
ImageLabel1.Image = "rbxassetid://1061605343";
ImageLabel2.Name = "BarBack";
ImageLabel2.Parent = ScreenGui0;
ImageLabel2.Size = UDim2.new(0, 200, 0, 20);
ImageLabel2.Position = UDim2.new(0.449999988, 0, 0.850000024, 0);
ImageLabel2.BackgroundColor3 = Color3.new(1, 1, 1);
ImageLabel2.BorderColor3 = Color3.new(0, 0, 0);
ImageLabel2.BorderSizePixel = 2;
ImageLabel2.Image = "rbxassetid://1061605343";
ImageLabel2.ImageColor3 = Color3.new(0.27451, 0.27451, 0.27451);
end;
local v21 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
local v22 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
local v23 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
local v24 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
local v25 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
local v26 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
local v27 = nil;
local v28 = nil;
game:GetService("ReplicatedStorage").Specials.receiveheartattack.OnClientEvent:connect(function(p24, p25, p26)
if p25 then
p25.CFrame = p26;
end;
end);
---[[
l__receivejoints__15.OnClientEvent:connect(function(p27, p28, p29, p30)
if p27 and p27 ~= l__Parent__1 and p27.Character:FindFirstChild("HumanoidRootPart") and p27.Character:FindFirstChild("HumanoidRootPart"):FindFirstChild("RootJoint") then
p27.Character.HumanoidRootPart.RootJoint.C0 = p28[1];
p27.Character.Torso.Neck.C0 = p28[2];
p27.Character.Torso["Left Shoulder"].C0 = p28[3];
p27.Character.Torso["Right Shoulder"].C0 = p28[4];
p27.Character.Torso["Left Hip"].C0 = p28[5];
p27.Character.Torso["Right Hip"].C0 = p28[6];
if p27.Character.Head:FindFirstChild("Container") and (p27.Character.Head.Container:FindFirstChild("fakearm") and p28[7]) then
p27.Character.Head.Container:FindFirstChild("fakearm").CFrame = p28[7];
p27.Character.Head.Container:FindFirstChild("fakearm").Size = p28[8];
end;
if p29 and p30 then
p30.CFrame = p29[1];
p30.Neck.C0 = p29[2];
p30["Left Shoulder"].C0 = p29[3];
p30["Right Shoulder"].C0 = p29[4];
p30["Left Hip"].C0 = p29[5];
p30["Right Hip"].C0 = p29[6];
if p27.Character.Head:FindFirstChild('Container') and p27.Character.Head.Container:FindFirstChild("fakearm") and p29[7] then
p27.Character.Head.Container:FindFirstChild("fakearm").CFrame = p29[7];
p27.Character.Head.Container:FindFirstChild("fakearm").Size = p29[8];
p27.Character.Head.Container:FindFirstChild("fakearmpart").CFrame = p29[9];
p27.Character.Head.Container:FindFirstChild("fakearmpart").Size = p29[10];
end;
end;
end;
end);
print('flag0')
local u2 = 0;
local u3 = 0;
local u4 = false;
local u5 = false;
local u6 = false;
local u7 = 0;
local u8 = 0;
local u9 = 1;
local u10 = 0;
local u11 = true;
local u12 = { l__Character__3.HumanoidRootPart.RootJoint, l__Character__3.Torso.Neck, l__Character__3.Torso["Left Shoulder"], l__Character__3.Torso["Right Shoulder"], l__Character__3.Torso["Left Hip"], l__Character__3.Torso["Right Hip"] };
local u13 = 0;
local u14 = 0.02;
local u15 = false;
local u16 = 0;
local u17 = 0;
local u18 = false;
local u19 = true;
local u20 = 0;
local u21 = 1;
local u22 = true;
local u23 = false;
local u24 = nil;
local u25 = true;
local u26 = nil;
local u27 = false;
l__UserInputService__13.TextBoxFocused:connect(function()
u27 = true;
end);
l__UserInputService__13.TextBoxFocusReleased:connect(function()
u27 = false;
end);
local u28 = true;
local u29 = false;
local u30 = true;
local u31 = nil;
local u32 = true;
local u33 = true;
local u34 = true;
local u35 = 0;
local u36 = true;
l__UserInputService__13.InputBegan:connect(function(p32)
if --[[workspace.timestopped.Value == false and l__silenced__8.Value == false]] true then
if (p32.UserInputType == Enum.UserInputType.Keyboard or p32.UserInputType == Enum.UserInputType.Touch) and not u27 then
-- print('flagkeys', p32.KeyCode, u15, u4, u30)
if p32.KeyCode == Enum.KeyCode.Q and not u15 and not u4 then
print('flaginvis', 'invisible key hit')
u28 = false;
--[[
coroutine.wrap(function()
_G.indicatecooldown("Invisibility", 4 * v18);
wait(4 * v18);
u28 = true;
end)();
--]]
if not u29 then
u29 = true;
print('flaginvis', 'going invisible')
game:GetService("ReplicatedStorage").Specials.ironcloak:FireServer(true);
if u16 == 1 then
u14 = 0.04;
return;
end;
elseif u29 then
u29 = false;
print('flaginvis', 'going out of invis')
game:GetService("ReplicatedStorage").Specials.ironcloak:FireServer(false);
return;
end;
elseif p32.KeyCode == Enum.KeyCode.E and not u15 and not u4 and u30 and l__Humanoid__6.Health > 0 then
local v92 = false;
if l__mouse__2.Hit then
local l__p__93 = l__mouse__2.Hit.p;
local v94 = false;
for v95, v96 in pairs(workspace:GetChildren()) do
if v96:FindFirstChild("Torso") and v96:FindFirstChild("Humanoid") and v96 ~= l__Parent__1.Character then
local l__magnitude__97 = (v96:FindFirstChild("Torso").Position - l__p__93).magnitude;
if (l__Character__3.Torso.Position - l__p__93).magnitude <= 200 then
if not v94 then
v94 = l__magnitude__97;
v92 = v96;
elseif l__magnitude__97 < v94 then
v94 = l__magnitude__97;
v92 = v96;
end;
end;
end;
end;
if u31 and u31.Parent == workspace then
for v98, v99 in pairs(workspace:GetChildren()) do
if v99:FindFirstChild("Torso") and v99:FindFirstChild("Humanoid") and v99 ~= l__Parent__1.Character then
local l__magnitude__100 = (v99:FindFirstChild("Torso").Position - l__p__93).magnitude;
if (u31.limb.Position - l__p__93).magnitude <= 200 then
if not v94 then
v94 = l__magnitude__100;
v92 = v99;
elseif l__magnitude__100 < v94 then
v94 = l__magnitude__100;
v92 = v99;
end;
end;
end;
end;
end;
end;
if v92 then
u30 = false;
game:GetService("ReplicatedStorage").Specials.scalpels:FireServer(v92);
spawn(function()
-- _G.indicatecooldown("Scalpels", 5 * v18);
-- wait(5 * v18);
u30 = true;
end);
return;
end;
elseif p32.KeyCode == Enum.KeyCode.T and not u15 and not u4 and u32 and l__Humanoid__6.Health > 0 then
local v101 = false;
if l__mouse__2.Hit then
local l__p__102 = l__mouse__2.Hit.p;
local v103 = false;
for v104, v105 in pairs(workspace:GetChildren()) do
if v105:FindFirstChild("Torso") and v105:FindFirstChild("Humanoid") and v105 ~= l__Parent__1.Character then
local l__magnitude__106 = (v105:FindFirstChild("Torso").Position - l__p__102).magnitude;
if (l__Character__3.Torso.Position - l__p__102).magnitude <= 200 then
if not v103 then
v103 = l__magnitude__106;
v101 = v105;
elseif l__magnitude__106 < v103 then
v103 = l__magnitude__106;
v101 = v105;
end;
end;
end;
end;
if u31 and u31.Parent == workspace then
for v107, v108 in pairs(workspace:GetChildren()) do
if v108:FindFirstChild("Torso") and v108:FindFirstChild("Humanoid") and v108 ~= l__Parent__1.Character then
local l__magnitude__109 = (v108:FindFirstChild("Torso").Position - l__p__102).magnitude;
if (u31.limb.Position - l__p__102).magnitude <= 200 then
if not v103 then
v103 = l__magnitude__109;
v101 = v108;
elseif l__magnitude__109 < v103 then
v103 = l__magnitude__109;
v101 = v108;
end;
end;
end;
end;
end;
end;
if v101 then
u32 = false;
game:GetService("ReplicatedStorage").Specials.razors:FireServer(v101);
spawn(function()
u32 = true;
end);
return;
end;
elseif p32.KeyCode == Enum.KeyCode.R and not u15 and not u4 and u33 and l__Humanoid__6.Health > 0 then
local v110 = false;
if l__mouse__2.Hit then
local l__p__111 = l__mouse__2.Hit.p;
local v112 = false;
for v113, v114 in pairs(workspace:GetChildren()) do
if v114:FindFirstChild("Torso") and v114:FindFirstChild("Humanoid") and v114 ~= l__Parent__1.Character then
local l__magnitude__115 = (v114:FindFirstChild("Torso").Position - l__p__111).magnitude;
if (l__Character__3.Torso.Position - l__p__111).magnitude <= 200 then
if not v112 then
v112 = l__magnitude__115;
v110 = v114;
elseif l__magnitude__115 < v112 then
v112 = l__magnitude__115;
v110 = v114;
end;
end;
end;
end;
if u31 and u31.Parent == workspace then
for v116, v117 in pairs(workspace:GetChildren()) do
if v117:FindFirstChild("Torso") and v117:FindFirstChild("Humanoid") and v117 ~= l__Parent__1.Character then
local l__magnitude__118 = (v117:FindFirstChild("Torso").Position - l__p__111).magnitude;
if (u31.limb.Position - l__p__111).magnitude <= 200 then
if not v112 then
v112 = l__magnitude__118;
v110 = v117;
elseif l__magnitude__118 < v112 then
v112 = l__magnitude__118;
v110 = v117;
end;
end;
end;
end;
end;
end;
if v110 then
u33 = false;
game:GetService("ReplicatedStorage").Specials.scissorstrike:FireServer(v110, v110.Torso.CFrame);
spawn(function()
u33 = true;
end);
return;
end;
else
if p32.KeyCode == Enum.KeyCode.F and not u29 and not u15 and not u4 and u34 and l__Humanoid__6.Health > 0 then
u34 = false;
game:GetService("ReplicatedStorage").Specials.legremoval:FireServer(l__Character__3["Right Leg"].CFrame);
l__misc__17:FireServer(3, l__Character__3["Right Leg"], 1);
spawn(function()
wait(10);
while true do
wait();
if not u29 then
break;
end;
end;
l__misc__17:FireServer(3, l__Character__3["Right Leg"], 0);
u34 = true;
end);
return;
end;
if p32.KeyCode == Enum.KeyCode.Y and not u29 and not u15 and not u4 and u22 and l__Humanoid__6.Health > 0 then
u22 = false;
u16 = 3;
u20 = 0;
u13 = 0;
u23 = false;
u7 = u13;
u35 = 0;
l__misc__17:FireServer(7, l__Humanoid__6, 0);
u14 = 0.1 * l__Parent__1:WaitForChild("Speed").Value * u21;
return;
end;
if p32.KeyCode == Enum.KeyCode.X and not u29 and not u15 and l__Humanoid__6.Health > 0 and not u4 and u3 == 0 and u36 and l__Parent__1:WaitForChild("IsHamon").Value == true then
u4 = true;
u5 = true;
u36 = false;
l__misc__17:FireServer(0, v28, true);
l__misc__17:FireServer(0, v27, true);
coroutine.wrap(function()
u36 = true;
end)();
return;
end;
if p32.KeyCode == Enum.KeyCode.LeftControl and not u15 and l__Humanoid__6.Health > 0 then
if not u11 then
u11 = true;
l__Humanoid__6.WalkSpeed = 100
else
u11 = false
l__Humanoid__6.WalkSpeed = 20
end;
end;
end;
end;
end;
end);
l__UserInputService__13.InputEnded:connect(function(p33)
if (p33.UserInputType == Enum.UserInputType.Keyboard or p33.UserInputType == Enum.UserInputType.Touch) and (p33.KeyCode == Enum.KeyCode.X and not u15 and l__Humanoid__6.Health > 0 and u4) then
u4 = false;
end;
end);
workspace.ChildAdded:connect(function(p34)
if string.len(p34.Name) > 9 and string.sub(p34.Name, 1, 9) == "metallica" and string.sub(p34.Name, 10, string.len(p34.Name)) == tostring(l__Parent__1.UserId) then
u31 = p34;
end;
end);
print('flageof')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment