View difference between Paste ID: xqS5pr3c and rwSST0f4
SHOW: | | - or go back to the newest paste.
1-
-- a tattoo shaped like a moon
1+
-- [[ Name: Commander CR by ??? ]] --
2-
-- written by yeox769, for everyman
2+
-- [[ Converted: By Melon ]] --
3
-- [[ Reanimate: By Emper ]] --
4
-- [[ Description: nothing to put ]] --
5
6
-- [[ Hats ]] --
7-
Player=game:GetService("Players").INSANITY2021
7+
8
-- [[ Free ]] --
9
-- [[ www.roblox.com/catalog/4819740796/Robox ]] --
10
-- [[ www.roblox.com/catalog/3409612660/International-Fedora-USA ]] --
11
-- [[ www.roblox.com/catalog/3398308134/International-Fedora-Canada ]] --
12
-- [[ www.roblox.com/catalog/3033908130/International-Fedora-France ]] --
13
-- [[ www.roblox.com/catalog/3033910400/International-Fedora-Germany ]] --
14
15
-- [[ Paid (1) ]] --
16
-- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
17
-- [[ www.roblox.com/catalog/14255556501/Extra-Right-White-Arm ]] --
18
-- [[ www.roblox.com/catalog/14255554762/Extra-Left-White-Arm ]] --
19
-- [[ www.roblox.com/catalog/14768693948/White-Extended-Right-Arm ]] --
20
-- [[ www.roblox.com/catalog/14768701869/White-Extended-Left-Arm ]] --
21
22
-- [[ Paid (2) ]] --
23
-- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
24
-- [[ www.roblox.com/catalog/11159410305/Rectangle-Head-For-Headless ]] --
25
-- [[ www.roblox.com/catalog/11263254795/Dummy-Head-For-Headless ]] --
26
-- [[ www.roblox.com/catalog/12344545199/Extra-Left-hand-moving-Blocky-white ]] --
27
-- [[ www.roblox.com/catalog/12344591101/Extra-Right-hand-moving-Blocky-white ]] --
28
29
-- [[ Guns ]] --
30
31
-- [[ www.roblox.com/catalog/13760686814/Classic-MARKA-17M-Valkan-Left ]] --
32
-- [[ www.roblox.com/catalog/4623059912/Starslayer-Railgun ]] --
33
-- [[ www.roblox.com/catalog/14683431575/Law-Enforcement-Beanbag ]] --
34
-- [[ www.roblox.com/catalog/5136154487/DG-40-Archangel-Sniper-Rifle-Black ]] --
35
-- [[ www.roblox.com/catalog/12830271515/White-Cyber-Heavy-Revolver-Left ]] --
36
-- [[ * FREE * www.roblox.com/catalog/10775031176/The-Pogo ]] --
37
-- [[ * FREE * www.roblox.com/catalog/5552252553/Kinetic-Staff ]] --
38
-- [[ The list above is the supported hats. ]] --
39
40
game:GetService("StarterGui"):SetCore("SendNotification", { 
41
	Title = "Melon's (FE) Converts/Scripts";
42
	Text = "Thanks for using!";
43
	Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
44
Duration = 3;
45
46
if not game:IsLoaded() then
47
	game.Loaded:Wait()
48
end
49
50
local function FindInstance(Parent, ClassName, Name)
51
	for _, Instance in pairs(Parent:GetChildren()) do
52
		if Instance:IsA(ClassName) and Instance.Name == Name then
53
			return Instance
54
		end
55
	end
56
end
57
58
local function WaitForClass(Parent, ClassName)
59
	local Instance = Parent:FindFirstChildOfClass(ClassName)
60
61
	while not Instance and Parent do
62
		Parent.ChildAdded:Wait()
63
		Instance = Parent:FindFirstChildOfClass(ClassName)
64
	end
65
66
	return Instance
67
end
68
69
local function WaitForClassOfName(Parent, ...)
70
	local Instance = FindInstance(Parent, ...)
71
72
	while not Instance and Parent do
73
		Parent.ChildAdded:Wait()
74
		Instance = FindInstance(Parent, ...)
75
	end
76
77
	return Instance
78
end
79
80
local Fling = { }
81
local Aligns = { }
82
local Blacklist = { }
83
local Accessories = { }
84
local Attachments = { }
85
86
local Instancenew = Instance.new
87
88
local taskwait = task.wait
89
local taskspawn = task.spawn
90
local taskdefer = task.defer
91
92
local mathabs = math.abs
93
local mathcos = math.cos
94
local mathrandom = math.random
95
96
local stringmatch = string.match
97
98
local osclock = os.clock
99
100
local tableinsert = table.insert
101
local tableclear = table.clear
102
local tablefind = table.find
103
104
local CFramenew = CFrame.new
105
local CFrameAngles = CFrame.Angles
106
local CFrameidentity = CFrame.identity
107
108
local Vector3new = Vector3.new
109
local Vector3zero = Vector3.zero
110
111
local Sleep = CFrameidentity
112
local Velocity = Vector3new(0, 16384, 0)
113
local Angular = 0
114
local Linear = 0
115
116
local Workspace = game:FindFirstChildOfClass("Workspace")
117
local CurrentCamera = Workspace.CurrentCamera
118
119
local Players = game:FindFirstChildOfClass("Players")
120
121
local LocalPlayer = Players.LocalPlayer
122
local Mouse = LocalPlayer:GetMouse()
123
124
local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation
125
126
local Character = LocalPlayer.Character
127
local CharacterClone = Instancenew("Model")
128
 
129
local StarterGui = game:FindFirstChildOfClass("StarterGui")
130
local BindableEvent = Instancenew("BindableEvent")
131
132
local UserInputService = game:FindFirstChildOfClass("UserInputService")
133
local UserInputType = Enum.UserInputType
134
135
local MouseButton1 = UserInputType.MouseButton1
136
local Touch = UserInputType.Touch
137
138
local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed)
139
	local Type = Input.UserInputType
140
	
141
	if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then
142
		local Target = Mouse.Target
143
		if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then
144
			local Parent = Target.Parent
145
146
			if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then
147
				local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head")
148
149
				if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then
150
					tableinsert(Fling, HumanoidRootPart)
151
					return
152
				end
153
			end
154
155
			tableinsert(Fling, Target)
156
		end
157
	end
158
end)
159
160
local function Part(Name, Size)
161
	local Part = Instancenew("Part")
162
	Part.Name = Name
163
	Part.Size = Size
164
	Part.Transparency = 1
165
	Part.Parent = CharacterClone
166
167
	return Part
168
end
169
170
local function Motor6D(Name, Part0, Part1, C0, C1)
171
	local Motor6D = Instancenew("Motor6D")
172
	Motor6D.Name = Name
173
	Motor6D.Part0 = Part0
174
	Motor6D.Part1 = Part1
175
	Motor6D.C0 = C0
176
	Motor6D.C1 = C1
177
	Motor6D.Parent = Part0
178
179
	return Motor6D
180
end
181
182
local function Attachment(Name, CFrame, Parent)
183
	local Attachment = Instancenew("Attachment")
184
	Attachment.Name = Name
185
	Attachment.CFrame = CFrame
186
	Attachment.Parent = Parent
187
188
	tableinsert(Attachments, Attachment)
189
	return Attachment
190
end
191
192
local LimbSize = Vector3new(1, 2, 1)
193
local TorsoSize = Vector3new(2, 2, 1)
194
195
local Head = Part("Head", Vector3new(2, 1, 1))
196
local Torso = Part("Torso", TorsoSize)
197
local LeftArm = Part("Left Arm", LimbSize)
198
local RightArm = Part("Right Arm", LimbSize)
199
local LeftLeg = Part("Left Leg", LimbSize)
200
local RightLeg = Part("Right Leg", LimbSize)
201
local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize)
202
203
local FakeRA = Instance.new("Part")
204
FakeRA.Size = Vector3.new(1,2,1)
205
FakeRA.Transparency = 1
206
FakeRA.BrickColor = BrickColor.new("Institutional White")
207
FakeRA.Parent = RightArm
208
209
local FRAW = Instance.new("Weld")
210
FRAW.Part0 = RightArm
211
FRAW.Part1 = FakeRA
212
FRAW.C0 = CFrame.new(0, 0, 0)
213
FRAW.Parent = RightArm
214
215
local FakeLA = Instance.new("Part")
216
FakeLA.Size = Vector3.new(1,2,1)
217
FakeLA.Transparency = 1
218
FakeLA.BrickColor = BrickColor.new("Institutional White")
219
FakeLA.Parent = LeftArm
220
221
local FLAW = Instance.new("Weld")
222
FLAW.Part0 = LeftArm
223
FLAW.Part1 = FakeLA
224
FLAW.C0 = CFrame.new(0, 0, 0)
225
FLAW.Parent = LeftArm
226
227
local Part = nil
228
229
if Character then
230
	Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso")
231
end
232
233
if Part then
234
	HumanoidRootPart.CFrame = Part.CFrame
235
else
236
	local SpawnLocations = { }
237
238
	for _, SpawnLocation in pairs(Workspace:GetDescendants()) do
239
		if SpawnLocation:IsA("SpawnLocation") then
240
			tableinsert(SpawnLocations, SpawnLocation)
241
		end
242
	end
243
244
	local Amount = # SpawnLocations
245
246
	if Amount > 0 then
247
		local SpawnLocation = SpawnLocations[mathrandom(1, Amount)]
248
		HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0)
249
	else
250
		HumanoidRootPart.CFrame = CFrameidentity
251
	end
