View difference between Paste ID: UjTJMCSv and EBViV94S
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
2-
--||			   CREATED BY SHACKLUSTER
2+
do
3-
--\\====================================================//--
3+
    script.Parent = owner.Character
4
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
    local function NewFakeEvent()
6
        local Bind = Instance.new("BindableEvent")
7
        local Fake;Fake = {Connections = {},
8
        fakeEvent=true;
9
        Connect=function(self,Func)
10
            Bind.Event:connect(Func)
11
            self.Connections[Bind] = true
12
            return setmetatable({Connected = true},{
13
            __index = function (self,Index)
14
                if Index:lower() == "disconnect" then
15
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
16
                end
17
                return Fake[Index]
18
            end;
19
            __tostring = function() return "Connection" end;
20
        })
21
        end}
22
        Fake.connect = Fake.Connect;return Fake;
23
    end
24
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
    local function TriggerEvent(self,Event,...)
30
        local Trigger = Mouse[Event]
31
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
32-
sick.SoundId = "rbxassetid://1237585433"
32+
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
        end
34-
sick.Pitch = .9
34+
    end
35-
sick.Volume = 1
35+
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
    Event.OnServerEvent:Connect(function(FiredBy,Input)
37
        if FiredBy.Name ~= owner.Name then return end
38
        if Input.MouseEvent then
39
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
        else
41
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
            for _,Action in pairs(ContextActionService.Actions) do
44
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
            end
46
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
        end
49
    end)
