View difference between Paste ID: w0qTWvp5 and SRr97XiV
SHOW: | | - or go back to the newest paste.
1-
me = game.Players.ericthefabulous
1+
function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
2-
char = me.Character
2+
local funcw = Instance.new("Weld")
3-
Modelname = "Warhammah"
3+
funcw.Name = zName
4-
Toolname = "Warhammar"
4+
funcw.Parent = zParent
5-
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
5+
funcw.Part0 = zPart0
6-
necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
6+
funcw.Part1 = zPart1
7-
selected = false
7+
if (zCoco == true) then
8-
effectOn = false
8+
funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
9-
Hurt = false
9+
else
10-
Leghurt = false
10+
funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
11-
Deb = true
11+
12-
LegDeb = true
12+
return funcw
13-
Able = true
13+
14-
Resting = false
14+
function fun(n1, n2)
15-
RestingAnim = false
15+
pcall(function()
16-
AbleG = true
16+
t1 = game.Players[n1].Character.Torso
17-
Prop = {Damage = 42, Legdmg = 34, AS = 28, ShockDMG = 50, Rage = 7000000, RageIncome = 7000, MaxRage = 7000000}
17+
t2 = game.Players[n2].Character.Torso
18-
Prop.AS = Prop.AS/300
18+
t2.Parent.Humanoid.PlatformStand = true
19-
Cam = workspace.CurrentCamera
19+
t1["Left Shoulder"]:Remove()
20
ls1 = Instance.new("Weld")
21-
ToolIcon = "http://www.roblox.com/asset/?id=49192762"
21+
ls1.Parent = t1
22-
MouseIc = "http://www.roblox.com/asset/?id=49192792"
22+
ls1.Part0 = t1
23-
MouseDo = "http://www.roblox.com/asset/?id=49192819"
23+
ls1.Part1 = t1.Parent["Left Arm"]
24
ls1.C0 = CFrame.new(-1.5,0,0)
25-
Add = {
25+
ls1.Name = "Left Shoulder"
26-
        Sphere = function(P)
26+
t1["Right Shoulder"]:Remove()
27-
                local m = Instance.new("SpecialMesh",P)
27+
rs1 = Instance.new("Weld")
28-
                m.MeshType = "Sphere"
28+
rs1.Parent = t1
29-
                return m
29+
rs1.Part0 = t1
30-
        end,
30+
rs1.Part1 = t1.Parent["Right Arm"]
31-
        BF = function(P)
31+
rs1.C0 = CFrame.new(1.5,0,0)
32-
                local bf = Instance.new("BodyForce",P)
32+
rs1.Name = "Right Shoulder"
33-
                bf.force = Vector3.new(0, P:GetMass()*187, 0)
33+
t2["Left Shoulder"]:Remove()
34-
                return bf
34+
ls2 = Instance.new("Weld")
35-
        end,
35+
ls2.Parent = t2
36-
        BP = function(P)
36+
ls2.Part0 = t2
37-
                local bp = Instance.new("BodyPosition",P)
37+
ls2.Part1 = t2.Parent["Left Arm"]
38-
                bp.maxForce = Vector3.new(math.huge, 0, math.huge)
38+
ls2.C0 = CFrame.new(-1.5,0,0)
39-
                bp.P = 14000
39+
ls2.Name = "Left Shoulder"
40-
                return bp
40+
t2["Right Shoulder"]:Remove()
41-
        end,
41+
rs2 = Instance.new("Weld")
42-
        BG = function(P)
42+
rs2.Parent = t2
43-
                local bg = Instance.new("BodyGyro",P)
43+
rs2.Part0 = t2
44-
                bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
44+
rs2.Part1 = t2.Parent["Right Arm"]
45-
                bg.P = 14000
45+
rs2.C0 = CFrame.new(1.5,0,0)
46-
                return bg
46+
rs2.Name = "Right Shoulder"
47-
        end,
47+
t2["Left Hip"]:Remove()
48-
        Mesh = function(P, ID, x, y, z)
48+
lh2 = Instance.new("Weld")
49-
                local m = Instance.new("SpecialMesh")
49+
lh2.Parent = t2
50-
                m.MeshId = ID
50+
lh2.Part0 = t2
51-
                m.Scale = Vector3.new(x, y, z)
51+
lh2.Part1 = t2.Parent["Left Leg"]
52-
                m.Parent = P
52+
lh2.C0 = CFrame.new(-0.5,-2,0)
53-
                return m
53+
lh2.Name = "Left Hip"
54-
        end,
54+
t2["Right Hip"]:Remove()
55-
        Sound = function(P, ID, vol, pitch)
55+
rh2 = Instance.new("Weld")
56-
                local s = Instance.new("Sound")
56+
rh2.Parent = t2
57-
                s.SoundId = ID
57+
rh2.Part0 = t2
58-
                s.Volume = vol
58+
rh2.Part1 = t2.Parent["Right Leg"]
59-
                s.Pitch = pitch
59+
rh2.C0 = CFrame.new(0.5,-2,0)
60-
                s.Parent = P
60+
rh2.Name = "Right Hip"
61-
                return s
61+
local d = Instance.new("Part")
62-
        end
62+
d.TopSurface = 0
63-
}
63+
d.BottomSurface = 0
64
d.CanCollide = false
65-
function find(tab, arg)
65+
d.BrickColor = BrickColor.new("Medium stone grey")
66-
        local ah = nil
66+
d.Shape = "Ball"
67-
        for i,v in pairs(tab) do
67+
d.Parent = t1
68-
                if v == arg then
68+
d.Size = Vector3.new(1,1,1)
69-
                        ah = v
69+
local dm = Instance.new("SpecialMesh")
70-
                end
70+
dm.MeshType = "Sphere"
71-
        end
71+
dm.Parent = d
72-
        return ah
72+
dm.Scale = Vector3.new(0.4,0.4,0.4)
73
fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
74
d2 = d:Clone()
75-
function getAllParts(from)
75+
d2.Parent = t1
76-
        local t = {}
76+
fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
77-
        function getParts(where)
77+
local c = Instance.new("Part")
78-
                for i, v in pairs(where:children()) do
78+
c.TopSurface = 0
79-
                        if v:IsA("BasePart") then
79+
c.BottomSurface = 0
80-
                                if v.Parent ~= char and v.Parent.Parent ~= char then
80+
c.CanCollide = false
81-
                                        table.insert(t, v)
81+
c.BrickColor = BrickColor.new("Pastel brown")
82-
                                end
82+
c.Parent = t1
83-
                        end
83+
c.formFactor = "Custom"
84-
                        getParts(v)
84+
c.Size = Vector3.new(0.4,1.3,0.4)
85-
                end
85+
cm = Instance.new("CylinderMesh")
86-
        end
86+
cm.Parent = c
87-
        getParts(workspace)
87+
a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
88-
        return t
88+
c2 = d:Clone()
89
c2.BrickColor = BrickColor.new("Medium stone grey")
90
c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
91-
function RayCast(pos1, pos2, maxDist, forward)
91+
c2.Parent = t1
92-
        local list = getAllParts(workspace)
92+
fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
93-
        local pos0 = pos1
93+
local bl = Instance.new("Part")
94-
        for dist = 1, maxDist, forward do
94+
bl.TopSurface = 0
95-
                pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
95+
bl.BottomSurface = 0
96-
                for _, v in pairs(list) do
96+
bl.CanCollide = false
97-
                        local pos3 = v.CFrame:pointToObjectSpace(pos0)
97+
bl.BrickColor = BrickColor.new("Pastel brown")
98-
                        local s = v.Size
98+
bl.Shape = "Ball"
99-
                        if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
99+
bl.Parent = t2
100-
                                return pos0, v
100+
bl.Size = Vector3.new(1,1,1)
101-
                        end
101+
local dm = Instance.new("SpecialMesh")
102-
                end
102+
dm.MeshType = "Sphere"
103-
        end
103+
dm.Parent = bl
104-
        return pos0, nil
104+
dm.Scale = Vector3.new(1.2,1.2,1.2)
105
fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
106
local br = Instance.new("Part")
107-
function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
107+
br.TopSurface = 0
108-
        local p = Instance.new("Part")
108+
br.BottomSurface = 0
109-
        p.formFactor = "Custom"
109+
br.CanCollide = false
110-
        p.Anchored = Anchor
110+
br.BrickColor = BrickColor.new("Pastel brown")
111-
        p.CanCollide = Collide
111+
br.Shape = "Ball"
112-
        p.Transparency = Tran
112+
br.Parent = t2
113-
        p.Reflectance = Ref
113+
br.Size = Vector3.new(1,1,1)
114-
        p.BrickColor = BrickColor.new(Color)
114+
local dm = Instance.new("SpecialMesh")
115-
        for _, Surf in pairs(Surfaces) do
115+
dm.MeshType = "Sphere"
116-
                p[Surf] = "Smooth"
116+
dm.Parent = br
117-
        end
117+
dm.Scale = Vector3.new(1.2,1.2,1.2)
118-
        p.Size = Vector3.new(X, Y, Z)
118+
fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
119-
        if Break then
119+
local bln = Instance.new("Part")
120-
                p:BreakJoints()
120+
bln.TopSurface = 0
121-
        else p:MakeJoints() end
121+
bln.BottomSurface = 0
122-
        p.Parent = Parent
122+
bln.CanCollide = false
123-
        p.Locked = true
123+
bln.Shape = "Ball"
124-
        return p
124+
bln.Parent = t2
125
bln.Size = Vector3.new(1,1,1)
126
local dm = Instance.new("SpecialMesh")
127-
function Weld(p0, p1, x, y, z, a, b, c)
127+
dm.MeshType = "Sphere"
128-
        local w = Instance.new("Weld")
128+
dm.Parent = bln
129-
        w.Parent = p0
129+
dm.Scale = Vector3.new(0.2,0.2,0.2)
130-
        w.Part0 = p0
130+
fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
131-
        w.Part1 = p1
131+
local brn = Instance.new("Part")
132-
        w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
132+
brn.TopSurface = 0
133-
        return w
133+
brn.BottomSurface = 0
134
brn.CanCollide = false
135
brn.Shape = "Ball"
136-
function ComputePos(pos1, pos2)
136+
brn.Parent = t2
137-
        local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
137+
brn.Size = Vector3.new(1,1,1)
138-
        return CFrame.new(pos1, pos3)
138+
local dm = Instance.new("SpecialMesh")
139
dm.MeshType = "Sphere"
140
dm.Parent = brn
141-
function getHumanoid(c)
141+
dm.Scale = Vector3.new(0.2,0.2,0.2)
142-
        local h = nil
142+
fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
143-
        for i,v in pairs(c:children()) do
143+
lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
144-
                if v:IsA("Humanoid") and c ~= char then
144+
rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
145-
                        if v.Health > 0 then
145+
ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
146-
                                h = v
146+
rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
147-
                        end
147+
ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
148-
                end
148+
rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
149-
        end
149+
if t1:findFirstChild("weldx") ~= nil then
150-
        return h
150+
t1.weldx:Remove()
151
end
152
we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
153-
for i,v in pairs(char:children()) do
153+
n = t2.Neck
154-
        if v.Name == Modelname then
154+
n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
155-
                v:remove()
155+
end)
156-
        end
156+
157
while wait() do
158
for i = 1,6 do
159-
pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
159+
we.C1 = we.C1 * CFrame.new(0,-0.3,0)
160
wait()
161-
Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
161+
162-
Sc.Name = "RaigMeter"
162+
163
for i = 1,6 do
164-
Fr = Instance.new("Frame",Sc)
164+
we.C1 = we.C1 * CFrame.new(0,0.3,0)
165-
Fr.Size = UDim2.new(0, 250, 0, 28)
165+
wait()
166-
Fr.Position = UDim2.new(0.5, -125, 0, 5)
166+
167-
Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
167+
168
end))
169-
Met = Instance.new("Frame", Fr)
169+
170-
Met.Size = UDim2.new(1, -10, 1, -6)
170+
fun("ericthecoolbuy", "ericthefabulous")