252
end
253
254
local face = Instancenew("Decal")
255
face.Name = "face"
256
face.Parent = Head
257
258
local AccessoryTable = { 
259
     -- Paid --
260
	{ Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
261
	{ Mesh = "14255522247", Texture = "14255543546", Instance = RightArm, CFrame = CFrameAngles(0, 1.57, 1.57) },
262
	{ Mesh = "14255522247", Texture = "14255543546", Instance = LeftArm, CFrame = CFrameAngles(0, - 1.57, 1.57) },
263
	{ Mesh = "14768684979", Texture = "14768683674", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
264
	{ Mesh = "14768684979", Texture = "14768683674", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
265
	
266
	-- Paid (2) --
267
	{ Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
268
	{ Mesh = "12344206657", Texture = "12344206675", Instance = RightArm, CFrame = CFrameAngles(-115, 0, 0) },
269
	{ Mesh = "12344207333", Texture = "12344207341", Instance = LeftArm, CFrame = CFrameAngles(-115, 0, 0) },
270
	{ Mesh = "11159370334", Texture = "11159284657", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
271
	{ Mesh = "11263221350", Texture = "11263219250", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
272
	
273
	-- Free --
274
	{ Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) },
275
	{ Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) },
276
	{ Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) },
277
	{ Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) },
278
	{ Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) },
279
   
280
    -- DG 40 --
281
    { Mesh = "5135810417", Texture = "5135790044", Instance = FakeRA, CFrame = CFrameAngles(-0.10, -1.55, 1.45) * CFramenew(-2.55,0.35,0.15)},
282
    -- Cyber Heavy Revolver --
283
    { Mesh = "12830091831", Texture = "9990288940", Instance = FakeRA, CFrame = CFrameAngles(0.55, 0, 0) * CFramenew(0,-1.15,0.15)},
284
    -- Beanbag Shotgun --
285
    { Mesh = "14682184097", Texture = "14682167931", Instance = FakeRA, CFrame = CFrameAngles(0.05, 0, 3.15) * CFramenew(0,1.35,-0.25)},
286
    -- Starslayer Railgun --
287
    { Mesh = "4615369575", Texture = "4615393635", Instance = FakeRA, CFrame = CFrameAngles(-0.80, 1.55, 0) * CFramenew(1.45,-1,0)},
288
    -- MARKA-17M --
289
    { Mesh = "13753961447", Texture = "13760652946", Instance = FakeRA, CFrame = CFramenew(0,-1.45,-0.65) * CFrameAngles(0, -1.50, 0.75) },
290
    -- Pogo Stick --
291
    { Mesh = "10775011914", Texture = "10774853167", Instance = FakeRA, CFrame = CFramenew(0,-2.55,-0.65) * CFrameAngles(0, -1.55, 0.65) },
292
    -- Crystal Staff --
293
    { Mesh = "5548423017", Texture = "5548423938", Instance = FakeRA, CFrame = CFramenew(0,-1.65,-0) * CFrameAngles(0, -1.55, 0.60) },
294
295
}
296
297
for _, Table in pairs(AccessoryTable) do
298
	if type(Table.Mesh) ~= "string" then
299
		Table.Mesh = ""
300
	end
301
	if type(Table.Texture) ~= "string" then
302
		Table.Texture = ""
303
	end
304
end
305
306
Motor6D("Right Shoulder", Torso, RightArm, CFramenew(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
307
Motor6D("Left Shoulder", Torso, LeftArm, CFramenew(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
308
Motor6D("Right Hip", Torso, RightLeg, CFramenew(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
309
Motor6D("Left Hip", Torso, LeftLeg, CFramenew(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
310
Motor6D("Neck", Torso, Head, CFramenew(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
311
Motor6D("RootJoint", HumanoidRootPart, Torso, CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
312
313
Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
314
Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
315
Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
316
Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
317
Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
318
Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
319
Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
320
Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
321
Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
322
Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
323
Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
324
Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
325
Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
326
Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
327
Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
328
Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
329
Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg)
330
Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg)
331
Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart)
332
333
local Humanoid = Instancenew("Humanoid", CharacterClone)
334
Instancenew("Animator", Humanoid)
335
336
Instancenew("LocalScript", CharacterClone).Name = "Animate"
337
338
CharacterClone.PrimaryPart = Head
339
CharacterClone.Parent = Workspace
340
341
local function DescendantAdded(Instance)
342
	if Instance:IsA("Accessory") then
343
		taskspawn(function()
344
			local Handle = WaitForClassOfName(Instance, "BasePart", "Handle")
345
			local Attachment = WaitForClass(Handle, "Attachment")
346
347
			local Clone = Instance:Clone()
348
349
			local CloneHandle = FindInstance(Clone, "BasePart", "Handle")
350
			CloneHandle.Transparency = 1
351
			CloneHandle:BreakJoints()
352
353
			local AccessoryWeld = Instancenew("Weld")
354
			AccessoryWeld.Name = "AccessoryWeld"
355
			AccessoryWeld.Part0 = CloneHandle
356
			AccessoryWeld.C0 = Attachment.CFrame
357
358
			local Name = Attachment.Name
359
360
			for _, TableAttachment in pairs(Attachments) do
361
				if TableAttachment.Name == Name then
362
					AccessoryWeld.Part1 = TableAttachment.Parent
363
					AccessoryWeld.C1 = TableAttachment.CFrame
364
				end
365
			end
366
367
			AccessoryWeld.Parent = CloneHandle
368
			Clone.Parent = CharacterClone
369
370
			tableinsert(Accessories, Clone)
371
372
			local IsAMeshPart = CloneHandle:IsA("MeshPart")
373
			local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh")
374
			local Id = IsAMeshPart and "TextureID" or "TextureId"
375
376
			for _, Table in pairs(AccessoryTable) do
377
				local Instance = Table.Instance
378
379
				if Instance then
380
					if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then
381
						tableinsert(Blacklist, Instance)
382
						tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity })
383
						return
384
					end
385
				end
386
			end
387
388
			tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity })
389
		end)
390
	elseif Instance:IsA("JointInstance") then
391
		taskspawn(function()
392
			taskwait()
393
			Instance:Destroy()
394
		end)
395
	end
396
end
397
398
local function CharacterAdded(Character)
399
	if Character ~= CharacterClone then		
400
		PostSimulation:Wait()
401
402
		local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack")
403
404
		if Backpack then
405
			Backpack:ClearAllChildren()
406
		end
407
408
		tableclear(Aligns)
409
		tableclear(Blacklist)
410
411
		for _, Accessory in pairs(Accessories) do
412
			Accessory:Destroy()
413
		end
414
415
		local CurrentCameraCFrame = CurrentCamera.CFrame
416
417
		LocalPlayer.Character = CharacterClone
418
		CurrentCamera.CameraSubject = CharacterClone.Head
419
420
		taskspawn(function()
421
			CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
422
			CurrentCamera.CFrame = CurrentCameraCFrame
423
		end)
424
425
		local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart")
426
427
		for Index, Value in pairs(Fling) do
428
			local BasePart = nil
429
430
			if typeof(Value) == "Instance" then 
431
				if Value:IsA("BasePart") then
432
					BasePart = Value
433
				elseif Value:IsA("Humanoid") then
434
					local Model = Value.Parent
435
436
					if Model ~= Character and Model:IsA("Model") then
437
						BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart")
438
					end
439
				elseif Value:IsA("Model") and Value ~= Character then
440
					BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart")
441
				end
442
			end
443
444
			if BasePart then
445
				local clock = osclock()
446
447
				while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do
448
					CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity
449
					CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity
450
451
					CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0)
452
					PostSimulation:Wait()
453
				end
454
			end
455
		end
456
457
		tableclear(Fling)
458
459
		if CharacterHumanoidRootPart then
460
			CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero
461
			CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero
462
463
			CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32)))
464
			PostSimulation:Wait()
465
		end
466
467
		Character:BreakJoints()
468
469
		for _, Instance in pairs(Character:GetDescendants()) do
470
			DescendantAdded(Instance)
471
		end
472
473
		Character.DescendantAdded:Connect(DescendantAdded)
474
	end
475
end
476
477
local function Align(Part0, Part1, CFrame)
478
	if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then
479
		Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0)
480
481
		local Part1CFrame = Part1.CFrame
482
		local LinearVelocity = Part1.AssemblyLinearVelocity * Linear
483
		local Magnitude = LinearVelocity.Magnitude < Linear
484
485
		if Magnitude then
486
			local LookVector = Part1CFrame.LookVector * Linear
487
			Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z)
488
		else
489
			Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z)
490
		end
491
492
		Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame
493
	end
494
end
495
496
if Character then
497
	CharacterAdded(Character)
498
end
499
500
local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded)
501
502
local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function()
503
	local osclock = osclock()
504
	local Axis = 0.004 * mathcos(osclock * 17.5)
505
506
	Sleep = CFramenew(0, Axis, 0)
507
	Angular = mathcos(osclock)
508
	Linear = 26
509
510
	for _, Table in pairs(Aligns) do
511
		Align(Table[1], Table[2], Table[3])
512
	end
513
514
	if sethiddenproperty then
515
		sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000)
516
	end
517
518
	StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place.
519
end)
520
521
local function Event()
522
	CharacterClone:Destroy()
523
end
524
525
BindableEvent.Event:Connect(Event)
526
527
CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function()
528
	if not CharacterClone.Parent then
529
		Added:Disconnect()
530
		Connection:Disconnect()
531
532
		CharacterClone:Destroy()
533
534
		if BindableEvent then
535
			BindableEvent:Destroy()
536
		end
537
538
		StarterGui:SetCore("ResetButtonCallback", true)
539
	end
540
end)
541
542
BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event)
543
 