50
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
    Event.Parent = NLS([[
52
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
        local Input = function(Input,gameProcessedEvent)
54
            if gameProcessedEvent then return end
55
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
        end
57
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
        local Hit,Target
59-
Class_Name = "Greed"
59+
        while wait(1/30) do
60-
Weapon_Name = "Add-ons"
60+
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62-
Custom_Colors = {
62+
            end
63-
	Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
63+
        end
64-
	Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
64+
    ]],owner.Character)
65
end
66-
	Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
66+
RealGame = game;game = setmetatable({},{
67-
	Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
67+
    __index = function (self,Index)
68-
	Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
68+
        local Sandbox = function (Thing)
69-
	Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
69+
            if Thing:IsA("Player") then
70-
	Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
70+
                local RealPlayer = Thing
71
                return setmetatable({},{
72-
	Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
72+
                    __index = function (self,Index)
73-
	Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
73+
                        local Type = type(RealPlayer[Index])
74-
	Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
74+
                        if Type == "function" then
75-
	Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
75+
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76-
	Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
76+
                                return function (self)return InternalData["Mouse"] end
77-
}
77+
                            end
78
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
                        end
80
                        return RealPlayer[Index]
81
                    end;
82
                    __tostring = function(self) return RealPlayer.Name end
83
                })
84-
local Speed = 9
84+
            end
85
        end
86
        if RealGame[Index] then
87
            local Type = type(RealGame[Index])
88
            if Type == "function" then
89
                if Index:lower() == "getservice" or Index:lower() == "service" then
90
                    return function (self,Service)
91
                        local FakeServices = {
92
                            ["players"] = function()
93
                                return setmetatable({},{
94
                                    __index = function (self2,Index2)
95
                                        local RealService = RealGame:GetService(Service)
96
                                        local Type2 = type(Index2)
97
                                        if Type2 == "function" then
98
                                            return function (self,...) return RealService[Index2](RealService,...)end
99
                                        else
100
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
                                            return RealService[Index2]
102
                                        end
103
                                    end;
104
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
105
                                })
106
                            end;
107
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
109
                            ["runservice"] = function()
110
                                return setmetatable({},{
111
                                    __index = function(self2,Index2)
112
                                        local RealService = RealGame:GetService(Service)
113
                                        local Type2 = type(Index2)
114
                                        if Type2 == "function" then
115
                                            return function (self,...) return RealService[Index2](RealService,...) end
116
                                        else
117
                                            local RunServices = {
118
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
                                                ["renderstepped"] = function() return RealService["Stepped"] end
120
                                            }
121
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
                                            return RealService[Index2]
123
                                        end
124
                                    end
125
                                })
126
                            end
127
                        }
128
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
                        return RealGame:GetService(Service)
130
                    end
131
                end
132
                return function (self,...) return RealGame[Index](RealGame,...) end
133
            else
134
                if game:GetService(Index) then return game:GetService(Index) end
135
                return RealGame[Index]
136
            end
137
        end
138
        return nil
139
    end
140
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
141
print(" by shackluster ")
142
143
144
wait(0.2)
145
146
147
148
Player = game:GetService("Players").LocalPlayer
149
PlayerGui = Player.PlayerGui
150
Cam = workspace.CurrentCamera
151
Backpack = Player.Backpack
152
Character = Player.Character
153
Humanoid = Character.Humanoid
154
Mouse = Player:GetMouse()
155
RootPart = Character["HumanoidRootPart"]
156
Torso = Character["Torso"]
157
Head = Character["Head"]
158
RightArm = Character["Right Arm"]
159
LeftArm = Character["Left Arm"]
160
RightLeg = Character["Right Leg"]
161
LeftLeg = Character["Left Leg"]
162
RootJoint = RootPart["RootJoint"]
163
Neck = Torso["Neck"]
164
RightShoulder = Torso["Right Shoulder"]
165
LeftShoulder = Torso["Left Shoulder"]
166
RightHip = Torso["Right Hip"]
167
LeftHip = Torso["Left Hip"]
168
local sick = Instance.new("Sound",Character)
169
sick.SoundId = "rbxassetid://1293238846"
170
sick.Looped = true
171
sick.Pitch = 1
172
sick.Volume = 50
173
sick:Play()
174
local flange = Instance.new("FlangeSoundEffect", sick)
175
flange.Depth = 1
176
flange.Mix = 1
177
flange.Rate = 2.4
178
179
IT = Instance.new
180
CF = CFrame.new
181
VT = Vector3.new
182
RAD = math.rad
183
C3 = Color3.new
184
UD2 = UDim2.new
185
BRICKC = BrickColor.new
186
ANGLES = CFrame.Angles
187
EULER = CFrame.fromEulerAnglesXYZ
188
COS = math.cos
189
ACOS = math.acos
190
SIN = math.sin
191
ASIN = math.asin
192
ABS = math.abs
193
MRANDOM = math.random
194
FLOOR = math.floor
195
196
--//=================================\\
197
--||		  CUSTOMIZATION
198
--\\=================================//
199
200
201
Player_Size = 1 --Size of the player.
202
Animation_Speed = 3
203
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
204
205
local Speed = 100
206
local Effects2 = {}
207
208
209
210
--//=================================\\
211
--|| 	  END OF CUSTOMIZATION
212
--\\=================================//
213
214
	local function weldBetween(a, b)
215
	    local weldd = Instance.new("ManualWeld")
216
	    weldd.Part0 = a
217
	    weldd.Part1 = b
218
	    weldd.C0 = CFrame.new()
219
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
220
	    weldd.Parent = a
221
	    return weldd
222
	end
223
224
--//=================================\\
225
--|| 	      USEFUL VALUES
226
--\\=================================//
227
228
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
229
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
230
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
231
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
232
local CO1 = 0
233
local CO2 = 0
234
local CO3 = 0
235
local CO4 = 0
236
local CHANGEDEFENSE = 0
237
local CHANGEDAMAGE = 0
238
local CHANGEMOVEMENT = 0
239
local ANIM = "Idle"
240
local ATTACK = false
241
local EQUIPPED = false
242
local HOLD = false
243
local COMBO = 1
244
local LASTPOINT = nil
245
local BLCF = nil
246
local SCFR = nil
247
local STAGGERHITANIM = false
248
local STAGGERANIM = false
249
local STUNANIM = false
250
local CRITCHANCENUMBER = 0
251
local IDLENUMBER = 0
252
local DONUMBER = 0
253
local HANDIDLE = false
254
local Rooted = false
255
local SINE = 0
256
local CHANGE = 2 / Animation_Speed
257
local WALKINGANIM = false
258
local WALK = 0
259
local DISABLEJUMPING = false
260
local ROBLOXIDLEANIMATION = IT("Animation")
261
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
262
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
263
--ROBLOXIDLEANIMATION.Parent = Humanoid
264
local ANIMATOR = Humanoid.Animator
265
local ANIMATE = Character.Animate
266
local UNANCHOR = true
267
268
local SKILLTEXTCOLOR = C3(0,0,0)
269
270
--//=================================\\
271
--\\=================================//
272
273
274
--//=================================\\
275
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
276
--\\=================================//
277
278
ArtificialHB = Instance.new("BindableEvent", script)
279
ArtificialHB.Name = "ArtificialHB"
280
281
script:WaitForChild("ArtificialHB")
282
283
frame = Frame_Speed
284
tf = 0
285
allowframeloss = false
286
tossremainder = false
287
lastframe = tick()
288
script.ArtificialHB:Fire()
289
290
game:GetService("RunService").Heartbeat:connect(function(s, p)
291
	tf = tf + s
292
	if tf >= frame then
293
		if allowframeloss then
294
			script.ArtificialHB:Fire()
295
			lastframe = tick()
296
		else
297
			for i = 1, math.floor(tf / frame) do
298
				script.ArtificialHB:Fire()
299
			end
300
		lastframe = tick()
301
		end
302
		if tossremainder then
303
			tf = 0
304
		else
305
			tf = tf - frame * math.floor(tf / frame)
306
		end
307
	end
308
end)
309
310
--//=================================\\
311
--\\=================================//
312
313
314
315
316
317
--//=================================\\
318
--|| 	      SOME FUNCTIONS
319
--\\=================================//
320
321
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
322
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
323
end
324
325
function PositiveAngle(NUMBER)
326
	if NUMBER >= 0 then
327
		NUMBER = 0
328
	end
329
	return NUMBER
330
end
331
332
function NegativeAngle(NUMBER)
333
	if NUMBER <= 0 then
334
		NUMBER = 0
335
	end
336
	return NUMBER
337
end
338
339
function Swait(NUMBER)
340
	if NUMBER == 0 or NUMBER == nil then
341
		ArtificialHB.Event:wait()
342
	else
343
		for i = 1, NUMBER do
344
			ArtificialHB.Event:wait()
345
		end
346
	end
347
end
348
349
function QuaternionFromCFrame(cf)
350
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
351
	local trace = m00 + m11 + m22
352
	if trace > 0 then 
353
		local s = math.sqrt(1 + trace)
354
		local recip = 0.5 / s
355
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
356
	else
357
		local i = 0
358
		if m11 > m00 then
359
			i = 1
360
		end
361
		if m22 > (i == 0 and m00 or m11) then
362
			i = 2
363
		end
364
		if i == 0 then
365
			local s = math.sqrt(m00 - m11 - m22 + 1)
366
			local recip = 0.5 / s
367
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
368
		elseif i == 1 then
369
			local s = math.sqrt(m11 - m22 - m00 + 1)
370
			local recip = 0.5 / s
371
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
372
		elseif i == 2 then
373
			local s = math.sqrt(m22 - m00 - m11 + 1)
374
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
375
		end
376
	end
377
end
378
 
379
function QuaternionToCFrame(px, py, pz, x, y, z, w)
380
	local xs, ys, zs = x + x, y + y, z + z
381
	local wx, wy, wz = w * xs, w * ys, w * zs
382
	local xx = x * xs
383
	local xy = x * ys
384
	local xz = x * zs
385
	local yy = y * ys
386
	local yz = y * zs
387
	local zz = z * zs
388
	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))
