View difference between Paste ID: cTTUVEUZ and 78XJrrYE
SHOW: | | - or go back to the newest paste.
1
Player = game:GetService("Players").LocalPlayer
2-
wait(0.2)
2+
3
Cam = workspace.CurrentCamera
4
Backpack = Player.Backpack
5
Character = Player.Character
6
Humanoid = Character.Humanoid
7
Mouse = Player:GetMouse()
8
RootPart = Character["HumanoidRootPart"]
9
Torso = Character["Torso"]
10
Head = Character["Head"]
11
RightArm = Character["Right Arm"]
12
LeftArm = Character["Left Arm"]
13
RightLeg = Character["Right Leg"]
14
LeftLeg = Character["Left Leg"]
15
RootJoint = RootPart["RootJoint"]
16
Neck = Torso["Neck"]
17
RightShoulder = Torso["Right Shoulder"]
18
LeftShoulder = Torso["Left Shoulder"]
19
RightHip = Torso["Right Hip"]
20
LeftHip = Torso["Left Hip"]
21
local Weapon = Instance.new("Model")
22
Weapon.Name = "Adds"
23
Weapon.Parent = Character
24-
local sick = Instance.new("Sound",Torso)
24+
25-
sick.SoundId = "rbxassetid://0"
25+
26-
sick.Looped = true
26+
	local NEWPART = Instance.new("Part")
27-
sick.Pitch = 1
27+
28-
sick.Volume = 1
28+
29-
sick:Play()
29+
30-
for i,v in pairs(Character:GetChildren()) do
30+
31-
	if v.ClassName == "CharacterMesh" then
31+
32-
		v:Destroy()
32+
33
	if ANCHOR == false then
34
		NEWPART.Anchored = false
35-
for i,v in pairs(Character:GetChildren()) do
35+
36-
	if v.ClassName == "Hat" or v.ClassName == "Accessory" then
36+
37-
		v:Destroy()
37+
38
	NEWPART.Size = SIZE
39
	NEWPART.Position = Torso.Position
40
	NEWPART.Material = MATERIAL
41
	NEWPART:BreakJoints()
42
	NEWPART.Parent = PARENT
43
	return NEWPART
44
end
45
46
	local function weldBetween(a, b)
47
	    local weldd = Instance.new("ManualWeld")
48
	    weldd.Part0 = a
49
	    weldd.Part1 = b
50
	    weldd.C0 = CFrame.new()
51
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
52
	    weldd.Parent = a
53
	    return weldd
54
	end
55
56
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
57
	local NEWWELD = Instance.new(TYPE)
58-
--//=================================\\
58+
59-
--|| 	      SOME FUNCTIONS
59+
60-
--\\=================================//
60+
61
	NEWWELD.C1 = C1
62-
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
62+
63-
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
63+
64
end
65
66-
function PositiveAngle(NUMBER)
66+
67-
	if NUMBER >= 0 then
67+
68-
		NUMBER = 0
68+
69
RAD = math.rad
70-
	return NUMBER
70+
71
UD2 = UDim2.new
72
BRICKC = BrickColor.new
73-
function NegativeAngle(NUMBER)
73+
74-
	if NUMBER <= 0 then
74+
75-
		NUMBER = 0
75+
76
ACOS = math.acos
77-
	return NUMBER
77+
78
ASIN = math.asin
79
ABS = math.abs
80-
function Swait(NUMBER)
80+
81-
	if NUMBER == 0 or NUMBER == nil then
81+
82-
		ArtificialHB.Event:wait()
82+
83-
	else
83+
84-
		for i = 1, NUMBER do
84+
85-
			ArtificialHB.Event:wait()
85+
		local MSH = Instance.new("CylinderMesh",PART)
86-
		end
86+
87
		local MSH =  Instance.new("SpecialMesh",PART)
88
		MSH.MeshType = "Sphere"
89
	elseif TYPE == "Wedge" then
90-
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
90+
		local MSH =  Instance.new("SpecialMesh",PART)
91-
	local NEWMESH = IT(MESH)
91+
92-
	if MESH == "SpecialMesh" then
92+
93-
		NEWMESH.MeshType = MESHTYPE
93+
94-
		if MESHID ~= "nil" and MESHID ~= "" then
94+
95-
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
95+
local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
96-
		end
96+
for i = 1, 8 do
97-
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
97+
	local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
98-
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
98+
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
99-
		end
99+
100
RightArm.Transparency = 1
101-
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
101+
local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "really black", "Part", VT(1,2,1),false)
102-
	NEWMESH.Scale = SCALE
102+
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
103-
	NEWMESH.Parent = PARENT
103+
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(1.4,1.4,1.4),false)
104-
	return NEWMESH
104+
MakeForm(Sphere,"Ball")
105
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
106
local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really  black", "Part", VT(0.3,0.3,0.1),false)
107
MakeForm(LaserPart,"Ball")
108-
	local NEWPART = IT("Part")
108+
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
109
local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.3,0.2),false)
110
MakeForm(Bump,"Ball")
111
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
112
local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", "Part", VT(0.4,0,0.4),false)
113
MakeForm(BottomLaser,"Cyl")
114
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
115
local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Part", VT(0,0.5,0.5),false)
116
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
117
local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
118
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0))
119
local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", "Part", VT(0,0.5,0.5),false)
120
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0))
121
local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Part", VT(0,0.56,0.5),false)
122
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0))
123
local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
124
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0))
125
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false)
126
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0))
127
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Part", VT(0,0.3,0.5),false)
128
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0))
129
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Part", VT(1.4,0,1.4),false)
130
MakeForm(Part,"Cyl")
131
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
132
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
133
MakeForm(Part,"Cyl")
134
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
135
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Lime green", "Part", VT(0.3,1.6,0.7),false)
136
MakeForm(Sphere,"Ball")
137
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))