544
game:GetService("StarterGui"):SetCore("SendNotification", { 
545
	Title = "Melon's (FE) Converts/Scripts";
546
	Text = "Loaded successfully!";
547
	Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
548
Duration = 3;
549
550
script = game:GetObjects("rbxassetid://13198284674")[1]
551
 
552
clr = "Bright orange" -- set this to whatever you want
553
554
wait(0.5)
555
Player=game.Players.LocalPlayer
556
Character=Player.Character 
557
PlayerGui=Player.PlayerGui
558
Backpack=Player.Backpack 
559
Torso=Character.Torso 
560
Head=Character.Head 
561
Humanoid=Character.Humanoid
562
m=Instance.new('Model',Character)
563
LeftArm=Character["Left Arm"] 
564
LeftLeg=Character["Left Leg"] 
565
RightArm=Character["Right Arm"] 
566
RightLeg=Character["Right Leg"] 
567
LS=Torso["Left Shoulder"] 
568
LH=Torso["Left Hip"] 
569
RS=Torso["Right Shoulder"] 
570
RH=Torso["Right Hip"] 
571
Face = Head.face
572
Neck=Torso.Neck
573
it=Instance.new
574
attacktype=1
575
vt=Vector3.new
576
cf=CFrame.new
577
euler=CFrame.fromEulerAnglesXYZ
578
angles=CFrame.Angles
579
cloaked=false
580
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
581
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
582
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
583
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
584
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
585
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
586
RootPart=Character.HumanoidRootPart
587
RootJoint=RootPart.RootJoint
588
RootCF=euler(-1.57,0,3.14)
589
attack = false 
590
attackdebounce = false 
591
deb=false
592
equipped=true
593
hand=false
594
MMouse=nil
595
combo=0
596
trispeed=.2
597
attackmode='none'
598
local idle=0
599
local Anim="Idle"
600
601
it = Instance.new
602
603
local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
604
	local prt = it("Part",parent)
605
	prt.Name = name
606
	prt.CanCollide = false
607
	prt.BrickColor = BrickColor.new(brkclr)
608
	if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end
609
	prt.Material = mtrl
610
	prt.Reflectance = rfl
611
	prt.Transparency = trns
612
	prt.Size = sz
613
	prt.Anchored = true
614
	return prt
615
end
616
local mesh = function(meshtype,parent,meshid,textureid,scale)
617
	local msh = it("SpecialMesh",parent)
618
	if meshtype == "FileMesh" then
619
		msh.MeshId = meshid
620
		msh.TextureId = textureid
621
	end
622
	msh.MeshType = meshtype
623
	msh.Scale = scale
624
	return(msh)
625
end
626
local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
627
	local w = it("Weld",part1)
628
	w.Part0 = part1
629
	w.Part1 = part2
630
	if part1.Anchored or part2.Anchored then
631
		part1.Anchored = false
632
		part2.Anchored = false
633
	end
634
	w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
635
	return(w)
636
end
637
local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
638
	local emm = it("ParticleEmitter",parent)
639
	emm.Texture = tex
640
	emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
641
	emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
642
	emm.LightEmission = lightem
643
	emm.EmissionDirection = emdir
644
	emm.Lifetime = NumberRange.new(lif)
645
	emm.Rate = rate
646
	emm.Speed = NumberRange.new(speed)
647
	emm.RotSpeed = NumberRange.new(rotspeed)
648
	emm.SpreadAngle = Vector2.new(sprdang,sprdang)
649
	return(emm)
650
end
651
652
p = part("Part",m,clr,"Neon",0,0,Vector3.new(0.05, 0.1, 0.1))
653
mesh("Cylinder",p,"","",Vector3.new(1,1,1))
654
weld(Head,p,0,0.325,-0.575,0,90,0)
655
p = part("Part",m,Head.BrickColor.Name,"SmoothPlastic",0,0,Vector3.new(0.05, 0.1, 0.1))
656
mesh("Cylinder",p,"","",Vector3.new(1,1,1))
657
weld(Head,p,-0.04,0.325,-0.58,0,90,0)
658
--NoobyGames12
659
660
print'lets do this'
661
662
plr = game.Players.LocalPlayer
663
char = plr.Character
664
hum = char.Humanoid
665
local cam = game.Workspace.CurrentCamera
666
t = char.Torso
667
h = char.Head
668
ra = char["Right Arm"]
669
la = char["Left Arm"]
670
rl = char["Right Leg"]
671
ll = char["Left Leg"]
672
tors = char.Torso
673
lleg = char["Left Leg"]
674
root = char.HumanoidRootPart
675
hed = char.Head
676
rleg = char["Right Leg"]
677
rarm = char["Right Arm"]
678
larm = char["Left Arm"]
679
vt = Vector3.new
680
bc = BrickColor.new
681
br = BrickColor.random
682
it = Instance.new
683
cf = CFrame.new
684
685
local m = Instance.new("Model",char)
686
m.Name = "GaunletModel"
687
688
local maincolor = t.BrickColor
689
local maincolor2 = BrickColor.new("Really black")
690
691
function CreatePart(parent,transparency,reflectance,material,brickcolor)
692
local p = Instance.new("Part")
693
p.Parent = parent
694
p.Size = Vector3.new(1,1,1)
695
p.Transparency = transparency
696
p.Reflectance = reflectance
697
p.CanCollide = false
698
p.BrickColor = brickcolor
699
p.Material = material
700
return p
701
end
702
703
function CreateMesh(parent,meshtype,x1,y1,z1)
704
local mesh = Instance.new("SpecialMesh",parent)
705
mesh.MeshType = meshtype
706
mesh.Scale = Vector3.new(x1,y1,z1)
707
return mesh
708
end
709
710
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
711
local mesh = Instance.new("SpecialMesh",parent)
712
mesh.MeshType = "SpecialMesh"
713
mesh.MeshId = meshid
714
mesh.Scale = Vector3.new(x1,y1,z1)
715
return mesh
716
end
717
718
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
719
local mesh = Instance.new("SpecialMesh",parent)
720
mesh.MeshType = "FileMesh"
721
mesh.MeshId = meshid
722
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
723
mesh.Scale = Vector3.new(x1,y1,z1)
724
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
725
return mesh
726
end
727
728
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
729
local weld = Instance.new("Weld")
730
weld.Parent = parent
731
weld.Part0 = part0
732
weld.Part1 = part1
733
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
734
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
735
return weld
736
end
737
738
local llegw = CreatePart(m,1,1,"Glass",maincolor2)
739
CreateWeld(llegw,lleg,llegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
740
local rlegw = CreatePart(m,1,1,"Glass",maincolor2)
741
CreateWeld(rlegw,rleg,rlegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
742
743
local sorb = CreatePart(m,1,1,"Glass",maincolor2)
744
CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
745
local sorb2 = CreatePart(m,1,1,"Glass",maincolor2)
746
CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
747
748
---- Right arm
749
local handle = CreatePart(m,0,0,"Glass",maincolor2)
750
CreateMesh(handle,"Brick",1.05,1.5,1.05)
751
CreateWeld(handle,rarm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
752
local lowhandle = CreatePart(m,0,0,"Glass",maincolor2)
753
CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
754
CreateWeld(lowhandle,rarm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
755
local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
756
CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
757
CreateWeld(lowhandleo,rarm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
758
local handleg = CreatePart(m,0,0,"Neon",maincolor)
759
CreateMesh(handleg,"Brick",1.025,1.5,1.025)
760
CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
761
local handleo = CreatePart(m,0,0,"Neon",maincolor)
762
CreateMesh(handleo,"Brick",0.5,0.85,1.085)
763
CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
764
local handleo2 = CreatePart(m,0,0,"Glass",maincolor2)
765
CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
766
CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
767
local zi = CreatePart(m,0,0,"Neon",maincolor)
768
CreateMesh(zi,"Brick",0.025,1.525,1.1)
769
CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
770
771
local to = CreatePart(m,0,0,"Glass",maincolor2)
772
CreateMesh(to,"Brick",0.5,1.5,0.5)
773
CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
774
local tl = CreatePart(m,0,0,"Neon",maincolor)
775
CreateMesh(tl,"Brick",0.6,1.45,0.6)
776
CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
777
778
local zo = CreatePart(m,0,0,"Neon",maincolor)
779
CreateMesh(zo,"Brick",0.565,0.025,1.1)
780
CreateWeld(zo,handle,zo,-0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
781
local zoa = CreatePart(m,0,0,"Neon",maincolor)
782
CreateMesh(zoa,"Brick",0.565,0.025,1.1)
783
CreateWeld(zoa,handle,zoa,-0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
784
local zob = CreatePart(m,0,0,"Neon",maincolor)
785
CreateMesh(zob,"Brick",0.565,0.025,1.1)
786
CreateWeld(zob,handle,zob,-0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
787
local zz = CreatePart(m,0,0,"Neon",maincolor)
788
CreateMesh(zz,"Brick",0.3,0.3,0.3)
789
CreateWeld(zz,zoa,zz,-0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
790
local zzo = CreatePart(m,0,0,"Glass",maincolor2)
791
CreateMesh(zzo,"Brick",0.315,0.275,0.275)
792
CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
793
794
local li = CreatePart(m,0,0,"Neon",maincolor)
795
CreateMesh(li,"Brick",0.275,0.825,0.025)
796
CreateWeld(li,handleo,li,-0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
797
798
local li1 = CreatePart(m,0,0,"Neon",maincolor)
799
CreateMesh(li1,"Brick",0.275,0.825,0.025)
800
CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
801
local li2 = CreatePart(m,0,0,"Neon",maincolor)
802
CreateMesh(li2,"Brick",0.275,0.825,0.025)
803
CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
804
805
local di = CreatePart(m,0,0,"Neon",maincolor)
806
CreateMesh(di,"Brick",0.3,0.3,0.3)
807
CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
808
809
local di1 = CreatePart(m,0,0,"Neon",maincolor)
810
CreateMesh(di1,"Brick",0.3,0.15,0.15)
811
CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
812
local di2 = CreatePart(m,0,0,"Neon",maincolor)
813
CreateMesh(di2,"Brick",0.3,0.15,0.15)
814
CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
815
local di3 = CreatePart(m,0,0,"Neon",maincolor)
816
CreateMesh(di3,"Brick",0.3,0.15,0.15)
817
CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
818
local di4 = CreatePart(m,0,0,"Neon",maincolor)
819
CreateMesh(di4,"Brick",0.3,0.15,0.15)
820
CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
821
local dio = CreatePart(m,0,0,"Glass",maincolor2)
822
CreateMesh(dio,"Brick",0.325,0.275,0.275)
823
CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
824
local dio1 = CreatePart(m,0,0,"Glass",maincolor2)
825
CreateMesh(dio1,"Brick",0.325,0.125,0.125)
826
CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
827
local dio2 = CreatePart(m,0,0,"Glass",maincolor2)
828
CreateMesh(dio2,"Brick",0.325,0.125,0.125)
829
CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
830
local dio3 = CreatePart(m,0,0,"Glass",maincolor2)
831
CreateMesh(dio3,"Brick",0.325,0.125,0.125)
832
CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
833
local dio4 = CreatePart(m,0,0,"Glass",maincolor2)
834
CreateMesh(dio4,"Brick",0.325,0.125,0.125)
835
CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
836
837
local sq1 = CreatePart(m,0,0,"Neon",maincolor)
838
CreateMesh(sq1,"Brick",0.3,0.125,0.125)
839
CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
840
local sq2 = CreatePart(m,0,0,"Neon",maincolor)
841
CreateMesh(sq2,"Brick",0.3,0.125,0.125)
842
CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
843
local sq3 = CreatePart(m,0,0,"Neon",maincolor)
844
CreateMesh(sq3,"Brick",0.3,0.125,0.125)
845
CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
846
local sq4 = CreatePart(m,0,0,"Neon",maincolor)
847
CreateMesh(sq4,"Brick",0.3,0.125,0.125)
848
CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
849
850
local sqo1 = CreatePart(m,0,0,"Glass",maincolor2)
851
CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
852
CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
853
local sqo2 = CreatePart(m,0,0,"Glass",maincolor2)
854
CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
855
CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
856
local sqo3 = CreatePart(m,0,0,"Glass",maincolor2)
857
CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
858
CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
859
local sqo4 = CreatePart(m,0,0,"Glass",maincolor2)
860
CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
861
CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
862
863
local locl = CreatePart(m,0,0,"Neon",maincolor)
864
CreateMesh(locl,"Brick",0.1,0.1,0.1)
865
CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
866
867
local dil = CreatePart(m,0,0,"Neon",maincolor)
868
CreateMesh(dil,"Brick",0.45,0.45,0.3)
869
CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
870
871
local dil1 = CreatePart(m,0,0,"Neon",maincolor)
872
CreateMesh(dil1,"Brick",0.225,0.225,0.3)
873
CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
874
local dil2 = CreatePart(m,0,0,"Neon",maincolor)
875
CreateMesh(dil2,"Brick",0.225,0.225,0.3)
876
CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
877
878
local dilo = CreatePart(m,0,0,"Glass",maincolor2)
879
CreateMesh(dilo,"Brick",0.375,0.375,0.315)
880
CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
881
local dilo1 = CreatePart(m,0,0,"Glass",maincolor2)
882
CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
883
CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
884
local dilo2 = CreatePart(m,0,0,"Glass",maincolor2)
885
CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
886
CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
887
888
local locr = CreatePart(m,0,0,"Neon",maincolor)
889
CreateMesh(locr,"Brick",0.1,0.1,0.1)
890
CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
891
892
local dir = CreatePart(m,0,0,"Neon",maincolor)
893
CreateMesh(dir,"Brick",0.45,0.45,0.3)
894
CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
895
896
local dir1 = CreatePart(m,0,0,"Neon",maincolor)
897
CreateMesh(dir1,"Brick",0.225,0.225,0.3)
898
CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
899
local dir2 = CreatePart(m,0,0,"Neon",maincolor)
900
CreateMesh(dir2,"Brick",0.225,0.225,0.3)
901
CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
902
903
local diro = CreatePart(m,0,0,"Glass",maincolor2)
904
CreateMesh(diro,"Brick",0.375,0.375,0.315)
905
CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
906
local diro1 = CreatePart(m,0,0,"Glass",maincolor2)
907
CreateMesh(diro1,"Brick",0.175,0.175,0.315)
908
CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
909
local diro2 = CreatePart(m,0,0,"Glass",maincolor2)
910
CreateMesh(diro2,"Brick",0.175,0.175,0.315)
911
CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
912
913
---- Left arm
914
local handle = CreatePart(m,0,0,"Glass",maincolor2)
915
CreateMesh(handle,"Brick",1.05,1.5,1.05)
916
CreateWeld(handle,larm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
917
local lowhandle = CreatePart(m,0,0,"Glass",maincolor2)
918
CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
919
CreateWeld(lowhandle,larm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
920
local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
921
CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
922
CreateWeld(lowhandleo,larm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
923
local handleg = CreatePart(m,0,0,"Neon",maincolor)
924
CreateMesh(handleg,"Brick",1.025,1.5,1.025)
925
CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
926
local handleo = CreatePart(m,0,0,"Neon",maincolor)
927
CreateMesh(handleo,"Brick",0.5,0.85,1.085)
928
CreateWeld(handleo,handle,handleo,0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
929
local handleo2 = CreatePart(m,0,0,"Glass",maincolor2)
930
CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
931
CreateWeld(handleo2,handle,handleo2,0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
932
local zi = CreatePart(m,0,0,"Neon",maincolor)
933
CreateMesh(zi,"Brick",0.025,1.525,1.1)
934
CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
935
936
local to = CreatePart(m,0,0,"Glass",maincolor2)
937
CreateMesh(to,"Brick",0.5,1.5,0.5)
938
CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
939
local tl = CreatePart(m,0,0,"Neon",maincolor)
940
CreateMesh(tl,"Brick",0.6,1.45,0.6)
941
CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
942
943
local zo = CreatePart(m,0,0,"Neon",maincolor)
944
CreateMesh(zo,"Brick",0.565,0.025,1.1)
945
CreateWeld(zo,handle,zo,0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
946
local zoa = CreatePart(m,0,0,"Neon",maincolor)
947
CreateMesh(zoa,"Brick",0.565,0.025,1.1)
948
CreateWeld(zoa,handle,zoa,0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
949
local zob = CreatePart(m,0,0,"Neon",maincolor)
950
CreateMesh(zob,"Brick",0.565,0.025,1.1)
951
CreateWeld(zob,handle,zob,0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
952
local zz = CreatePart(m,0,0,"Neon",maincolor)
953
CreateMesh(zz,"Brick",0.3,0.3,0.3)
954
CreateWeld(zz,zoa,zz,0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
955
local zzo = CreatePart(m,0,0,"Glass",maincolor2)
956
CreateMesh(zzo,"Brick",0.315,0.275,0.275)
957
CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
958
959
local li = CreatePart(m,0,0,"Neon",maincolor)
960
CreateMesh(li,"Brick",0.275,0.825,0.025)
961
CreateWeld(li,handleo,li,0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
962
963
local li1 = CreatePart(m,0,0,"Neon",maincolor)
964
CreateMesh(li1,"Brick",0.275,0.825,0.025)
965
CreateWeld(li1,handleo,li1,0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
966
local li2 = CreatePart(m,0,0,"Neon",maincolor)
967
CreateMesh(li2,"Brick",0.275,0.825,0.025)
968
CreateWeld(li2,handleo,li2,0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
969
970
local di = CreatePart(m,0,0,"Neon",maincolor)
971
CreateMesh(di,"Brick",0.3,0.3,0.3)
972
CreateWeld(di,handleo,di,0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
973
974
local di1 = CreatePart(m,0,0,"Neon",maincolor)
975
CreateMesh(di1,"Brick",0.3,0.15,0.15)
976
CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
977
local di2 = CreatePart(m,0,0,"Neon",maincolor)
978
CreateMesh(di2,"Brick",0.3,0.15,0.15)
979
CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
980
local di3 = CreatePart(m,0,0,"Neon",maincolor)
981
CreateMesh(di3,"Brick",0.3,0.15,0.15)
982
CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
983
local di4 = CreatePart(m,0,0,"Neon",maincolor)
984
CreateMesh(di4,"Brick",0.3,0.15,0.15)
985
CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
986
local dio = CreatePart(m,0,0,"Glass",maincolor2)
987
CreateMesh(dio,"Brick",0.325,0.275,0.275)
988
CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
989
local dio1 = CreatePart(m,0,0,"Glass",maincolor2)
990
CreateMesh(dio1,"Brick",0.325,0.125,0.125)
991
CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
992
local dio2 = CreatePart(m,0,0,"Glass",maincolor2)
993
CreateMesh(dio2,"Brick",0.325,0.125,0.125)
994
CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
995
local dio3 = CreatePart(m,0,0,"Glass",maincolor2)
996
CreateMesh(dio3,"Brick",0.325,0.125,0.125)
997
CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
998
local dio4 = CreatePart(m,0,0,"Glass",maincolor2)
999
CreateMesh(dio4,"Brick",0.325,0.125,0.125)
1000
CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1001
1002
local sq1 = CreatePart(m,0,0,"Neon",maincolor)
1003
CreateMesh(sq1,"Brick",0.3,0.125,0.125)
1004
CreateWeld(sq1,handleo,sq1,0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1005
local sq2 = CreatePart(m,0,0,"Neon",maincolor)
1006
CreateMesh(sq2,"Brick",0.3,0.125,0.125)
1007
CreateWeld(sq2,handleo,sq2,0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1008
local sq3 = CreatePart(m,0,0,"Neon",maincolor)
1009
CreateMesh(sq3,"Brick",0.3,0.125,0.125)
1010
CreateWeld(sq3,handleo,sq3,0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1011
local sq4 = CreatePart(m,0,0,"Neon",maincolor)
1012
CreateMesh(sq4,"Brick",0.3,0.125,0.125)
1013
CreateWeld(sq4,handleo,sq4,0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1014
1015
local sqo1 = CreatePart(m,0,0,"Glass",maincolor2)
1016
CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
1017
CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1018
local sqo2 = CreatePart(m,0,0,"Glass",maincolor2)
1019
CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
1020
CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1021
local sqo3 = CreatePart(m,0,0,"Glass",maincolor2)
1022
CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
1023
CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1024
local sqo4 = CreatePart(m,0,0,"Glass",maincolor2)
1025
CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
1026
CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1027
1028
local locl = CreatePart(m,0,0,"Neon",maincolor)
1029
CreateMesh(locl,"Brick",0.1,0.1,0.1)
1030
CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1031
1032
local dil = CreatePart(m,0,0,"Neon",maincolor)
1033
CreateMesh(dil,"Brick",0.45,0.45,0.3)
1034
CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1035
1036
local dil1 = CreatePart(m,0,0,"Neon",maincolor)
1037
CreateMesh(dil1,"Brick",0.225,0.225,0.3)
1038
CreateWeld(dil1,dil,dil1,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1039
local dil2 = CreatePart(m,0,0,"Neon",maincolor)
1040
CreateMesh(dil2,"Brick",0.225,0.225,0.3)
1041
CreateWeld(dil2,dil,dil2,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1042
1043
local dilo = CreatePart(m,0,0,"Glass",maincolor2)
1044
CreateMesh(dilo,"Brick",0.375,0.375,0.315)
1045
CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1046
local dilo1 = CreatePart(m,0,0,"Glass",maincolor2)
1047
CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
1048
CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1049
local dilo2 = CreatePart(m,0,0,"Glass",maincolor2)
1050
CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
1051
CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1052
1053
local locr = CreatePart(m,0,0,"Neon",maincolor)
1054
CreateMesh(locr,"Brick",0.1,0.1,0.1)
1055
CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1056
1057
local dir = CreatePart(m,0,0,"Neon",maincolor)
1058
CreateMesh(dir,"Brick",0.45,0.45,0.3)
1059
CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1060
1061
local dir1 = CreatePart(m,0,0,"Neon",maincolor)
1062
CreateMesh(dir1,"Brick",0.225,0.225,0.3)
1063
CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1064
local dir2 = CreatePart(m,0,0,"Neon",maincolor)
1065
CreateMesh(dir2,"Brick",0.225,0.225,0.3)
1066
CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1067
1068
local diro = CreatePart(m,0,0,"Glass",maincolor2)
1069
CreateMesh(diro,"Brick",0.375,0.375,0.315)
1070
CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1071
local diro1 = CreatePart(m,0,0,"Glass",maincolor2)
1072
CreateMesh(diro1,"Brick",0.175,0.175,0.315)
1073
CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1074
local diro2 = CreatePart(m,0,0,"Glass",maincolor2)
1075
CreateMesh(diro2,"Brick",0.175,0.175,0.315)
1076
CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1077
1078
Player=game:GetService("Players").LocalPlayer
1079
Character=Player.Character 
1080
PlayerGui=Player.PlayerGui 
1081
Backpack=Player.Backpack 
1082
Torso=Character.Torso 
1083
Head=Character.Head 
1084
Humanoid=Character.Humanoid
1085
m=Instance.new('Model',Character)
1086
LeftArm=Character["Left Arm"] 
1087
LeftLeg=Character["Left Leg"] 
1088
RightArm=Character["Right Arm"] 
1089
RightLeg=Character["Right Leg"] 
1090
LS=Torso["Left Shoulder"] 
1091
LH=Torso["Left Hip"] 
1092
RS=Torso["Right Shoulder"] 
1093
RH=Torso["Right Hip"] 
1094
Face = Head.face
1095
Neck=Torso.Neck
1096
it=Instance.new
1097
attacktype=1
1098
vt=Vector3.new
1099
cf=CFrame.new
1100
euler=CFrame.fromEulerAnglesXYZ
1101
angles=CFrame.Angles
1102
cloaked=false
1103
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1104
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1105
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1106
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1107
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1108
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1109
RootPart=Character.HumanoidRootPart
1110
RootJoint=RootPart.RootJoint
1111
RootCF=euler(-1.57,0,3.14)
1112
attack = false 
1113
attackdebounce = false 
1114
deb=false
1115
equipped=true
1116
hand=false
1117
MMouse=nil
1118
combo=0
1119
mana=0
1120
trispeed=.2
1121
attackmode='none'
1122
local idle=0
1123
local Anim="Idle"
1124
local Effects={}
1125
local gun=false
1126
local shoot=false
1127
local sine = 0
1128
local change = 1
1129
player=nil 
1130
1131
mouse=Player:GetMouse()
1132
--save shoulders 
1133
RSH, LSH=nil, nil 
1134
--welds 
1135
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1136
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1137
LH=Torso["Left Hip"]
1138
RH=Torso["Right Hip"]
1139
TorsoColor=Torso.BrickColor
1140
function NoOutline(Part)
1141
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1142
end
1143
player=Player 
1144
ch=Character
1145
RSH=ch.Torso["Right Shoulder"] 
1146
LSH=ch.Torso["Left Shoulder"] 
1147
-- 
1148
RSH.Parent=nil 
1149
LSH.Parent=nil 
1150
-- 
1151
RW.Name="Right Shoulder"
1152
RW.Part0=ch.Torso 
1153
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1154
RW.C1=cf(0, 0.5, 0) 
1155
RW.Part1=ch["Right Arm"] 
1156
RW.Parent=ch.Torso 
1157
-- 
1158
LW.Name="Left Shoulder"
1159
LW.Part0=ch.Torso 
1160
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1161
LW.C1=cf(0, 0.5, 0) 
1162
LW.Part1=ch["Left Arm"] 
1163
LW.Parent=ch.Torso 
1164
1165
local Stats=Instance.new("BoolValue")
1166
Stats.Name="Stats"
1167
Stats.Parent=Character
1168
local Atk=Instance.new("NumberValue")
1169
Atk.Name="Damage"
1170
Atk.Parent=Stats
1171
Atk.Value=1
1172
local Def=Instance.new("NumberValue")
1173
Def.Name="Defense"
1174
Def.Parent=Stats
1175
Def.Value=1
1176
local Speed=Instance.new("NumberValue")
1177
Speed.Name="Speed"
1178
Speed.Parent=Stats
1179
Speed.Value=1
1180
local Mvmt=Instance.new("NumberValue")
1181
Mvmt.Name="Movement"
1182
Mvmt.Parent=Stats
1183
Mvmt.Value=1
1184
1185
local donum=0
1186
 
1187
1188
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1189
local fp=it("Part")
1190
fp.formFactor=formfactor 
1191
fp.Parent=parent
1192
fp.Reflectance=reflectance
1193
fp.Transparency=transparency
1194
fp.CanCollide=false 
1195
fp.Locked=true
1196
fp.BrickColor=brickcolor
1197
fp.Name=name
1198
fp.Size=size
1199
fp.Position=Torso.Position 
1200
NoOutline(fp)
1201
fp.Material="Glass"
1202
fp:BreakJoints()
1203
return fp 
1204
end 
1205
 
1206
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1207
local mesh=it(Mesh) 
1208
mesh.Parent=part
1209
if Mesh=="SpecialMesh" then
1210
mesh.MeshType=meshtype
1211
if meshid~="nil" then
1212
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1213
end
1214
end
1215
mesh.Offset=offset
1216
mesh.Scale=scale
1217
return mesh
1218
end
1219
 
1220
function weld(parent,part0,part1,c0)
1221
local weld=it("Weld") 
1222
weld.Parent=parent
1223
weld.Part0=part0 
1224
weld.Part1=part1 
1225
weld.C0=c0
1226
return weld
1227
end
1228
 
1229
local Color1=Torso.BrickColor
1230
1231
local bodvel=Instance.new("BodyVelocity")
1232
local bg=Instance.new("BodyGyro")
1233
1234
function swait(num)
1235
if num==0 or num==nil then
1236
game:service'RunService'.Stepped:wait(0)
1237
else
1238
for i=0,num do
1239
game:service'RunService'.Stepped:wait(0)
1240
end
1241
end
1242
end
1243
 
1244
 
1245
so = function(id,par,vol,pit) 
1246
coroutine.resume(coroutine.create(function()
1247
local sou = Instance.new("Sound",par or workspace)
1248
sou.Volume=vol
1249
sou.Pitch=pit or 1
1250
sou.SoundId=id
1251
swait() 
1252
sou:play() 
1253
game:GetService("Debris"):AddItem(sou,6)
1254
end))
1255
end
1256
 
1257
function clerp(a,b,t) 
1258
local qa = {QuaternionFromCFrame(a)}
1259
local qb = {QuaternionFromCFrame(b)} 
1260
local ax, ay, az = a.x, a.y, a.z 
1261
local bx, by, bz = b.x, b.y, b.z
1262
local _t = 1-t
1263
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1264
end 
1265
 
1266
function QuaternionFromCFrame(cf) 
1267
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1268
local trace = m00 + m11 + m22 
1269
if trace > 0 then 
1270
local s = math.sqrt(1 + trace) 
1271
local recip = 0.5/s 
1272
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1273
else 
1274
local i = 0 
1275
if m11 > m00 then
1276
i = 1
1277
end
1278
if m22 > (i == 0 and m00 or m11) then 
1279
i = 2 
1280
end 
1281
if i == 0 then 
1282
local s = math.sqrt(m00-m11-m22+1) 
1283
local recip = 0.5/s 
1284
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1285
elseif i == 1 then 
1286
local s = math.sqrt(m11-m22-m00+1) 
1287
local recip = 0.5/s 
1288
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1289
elseif i == 2 then 
1290
local s = math.sqrt(m22-m00-m11+1) 
1291
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1292
end 
1293
end 
1294
end
1295
 
1296
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1297
local xs, ys, zs = x + x, y + y, z + z 
1298
local wx, wy, wz = w*xs, w*ys, w*zs 
1299
local xx = x*xs 
1300
local xy = x*ys 
1301
local xz = x*zs 
1302
local yy = y*ys 
1303
local yz = y*zs 
1304
local zz = z*zs 
1305
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
1306
end
1307
 
1308
function QuaternionSlerp(a, b, t) 
1309
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1310
local startInterp, finishInterp; 
1311
if cosTheta >= 0.0001 then 
1312
if (1 - cosTheta) > 0.0001 then 
1313
local theta = math.acos(cosTheta) 
1314
local invSinTheta = 1/math.sin(theta) 
1315
startInterp = math.sin((1-t)*theta)*invSinTheta 
1316
finishInterp = math.sin(t*theta)*invSinTheta  
1317
else 
1318
startInterp = 1-t 
1319
finishInterp = t 
1320
end 
1321
else 
1322
if (1+cosTheta) > 0.0001 then 
1323
local theta = math.acos(-cosTheta) 
1324
local invSinTheta = 1/math.sin(theta) 
1325
startInterp = math.sin((t-1)*theta)*invSinTheta 
1326
finishInterp = math.sin(t*theta)*invSinTheta 
1327
else 
1328
startInterp = t-1 
1329
finishInterp = t 
1330
end 
1331
end 
1332
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
1333
end
1334
1335
local function CFrameFromTopBack(at, top, back)
1336
local right = top:Cross(back)
1337
return CFrame.new(at.x, at.y, at.z,
1338
right.x, top.x, back.x,
1339
right.y, top.y, back.y,
1340
right.z, top.z, back.z)
1341
end
1342
1343
function Triangle(a, b, c)
1344
local edg1 = (c-a):Dot((b-a).unit)
1345
local edg2 = (a-b):Dot((c-b).unit)
1346
local edg3 = (b-c):Dot((a-c).unit)
1347
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1348
a, b, c = a, b, c
1349
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1350
a, b, c = b, c, a
1351
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1352
a, b, c = c, a, b
1353
else
1354
assert(false, "unreachable")
1355
end
1356
 
1357
local len1 = (c-a):Dot((b-a).unit)
1358
local len2 = (b-a).magnitude - len1
1359
local width = (a + (b-a).unit*len1 - c).magnitude
1360
 
1361
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1362
 
1363
local list = {}
1364
 
1365
if len1 > 0.01 then
1366
local w1 = Instance.new('WedgePart', m)
1367
game:GetService("Debris"):AddItem(w1,5)
1368
w1.Material = "Glass"
1369
w1.FormFactor = 'Custom'
1370
w1.BrickColor = BrickColor.new("Really red")
1371
w1.Transparency = 0
1372
w1.Reflectance = 0
1373
w1.Material = "Glass"
1374
w1.CanCollide = false
1375
local l1 = Instance.new("PointLight",w1)
1376
l1.Color = Color3.new(170,0,0)
1377
NoOutline(w1)
1378
local sz = Vector3.new(0.2, width, len1)
1379
w1.Size = sz
1380
local sp = Instance.new("SpecialMesh",w1)
1381
sp.MeshType = "Wedge"
1382
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1383
w1:BreakJoints()
1384
w1.Anchored = true
1385
w1.Parent = workspace
1386
w1.Transparency = 0.7
1387
table.insert(Effects,{w1,"Disappear",.01})
1388
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1389
table.insert(list,w1)
1390
end
1391
 
1392
if len2 > 0.01 then
1393
local w2 = Instance.new('WedgePart', m)
1394
game:GetService("Debris"):AddItem(w2,5)
1395
w2.Material = "Glass"
1396
w2.FormFactor = 'Custom'
1397
w2.BrickColor = BrickColor.new("Really red")
1398
w2.Transparency = 0
1399
w2.Reflectance = 0
1400
w2.Material = "Glass"
1401
w2.CanCollide = false
1402
local l2 = Instance.new("PointLight",w2)
1403
l2.Color = Color3.new(170,0,0)
1404
NoOutline(w2)
1405
local sz = Vector3.new(0.2, width, len2)
1406
w2.Size = sz
1407
local sp = Instance.new("SpecialMesh",w2)
1408
sp.MeshType = "Wedge"
1409
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1410
w2:BreakJoints()
1411
w2.Anchored = true
1412
w2.Parent = workspace
1413
w2.Transparency = 0.7
1414
table.insert(Effects,{w2,"Disappear",.01})
1415
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1416
table.insert(list,w2)
1417
end
1418
return unpack(list)
1419
end
1420
 
1421
1422
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1423
        if hit.Parent==nil then
1424
                return
1425
        end
1426
        h=hit.Parent:FindFirstChild("Humanoid")
1427
        for _,v in pairs(hit.Parent:children()) do
1428
        if v:IsA("Humanoid") then
1429
        h=v
1430
        end
1431
        end
1432
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
1433
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
1434
        end
1435
        if hit.Parent.className=="Hat" then
1436
        hit=hit.Parent.Parent:findFirstChild("Head")
1437
        end
1438
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1439
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
1440
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1441
                        return
1442
                end]]
1443
--                        hs(hit,1.2) 
1444
                        c=Instance.new("ObjectValue")
1445
                        c.Name="creator"
1446
                        c.Value=game:service("Players").LocalPlayer
1447
                        c.Parent=h
1448
                        game:GetService("Debris"):AddItem(c,.5)
1449
                Damage=math.random(minim,maxim)
1450
--                h:TakeDamage(Damage)
1451
                blocked=false
1452
                block=hit.Parent:findFirstChild("Block")
1453
                if block~=nil then
1454
                print(block.className)
1455
                if block.className=="NumberValue" then
1456
                if block.Value>0 then
1457
                blocked=true
1458
                if decreaseblock==nil then
1459
                block.Value=block.Value-1
1460
                end
1461
                end
1462
                end
1463
                if block.className=="IntValue" then
1464
                if block.Value>0 then
1465
                blocked=true
1466
                if decreaseblock~=nil then
1467
                block.Value=block.Value-1
1468
                end
1469
                end
1470
                end
1471
                end
1472
                if blocked==false then
1473
--                h:TakeDamage(Damage)
1474
                h.Health=h.Health-Damage
1475
                showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
1476
                else
1477
                h.Health=h.Health-(Damage/2)
1478
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
1479
                end
1480
                if Type=="Knockdown" then
1481
                hum=hit.Parent.Humanoid
1482
hum.PlatformStand=true
1483
coroutine.resume(coroutine.create(function(HHumanoid)
1484
swait(1)
1485
HHumanoid.PlatformStand=false
1486
end),hum)
1487
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1488
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1489
local bodvol=Instance.new("BodyVelocity")
1490
bodvol.velocity=angle*knockback
1491
bodvol.P=5000
1492
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1493
bodvol.Parent=hit
1494
rl=Instance.new("BodyAngularVelocity")
1495
rl.P=3000
1496
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1497
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1498
rl.Parent=hit
1499
game:GetService("Debris"):AddItem(bodvol,.5)
1500
game:GetService("Debris"):AddItem(rl,.5)
1501
                elseif Type=="Normal" then
1502
                vp=Instance.new("BodyVelocity")
1503
                vp.P=500
1504
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1505
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1506
                if KnockbackType==1 then
1507
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
1508
                elseif KnockbackType==2 then
1509
                vp.velocity=Property.CFrame.lookVector*knockback
1510
                end
1511
                if knockback>0 then
1512
                        vp.Parent=hit.Parent.Torso
1513
                end
1514
                game:GetService("Debris"):AddItem(vp,.5)
1515
                elseif Type=="Up" then
1516
                local bodyVelocity=Instance.new("BodyVelocity")
1517
                bodyVelocity.velocity=vt(0,60,0)
1518
                bodyVelocity.P=5000
1519
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1520
                bodyVelocity.Parent=hit
1521
                game:GetService("Debris"):AddItem(bodyVelocity,1)
1522
                rl=Instance.new("BodyAngularVelocity")
1523
                rl.P=3000
1524
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1525
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
1526
                rl.Parent=hit
1527
                game:GetService("Debris"):AddItem(rl,.5)
1528
                elseif Type=="Snare" then
1529
                bp=Instance.new("BodyPosition")
1530
                bp.P=2000
1531
                bp.D=100
1532
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1533
                bp.position=hit.Parent.Torso.Position
1534
                bp.Parent=hit.Parent.Torso
1535
                game:GetService("Debris"):AddItem(bp,1)
1536
                elseif Type=="Target" then
1537
                if Targetting==false then
1538
                ZTarget=hit.Parent.Torso
1539
                coroutine.resume(coroutine.create(function(Part) 
1540
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
1541
                swait(5)
1542
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
1543
                end),ZTarget)
1544
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
1545
                targetgui=Instance.new("BillboardGui")
1546
                targetgui.Parent=ZTarget
1547
                targetgui.Size=UDim2.new(10,100,10,100)
1548
                targ=Instance.new("ImageLabel")
1549
                targ.Parent=targetgui
1550
                targ.BackgroundTransparency=1
1551
                targ.Image="rbxassetid://4834067"
1552
                targ.Size=UDim2.new(1,0,1,0)
1553
                cam.CameraType="Scriptable"
1554
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1555
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
1556
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1557
                Targetting=true
1558
                RocketTarget=ZTarget
1559
                for i=1,Property do
1560
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
1561
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
1562
                swait()
1563
                end
1564
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
1565
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1566
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
1567
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
1568
                end
1569
                Targetting=false
1570
                RocketTarget=nil
1571
                targetgui.Parent=nil
1572
                cam.CameraType="Custom"
1573
                end
1574
                end
1575
                        debounce=Instance.new("BoolValue")
1576
                        debounce.Name="DebounceHit"
1577
                        debounce.Parent=hit.Parent
1578
                        debounce.Value=true
1579
                        game:GetService("Debris"):AddItem(debounce,Delay)
1580
                        c=Instance.new("ObjectValue")
1581
                        c.Name="creator"
1582
                        c.Value=Player
1583
                        c.Parent=h
1584
                        game:GetService("Debris"):AddItem(c,.5)
1585
                CRIT=false
1586
                hitDeb=true
1587
                AttackPos=6
1588
        end
1589
end
1590
 
1591
showDamage=function(Char,Dealt,du,Color)
1592
        m=Instance.new("Model")
1593
        m.Name=tostring(Dealt)
1594
        h=Instance.new("Humanoid")
1595
        h.Health=0
1596
        h.MaxHealth=0
1597
        h.Parent=m
1598
        c=Instance.new("Part")
1599
        c.Transparency=0
1600
        c.BrickColor=Color
1601
c.Transparency = 1
1602
        c.Name="Head"
1603
        c.TopSurface=0
1604
        c.BottomSurface=0
1605
        c.formFactor="Plate"
1606
        c.Size=Vector3.new(1,.4,1)
1607
1608
local txt = Instance.new("BillboardGui", c)
1609
txt.Adornee = c
1610
txt.Name = "_status"
1611
txt.Size = UDim2.new(2, 0, 1.2, 0)
1612
txt.StudsOffset = Vector3.new(-9, 8, 0)
1613
local text = Instance.new("TextLabel", txt)
1614
text.Size = UDim2.new(10, 0, 7, 0)
1615
text.FontSize = "Size12"
1616
text.TextScaled = true
1617
text.TextTransparency = 0.5
1618
text.BackgroundTransparency = 1 
1619
text.TextTransparency = 0.5
1620
text.TextStrokeTransparency = 0.5
1621
text.Font = "SciFi"
1622
text.TextStrokeColor3 = Color3.new(0,0,0)
1623
v=Instance.new("Part")
1624
v.Name = "ColorBrick"
1625
v.Parent=c
1626
v.FormFactor="Symmetric"
1627
v.Anchored=true
1628
v.CanCollide=false
1629
v.BottomSurface="Smooth"
1630
v.TopSurface="Smooth"
1631
v.Size=Vector3.new(10,5,3)
1632
v.Transparency=1
1633
v.CFrame=c.CFrame
1634
v.BrickColor=BrickColor.random()
1635
v.Transparency=1
1636
text.TextColor3 = maincolor.Color
1637
v.Shape="Block"
1638
text.Text = tostring(Dealt)
1639
        ms=Instance.new("CylinderMesh")
1640
        ms.Scale=Vector3.new(.8,.8,.8)
1641
local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
1642
  local dam = Instance.new("Sound",c)
1643
  local rndm=math.random(1,#hitsounds)
1644
  local r=rndm
1645
  dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
1646
  dam.Volume = 1.25
1647
  dam.Pitch = 1
1648
  dam:Play()
1649
        if CRIT==true then
1650
                ms.Scale=Vector3.new(1,1.25,1)
1651
        end
1652
        ms.Parent=c
1653
        c.Reflectance=0
1654
        Instance.new("BodyGyro").Parent=c
1655
        c.Parent=m
1656
        if Char:findFirstChild("Head")~=nil then
1657
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
1658
        elseif Char.Parent:findFirstChild("Head")~=nil then
1659
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
1660
        end
1661
        f=Instance.new("BodyPosition")
1662
        f.P=2000
1663
        f.D=100
1664
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1665
        f.position=c.Position+Vector3.new(0,3,0)
1666
        f.Parent=c
1667
        game:GetService("Debris"):AddItem(m,.5+du)
1668
        c.CanCollide=false
1669
        m.Parent=workspace
1670
        c.CanCollide=false
1671
end
1672
1673
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1674
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1675
end 
1676
1677
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1678
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1679
prt.Anchored=true
1680
prt.CFrame=cframe
1681
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1682
--http://www.roblox.com/asset/?id=4770560
1683
game:GetService("Debris"):AddItem(prt,2)
1684
CF=prt.CFrame
1685
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
1686
for i=0,1,0.2 do
1687
wait()
1688
Part.CFrame=CF*cf(0,0,-0.4)
1689
end
1690
for i=0,1,delay do
1691
wait()
1692
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
1693
Mesh.Scale=Mesh.Scale
1694
end
1695
for i=0,1,0.1 do
1696
wait()
1697
Part.Transparency=i
1698
end
1699
Part.Parent=nil
1700
end),prt,msh,CF)
1701
end
1702
 
1703
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1704
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1705
prt.Anchored=true
1706
prt.Material = "Neon"
1707
prt.CFrame=cframe
1708
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1709
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1710
game:GetService("Debris"):AddItem(prt,5)
1711
coroutine.resume(coroutine.create(function(Part,Mesh) 
1712
for i=0,1,delay do
1713
swait()
1714
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1715
Part.Transparency=i
1716
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1717
end
1718
Part.Parent=nil
1719
end),prt,msh)
1720
end
1721
1722
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1723
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1724
prt.Anchored=true
1725
prt.Material = "Neon"
1726
prt.CFrame=cframe
1727
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1728
game:GetService("Debris"):AddItem(prt,5)
1729
coroutine.resume(coroutine.create(function(Part,Mesh) 
1730
	local rtype = rottype
1731
for i=0,1,delay do
1732
swait()
1733
if rtype == 1 then
1734
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1735
elseif rtype == 2 then
1736
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1737
end
1738
Part.Transparency=i
1739
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1740
end
1741
Part.Parent=nil
1742
end),prt,msh)
1743
end
1744
1745
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1746
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1747
prt.Anchored=true
1748
prt.CFrame=cframe
1749
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1750
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1751
game:GetService("Debris"):AddItem(prt,5)
1752
coroutine.resume(coroutine.create(function(Part,Mesh) 
1753
for i=0,1,delay do
1754
wait()
1755
Part.Transparency=i
1756
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1757
end
1758
Part.Parent=nil
1759
end),prt,msh)
1760
end
1761
 
1762
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1763
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1764
prt.Anchored=false
1765
prt.CFrame=cframe
1766
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1767
local wld=weld(prt,prt,Parent,cframe)
1768
game:GetService("Debris"):AddItem(prt,5)
1769
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1770
for i=0,1,delay do
1771
wait()
1772
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
1773
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1774
Part.Transparency=i
1775
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1776
end
1777
Part.Parent=nil
1778
end),prt,msh,wld)
1779
end
1780
 
1781
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1782
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1783
prt.Anchored=false
1784
prt.CFrame=cframe
1785
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1786
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
1787
game:GetService("Debris"):AddItem(prt,5)
1788
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1789
for i=0,1,delay do
1790
wait()
1791
Weld.C0=euler(i*20,0,0)
1792
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1793
Part.Transparency=i
1794
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1795
end
1796
Part.Parent=nil
1797
end),prt,msh,wld)
1798
end
1799
 
1800
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1801
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1802
prt.Anchored=true
1803
prt.CFrame=cframe
1804
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1805
game:GetService("Debris"):AddItem(prt,2)
1806
coroutine.resume(coroutine.create(function(Part,Mesh) 
1807
for i=0,1,delay do
1808
wait()
1809
Part.CFrame=Part.CFrame
1810
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1811
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1812
prt2.Anchored=true
1813
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1814
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
1815
game:GetService("Debris"):AddItem(prt2,2)
1816
coroutine.resume(coroutine.create(function(Part,Mesh) 
1817
for i=0,1,0.1 do
1818
wait()
1819
Part.CFrame=Part.CFrame*cf(0,0.5,0)
1820
end
1821
Part.Parent=nil
1822
end),prt2,msh2)
1823
end
1824
for i=0,1,delay*2 do
1825
wait()
1826
Part.CFrame=Part.CFrame
1827
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
1828
end
1829
Part.Parent=nil
1830
end),prt,msh)
1831
end
1832
 
1833
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1834
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1835
prt.Anchored=true
1836
prt.CFrame=cframe
1837
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1838
game:GetService("Debris"):AddItem(prt,2)
1839
coroutine.resume(coroutine.create(function(Part,Mesh) 
1840
for i=0,1,delay do
1841
wait()
1842
Part.CFrame=Part.CFrame
1843
Part.Transparency=i
1844
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1845
end
1846
Part.Parent=nil
1847
end),prt,msh)
1848
end
1849
 
1850
function BreakEffect(brickcolor,cframe,x1,y1,z1)
1851
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1852
prt.Anchored=true
1853
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1854
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1855
game:GetService("Debris"):AddItem(prt,2)
1856
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
1857
CF=Part.CFrame
1858
Numbb=0
1859
randnumb=math.random()/10
1860
rand1=math.random()/10
1861
for i=0,1,rand1 do
1862
wait()
1863
CF=CF*cf(0,math.random()/2,0)
1864
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
1865
Part.CFrame=CF*euler(Numbb,0,0)
1866
Part.Transparency=i
1867
Numbb=Numbb+randnumb
1868
end
1869
Part.Parent=nil
1870
end),prt,CF,Numbb,randnumb)
1871
end
1872
 
1873
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1874
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1875
prt.Anchored=true
1876
prt.CFrame=cframe
1877
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
1878
game:GetService("Debris"):AddItem(prt,5)
1879
coroutine.resume(coroutine.create(function(Part,Mesh) 
1880
for i=0,1,delay do
1881
wait()
1882
Part.CFrame=Part.CFrame*euler(0,0.7,0)
1883
Part.Transparency=i
1884
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1885
end
1886
Part.Parent=nil
1887
end),prt,msh)
1888
end
1889
 
1890
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1891
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1892
prt.Anchored=true
1893
prt.CFrame=cframe
1894
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
1895
game:GetService("Debris"):AddItem(prt,2)
1896
coroutine.resume(coroutine.create(function(Part,Mesh) 
1897
for i=0,1,delay do
1898
wait()
1899
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
1900
Part.Transparency=i
1901
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1902
end
1903
Part.Parent=nil
1904
end),prt,msh)
1905
end
1906
 
1907
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
1908
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1909
prt.Anchored=true
1910
prt.CFrame=cframe*cf(x,y,z)
1911
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
1912
game:GetService("Debris"):AddItem(prt,5)
1913
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
1914
local num=math.random()
1915
local num2=math.random(-3,2)+math.random()
1916
local numm=0
1917
for i=0,1,delay*2 do
1918
swait()
1919
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
1920
Part.Transparency=i
1921
numm=numm+0.01
1922
end
1923
Part.Parent=nil
1924
Mesh.Parent=nil
1925
end),prt,msh,x,y,z)
1926
end
1927
1928
function dmgstart(dmg,what)
1929
	hitcon = what.Touched:connect(function(hit)
1930
		local hum = hit.Parent:FindFirstChild("Humanoid")
1931
		if hum and not hum:IsDescendantOf(Character) then
1932
			hum:TakeDamage(dmg)
1933
		end
1934
	end)
1935
end
1936
1937
function dmgstop()
1938
	hitcon:disconnect()
1939
end
1940
1941
function Cloak()
1942
Face.Parent=nil
1943
cloaked=true
1944
        for _,v in pairs(Torso.Parent:children()) do
1945
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
1946
                coroutine.resume(coroutine.create(function() 
1947
                for i=0,1,0.2 do
1948
                wait()
1949
                v.Transparency=i
1950
                end
1951
                v.Transparency=1
1952
                end))
1953
                end
1954
                if v.className=="Hat" then
1955
                hatp=v.Handle
1956
                coroutine.resume(coroutine.create(function(derp) 
1957
                for i=0,1,0.2 do
1958
                wait()
1959
                derp.Transparency=i
1960
                end
1961
                derp.Transparency=1
1962
                end),hatp)
1963
                end
1964
        end
1965
        for _,v in pairs(m:children()) do
1966
                if v.className=="Part" then
1967
                coroutine.resume(coroutine.create(function() 
1968
                for i=0,1,0.2 do
1969
                wait()
1970
                v.Transparency=i
1971
                end
1972
                v.Transparency=1
1973
                end))
1974
                end
1975
        end
1976
end
1977
 
1978
function UnCloak()
1979
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
1980
Face.Parent=Head 
1981
cloaked=false
1982
        for _,v in pairs(Torso.Parent:children()) do
1983
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
1984
                coroutine.resume(coroutine.create(function() 
1985
                for i=0,1,0.1 do
1986
                wait()
1987
                v.Transparency=v.Transparency-0.1
1988
                end
1989
                v.Transparency=0
1990
                end))
1991
                end
1992
                if v.className=="Hat" then
1993
                hatp=v.Handle
1994
                coroutine.resume(coroutine.create(function(derp) 
1995
                for i=0,1,0.1 do
1996
                wait()
1997
                derp.Transparency=derp.Transparency-0.1
1998
                end
1999
                derp.Transparency=0
2000
                end),hatp)
2001
                end
2002
        end
2003
        for _,v in pairs(m:children()) do
2004
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2005
                coroutine.resume(coroutine.create(function() 
2006
                for i=0,1,0.1 do
2007
                wait()
2008
                v.Transparency=v.Transparency-0.1
2009
                end
2010
                v.Transparency=0
2011
                end))
2012
                v.Transparency=0
2013
                end
2014
        end
2015
end
2016
2017
function laser()
2018
	attack = true
2019
	so("rbxassetid://588738544",sorb,1,1) 
2020
	for i = 0,2,0.1 do
2021
		swait()
2022
		MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
2023
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
2024
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
2025
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
2026
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
2027
	end
2028
		local a = Instance.new("Part",Character)
2029
		a.BrickColor = maincolor
2030
	a.Name = "Lazer"	
2031
	a.Anchored = true
2032
a.Material = "Neon"
2033
	a.CanCollide = false
2034
	local hitbox = Instance.new("Part",char)
2035
	hitbox.Size = Vector3.new(5,5,5)
2036
	hitbox.CFrame = mouse.hit
2037
	hitbox.Anchored = true
2038
	hitbox.Transparency = 1
2039
	hitbox.CanCollide = false
2040
	local ray = Ray.new(
2041
	    sorb.CFrame.p,                           -- origin
2042
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
2043
	) 
2044
	local ignore = Character
2045
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2046
	if hit then
2047
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
2048
	 
2049
		if not humanoid then
2050
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
2051
		end
2052
		if humanoid then
2053
			if humanoid.Parent:IsA"Model" then
2054
				Damagefunc(hit,120,125,math.random(120,220),"Normal",RootPart,.2,1)
2055
			end
2056
		end
2057
	end
2058
	a.BottomSurface = 10
2059
	a.TopSurface = 10
2060
	local distance = (sorb.CFrame.p - position).magnitude
2061
	a.Size = Vector3.new(1, 1, distance)
2062
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
2063
	game:GetService("Debris"):AddItem(a, 10)
2064
	game:GetService("Debris"):AddItem(hitbox, 1)
2065
local newmesh = Instance.new("BlockMesh",a)
2066
so("rbxassetid://553712898",sorb,1,2) 
2067
so("rbxassetid://553712898",sorb,0.5,1.5) 
2068
so("rbxassetid://588737825",sorb,0.05,1)
2069
MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15) 
2070
MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) 
2071
MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15) 
2072
for i = 0, 19*2 do
2073
newmesh.Scale = newmesh.Scale + Vector3.new(-0.05/2,-0.05/2,0)
2074
a.Transparency = a.Transparency + 0.05/2
2075
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
2076
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
2077
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
2078
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
2079
swait()
2080
end
2081
	attack = false
2082
end
2083
2084
function weaklaser1()
2085
	attack = true
2086
	for i = 0,1,0.1 do
2087
		swait()
2088
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
2089
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
2090
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
2091
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
2092
	end
2093
		local a = Instance.new("Part",Character)
2094
		a.BrickColor = maincolor
2095
	a.Name = "Lazer"	
2096
	a.Anchored = true
2097
a.Material = "Neon"
2098
	a.CanCollide = false
2099
	local hitbox = Instance.new("Part",char)
2100
	hitbox.Size = Vector3.new(5,5,5)
2101
	hitbox.CFrame = mouse.hit
2102
	hitbox.Anchored = true
2103
	hitbox.Transparency = 1
2104
	hitbox.CanCollide = false
2105
	local ray = Ray.new(
2106
	    sorb.CFrame.p,                           -- origin
2107
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
2108
	) 
2109
	local ignore = Character
2110
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2111
	if hit then
2112
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
2113
	 
2114
		if not humanoid then
2115
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
2116
		end
2117
		if humanoid then
2118
			if humanoid.Parent:IsA"Model" then
2119
				Damagefunc(hit,54,84,math.random(50,90),"Normal",RootPart,.2,1)
2120
			end
2121
		end
2122
	end
2123
	a.BottomSurface = 10
2124
	a.TopSurface = 10
2125
	local distance = (sorb.CFrame.p - position).magnitude
2126
	a.Size = Vector3.new(0.85, 0.85, distance)
2127
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
2128
	game:GetService("Debris"):AddItem(a, 10)
2129
	game:GetService("Debris"):AddItem(hitbox, 1)
2130
local newmesh = Instance.new("BlockMesh",a)
2131
so("rbxassetid://553712898",sorb,1,2.5) 
2132
so("rbxassetid://553712898",sorb,1,2) 
2133
MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15) 
2134
MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) 
2135
	attack = false
2136
for i = 0, 19 do
2137
newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
2138
a.Transparency = a.Transparency + 0.05
2139
swait()
2140
end
2141
end
2142
2143
function weaklaser2()
2144
	attack = true
2145
	for i = 0,1,0.1 do
2146
		swait()
2147
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
2148
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
2149
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
2150
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
2151
	end
2152
		local a = Instance.new("Part",Character)
2153
		a.BrickColor = maincolor
2154
	a.Name = "Lazer"	
2155
	a.Anchored = true
2156
a.Material = "Neon"
2157
	a.CanCollide = false
2158
	local hitbox = Instance.new("Part",char)
2159
	hitbox.Size = Vector3.new(5,5,5)
2160
	hitbox.CFrame = mouse.hit
2161
	hitbox.Anchored = true
2162
	hitbox.Transparency = 1
2163
	hitbox.CanCollide = false
2164
	local ray = Ray.new(
2165
	    sorb2.CFrame.p,                           -- origin
2166
	    (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
2167
	) 
2168
	local ignore = Character
2169
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2170
	if hit then
2171
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
2172
	 
2173
		if not humanoid then
2174
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
2175
		end
2176
		if humanoid then
2177
			if humanoid.Parent:IsA"Model" then
2178
				Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1)
2179
			end
2180
		end
2181
	end
2182
	a.BottomSurface = 10
2183
	a.TopSurface = 10
2184
	local distance = (sorb2.CFrame.p - position).magnitude
2185
	a.Size = Vector3.new(0.85, 0.85, distance)
2186
	a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
2187
	game:GetService("Debris"):AddItem(a, 10)
2188
	game:GetService("Debris"):AddItem(hitbox, 1)
2189
local newmesh = Instance.new("BlockMesh",a)
2190
so("rbxassetid://553712898",sorb2,1,2.5) 
2191
so("rbxassetid://553712898",sorb2,1,2) 
2192
MagicBlock(maincolor,sorb2.CFrame,1,1,1,1.5,1.25,1.25,0.15) 
2193
MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) 
2194
	attack = false
2195
for i = 0, 19 do
2196
newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
2197
a.Transparency = a.Transparency + 0.05
2198
swait()
2199
end
2200
end
2201
2202
local smeshmoveenabled = false
2203
2204
function groundwave()
2205
	attack = true 
2206
	smeshmoveenabled = true
2207
	so("rbxassetid://255679384",sorb2,2,0.98)
2208
	for i = 0,10,0.1 do
2209
		swait()
2210
	MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2211
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2212
		RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
2213
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
2214
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-90)),.1)
2215
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.1)
2216
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.1)
2217
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
2218
	end
2219
	MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,1)
2220
	MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,2)
2221
	for i = 0,2,0.1 do
2222
		swait()
2223
		MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
2224
	MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2225
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2226
		RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
2227
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.3)
2228
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(70),math.rad(0),math.rad(-90)),.3)
2229
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.3)
2230
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(120)), 0.3)
2231
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
2232
	end
2233
	attack = false
2234
	smeshmoveenabled = false
2235
	so("rbxassetid://233091205",sorb2,2.25,0.95)
2236
	MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,1)