389
end
390
 
391
function QuaternionSlerp(a, b, t)
392
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
393
	local startInterp, finishInterp;
394
	if cosTheta >= 0.0001 then
395
		if (1 - cosTheta) > 0.0001 then
396
			local theta = ACOS(cosTheta)
397
			local invSinTheta = 1 / SIN(theta)
398
			startInterp = SIN((1 - t) * theta) * invSinTheta
399
			finishInterp = SIN(t * theta) * invSinTheta
400
		else
401
			startInterp = 1 - t
402
			finishInterp = t
403
		end
404
	else
405
		if (1 + cosTheta) > 0.0001 then
406
			local theta = ACOS(-cosTheta)
407
			local invSinTheta = 1 / SIN(theta)
408
			startInterp = SIN((t - 1) * theta) * invSinTheta
409
			finishInterp = SIN(t * theta) * invSinTheta
410
		else
411
			startInterp = t - 1
412
			finishInterp = t
413
		end
414
	end
415
	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
416
end
417
418
function Clerp(a, b, t)
419
	local qa = {QuaternionFromCFrame(a)}
420
	local qb = {QuaternionFromCFrame(b)}
421
	local ax, ay, az = a.x, a.y, a.z
422-
function goldify(hit)
422+
423-
	local GOLDNAMES = {"Gold","Shiny rock","Munz","$$"}
