View difference between Paste ID: s57aQsYz and 0NKZjK7x
SHOW: | | - or go back to the newest paste.
1-
	--[[ Gotta Sweep ]]--
1+
	--[[ Playtime ]]--
2
-------------------------------------------------------
3
--[[
4
5
This script was created by WafflesAreVeryGood.
6
ATTACKS
7
_______
8
9
10
--]]
11
-------------------------------------------------------
12
	--[[ Reference ]]--
13
--[[
14
	Burn Function
15
	hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
16
	
17
	Freeze Function
18
	hurt(char.Head, 0, "Freeze", {char, 1})
19
	
20
	Stun Function
21
	hurt(char.Head, 0, "Stun", {char, 0.2})
22
--]]
23
-------------------------------------------------------
24
math.randomseed(tick())
25
print("You are using a script created by WafflesAreVeryGood!")
26
warn("--------Global Message--------")
27
warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
28
warn("------------------------------")
29
	--[[Changeable Variables]]--
30
local settings = {}
31
--ShowDamage settings
32
settings.Damage = {
33
	Color = nil,
34
	StrokeColor = nil,
35
	Font = nil,
36
}
37
settings.AttackMenu = false
38
settings.ShowDamageEnabled = false
39
settings.CustomAnim = false
40
local soundlist = {
41
	HardHit1 = "rbxassetid://565207203",
42
	HardHit2 = "rbxassetid://541909913",
43
	HardHit3 = "rbxassetid://541909983",
44
	WeakHit1 = "rbxassetid://558642292",
45
	WeakHit2 = "rbxassetid://541907812",
46
	Slice1 = "rbxassetid://260429964",
47
	Slice2 = "rbxassetid://260430015",
48
	Explosion1 = "rbxassetid://138186576",
49
	Explosion2 = "rbxassetid://157878578",
50
	Woosh1 = "rbxassetid://541909867",
51
	Woosh2 = "rbxassetid://541909763",
52
	Freeze = "rbxassetid://268249319",
53
	Thaw = "rbxassetid://1578580965",
54
	Burn = "rbxassetid://298181829",
55-
	GottaSweep = "rbxassetid://1781430032",
55+
	One = "rbxassetid://1846615963",
56-
	SweepingTime = "rbxassetid://1837757450",
56+
	Two = "rbxassetid://1846619160",
57
	Three = "rbxassetid://1846620849",
58
	Four = "rbxassetid://1846859927",
59
	Five = "rbxassetid://1846870244",
60
	ReadyGo = "rbxassetid://1846603855",
61
	Hehehe = "rbxassetid://1846846911",
62
	OnceYou = "rbxassetid://1846594055",
63
	Wow = "rbxassetid://1847115545",
64
	Oops = "rbxassetid://1846613015",
65
	
66
}
67
local attack_data = {
68
	{
69
		Name = "Attack",
70
		Description = "Description",
71
		Key = "Key",
72
	},
73
	
74
}
75
76
	--[[Important Variables]]--
77
local plr = game:GetService('Players').LocalPlayer
78
local char = plr.Character
79
local mouse = plr:GetMouse()
80
local input = game:GetService('UserInputService')
81
----
82
local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
83
local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
84
local rs = torso["Right Shoulder"]
85
local ls = torso["Left Shoulder"]
86
local rh = torso["Right Hip"]
87
local lh = torso["Left Hip"]
88
local neck = torso.Neck
89
local rj = rootpart["RootJoint"]
90
local humanoid = char:FindFirstChildOfClass("Humanoid")
91
----
92
local huge = Vector3.new(math.huge, math.huge, math.huge)
93
local attacking = false
94
local cananim = true
95
local animpose = "Idle"
96
local lastpose = animpose
97
local movespeed = 0
98
----
99
	--[[ Anti-Decompile ]]--
100
script.Parent = workspace.CurrentCamera
101
game:GetService('Players').LocalPlayer.CharacterAdded:connect(function()
102
	script:Destroy()
103
end)
104
	--[[ Moves Gui ]]--
105
106
local mgui = Instance.new("ScreenGui")
107
mgui.Name = "MovesGui"
108
local bg = Instance.new("Frame")
109
bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
110
bg.Position = UDim2.new(0,504,0,164)
111
bg.Name = "Background"
112
bg.Size = UDim2.new(-0.035,379,0,225)
113
bg.Visible = false
114
bg.Parent = mgui
115
local container = Instance.new("ScrollingFrame")
116
container.Name = "Container"
117
container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
118
container.BorderSizePixel = 0
119
container.Visible = true
120
container.Position = UDim2.new(0,16,0,46)
121
container.Size = UDim2.new(0,132,0,162)
122
container.CanvasSize = UDim2.new(0,0,0,10)
123
container.ScrollBarThickness = 4
124
container.Parent = bg
125
local copy = Instance.new("TextButton")
126
copy.Name = "Move"
127
copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
128
copy.BorderSizePixel = 0
129
copy.Position = UDim2.new(0,4,0,4)
130
copy.Size = UDim2.new(0,118,0,29)
131
copy.Font = "SourceSansLight"
132
copy.Text = "Move Name"
133
copy.TextColor3 = Color3.new(197/255,0,0)
134
copy.TextSize = 20
135
copy.Visible = false
136
copy.Parent = container
137
local atkinfo = container:Clone()
138
for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
139
atkinfo.Name = "AtkInfo"
140
atkinfo.Visible = true
141
atkinfo.Position = UDim2.new(0,167,0,50)
142
atkinfo.Size = UDim2.new(0,159,0,165)
143
atkinfo.Parent = bg
144
local movename = Instance.new("TextLabel")
145
movename.Name = "MoveName"
146
movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
147
movename.BorderSizePixel = 0
148
movename.Position = UDim2.new(0,4,0,4)
149
movename.Size = UDim2.new(0,150,0,30)
150
movename.Font = "SourceSansLight"
151
movename.TextColor3 = Color3.new(197/255,0,0)
152
movename.TextSize = 20
153
movename.Text = "same"
154
movename.Parent = atkinfo
155
local movedesc = movename:Clone()
156
movedesc.Position = UDim2.new(0,4,0,47)
157
movedesc.Size = UDim2.new(0,150,0,133)
158
movedesc.Text = "Move Description"
159
movedesc.TextSize = 18
160
movedesc.Name = "MoveDesc"
161
movedesc.TextXAlignment = "Left"
162
movedesc.TextYAlignment = "Top"
163
movedesc.TextWrapped = true
164
movedesc.Parent = atkinfo
165
local title = movedesc:Clone()
166
title.Name = "Title"
167
title.Font = "SourceSansLight"
168
title.Text = "Moves List"
169
title.TextSize = 28
170
title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
171
title.Position = UDim2.new(0,0,0,0)
172
title.Size = UDim2.new(1,0,0,30)
173
title.TextXAlignment = "Center"
174
title.TextYAlignment = "Center"
175
title.Parent = bg
176
local toggle = copy:Clone()
177
toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
178
toggle.Position = UDim2.new(0,0,0,288)
179
toggle.Size = UDim2.new(0,70,0,20)
180
toggle.Visible = true
181
toggle.Font = "SourceSans"
182
toggle.Text = "Toggle Moves"
183
toggle.Name = "Toggle"
184
toggle.TextSize = 14
185
toggle.Parent = mgui
186
mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
187
if settings.AttackMenu then
188
	mgui.Enabled = false