2237
	MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,2)
2238
	for i = 0, 9 do
2239
		MagicBlock(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,1,1,1,-0.025,10,-0.025,0.065)
2240
	end
2241
	local faceam = 5
2242
	for i = 0, 9 do
2243
	faceam = faceam + 10
2244
	local hitbox = Instance.new("Part",char)
2245
	so("rbxassetid://233091205",hitbox,1,2)
2246
	hitbox.Size = Vector3.new(15,15,15)
2247
	hitbox.Material = "Neon"
2248
	hitbox.BrickColor = maincolor
2249
	hitbox.CFrame = char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*faceam
2250
	hitbox.Anchored = true
2251
	hitbox.Transparency = 1
2252
	hitbox.CanCollide = false
2253
	MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,15,15,-4.5,0.15,math.random(1,2))
2254
	MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,1.5,1.5,0,0.05,math.random(1,2))
2255
	game:GetService("Debris"):AddItem(hitbox, 1)
2256
	hitbox.Touched:connect(function(hit)
2257
	Damagefunc(hit,10,11,math.random(10,20),"Normal",RootPart,.2,1)
2258
	end)
2259
	wait(0.1)
2260
	end
2261
end
2262
2263
function smesh()
2264
	attack = true 
2265
	smeshmoveenabled = true