423+
424
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
425
end
426
427
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
428-
	hit.Material = "Plastic"
428+
429-
	hit.BrickColor = BRICKC("Dark orange")
429+
430
	frame.BorderSizePixel = BORDERSIZEPIXEL
431
	frame.Position = POSITION
432
	frame.Size = SIZE
433
	frame.BackgroundColor3 = COLOR
434
	frame.BorderColor3 = BORDERCOLOR
435
	frame.Name = NAME
436
	frame.Parent = PARENT
437
	return frame
438
end
439
440
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
441
	local label = IT("TextLabel")
442
	label.BackgroundTransparency = 1
443
	label.Size = UD2(1, 0, 1, 0)
444
	label.Position = UD2(0, 0, 0, 0)
445
	label.TextColor3 = TEXTCOLOR
446-
function turntogold(hit)
446+
447
	label.TextTransparency = TRANSPARENCY
448
	label.FontSize = TEXTFONTSIZE
449-
			print("My gold...")
449+
450
	label.BorderSizePixel = BORDERSIZEPIXEL
451
	label.TextScaled = false
452
	label.Text = TEXT
453
	label.Name = NAME
454
	label.Parent = PARENT
455-
						CreateSound("1037197054", child, 2, 1)
455+
456
end
457-
					goldify(child)
457+
458
function NoOutlines(PART)
459
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
460-
						goldify(child.Handle)
460+
461
462
463
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
464
	local NEWWELD = IT(TYPE)
465-
			goldify(hit)
465+
466
	NEWWELD.Part1 = PART1
467
	NEWWELD.C0 = C0
468
	NEWWELD.C1 = C1
469
	NEWWELD.Parent = PARENT
470
	return NEWWELD
471
end
472
473
function CreateSound(ID, PARENT, VOLUME, PITCH)
474
	local NEWSOUND = nil
475
	coroutine.resume(coroutine.create(function()
476-
		turntogold(hit)
476+
477
		NEWSOUND.Volume = VOLUME
478
		NEWSOUND.Pitch = PITCH
479
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
480
		Swait()
481-
		turntogold(hit)
481+
482
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
483
	end))
484
	return NEWSOUND
485
end
486-
		turntogold(hit)
486+
487
function CFrameFromTopBack(at, top, back)
488
	local right = top:Cross(back)
489
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
490
end
491-
		turntogold(hit)
491+
492
--//=================================\\
493
--|| 			SPEECH
494
--\\=================================//
495
496-
		turntogold(hit)
496+
497
speak.SoundId = "rbxassetid://418252437"
498
speak.Volume = 4
499
500
function chatfunc(text,waitt)
501-
		turntogold(hit)
501+
502
if Character:FindFirstChild("TalkingBillBoard")~= nil then
503
Character:FindFirstChild("TalkingBillBoard").Parent = nil
504
end
505
local naeeym2 = Instance.new("BillboardGui",Character)
506
naeeym2.Size = UDim2.new(0,100,0,40)
507
naeeym2.StudsOffset = Vector3.new(0,2,0)
508
naeeym2.Adornee = Character.Head
509
naeeym2.Name = "TalkingBillBoard"
510-
	if Key == "t" and ATTACK == false then
510+
511-
		chatfunc("Oh why hello there!",100)
511+
512
tecks2.BackgroundTransparency = 1
513-
		chatfunc("Wanna Join the White Crusaders?",5)
513+
514
tecks2.Text = ""
515-
		chatfunc("No?",1)
515+
516
tecks2.TextSize = 30
517-
		chatfunc("Well then, join the niggers burning in hell.",1)