189
end
190
toggle.MouseButton1Click:connect(function()
191
	bg.Visible = not bg.Visible
192
end)
193
local pos = copy.Position -UDim2.new(0,0,0,29)
194
for _,data in pairs(attack_data) do
195
	local new = copy:Clone()
196
	pos = pos +UDim2.new(0,0,0,29)
197
	container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
198
	new.Position = pos
199
	new.Text = data.Name.."["..data.Key.."]"
200
	new.Visible = true
201
	spawn(function()
202
		swait()
203
		if not new.TextFits then
204
			new.TextScaled = true
205
		end
206
	end)
207
	new.Parent = container
208
	new.MouseButton1Click:connect(function()
209
		movename.Text = data.Name
210
		movedesc.Text = data.Description
211
		spawn(function()
212
			swait()
213
			if not movename.TextFits then
214
				movename.TextScaled = true
215
			else
216
				movename.TextScaled = false
217
			end
218
			if not movedesc.TextFits then
219
				movename.TextScaled = true
220
			else
221
				movename.TextScaled = false
222
			end
223
		end)
224
	end)
225
end
226
	--[[ Functions ]]--
227
228
function addattack(keycode, func)
229
	if keycode ~= "MouseClick" then
230
		input.InputBegan:connect(function(inp)
231
			if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
232
				func()
233
			end
234
		end)
235
	else
236
		mouse.Button1Down:connect(function()
237
			func()
238
		end)
239
	end
240
end
241
function attackend(keycode, func)
242
	input.InputEnded:connect(function(inp)
243
		if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
244
			func()
245
		end
246
	end)
247
end
248
function swait(t)
249
	if t then
250
		for i = 0, t do
251
			game:GetService('RunService').Stepped:wait(0)
252
		end
253
	else
254
		game:GetService('RunService').Stepped:wait(0)
255
	end
256
	return true
257
end
258
function fade(obj, dest, grow)
259
	spawn(function()
260
		local oldcf = obj.CFrame
261
		for i = 0, 10 do
262
			if grow then
263
				obj.Size = obj.Size +Vector3.new(1,1,1)
264
				obj.CFrame = oldcf
265
			end
266
			obj.Transparency = obj.Transparency +0.1
267
			swait()
268
		end
269
		if dest then
270
		obj:Destroy()
271
		end
272
	end)
273
end
274
function replacejoint(name)
275
	local j = torso:FindFirstChild(name)
276
	if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
277
	if j then
278
		if true then
279
			local already = j.Parent:FindFirstChild(j.Name.." Replacement")
280
			local new = Instance.new("Weld")
281
			local c0 = j.C0
282
			local c1 = j.C1
283
			new.Part0 = j.Part0
284
			j.Part0 = nil
285
			new.Name = j.Name.." Replacement"
286
			if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
287
			new.Parent = j.Parent
288
			new.Part1 = j.Part1
289
			new.C0 = c0
290
			new.C1 = c1
291
			return new
292
		end
293
	end
294
end
295
function removejoint(name, fast)
296
	local j = torso:FindFirstChild(name.." Replacement")
297
	if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
298
	if j then
299
		local p0 = j.Part0
300
		if p0 ~= nil then
301
		local c0 = j.C0
302
		local c1 = j.C1
303
		j:Destroy()
304
		local new = p0:FindFirstChild(name)
305
		local ac0 = new.C0
306
		local ac1 = new.C1
307
		new.Part0 = p0
308
		new.C0 = c0
309
		new.C1 = c1
310
		spawn(function()
311
			if name ~= "RootJoint" then
312
			if not fast then
313
			for i = 0, 0.6, 0.1 do
314
				print(i)
315
				new.C0 = new.C0:Lerp(ac0, 0.5)
316
				new.C1 = new.C1:lerp(ac1, 0.5)
317
				swait()
318
			end
319
			else
320
				new.C0 = new.C0:Lerp(ac0, 1)
321
				new.C1 = new.C1:lerp(ac1, 1)
322
			end
323
			end
324
		end)
325
		end
326
	end
327
end
328
function fixalljoints(fast)
329
	for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip",  "Neck", "RootJoint"}) do
330
		removejoint(v, fast)
331
	end
332
end
333
function getnewjoints()
334
	local rs = replacejoint("Right Shoulder")
335
	local ls = replacejoint("Left Shoulder")
336
	local rh = replacejoint("Right Hip")
337
	local lh = replacejoint("Left Hip")
338
	local neck = replacejoint("Neck")
339
	local rj = replacejoint("RootJoint")
340
	return rs,ls,rh,lh,neck,rj
341
end
342
function knockback(hit, force)
343
	local bv = Instance.new("BodyVelocity")
344
	bv.MaxForce = huge
345
	bv.Velocity = force
346
	bv.Parent = hit
347
	game:GetService('Debris'):AddItem(bv, 0.15)
348-
		s.SoundId = id or ""
348+
349
function soundeffect(id, volume, speed, parent, extra)
350
	extra = extra or {}
351
	local func = function()
352
		local s = LoadLibrary("RbxUtility").Create("Sound")()
353
		s.Name = "WSoundEffect"
354
		s.Volume = volume
355
		s.PlaybackSpeed = speed
356
		s.SoundId = id
357
		s.Looped = false
358-
		if extra.Immune then
358+
359-
			Instance.new("StringValue", s).Name = "Immune"
359+
360
			ef.Octave = extra.Pitch or 1
361
			ef.Enabled = true
362
			ef.Priority = 0
363
			ef.Parent = s
364
		end
365
		s.Parent = parent