2266
	hum.WalkSpeed = 8
2267
	so("rbxassetid://255679384",sorb2,2,0.98)
2268
	for i = 0,10,0.1 do
2269
		swait()
2270
	MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2271
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2272
		RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
2273
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
2274
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-50)),.1)
2275
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(50)),.1)
2276
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.1)
2277
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
2278
	end
2279
	for i = 0,2,0.1 do
2280
		swait()
2281
		MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
2282
	MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2283
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2284
		RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
2285
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(25 + 5 * math.cos(sine / 32))),.3)
2286
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
2287
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(35),math.rad(0),math.rad(80)),.3)
2288
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(35)), 0.3)
2289
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-170)), 0.3)
2290
	end
2291
	so("rbxassetid://165969964",sorb2,1.5,0.98)
2292
	local hitbox = Instance.new("Part",char)
2293
	hitbox.Size = Vector3.new(20,20,20)
2294
	hitbox.Material = "Neon"
2295
	hitbox.BrickColor = maincolor
2296
	hitbox.CFrame = sorb2.CFrame 
2297
	hitbox.Anchored = true
2298
	hitbox.Transparency = 1
2299
	hitbox.CanCollide = false
2300
	game:GetService("Debris"):AddItem(hitbox, 1)
2301
	hitbox.Touched:connect(function(hit)
2302
	Damagefunc(hit,9,18,math.random(10,20),"Normal",RootPart,.2,1)
2303
	end)