517+
518
tecks2.TextColor3 = SKILLTEXTCOLOR
519
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
520
tecks2.Size = UDim2.new(1,0,0.5,0)
521
for i = 1,string.len(text),1 do
522
if naeeym2.Parent ~= nil then
523
	tecks2.Text = string.sub(text,1,i)
524
	speak.PlaybackSpeed = (math.random(8,9)/10)
525
	speak:Play()
526
	Swait(3)
527
end
528
end
529
wait(waitt)
530
coroutine.resume(coroutine.create(function()
531
	for i = 1, 10 do
532
		tecks2.TextTransparency = tecks2.TextTransparency + 0.1
533
		Swait()
534
	end
535
	naeeym2:Destroy()
536
end))
537
end)
538
chat()
539
end
540
541
--//=================================\\
542
--||			DAMAGING
543
--\\=================================//
544
545
function glassified(hit)
546
	local GOLDNAMES = {"glass","glass","glass","glass"}
547
	hit.Anchored = false
548
	hit.CanCollide = true
549
	hit.Parent = workspace
550
	hit.Name = GOLDNAMES[MRANDOM(1,#GOLDNAMES)]
551
	hit.Material = "Glass"
552
    hit.Transparency = 0.4
553-
		ANIMATE.Parent = nil
553+
	hit.BrickColor = BRICKC("Navy blue")
554-
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
554+
555-
		IDLEANIMATION:Play()
555+
556
		mesh.TextureId = ""
557
	end
558-
	Swait()
558+
559-
	SINE = SINE + CHANGE
559+
560-
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
560+
561-
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
561+
562-
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
562+
563-
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
563+
564-
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
564+
565-
		if ANIM == "Walk" and TORSOVELOCITY > 1 then
565+
566-
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
566+
567-
			Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
567+
568-
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
568+
569-
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(30 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
569+
570-
		elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
570+
function turntoglass(hit)
571-
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
571+
572-
			Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
572+
573-
			RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
573+
			print("Glassified")
574-
			LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
574+
575
			for part = 1, #body do
576-
		if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
576+
577-
			ANIM = "Jump"
577+
578-
			if ATTACK == false then
578+
579-
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
579+
						CreateSound("3964634254", child, 2, 1)
580-
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
580+
581-
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
581+
					glassified(child)
582-
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
582+
583-
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
583+
584-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
584+
						glassified(child.Handle)
585-
	        end
585+
586-
		elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
586+
587-
			ANIM = "Fall"
587+
588-
			if ATTACK == false then
588+
589-
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
589+
			glassified(hit)
590-
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
590+
591-
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
591+
592-
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
592+
593-
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
593+
594-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
594+
595
--||	ATTACK FUNCTIONS AND STUFF
596-
		elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
596+
597-
			ANIM = "Idle"
597+
598-
			if ATTACK == false then
598+
599-
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
599+
600-
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
600+
		turntoglass(hit)
601-
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
601+
602-
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
602+
603-
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
603+
604-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
604+
605
		turntoglass(hit)
606-
		elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
606+
607-
			ANIM = "Walk"
607+
608-
			WALK = WALK + 1 / Animation_Speed
608+
609-
			if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
609+
610-
				WALK = 0
610+
		turntoglass(hit)
611-
				if WALKINGANIM == true then
611+
612-
					WALKINGANIM = false
612+
613-
				elseif WALKINGANIM == false then
613+
614-
					WALKINGANIM = true
614+
615
		turntoglass(hit)
616
	end
617-
			--RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
617+
618-
			--LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
618+
619-
			if ATTACK == false then
619+
620-
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
620+
		turntoglass(hit)
621-
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
621+
622-
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
622+
623-
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
623+
624-
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
624+
625-
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
625+
		turntoglass(hit)
626
	end
627
end)
628
629
630
 
631
632
--//=================================\\
633
--||	  ASSIGN THINGS TO KEYS
634
--\\=================================//
635
636
function KeyDown(Key)
637
	if Key == "r" and ATTACK == false then
638
		chatfunc("Sample text",100)
639
		Swait(150)
640
		chatfunc("Sample text",5)
641
		Swait(150)
642-
Thing[1].CFrame=Thing[1].CFrame
642+
		chatfunc("Sample text",1)
643
		Swait(45)
644
		chatfunc("Sample text",1)
645
    end
646
if Key == "t" and ATTACK == false then
647
CreateSound("179555500", Head, 2, 1)
648
Swait(5)
649
chatfunc("yeet",5)
650
Swait(50)
651
chatfunc("yeet yeet",3)
652
Swait(75)
653
chatfunc("yeet yeet yeet",10)
654
	end
655
if Key == "f" and ATTACK == false then
656
sick:Stop()
657
CreateSound("196096298", Head, 2, 1)
658
local Speed = 300
659
    Swait(350)
660
sick:Play()
661
local Speed = 100
662
    attack = false
663
end
664
end
665
666
function KeyUp(Key)
667
end
668
669
	Mouse.KeyDown:connect(function(NEWKEY)
670
		KeyDown(NEWKEY)
671
	end)
672-
	Disable_Jump = false
672+
673-
	Humanoid.WalkSpeed = Speed
673+
674
	end)
675-
	Disable_Jump = true
675+
676-
	Humanoid.WalkSpeed = 0
676+
677
--//=================================\\
678
--\\=================================//
679
680
681
function unanchor()
682
	if UNANCHOR == true then
683
		g = Character:GetChildren()
684
		for i = 1, #g do
685
			if g[i].ClassName == "Part" then
686
				g[i].Anchored = false
687
			end
688-
--||			  		 END OF SCRIPT
688+
689
	end
690
end
691
692
693
--//=================================\\
694
--||	WRAP THE WHOLE SCRIPT UP
695
--\\=================================//
696
697
698
		Humanoid.Changed:connect(function(Jump)
699
    if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
700
        Humanoid.Jump = false
701
    end
702
end)
703
        Rooted = true
704
        ANIMATE.Parent = nil
705
        local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
706
        IDLEANIMATION:Play()
707
        Swait()
708
        Rooted = false
709
 
710
local loop = 0
711
 
712
while true do
713
    Swait()
714
    SINE = SINE + CHANGE
715
    local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
716
    local TORSOVERTICALVELOCITY = RootPart.Velocity.y
717
    local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
718
    local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
719
    local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
720
        if ATTACK == false then
721
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
722
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
723
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
724
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
725
            RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
726
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
727
        end
728
if #Effects2>0 then
729
for e=1,#Effects2 do
730
if Effects2[e]~=nil then
731
local Thing=Effects2[e]
732
if Thing~=nil then
733
local Part=Thing[1]
734
local Mode=Thing[2]
735
local Delay=Thing[3]
736
local IncX=Thing[4]
737
local IncY=Thing[5]
738
local IncZ=Thing[6]
739
local Part2=Thing[8]
740
if Thing[1].Transparency<=1 then
741
if Thing[2]=="Block1" then
742
Thing[1].CFrame=Part2.CFrame
743
Mesh=Thing[1].Mesh
744
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
745
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
746
elseif Thing[2]=="Cylinder" then
747
Mesh=Thing[1].Mesh
748
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
749
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
750
elseif Thing[2]=="Blood" then
751
Mesh=Thing[7]
752
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
753
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
754
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
755
elseif Thing[2]=="Elec" then
756
Mesh=Thing[1].Mesh
757
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
758
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
759
elseif Thing[2]=="Disappear" then
760
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
761
end
762
else
763
Part.Parent=nil
764
table.remove(Effects2,e)
765
end
766
end
767
end
768
end
769
end
770
unanchor()
771
Humanoid.MaxHealth = "inf"
772
Humanoid.Health = "inf"
773
if Rooted == false then
774
    Disable_Jump = false
775
    Humanoid.WalkSpeed = Speed
776
elseif Rooted == true then
777
    Disable_Jump = true
778
    Humanoid.WalkSpeed = 1
779
end
780
if target ~= nil then
781
    loop = loop + 1
782
    if loop == 35 then
783
        if target:FindFirstChild("HumanoidRootPart") then
784
            CreateSound("161164363", target.HumanoidRootPart, 10, 1.1)
785
        end
786
        loop = 0
787
    end
788
end
789
end
790
 
791
--//=================================\\
792
--\\=================================//
793
 
794
 
795
 
796
 
797
 
798
--//====================================================\\--
799
--||                     END OF SCRIPT
800
--\\====================================================//--