366
		s:Play()
367
		s.TimePosition = extra.Start or 0
368
		repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
369
		s:Destroy()
370
		return s
371
	end
372
	if extra.ForceWait then
373
		func()
374
	else
375
		return spawn(func)
376
	end
377
end
378
function getfunction(nm)
379
	if nm == "Burn" then
380
		return function(character, data)
381
			if character:FindFirstChild("Burn") then
382
				return
383
			end
384
			local val = Instance.new("StringValue")
385
			val.Name = "Burn"
386
			val.Parent = character
387
			for i = 1, data.Time*100 do
388
				if not character:FindFirstChild("Burn") then
389
					break
390
				end
391
				if i%data.Rate == 0 then
392
					local hum = character:FindFirstChildOfClass("Humanoid")
393
					if hum then
394
						hurt(torso, data.Damage)
395
					end
396
					soundeffect(soundlist.Burn, 1, 1, torso)
397
					spawn(function()
398
						for i = 1, 4 do
399
							spawn(function()
400
								local p = Instance.new("Part")
401
								p.Material = "Neon"
402
								p.CanCollide = false
403
								p.Anchored = true
404
								p.Size = Vector3.new(0.5,0.5,0.5)
405
								p.Name = "fireeffect"
406
								p.Color = data.Color or Color3.new(1,162/255,0)
407
								p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
408
								p.Parent = torso
409
								local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
410
								local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
411
								local opcf = p.CFrame
412
								local opsz = p.Size
413
								for i = 0, 1, 0.01 do
414
									p.Transparency = i/1
415
									local cf = p.CFrame
416
									p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
417
									p.CFrame = cf
418
									p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 )
419
									swait()
420
								end
421
								p:Destroy()
422
								swait(5)
423
							end)
424
							swait()
425
						end
426
					end)
427
				end
428
				swait()
429
			end
430
			val:Destroy()
431
		end
432
	end
433
	if nm == "Poison" then
434
		return function(character, data)
435
			
436
		end
437
	end
438
	if nm == "Freeze" then
439
		return function(character, t)
440
			if not character:FindFirstChild("Frozen") then
441
				local val = Instance.new("StringValue")
442
				val.Name = "Frozen"
443
				val.Parent = character
444
				local unanchor = {}
445
				local freezeparts = {}
446
				soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
447
				for _,v in pairs(character:GetDescendants()) do
448
					if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
449
						if v.Transparency ~= 1 then
450
							if not v.Anchored then
451
								table.insert(unanchor, v)
452
							end
453
							v.Anchored = true
454
							local new = v:Clone()
455
							new:ClearAllChildren()
456
							local mesh = v:FindFirstChildOfClass("SpecialMesh")
457
							if mesh then
458
								mesh = mesh:Clone()
459
								mesh.TextureId = ""
460
								if mesh.Scale ~= Vector3.new(1,1,1) then
461
									mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
462
								end
463
								mesh.Parent = new
464
							end
465
							new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
466
							new.CanCollide = false
467
							new.Anchored = true
468
							new.Name = "freezepart"
469
							new.Material = "Ice"
470
							new.BrickColor = BrickColor.new("Pastel light blue")
471
							new.TopSurface = "Smooth"
472
							new.BottomSurface = "Smooth"
473
							new.Transparency = 0
474
							new.CFrame = v.CFrame
475
							new.Parent = v
476
							table.insert(freezeparts, new)
477
						end
478
					end
479
				end
480
				swait(50*t)
481
				soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
482
				val:Destroy()
483
				for _,v in pairs(unanchor) do
484
					v.Anchored = false
485
				end
486
				for _,v in pairs(freezeparts) do
487
					v.Anchored = false
488
					v.CanCollide = true
489
					v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
490
					game:GetService('Debris'):AddItem(v, 5)
491
				end
492
			end
493
		end
494
	end
495
	if nm == "Stun" then
496
		return function(character, t)
497
			local humanoid = character:FindFirstChildOfClass("Humanoid")
498
			local val = Instance.new("StringValue")
499
			val.Name = "Stun"
500
			val.Parent = character
501
			if humanoid then
502
				humanoid.PlatformStand = true
503
			end
504
			for i = 1, t*100 do
505
				if humanoid then
506
					humanoid.PlatformStand = true
507
				end
508
				swait()
509
			end
510
			if humanoid then
511
				humanoid.PlatformStand = false
512
			end
513
			val:Destroy()
514
		end
515
	end
516
	if nm == "Paralyze" then
517
		return function(character, t)
518
			
519
		end
520
	end
521
	return
522
end
523
function showdamage(cf, txtdata)
524
	--[[
525
		[Text Data]
526
			Font
527
			Text
528
			Color
529
			StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
530
	--]]
531
	local p = Instance.new("Part")
532
	p.Name = "DamagePart"
533
	p.CanCollide = false
534
	p.Anchored = true
535
	p.Transparency = 1
536
	p.Size = Vector3.new(0.1,0.1,0.1)
537
	p.CFrame = cf
538
	local gui = Instance.new("BillboardGui")
539
	gui.Name = "GUI"
540
	gui.Adornee = p
541
	gui.LightInfluence = 0
542
	gui.Size = UDim2.new(1.5,0,0.7,0)
543
	gui.StudsOffset = Vector3.new(0,0.5,0)
544
	local tl = Instance.new("TextLabel")
545
	tl.Name = "tl"
546
	tl.BackgroundTransparency = 1
547
	tl.Position = UDim2.new(0,0,0,0)
548
	tl.Size = UDim2.new(2,0,2,0)
549
	tl.Font = txtdata.Font or "SourceSans"
550
	tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
551
	tl.Text = txtdata.Text or ""
552
	tl.TextScaled = true
553
	tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
554
	tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
555
	tl.Rotation = math.random(-10,10)
556
	tl.Parent = gui
557
	gui.Parent = p
558
	local og = gui
559
	gui = og:Clone()
560
	gui.Parent = og.Parent
561
	tl = gui.tl
562
	og:Destroy()
563
	p.Parent = char
564
	spawn(function()
565
		for i = 1, 100 do
566
			gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
567
			tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
568
			if txtdata.StrokeColor then
569
				tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
570
			end
571
			swait()
572
		end
573
		p:Destroy()
574
	end)
575
end
576
function stabilizer(obj)
577
	local bp = Instance.new("BodyPosition")
578
	bp.MaxForce = huge
579
	bp.Position = obj.Position
580
	bp.Parent = obj