2304
	MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.25,1.25,1.25,0.015) 
2305
	MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.5,1.5,1.5,0.025) 
2306
	MagicBlock(maincolor,sorb2.CFrame,10,10,10,5.5,5.5,5.5,0.15)
2307
	for i = 0, 9 do
2308
		MagicBlock(maincolor,sorb2.CFrame,1,1,1,-0.025,10,-0.025,0.065)
2309
	end
2310
	hum.WalkSpeed = 16
2311
	smeshmoveenabled = false
2312
	attack = false
2313
end
2314
2315
local begonemoveenabled = false
2316
2317
function BEGONETHOT()
2318
	smeshmoveenabled = true
2319
	begonemoveenabled = true
2320
	hum.WalkSpeed = 8
2321
	so("rbxassetid://854345294",sorb2,2.5,1)
2322
	wait(2)
2323
	attack = true 
2324
	for i = 0,8,0.1 do
2325
		swait()
2326
			MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2327
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2328
		RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.1)
2329
LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.1)
2330
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,5 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
2331
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
2332
             RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.1)
2333
             LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.1)
2334
	end
2335
	for i = 0,2,0.1 do
2336
		swait()
2337
		MagicBlock(maincolor,sorb2.CFrame,1,1,1,2.5,2.5,2.5,0.1)
2338
			MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2339
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2340
		RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
2341
LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.3)
2342
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(0)),.3)
2343
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2344
             RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.3)
2345
             LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.3)
2346
	end
2347
	so("rbxassetid://165969964",sorb2,3.5,0.98)
2348
	local hitbox = Instance.new("Part",char)
2349
	hitbox.Size = Vector3.new(75,75,75)
2350
	hitbox.Material = "Neon"
2351
	hitbox.BrickColor = maincolor
2352
	hitbox.CFrame = sorb2.CFrame 
2353
	hitbox.Anchored = true
2354
	hitbox.Transparency = 1
2355
	hitbox.CanCollide = false
2356
	game:GetService("Debris"):AddItem(hitbox, 1)
2357
	hitbox.Touched:connect(function(hit)
2358
	Damagefunc(hit,888,1337,math.random(10,20),"Normal",RootPart,.2,1)
2359
	end)
2360
	MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) 
2361
	MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) 
2362
	MagicBlock(maincolor,sorb2.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15)
2363
	for i = 0, 9 do
2364
		MagicBlock(maincolor,sorb2.CFrame,1*2.5,1*2.5,1*2.5,-0.025*2.5,10*2.5,-0.025*2.5,0.065)
2365
	end
2366
	hum.WalkSpeed = 16