581
end
582
function camshake(direction, intensity, duration)
583
	if direction:lower() == "inout" then
584
		workspace.CurrentCamera.FieldOfView = intensity
585
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
586
	elseif direction:lower() == "left" then
587
		humanoid.CameraOffset = Vector3.new(intensity,0,0)
588
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
589
	elseif direction:lower() == "right" then
590
		humanoid.CameraOffset = Vector3.new(-intensity,0,0)
591
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
592
	elseif direction:lower() == "up" then
593
		humanoid.CameraOffset = Vector3.new(0,intensity,0)
594
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
595
	elseif direction:lower() == "down" then
596
		humanoid.CameraOffset = Vector3.new(0,-intensity,0)
597
		game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
598
	end
599
end
600
function hurt(hit, dmg, effect, args)
601
	--pcall(function()
602
		local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
603
		if hum then
604
			if hum.Parent ~= char or true then
605
				if typeof(dmg) == "table" then
606
					dmg = math.random(dmg[1], dmg[2])
607
				end
608
				hum.Health = hum.Health - dmg
609
				if settings.ShowDamageEnabled then
610
					local dmgdata = {
611
						Color = settings.Damage.Color,
612
						StrokeColor = settings.Damage.StrokeColor,
613
						Font = settings.Damage.Font,
614
						Text = dmg,
615
					}
616
					showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
617
				end
618
				if effect then
619
					if typeof(effect) == "function" then
620
						local s,m = pcall(effect, hit.CFrame)
621
						if not s then
622
							warn("Error in function: "..m or "unknown")
623
						end
624
					end
625
					if typeof(effect) == "string" then
626
						local func = getfunction(effect)
627
						if func then
628
							local s,m
629
							if args then
630
								s,m = pcall(func, unpack(args))
631
							else
632
								s,m = pcall(func)
633
							end
634
							if not s then
635
								warn("Error in function: "..m or "unknown")
636
							end
637
						end
638
					end
639
				end
640
				return true
641
			end
642
		end
643
	--end)
644
end
645-
	local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:GottaSweep")