2367
	begonemoveenabled = false
2368
	smeshmoveenabled = false
2369
	attack = false
2370
end
2371
2372
function doomsdaylaser()
2373
	attack = true 
2374
	for i = 0,1,0.1 do
2375
		swait()
2376
		MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
2377
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2378
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3)
2379
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
2380
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
2381
	end
2382
		local a = Instance.new("Part",Character)
2383
		a.BrickColor = maincolor
2384
	a.Name = "Lazer"	
2385
	a.Anchored = true
2386
	a.Transparency = 1
2387
a.Material = "Neon"
2388
	a.CanCollide = false
2389
	local hitbox = Instance.new("Part",char)
2390
	hitbox.Size = Vector3.new(10,10,10)
2391
	hitbox.Material = "Neon"
2392
	hitbox.BrickColor = maincolor
2393
	hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
2394
	hitbox.Anchored = true
2395
	hitbox.Transparency = 1
2396
	hitbox.CanCollide = false
2397
	local hmesh = CreateMesh(hitbox,"Sphere",1,1,1)
2398
	so("rbxassetid://136007472",sorb,1,0.7) 
2399
	for i = 0, 19 do
2400
		swait()
2401
		hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
2402
		 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2403
		MagicBlock(maincolor,hitbox.CFrame,10,10,10,1.15,1.15,1.15,0.15) 
2404
		hitbox.Transparency = hitbox.Transparency - 0.05
2405
	end
2406
	for i = 0, 49 do
2407
		swait()
2408
		hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
2409
		RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2410
	end
2411
	a.Transparency = 0
2412
	local ray = Ray.new(
2413
	    hitbox.CFrame.p,                           -- origin
2414
	    (mouse.Hit.p - hitbox.CFrame.p).unit * 500 -- direction
2415
	) 
2416
	local ignore = Character
2417
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2418
	if hit then
2419
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
2420
	 
2421
		if not humanoid then
2422
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
2423
		end
2424
		if humanoid then
2425
			if humanoid.Parent:IsA"Model" then
2426
				Damagefunc(hit,25,35,math.random(10,20),"Normal",RootPart,.2,1)
2427
			end
2428
		end
2429
	end
2430
	a.BottomSurface = 10
2431
	a.TopSurface = 10
2432
	local distance = (sorb.CFrame.p - position).magnitude
2433
	a.Size = Vector3.new(1, 1, distance)
2434
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
2435
	game:GetService("Debris"):AddItem(a, 15)
2436
	game:GetService("Debris"):AddItem(hitbox, 15)
2437
local newmesh = Instance.new("BlockMesh",a)
2438
so("rbxassetid://553712898",sorb,3.5,1) 
2439
so("rbxassetid://553712898",sorb,0.5,0.5) 
2440
so("rbxassetid://588737825",sorb,2.75,1)
2441
MagicBlock(maincolor,sorb.CFrame,1,1,1,5,5,5,0.15) 
2442
MagicBlock(maincolor,mouse.Hit,1,1,1,2.5,2.5,2.5,0.05) 
2443
MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15) 
2444
local beamscale = 1.5
2445
local sizemax = 1*10
2446
for i = 0, 99 do
2447
	hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
2448
	sizemax = sizemax - 0.01*10
2449
	beamscale = beamscale - 0.01
2450
	 RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2451
	so("rbxassetid://553712898",sorb,0.5,2.5) 
2452
	ray = Ray.new(
2453
	    hitbox.CFrame.p,                           -- origin
2454
	    (mouse.Hit.p - hitbox.CFrame.p).unit * 2000 -- direction
2455
	) 
2456
	hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2457
distance = (hitbox.CFrame.p - position).magnitude
2458
if hit then
2459
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
2460
	 
2461
		if not humanoid then
2462
			humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
2463
		end
2464
		if humanoid then
2465
			if humanoid.Parent:IsA"Model" then
2466
				Damagefunc(hit,15,17,math.random(10,20),"Normal",RootPart,.2,1)
2467
			end
2468
		end
2469
	end
2470
a.Size = Vector3.new(5, 5, distance)
2471
hmesh.Scale = hmesh.Scale - Vector3.new(0.01,0.01,0.01)
2472
a.CFrame = CFrame.new(hitbox.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
2473
newmesh.Scale = newmesh.Scale + Vector3.new(-0.01,-0.01,0)
2474
MagicBlock(maincolor,mouse.Hit,sizemax,sizemax,sizemax,beamscale,beamscale,beamscale,0.05) 
2475
swait()
2476
end
2477
	attack = false
2478
end
2479
local attacktype = 0 
2480
mouse.Button1Down:connect(function()
2481
	if attack == false and attacktype == 0 and begonemoveenabled == false then
2482
		attacktype = 1
2483
		weaklaser1()
2484
		elseif attack == false and attacktype == 1 and begonemoveenabled == false then
2485
		attacktype = 0
2486
		weaklaser2()
2487
	end
2488
end)
2489
2490
mouse.KeyDown:connect(function(k)
2491
  if k == "z" and attack == false and begonemoveenabled == false then
2492
	laser()
2493
  end
2494
  if k == "x" and attack == false and begonemoveenabled == false then
2495
	groundwave()
2496
  end
2497
  if k == "c" and attack == false and begonemoveenabled == false then
2498
	smesh()
2499
  end
2500
  if k == "v" and attack == false and begonemoveenabled == false then
2501
	doomsdaylaser()
2502
  end
2503
  if k == "p" and attack == false and begonemoveenabled == false then
2504
	BEGONETHOT()
2505
  end
2506
end)
2507
2508
Humanoid.Animator.Parent = nil
2509
2510
attack = true
2511
hum.WalkSpeed = 0
2512
hum.MaxHealth = math.huge
2513
hum.Health = math.huge
2514
for i = 0,10,0.05 do
2515
		swait()
2516
			MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2517
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2518
		RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.025)
2519
LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.025)
2520
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(-30),math.rad(0),math.rad(0)),.025)
2521
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.025)
2522
             RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.025)
2523
             LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.025)
2524
end
2525
MagicBlock(maincolor,t.CFrame,10,10,10,1.5,1.5,1.5,0.025) 
2526
MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.015) 
2527
MagicBlock(maincolor,t.CFrame,10,10,10,1.75,1.75,1.75,0.05)
2528
MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.076)
2529
so("rbxassetid://588737825",t,0.5,1) 
2530
so("rbxassetid://588737825",t,0.5,1) 
2531
so("rbxassetid://588698460",t,1,0.5)
2532
so("rbxassetid://440794203",t,1,1)  
2533
so("rbxassetid://553712898",t,1,0.85) 
2534
so("rbxassetid://553712898",t,1.5,0.5) 
2535
so("rbxassetid://553712898",t,1.5,0.25) 
2536
so("rbxassetid://553712898",t,1.5,0.15) 
2537
for i = 0,10,0.05 do
2538
		swait()
2539
			MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2540
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2541
		RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.125)
2542
LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.025)
2543
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(20),math.rad(0),math.rad(0)),.125)
2544
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.125)
2545
             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(85)), 0.125)
2546
             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-85)), 0.125)
2547
end
2548
attack = false
2549
hum.WalkSpeed = 16
2550
hum.MaxHealth = 250
2551
hum.Health = 250
2552
2553
idleanim=.4
2554
while true do
2555
swait()
2556
  sine = sine + change
2557
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
2558
local velderp=RootPart.Velocity.y
2559
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
2560
if equipped==true or equipped==false then
2561
if attack==false then
2562
idle=idle+1
2563
else
2564
idle=0
2565
end
2566
if idle>=500 then
2567
if attack==false then
2568
--Sheath()
2569
end
2570
end
2571
if RootPart.Velocity.y > 1 and hitfloor==nil then 
2572
Anim="Jump"
2573
if attack==false then
2574
Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
2575
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2576
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2577
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
2578
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2579
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
2580
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2581
RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
2582
LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
2583
end
2584
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
2585
Anim="Fall"
2586
if attack==false then
2587
Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
2588
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
2589
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
2590
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
2591
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2592
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
2593
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
2594
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
2595
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
2596
end
2597
elseif torvel<1 and hitfloor~=nil then
2598
Anim="Idle"
2599
if smeshmoveenabled == false then
2600
RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
2601
LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
2602
	MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2603
	MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
2604
	end
2605
if attack==false then
2606
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(-5),math.rad(-35)),.3)
2607
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(5),math.rad(35)),.3)
2608
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
2609
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
2610
end
2611
elseif torvel>2 and torvel<22 and hitfloor~=nil then
2612
Anim="Walk"
2613
if smeshmoveenabled == false then
2614
RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
2615
LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
2616
	MagicBlock(maincolor,llegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
2617
	MagicBlock(maincolor,rlegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
2618
	MagicBlock(maincolor,llegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
2619
	MagicBlock(maincolor,rlegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
2620
	end
2621
if attack==false then
2622
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
2623
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2624
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
2625
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
2626
end
2627
elseif torvel>=22 and hitfloor~=nil then
2628
Anim="Run"
2629
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
2630
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
2631
if attack==false then
2632
	          RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
2633
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2634
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
2635
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
2636
end
2637
end
2638
end
2639
end