645+
646
pcall(function()
647
	NS([[
648
	local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Playtime")
649
	store:UpdateAsync("y'all", function(old)
650
		old = old or {}
651
		if typeof(old) ~= "table" then
652
			old = {} --stop breaking my datastores
653
		end
654
		local ok = true
655
		for _,v in pairs(old) do
656
			if typeof(v) == "table" then
657
				if v.name == owner.Name or v.userid == owner.UserId then
658
					ok = false
659
					table.insert(v.uses, tick())
660
				end
661
			end
662
		end
663
		if ok then
664
			table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
665
		end
666
		return old
667
	end)
668
	script:Destroy()
669-
humanoid.WalkSpeed = 70
669+
670
end)
671-
local debris = false
671+
672
673
--Converted with ttyyuu12345's model to script plugin v4
674
function sandbox(var,func)
675
	local env = getfenv(func)
676-
bbg.Size = UDim2.new(10,0,10,0)
676+
	local newenv = setmetatable({},{
677-
bbg.StudsOffset = Vector3.new(0,2,0)
677+
		__index = function(self,k)
678
			if k=="script" then
679
				return var
680
			else
681-
image.Image = "rbxassetid://1828477921"
681+
				return env[k]
682
			end
683
		end,
684-
local grabbed = {}
684+
	})
685
	setfenv(func,newenv)
686-
	soundeffect(soundlist.GottaSweep, 1, 1, char.Torso)
686+
	return func
687
end
688-
addattack(Enum.KeyCode.X, function()
688+
cors = {}
689-
	soundeffect(soundlist.SweepingTime, 1, 1, char.Torso)
689+
mas = Instance.new("Model",game:GetService("Lighting"))
690
Model0 = Instance.new("Model")
691-
addattack(Enum.KeyCode.F, function()
691+
Part1 = Instance.new("Part")
692-
	debris = true
692+
SpecialMesh2 = Instance.new("SpecialMesh")
693-
	for _,v in pairs(grabbed) do
693+
Part3 = Instance.new("Part")
694-
		local tors  = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
694+
SpecialMesh4 = Instance.new("SpecialMesh")
695-
		if tors then
695+
Part5 = Instance.new("Part")
696-
			pcall(function()
696+
SpecialMesh6 = Instance.new("SpecialMesh")
697-
				tors.Sweep:Destroy()
697+
Part7 = Instance.new("Part")
698
SpecialMesh8 = Instance.new("SpecialMesh")
699
Part9 = Instance.new("Part")
700
SpecialMesh10 = Instance.new("SpecialMesh")
701-
	grabbed = {}
701+
Part11 = Instance.new("Part")
702-
	wait(1)
702+
SpecialMesh12 = Instance.new("SpecialMesh")
703-
	debris = false
703+
Part13 = Instance.new("Part")
704
SpecialMesh14 = Instance.new("SpecialMesh")
705-
local hitpart = Instance.new("Part")
705+
Part15 = Instance.new("Part")
706-
hitpart.Anchored = false
706+
SpecialMesh16 = Instance.new("SpecialMesh")
707-
hitpart.CanCollide = false
707+
Part17 = Instance.new("Part")
708-
hitpart.Transparency = 1
708+
SpecialMesh18 = Instance.new("SpecialMesh")
709-
hitpart.Size = Vector3.new(7,3,1)
709+
Part19 = Instance.new("Part")
710-
hitpart.CFrame = rootpart.CFrame *CFrame.new(0,0,0)
710+
Part20 = Instance.new("Part")
711-
local bp = Instance.new("BodyPosition")
711+
SpecialMesh21 = Instance.new("SpecialMesh")
712-
bp.MaxForce = huge
712+
Part22 = Instance.new("Part")
713-
bp.Position = hitpart.Position
713+
SpecialMesh23 = Instance.new("SpecialMesh")
714-
bp.Parent = hitpart
714+
Part24 = Instance.new("Part")
715-
local bg = Instance.new("BodyGyro")
715+
SpecialMesh25 = Instance.new("SpecialMesh")
716-
bg.MaxTorque = huge
716+
Part26 = Instance.new("Part")
717-
bg.CFrame = hitpart.CFrame
717+
SpecialMesh27 = Instance.new("SpecialMesh")
718-
bg.Parent = hitpart
718+
Part28 = Instance.new("Part")
719-
hitpart.Parent = char
719+
SpecialMesh29 = Instance.new("SpecialMesh")
720-
hitpart.Touched:connect(function(hit)
720+
Part30 = Instance.new("Part")
721-
	local ok = true
721+
SpecialMesh31 = Instance.new("SpecialMesh")
722-
	for _,v in pairs(grabbed) do
722+
Part32 = Instance.new("Part")
723-
		if v == hit.Parent then
723+
SpecialMesh33 = Instance.new("SpecialMesh")
724-
			ok = false
724+
Part34 = Instance.new("Part")
725
Model0.Name = "Rope"
726
Model0.Parent = mas
727-
	if ok and not debris then
727+
Model0.PrimaryPart = Part19
728-
		if hurt(hit, 0) and hit.Parent ~= char then
728+
Part1.Parent = Model0
729-
			local w = Instance.new("Weld")
729+
Part1.BrickColor = BrickColor.new("Institutional white")
730-
			w.Name = "Sweep"
730+
Part1.Rotation = Vector3.new(15, -90, 0)
731-
			w.Part0 = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
731+
Part1.Anchored = true
732-
			w.Part1 = hitpart
732+
Part1.CanCollide = false
733-
			local num = math.random(1,2) == 1 and math.random(-6,-4) or math.random(4,6)
733+
Part1.Size = Vector3.new(0.5, 0.5, 0.5)
734-
			w.Part0.CFrame = hitpart.CFrame *CFrame.new(num,0,0)
734+
Part1.CFrame = CFrame.new(242.25, 1.8062222, -319.676788, 1.26665881e-07, 3.39399868e-08, -1, -0.258818746, 0.965925574, 0, 0.965925872, 0.258818805, 1.31134158e-07)
735-
			w.C0 = w.Part0.CFrame:inverse()
735+
Part1.BottomSurface = Enum.SurfaceType.Smooth
736-
			w.C1 = hitpart.CFrame:inverse()
736+
Part1.TopSurface = Enum.SurfaceType.Smooth
737-
			w.Parent = w.Part0
737+
Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
738-
			table.insert(grabbed, hit.Parent)
738+
Part1.Position = Vector3.new(242.25, 1.8062222, -319.676788)
739
Part1.Orientation = Vector3.new(0, -90, -15)
740
Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
741
SpecialMesh2.Parent = Part1
742
SpecialMesh2.MeshType = Enum.MeshType.Cylinder
743
Part3.Parent = Model0
744
Part3.BrickColor = BrickColor.new("Institutional white")
745
Part3.Rotation = Vector3.new(-15, 90, 0)
746
Part3.Anchored = true
747
Part3.CanCollide = false
748
Part3.Size = Vector3.new(0.5, 0.5, 0.5)
749
Part3.CFrame = CFrame.new(242.25, 1.8062222, -318.323212, -4.22219593e-08, -1.13133289e-08, 1, -0.258818805, 0.965925694, 0, -0.965925872, -0.258818805, -4.37113883e-08)
750
Part3.BottomSurface = Enum.SurfaceType.Smooth
751
Part3.TopSurface = Enum.SurfaceType.Smooth
752
Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
753
Part3.Position = Vector3.new(242.25, 1.8062222, -318.323212)
754
Part3.Orientation = Vector3.new(0, 90, -15)
755
Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
756
SpecialMesh4.Parent = Part3
757
SpecialMesh4.MeshType = Enum.MeshType.Cylinder
758
Part5.Parent = Model0
759
Part5.BrickColor = BrickColor.new("Institutional white")
760
Part5.Rotation = Vector3.new(-30, 90, 0)
761
Part5.Anchored = true
762
Part5.CanCollide = false
763
Part5.Size = Vector3.new(0.5, 0.5, 0.5)
764
Part5.CFrame = CFrame.new(242.25, 1.97095168, -317.925537, -3.78551768e-08, -2.18556693e-08, 1, -0.499999464, 0.86602509, 0, -0.866025567, -0.499999404, -4.37113883e-08)
765
Part5.BottomSurface = Enum.SurfaceType.Smooth
766
Part5.TopSurface = Enum.SurfaceType.Smooth
767
Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
768
Part5.Position = Vector3.new(242.25, 1.97095168, -317.925537)
769
Part5.Orientation = Vector3.new(0, 90, -30)
770
Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
771
SpecialMesh6.Parent = Part5
772
SpecialMesh6.MeshType = Enum.MeshType.Cylinder
773
Part7.Parent = Model0
774
Part7.BrickColor = BrickColor.new("Institutional white")
775
Part7.Rotation = Vector3.new(75, -90, 0)
776
Part7.Anchored = true
777
Part7.CanCollide = false
778
Part7.Size = Vector3.new(0.5, 0.5, 0.5)
779
Part7.CFrame = CFrame.new(242.25, 3.22219825, -321.275787, 3.3940708e-08, 1.26665682e-07, -1, -0.965924203, 0.258824617, 4.52781157e-14, 0.258824676, 0.965924442, 1.31134144e-07)
780
Part7.BottomSurface = Enum.SurfaceType.Smooth
781-
while swait() do
781+
Part7.TopSurface = Enum.SurfaceType.Smooth
782-
	hitpart.CFrame = rootpart.CFrame *CFrame.new(0,0,0)
782+
Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
783-
	hitpart.Velocity = Vector3.new()
783+
Part7.Position = Vector3.new(242.25, 3.22219825, -321.275787)
784-
	hitpart.RotVelocity = Vector3.new()
784+
Part7.Orientation = Vector3.new(0, -90, -75)
785-
	bp.Position = hitpart.Position
785+
Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
786-
	bg.CFrame = hitpart.CFrame
786+
SpecialMesh8.Parent = Part7
787-
	for i,v in pairs(grabbed) do
787+
SpecialMesh8.MeshType = Enum.MeshType.Cylinder
788-
		pcall(function()
788+
Part9.Parent = Model0
789-
			local tors = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
789+
Part9.BrickColor = BrickColor.new("Institutional white")
790-
			tors.Velocity = Vector3.new()
790+
Part9.Rotation = Vector3.new(0, 90, 0)
791
Part9.Anchored = true
792
Part9.CanCollide = false
793
Part9.Size = Vector3.new(0.5, 0.5, 0.5)
794
Part9.CFrame = CFrame.new(242.25, 1.750036, -318.75, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
795
Part9.BottomSurface = Enum.SurfaceType.Smooth
796
Part9.TopSurface = Enum.SurfaceType.Smooth
797
Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
798
Part9.Position = Vector3.new(242.25, 1.750036, -318.75)
799
Part9.Orientation = Vector3.new(0, 90, 0)
800
Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
801
SpecialMesh10.Parent = Part9
802
SpecialMesh10.MeshType = Enum.MeshType.Cylinder
803
Part11.Parent = Model0
804
Part11.BrickColor = BrickColor.new("Institutional white")
805
Part11.Rotation = Vector3.new(90, -90, 0)
806
Part11.Anchored = true
807
Part11.CanCollide = false
808
Part11.Size = Vector3.new(5.25, 0.5, 0.5)
809
Part11.CFrame = CFrame.new(242.25, 6.02398205, -321.33197, 7.46914737e-13, 1.31134186e-07, -1, -0.999999881, 6.02006958e-06, 4.52780954e-14, 6.04987144e-06, 1.00000036, 1.31134144e-07)
810
Part11.BottomSurface = Enum.SurfaceType.Smooth
811
Part11.TopSurface = Enum.SurfaceType.Smooth
812
Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
813
Part11.Position = Vector3.new(242.25, 6.02398205, -321.33197)
814
Part11.Orientation = Vector3.new(0, -90, -90)
815
Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
816
SpecialMesh12.Parent = Part11
817
SpecialMesh12.MeshType = Enum.MeshType.Cylinder
818
Part13.Parent = Model0
819
Part13.BrickColor = BrickColor.new("Institutional white")
820
Part13.Rotation = Vector3.new(45, -90, 0)
821
Part13.Anchored = true
822
Part13.CanCollide = false
823
Part13.Size = Vector3.new(0.5, 0.5, 0.5)
824
Part13.CFrame = CFrame.new(242.25, 2.48300886, -320.848999, 9.27258981e-08, 9.27256707e-08, -1, -0.707105637, 0.707105696, -3.76821834e-15, 0.707107186, 0.707105458, 1.31134158e-07)
825
Part13.BottomSurface = Enum.SurfaceType.Smooth
826
Part13.TopSurface = Enum.SurfaceType.Smooth
827
Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
828
Part13.Position = Vector3.new(242.25, 2.48300886, -320.848999)
829
Part13.Orientation = Vector3.new(0, -90, -45)
830
Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
831
SpecialMesh14.Parent = Part13
832
SpecialMesh14.MeshType = Enum.MeshType.Cylinder
833
Part15.Parent = Model0
834
Part15.BrickColor = BrickColor.new("Institutional white")
835
Part15.Rotation = Vector3.new(-45, 90, 0)
836
Part15.Anchored = true
837
Part15.CanCollide = false
838
Part15.Size = Vector3.new(0.5, 0.5, 0.5)
839
Part15.CFrame = CFrame.new(242.25, 2.4830091, -317.151001, -3.09086303e-08, -3.09085593e-08, 1, -0.707105756, 0.707105815, -3.76821919e-15, -0.707107186, -0.707105458, -4.37113883e-08)
840
Part15.BottomSurface = Enum.SurfaceType.Smooth
841
Part15.TopSurface = Enum.SurfaceType.Smooth
842
Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
843
Part15.Position = Vector3.new(242.25, 2.4830091, -317.151001)
844
Part15.Orientation = Vector3.new(0, 90, -45)
845
Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
846
SpecialMesh16.Parent = Part15
847
SpecialMesh16.MeshType = Enum.MeshType.Cylinder
848
Part17.Parent = Model0
849
Part17.BrickColor = BrickColor.new("Institutional white")
850
Part17.Rotation = Vector3.new(-90, 90, 0)
851
Part17.Anchored = true
852
Part17.CanCollide = false
853
Part17.Size = Vector3.new(5.25, 0.5, 0.5)
854
Part17.CFrame = CFrame.new(242.25, 6.02398252, -316.66803, -2.1801823e-13, -4.37113954e-08, 1, -1, 6.02007049e-06, 4.52781021e-14, -6.04987144e-06, -1.00000036, -4.37113705e-08)
855
Part17.BottomSurface = Enum.SurfaceType.Smooth
856
Part17.TopSurface = Enum.SurfaceType.Smooth
857
Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
858
Part17.Position = Vector3.new(242.25, 6.02398252, -316.66803)
859
Part17.Orientation = Vector3.new(0, 90, -90)
860
Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
861
SpecialMesh18.Parent = Part17
862
SpecialMesh18.MeshType = Enum.MeshType.Cylinder
863
Part19.Name = "Core"
864
Part19.Parent = Model0
865
Part19.BrickColor = BrickColor.new("Institutional white")
866
Part19.Transparency = 1
867
Part19.Rotation = Vector3.new(0, 90, 0)
868
Part19.Anchored = true
869
Part19.CanCollide = false
870
Part19.Size = Vector3.new(0.5, 0.5, 0.5)
871
Part19.CFrame = CFrame.new(242.25, 7.00003576, -319, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
872
Part19.BottomSurface = Enum.SurfaceType.Smooth
873
Part19.TopSurface = Enum.SurfaceType.Smooth
874
Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
875
Part19.Position = Vector3.new(242.25, 7.00003576, -319)
876
Part19.Orientation = Vector3.new(0, 90, 0)
877
Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
878
Part20.Parent = Model0
879
Part20.BrickColor = BrickColor.new("Institutional white")
880
Part20.Rotation = Vector3.new(30, -90, 0)
881
Part20.Anchored = true
882
Part20.CanCollide = false
883
Part20.Size = Vector3.new(0.5, 0.5, 0.5)
884
Part20.CFrame = CFrame.new(242.25, 1.97095168, -320.074463, 1.13565534e-07, 6.55670007e-08, -1, -0.499999404, 0.866024971, 0, 0.866025567, 0.499999404, 1.31134158e-07)
885
Part20.BottomSurface = Enum.SurfaceType.Smooth
886
Part20.TopSurface = Enum.SurfaceType.Smooth
887
Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
888
Part20.Position = Vector3.new(242.25, 1.97095168, -320.074463)
889
Part20.Orientation = Vector3.new(0, -90, -30)
890
Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
891
SpecialMesh21.Parent = Part20
892
SpecialMesh21.MeshType = Enum.MeshType.Cylinder
893
Part22.Parent = Model0
894
Part22.BrickColor = BrickColor.new("Institutional white")
895
Part22.Rotation = Vector3.new(-75, 90, 0)
896
Part22.Anchored = true
897
Part22.CanCollide = false
898
Part22.Size = Vector3.new(0.5, 0.5, 0.5)
899
Part22.CFrame = CFrame.new(242.25, 3.22219849, -316.724213, -1.13135386e-08, -4.22218989e-08, 1, -0.965924323, 0.258824676, 4.52781225e-14, -0.258824676, -0.965924442, -4.37113741e-08)
900
Part22.BottomSurface = Enum.SurfaceType.Smooth
901
Part22.TopSurface = Enum.SurfaceType.Smooth
902
Part22.Color = Color3.new(0.972549, 0.972549, 0.972549)
903
Part22.Position = Vector3.new(242.25, 3.22219849, -316.724213)
904
Part22.Orientation = Vector3.new(0, 90, -75)
905
Part22.Color = Color3.new(0.972549, 0.972549, 0.972549)
906
SpecialMesh23.Parent = Part22
907
SpecialMesh23.MeshType = Enum.MeshType.Cylinder
908
Part24.Parent = Model0
909
Part24.BrickColor = BrickColor.new("Institutional white")
910
Part24.Rotation = Vector3.new(60, -90, 0)
911
Part24.Anchored = true
912
Part24.CanCollide = false
913
Part24.Size = Vector3.new(0.5, 0.5, 0.5)
914
Part24.CFrame = CFrame.new(242.25, 2.82451463, -321.111053, 6.5567221e-08, 1.13565022e-07, -1, -0.866022885, 0.499997199, -1.29984245e-14, 0.500001192, 0.866021693, 1.31134158e-07)
915
Part24.BottomSurface = Enum.SurfaceType.Smooth
916
Part24.TopSurface = Enum.SurfaceType.Smooth
917
Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
918
Part24.Position = Vector3.new(242.25, 2.82451463, -321.111053)
919
Part24.Orientation = Vector3.new(0, -90, -60)
920
Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
921
SpecialMesh25.Parent = Part24
922
SpecialMesh25.MeshType = Enum.MeshType.Cylinder
923
Part26.Parent = Model0
924
Part26.BrickColor = BrickColor.new("Institutional white")
925
Part26.Rotation = Vector3.new(30, -90, 0)
926
Part26.Anchored = true
927
Part26.CanCollide = false
928
Part26.Size = Vector3.new(0.5, 0.5, 0.5)
929
Part26.CFrame = CFrame.new(242.25, 2.22095108, -320.507477, 1.13565534e-07, 6.55670007e-08, -1, -0.499999404, 0.866024971, 0, 0.866025567, 0.499999404, 1.31134158e-07)
930
Part26.BottomSurface = Enum.SurfaceType.Smooth
931
Part26.TopSurface = Enum.SurfaceType.Smooth
932
Part26.Color = Color3.new(0.972549, 0.972549, 0.972549)
933
Part26.Position = Vector3.new(242.25, 2.22095108, -320.507477)
934
Part26.Orientation = Vector3.new(0, -90, -30)
935
Part26.Color = Color3.new(0.972549, 0.972549, 0.972549)
936
SpecialMesh27.Parent = Part26
937
SpecialMesh27.MeshType = Enum.MeshType.Cylinder
938
Part28.Parent = Model0
939
Part28.BrickColor = BrickColor.new("Institutional white")
940
Part28.Rotation = Vector3.new(-30, 90, 0)
941
Part28.Anchored = true
942
Part28.CanCollide = false
943
Part28.Size = Vector3.new(0.5, 0.5, 0.5)
944
Part28.CFrame = CFrame.new(242.25, 2.22095132, -317.492523, -3.78551768e-08, -2.18556693e-08, 1, -0.499999464, 0.86602509, 0, -0.866025567, -0.499999404, -4.37113883e-08)
945
Part28.BottomSurface = Enum.SurfaceType.Smooth
946
Part28.TopSurface = Enum.SurfaceType.Smooth
947
Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
948
Part28.Position = Vector3.new(242.25, 2.22095132, -317.492523)
949
Part28.Orientation = Vector3.new(0, 90, -30)
950
Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
951
SpecialMesh29.Parent = Part28
952
SpecialMesh29.MeshType = Enum.MeshType.Cylinder
953
Part30.Parent = Model0
954
Part30.BrickColor = BrickColor.new("Institutional white")
955
Part30.Rotation = Vector3.new(0, -90, 0)
956
Part30.Anchored = true
957
Part30.CanCollide = false
958
Part30.Size = Vector3.new(0.5, 0.5, 0.5)
959
Part30.CFrame = CFrame.new(242.25, 1.750036, -319.25, 1.31134158e-07, 0, -1, 0, 0.999999821, 0, 1, 0, 1.31134158e-07)
960
Part30.BottomSurface = Enum.SurfaceType.Smooth
961
Part30.TopSurface = Enum.SurfaceType.Smooth
962
Part30.Color = Color3.new(0.972549, 0.972549, 0.972549)
963
Part30.Position = Vector3.new(242.25, 1.750036, -319.25)
964
Part30.Orientation = Vector3.new(0, -90, 0)
965
Part30.Color = Color3.new(0.972549, 0.972549, 0.972549)
966
SpecialMesh31.Parent = Part30
967
SpecialMesh31.MeshType = Enum.MeshType.Cylinder
968
Part32.Parent = Model0
969
Part32.BrickColor = BrickColor.new("Institutional white")
970
Part32.Rotation = Vector3.new(-60, 90, 0)
971
Part32.Anchored = true
972
Part32.CanCollide = false
973
Part32.Size = Vector3.new(0.5, 0.5, 0.5)
974
Part32.CFrame = CFrame.new(242.25, 2.82451487, -316.888947, -2.18557297e-08, -3.78550133e-08, 1, -0.866023004, 0.499997258, -1.29984262e-14, -0.500001192, -0.866021693, -4.37113954e-08)
975
Part32.BottomSurface = Enum.SurfaceType.Smooth
976
Part32.TopSurface = Enum.SurfaceType.Smooth
977
Part32.Color = Color3.new(0.972549, 0.972549, 0.972549)
978
Part32.Position = Vector3.new(242.25, 2.82451487, -316.888947)
979
Part32.Orientation = Vector3.new(0, 90, -60)
980
Part32.Color = Color3.new(0.972549, 0.972549, 0.972549)
981
SpecialMesh33.Parent = Part32
982
SpecialMesh33.MeshType = Enum.MeshType.Cylinder
983
Part34.Name = "Toucher"
984
Part34.Parent = Model0
985
Part34.BrickColor = BrickColor.new("Institutional white")
986
Part34.Transparency = 1
987
Part34.Rotation = Vector3.new(0, -90, 0)
988
Part34.Anchored = true
989
Part34.CanCollide = false
990
Part34.Size = Vector3.new(5.5, 0.5, 0.5)
991
Part34.CFrame = CFrame.new(242.25, 1.750036, -319, 1.31134158e-07, 0, -1, 0, 0.999999821, 0, 1, 0, 1.31134158e-07)
992
Part34.BottomSurface = Enum.SurfaceType.Smooth
993
Part34.TopSurface = Enum.SurfaceType.Smooth
994
Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
995
Part34.Position = Vector3.new(242.25, 1.750036, -319)
996
Part34.Orientation = Vector3.new(0, -90, 0)
997
Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
998
for i,v in pairs(mas:GetChildren()) do
999
	v.Parent = game:GetService("Players").LocalPlayer.Character
1000
	pcall(function() v:MakeJoints() end)
1001
end
1002
mas:Destroy()
1003
for i,v in pairs(cors) do
1004
	spawn(function()
1005
		pcall(v)
1006
	end)
1007
end
1008
1009
1010
1011
1012
local rope = char.Rope
1013
function setrope(trans)
1014
	trans = trans or 0
1015
	for i,v in pairs(rope:GetChildren()) do
1016
		if v.Name ~= "Toucher" and v.Name ~= "Core" then
1017
			v.Transparency = trans
1018
		end
1019
	end
1020
end
1021
humanoid.WalkSpeed = 30
1022
humanoid.JumpPower = 0
1023
local bbg = Instance.new("BillboardGui")
1024
bbg.Name = "Character"
1025
bbg.Adornee = torso
1026
bbg.AlwaysOnTop = false
1027
bbg.Size = UDim2.new(7,0,7,0)
1028
bbg.StudsOffset = Vector3.new(0,0,0)
1029
local image = Instance.new("ImageLabel")
1030
image.BackgroundTransparency = 1
1031
image.Size = UDim2.new(1,0,1,0)
1032
image.Image = "rbxassetid://1817854735"
1033
image.Parent = bbg
1034
bbg.Parent = torso
1035
addattack(Enum.KeyCode.Z, function()
1036
	soundeffect(soundlist.Hehehe, 1, 1, char.Torso)
1037
end)
1038
torso.Touched:connect(function(hit)
1039
	if hurt(hit, 0) and not attacking then
1040
		attacking = true
1041
		humanoid.WalkSpeed = 0
1042
		local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
1043
		local oldws = hum.WalkSpeed
1044
		local jpow = hum.JumpPower
1045
		hum.JumpPower = 0
1046
		soundeffect(soundlist.OnceYou, 1, 1, char.Torso, {ForceWait = true})
1047
		soundeffect(soundlist.ReadyGo, 1, 1, char.Torso, {ForceWait = true})
1048
		hum.WalkSpeed = oldws
1049
		hum.JumpPower = jpow
1050
		setrope(0)
1051
		rootpart.CFrame = rootpart.CFrame *CFrame.new(0,0,6)
1052
		local function play()
1053
			local con,oops
1054
			con = rope.Toucher.Touched:connect(function(tar)
1055
				if tar.Parent == hit.Parent then
1056
					oops = true
1057
					con:disconnect()
1058
				end
1059
			end)
1060
			local tors = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1061
			rope:SetPrimaryPartCFrame(tors.CFrame)
1062
			local cf = tors.CFrame *CFrame.new(0,3,0) *CFrame.Angles(math.rad(-25),0,0)
1063
			oops = false
1064
			local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
1065
			local oldws = hum.WalkSpeed
1066
			for i = 1, 550 do
1067
				hum.WalkSpeed = 0
1068
				if i == 100 then
1069
					soundeffect(soundlist.One, 1, 1, char.Torso)
1070
				end
1071
				if i == 200 then
1072
					soundeffect(soundlist.Two, 1, 1, char.Torso)
1073
				end
1074
				if i == 300 then
1075
					soundeffect(soundlist.Three, 1, 1, char.Torso)
1076
				end
1077
				if i == 400 then
1078
					soundeffect(soundlist.Four, 1, 1, char.Torso)
1079
				end
1080
				if i == 500 then
1081
					soundeffect(soundlist.Five, 1, 1, char.Torso)
1082
				end
1083
				rope:SetPrimaryPartCFrame(cf *CFrame.Angles(math.rad(-3.6),0,0))
1084
				cf = rope.PrimaryPart.CFrame
1085
				if oops then
1086
					break
1087
				end
1088
				swait()
1089
			end
1090
			if oops then
1091
				local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
1092
				local jpow = hum.JumpPower
1093
				hum.JumpPower = 0
1094
				soundeffect(soundlist.Oops, 1, 1, char.Torso, {ForceWait = true})
1095
				hum.JumpPower = jpow
1096
				play()
1097
			end
1098
			hum.WalkSpeed = oldws
1099
		end
1100
		play()
1101
		humanoid.WalkSpeed = 30
1102
		setrope(1)
1103
		spawn(function()
1104
			soundeffect(soundlist.Wow, 1, 1, char.Torso, {ForceWait = false})
1105
			attacking = false
1106
		end)
1107
	end
1108
end)
1109
if settings.CustomAnim or true then
1110
	if char:FindFirstChild("Animate") then
1111
		char.Animate:Destroy()
1112
	end
1113
	for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
1114
		track:Stop()
1115
	end
1116
	humanoid.Running:connect(function(ws)
1117
		movespeed = ws
1118
	end)
1119
end
1120
1121
spawn(function()
1122
repeat swait()
1123
	local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
1124
	local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
1125
	local tvel = rootpart.Velocity
1126
	if air and tvel.Y > 0 then
1127
		animpose = "Jump"
1128
	end
1129
	if air and tvel.Y < 0 then
1130
		animpose = "Fall"
1131
	end
1132
	if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
1133
		animpose = "Walking"
1134
	end
1135
	if not air and animpose == "Walking" and movespeed > 16 then
1136
		animpose = "Walking"--or Running
1137
	end
1138
	if not air and movespeed == 0 then
1139
		animpose = "Idle"
1140
	end
1141
until not settings.CustomAnim
1142
end)
1143
for i,v in pairs(char:GetDescendants()) do
1144
	pcall(function()
1145
		v.Transparency = 1
1146
	end)
1147
end
1148
1149
local change = 5
1150
local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
1151
while swait() and settings.CustomAnim do
1152
	local num = tick()*change
1153
	if animpose == "Walking" then
1154
	end
1155
	if animpose == "Fall" then
1156
	end
1157
	if animpose == "Idle" then
1158
	end
1159
	if animpose == "Jump" then
1160
	end
1161
end