View difference between Paste ID: JWBqYBSu and 3YRGEzzV
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
5
6
--- Original script Chill af | Edited by zXzGamePROzXz
7
m = game.Players.LocalPlayer
8
char = m.Character
9
10
function Random(num)
11
    local section=num % 1 * 3;
12
    local secondary=0.5 * math.pi * (section % 1);
13
    if section < 1 then
14
        return 1,1 - math.cos(secondary),1 - math.sin(secondary);
15
    elseif section < 2 then
16
        return 1 - math.sin(secondary),1,1 - math.cos(secondary);
17
    else
18
        return 1 - math.cos(secondary),1 - math.sin(secondary),1;
19
    end
20
end
21
22
--//Lol try to figure this one out//
23
function rainb(hue)
24
    local section = hue % 1 * 3
25
    local secondary = 0.5 * math.pi * (section % 1)
26
    if section < 1 then
27
        return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
28
    elseif section < 2 then
29
        return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
30
    else
31
        return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
32
    end
33
end
34
35
Chillmusic = Instance.new("Sound", workspace)
36
Chillmusic.Parent = game.Chat
37
Chillmusic.Volume = 0.5
38
Chillmusic.SoundId = "rbxassetid://1221904077"
39
Chillmusic.Looped = true
40
Chillmusic:Play()
41
42
local txt = Instance.new("BillboardGui", char)
43
txt.Adornee = char.Head
44
txt.Name = "_status"
45
txt.Size = UDim2.new(2, 0, 1.2, 0)
46
txt.StudsOffset = Vector3.new(-9, 8, 0)
47
local text = Instance.new("TextLabel", txt)
48
text.Size = UDim2.new(10, 0, 7, 0)
49
text.FontSize = "Size24"
50
text.TextScaled = true
51
text.TextTransparency = 0
52
text.BackgroundTransparency = 1
53
text.TextTransparency = 0
54
text.TextStrokeTransparency = 0
55
text.Font = "Bodoni"
56
text.TextStrokeColor3 = Color3.new(0, 0, 0)
57
v = Instance.new("Part")
58
v.Name = "ColorBrick"
59
v.Parent = m.Character
60
v.FormFactor = "Symmetric"
61
v.Anchored = true
62
v.CanCollide = false
63
v.BottomSurface = "Smooth"
64
v.TopSurface = "Smooth"
65
v.Size = Vector3.new(10, 5, 3)
66
v.Transparency = 1
67
v.CFrame = char.Torso.CFrame
68
v.BrickColor = BrickColor.new("Really black")
69
v.Transparency = 1
70
spawn(function()
71
TweenService = game:GetService("TweenService")
72
Colours = {Color3.fromRGB(0,0,0),Color3.fromRGB(0, 0, 0)}
73
Int = 0
74
while wait(2) do
75
    if Int == #Colours then Int = 0 end
76
    Int = Int+1
77
    TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
78
end
79
end)
80
v.Shape = "Block"
81
text.Text = "~»◇Depressed◇«~"
82
Player = game:GetService("Players").LocalPlayer
83
Character = Player.Character
84
PlayerGui = Player.PlayerGui
85
Backpack = Player.Backpack
86
Torso = Character.Torso
87
Head = Character.Head
88
Humanoid = Character.Humanoid
89
m = Instance.new("Model", Character)
90
LeftArm = Character["Left Arm"]
91
LeftLeg = Character["Left Leg"]
92
RightArm = Character["Right Arm"]
93
RightLeg = Character["Right Leg"]
94
LS = Torso["Left Shoulder"]
95
LH = Torso["Left Hip"]
96
RS = Torso["Right Shoulder"]
97
RH = Torso["Right Hip"]
98
Face = Head.face
99
Neck = Torso.Neck
100
it = Instance.new
101
attacktype = 1
102
vt = Vector3.new
103
cf = CFrame.new
104
bc = BrickColor.new
105
br = BrickColor.random
106
it = Instance.new
107
euler = CFrame.fromEulerAnglesXYZ
108
angles = CFrame.Angles
109
cloaked = false
110
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
111
necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
112
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
113
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
114
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
115
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
116
RootPart = Character.HumanoidRootPart
117
RootJoint = RootPart.RootJoint
118
RootCF = euler(-1.57, 0, 3.14)
119
attack = false
120
attackdebounce = false
121
equipped = false
122
trispeed = 0.2
123
attackmode = "none"
124
local idle = 0
125
local Anim = "Idle"
126
Head.face.Texture = "rbxassetid://347543580"
127
128
local Trail = Instance.new("Trail",char)
129
local attachment0 = Instance.new("Attachment",char["Right Arm"])
130
attachment0.Name = "TrailAttachment0"
131
attachment0.CFrame = CFrame.new(-0.25,-1,0)
132
local attachment1 = Instance.new("Attachment",char["Right Arm"])
133
attachment1.CFrame = CFrame.new(0.25,-1,0)
134
attachment1.Name = "TrailAttachment1"
135
Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
136
Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
137
Trail.Lifetime = 0.5
138
Trail.Attachment0 = attachment0
139
Trail.Attachment1 = attachment1
140
141
local Trail = Instance.new("Trail",char)
142
local attachment0 = Instance.new("Attachment",char["Left Arm"])
143
attachment0.Name = "TrailAttachment0"
144
attachment0.CFrame = CFrame.new(-0.25,-1,0)
145
local attachment1 = Instance.new("Attachment",char["Left Arm"])
146
attachment1.CFrame = CFrame.new(0.25,-1,0)
147
attachment1.Name = "TrailAttachment1"
148
Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
149
Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
150
Trail.Lifetime = 0.5
151
Trail.Attachment0 = attachment0
152
Trail.Attachment1 = attachment1
153
154
local Trail = Instance.new("Trail",char)
155
local attachment0 = Instance.new("Attachment",char["Right Leg"])
156
attachment0.Name = "TrailAttachment0"
157
attachment0.CFrame = CFrame.new(-0.25,-1,0)
158
local attachment1 = Instance.new("Attachment",char["Right Leg"])
159
attachment1.CFrame = CFrame.new(0.25,-1,0)
160
attachment1.Name = "TrailAttachment1"
161
Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
162
Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
163
Trail.Lifetime = 0.5
164
Trail.Attachment0 = attachment0
165
Trail.Attachment1 = attachment1
166
167
local Trail = Instance.new("Trail",char)
168
local attachment0 = Instance.new("Attachment",char["Left Leg"])
169
attachment0.Name = "TrailAttachment0"
170
attachment0.CFrame = CFrame.new(-0.25,-1,0)
171
local attachment1 = Instance.new("Attachment",char["Left Leg"])
172
attachment1.CFrame = CFrame.new(0.25,-1,0)
173
attachment1.Name = "TrailAttachment1"
174
Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
175
Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,0,0)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
176
Trail.Lifetime = 0.5
177
Trail.Attachment0 = attachment0
178
Trail.Attachment1 = attachment1
179
180
181
Humanoid.Animator.Parent = nil
182
Character.Animate.Parent = nil
183
function FindNearestTorso(Position, Distance, SinglePlayer)
184
	if SinglePlayer then
185
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
186
	end
187
	local List = {}
188
	for i, v in pairs(workspace:GetChildren()) do
189
		if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
190
			table.insert(List, v)
191
		end
192
	end
193
	return List
194
end
195
function lerp(a, b, t)
196
	return a + (b - a) * t
197
end
198
function slerp(a, b, t)
199
	dot = a:Dot(b)
200
	if dot > 0.99999 or dot < -0.99999 then
201
		return t <= 0.5 and a or b
202
	else
203
		r = math.acos(dot)
204
		return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r)
205
	end
206
end
207
function matrixInterpolate(a, b, t)
208
	local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
209
	local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
210
	local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t)
211
	local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t)
212
	local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t)
213
	local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t)
214
	local t = v1:Dot(v2)
215
	if not (t < 0) and t ~= 0 and not (t > 0) then
216
		return CFrame.new()
217
	end
218
	return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z)
219
end
220
function genWeld(a, b)
221
	local w = Instance.new("Weld", a)
222
	w.Part0 = a
223
	w.Part1 = b
224
	return w
225
end
226
function weld(a, b)
227
	local weld = Instance.new("Weld")
228
	weld.Name = "W"
229
	weld.Part0 = a
230
	weld.Part1 = b
231
	weld.C0 = a.CFrame:inverse() * b.CFrame
232
	weld.Parent = a
233
	return weld
234
end
235
function Lerp(c1, c2, al)
236
	local com1 = {
237
		c1.X,
238
		c1.Y,
239
		c1.Z,
240
		c1:toEulerAnglesXYZ()
241
	}
242
	local com2 = {
243
		c2.X,
244
		c2.Y,
245
		c2.Z,
246
		c2:toEulerAnglesXYZ()
247
	}
248
	for i, v in pairs(com1) do
249
		com1[i] = v + (com2[i] - v) * al
250
	end
251
	return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
252
end
253
function clerp(a, b, t)
254
	local qa = {
255
		QuaternionFromCFrame(a)
256
	}
257
	local qb = {
258
		QuaternionFromCFrame(b)
259
	}
260
	local ax, ay, az = a.x, a.y, a.z
261
	local bx, by, bz = b.x, b.y, b.z
262
	local _t = 1 - t
263
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
264
end
265
function QuaternionFromCFrame(cf)
266
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
267
	local trace = m00 + m11 + m22
268
	if trace > 0 then
269
		local s = math.sqrt(1 + trace)
270
		local recip = 0.5 / s
271
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
272
	else
273
		local i = 0
274
		if m00 < m11 then
275
			i = 1
276
		end
277
		if m22 > (i == 0 and m00 or m11) then
278
			i = 2
279
		end
280
		if i == 0 then
281
			local s = math.sqrt(m00 - m11 - m22 + 1)
282
			local recip = 0.5 / s
283
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
284
		elseif i == 1 then
285
			local s = math.sqrt(m11 - m22 - m00 + 1)
286
			local recip = 0.5 / s
287
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
288
		elseif i == 2 then
289
			local s = math.sqrt(m22 - m00 - m11 + 1)
290
			local recip = 0.5 / s
291
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
292
		end
293
	end
294
end
295
function QuaternionToCFrame(px, py, pz, x, y, z, w)
296
	local xs, ys, zs = x + x, y + y, z + z
297
	local wx, wy, wz = w * xs, w * ys, w * zs
298
	local xx = x * xs
299
	local xy = x * ys
300
	local xz = x * zs
301
	local yy = y * ys
302
	local yz = y * zs
303
	local zz = z * zs
304
	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))
305
end
306
function QuaternionSlerp(a, b, t)
307
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
308
	local startInterp, finishInterp
309
	if cosTheta >= 1.0E-4 then
310
		if 1 - cosTheta > 1.0E-4 then
311
			local theta = math.acos(cosTheta)
312
			local invSinTheta = 1 / math.sin(theta)
313
			startInterp = math.sin((1 - t) * theta) * invSinTheta
314
			finishInterp = math.sin(t * theta) * invSinTheta
315
		else
316
			startInterp = 1 - t
317
			finishInterp = t
318
		end
319
	elseif 1 + cosTheta > 1.0E-4 then
320
		local theta = math.acos(-cosTheta)
321
		local invSinTheta = 1 / math.sin(theta)
322
		startInterp = math.sin((t - 1) * theta) * invSinTheta
323
		finishInterp = math.sin(t * theta) * invSinTheta
324
	else
325
		startInterp = t - 1
326
		finishInterp = t
327
	end
328
	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
329
end
330
function rayCast(Pos, Dir, Max, Ignore)
331
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
332
end
333
function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
334
	local fp = it("Part")
335
	fp.formFactor = formfactor
336
	fp.Parent = parent
337
	fp.Reflectance = reflectance
338
	fp.Transparency = transparency
339
	fp.CanCollide = false
340
	fp.Locked = true
341
	fp.BrickColor = brickcolor
342
	fp.Name = name
343
	fp.Size = size
344
	fp.Position = Torso.Position
345
	fp.BottomSurface = "Smooth"
346
	fp.TopSurface = "Smooth"
347
	fp:BreakJoints()
348
	return fp
349
end
350
function mesh(Mesh, part, meshtype, meshid, offset, scale)
351
	local mesh = it(Mesh)
352
	mesh.Parent = part
353
	if Mesh == "SpecialMesh" then
354
		mesh.MeshType = meshtype
355
		mesh.MeshId = meshid
356
	end
357
	mesh.Offset = offset
358
	mesh.Scale = scale
359
	return mesh
360
end
361
function weld(parent, part0, part1, c0)
362
	local weld = it("Weld")
363
	weld.Parent = parent
364
	weld.Part0 = part0
365
	weld.Part1 = part1
366
	weld.C0 = c0
367
	return weld
368
end
369
function rayCast(Pos, Dir, Max, Ignore)
370
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
371
end
372
RSH, LSH = nil, nil
373
RW, LW = Instance.new("Weld"), Instance.new("Weld")
374
RW.Name = "Right Shoulder"
375
LW.Name = "Left Shoulder"
376
LH = Torso["Left Hip"]
377
RH = Torso["Right Hip"]
378
TorsoColor = Torso.BrickColor
379
function NoOutline(Part)
380
	Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
381
end
382
player = Player
383
ch = Character
384
RSH = ch.Torso["Right Shoulder"]
385
LSH = ch.Torso["Left Shoulder"]
386
RSH.Parent = nil
387
LSH.Parent = nil
388
RW.Name = "Right Shoulder"
389
RW.Part0 = ch.Torso
390
RW.C0 = cf(1.5, 0.5, 0)
391
RW.C1 = cf(0, 0.5, 0)
392
RW.Part1 = ch["Right Arm"]
393
RW.Parent = ch.Torso
394
LW.Name = "Left Shoulder"
395
LW.Part0 = ch.Torso
396
LW.C0 = cf(-1.5, 0.5, 0)
397
LW.C1 = cf(0, 0.5, 0)
398
LW.Part1 = ch["Left Arm"]
399
LW.Parent = ch.Torso
400
function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
401
	local wld = Instance.new("Weld", wp1)
402
	wld.Part0 = wp0
403
	wld.Part1 = wp1
404
	wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
405
end
406
newWeld(RootPart, Torso, 0, -1, 0)
407
Torso.Weld.C1 = CFrame.new(0, -1, 0)
408
newWeld(Torso, LeftLeg, -0.5, -1, 0)
409
LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
410
newWeld(Torso, RightLeg, 0.5, -1, 0)
411
RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
412
Player = game:GetService("Players").LocalPlayer
413
Character = Player.Character
414
mouse = Player:GetMouse()
415
m = Instance.new("Model", Character)
416
local weldBetween = function(a, b)
417
	local weldd = Instance.new("ManualWeld")
418
	weldd.Part0 = a
419
	weldd.Part1 = b
420
	weldd.C0 = CFrame.new()
421
	weldd.C1 = b.CFrame:inverse() * a.CFrame
422
	weldd.Parent = a
423
	return weldd
424
end
425
ArtificialHB = Instance.new("BindableEvent", script)
426
ArtificialHB.Name = "Heartbeat"
427
script:WaitForChild("Heartbeat")
428
frame = 0.016666666666666666
429
tf = 0
430
allowframeloss = false
431
tossremainder = false
432
lastframe = tick()
433
script.Heartbeat:Fire()
434
game:GetService("RunService").Heartbeat:connect(function(s, p)
435
	tf = tf + s
436
	if tf >= frame then
437
		if allowframeloss then
438
			script.Heartbeat:Fire()
439
			lastframe = tick()
440
		else
441
			for i = 1, math.floor(tf / frame) do
442
				script.Heartbeat:Fire()
443
			end
444
			lastframe = tick()
445
		end
446
		if tossremainder then
447
			tf = 0
448
		else
449
			tf = tf - frame * math.floor(tf / frame)
450
		end
451
	end
452
end)
453
function swait(num)
454
	if num == 0 or num == nil then
455
		ArtificialHB.Event:wait()
456
	else
457
		for i = 0, num do
458
			ArtificialHB.Event:wait()
459
		end
460
	end
461
end
462
mouse.KeyDown:connect(function(key)
463
	if key == "c" then
464
		repeat
465
			swait()
466
			Chillmusic.Volume = Chillmusic.Volume - 0.05
467
		until Chillmusic.Volume == 0
468
		Chillmusic:Stop()
469
		swait()
470
		Chillmusic2:Play()
471
		Chillmusic.Volume = 1
472
	end
473
end)
474
mouse.KeyDown:connect(function(key)
475
	if key == "f" then
476
		text.Text = "I Have Depression"
477
		wait(1)
478
		text.Text = "It's just the way i was born"
479
		wait(1)
480
		text.Text = "Because i got dumped"
481
		wait(1)
482
		text.Text = "She broke me..."
483
		wait(1)
484
		text.Text = "Now im nothing"
485
		wait(1)
486
		text.Text = "So why not ust smile"
487
		wait(3)
488
		text.Text = "I mean what else?"
489
		wait(3)
490
		text.Text = "Please help me..."
491
	end
492
end)
493
mouse.KeyDown:connect(function(key)
494
	if key == "v" then
495
		repeat
496
			swait()
497
			Chillmusic2.Volume = Chillmusic2.Volume - 0.05
498
		until Chillmusic2.Volume == 0
499
		Chillmusic2:Stop()
500
		swait()
501
		Chillmusic:Play()
502
		Chillmusic2.Volume = 1
503
	end
504
end)
505
mouse.KeyDown:connect(function(key)
506
	if key == "b" then
507
		text.Text = "Be back going to harm myself again"
508
		wait(3)
509
		text.Text = "Now i got bloody arms again..."
510
	end
511
end)
512
mouse.KeyDown:connect(function(key)
513
	if key == "n" then
514
		text.Text = "K back almost died again"
515
		wait(1)
516
		text.Text = "I did want to die thoe"
517
	end
518
end)
519
m = Instance.new("ForceField", Character)
520
m.Visible = false
521
Character.Humanoid.WalkSpeed = 4
522
mouse.KeyDown:connect(function(key)
523
	if string.byte(key) == 48 then
524
		Swing = 2
525
		Character.Humanoid.WalkSpeed = 40
526
	end
527
end)
528
mouse.KeyUp:connect(function(key)
529
	if string.byte(key) == 48 then
530
		Swing = 1
531
		Character.Humanoid.WalkSpeed = 4
532
	end
533
end)
534
local sine = 0
535
local change = 1
536
local val = 0
537
spawn(function()
538
while true do
539
	swait()
540
	sine = sine + change
541
	local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
542
	local velderp = RootPart.Velocity.y
543
	hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
544
	if equipped == true or equipped == false then
545
		if attack == false then
546
			idle = idle + 1
547
			Character.Humanoid.MaxHealth = math.huge
548
			Character.Humanoid.Health = math.huge
549
		else
550
			idle = 0
551
		end
552
		if not (idle >= 500) or attack == false then
553
		end
554
		if torvel < 1 and hitfloor ~= nil then
555
			Anim = "Chill"
556
			if attack == false then
557
				Humanoid.CameraOffset = Vector3.new(0, 10.25 - 5.45 * math.cos(sine / 65), 0)
558
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 10.25 - 5.45 * math.cos(sine / 65), 0) * CFrame.Angles(math.rad(90 + 15 * math.sin(sine / 60)), math.rad(0), math.rad(0)), 0.8)
559
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20 + 20 * math.cos(sine / 60)), math.rad(0 + 4 * math.sin(sine / 60)), math.rad(0)), 0.2)
560
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90 + 25 * math.cos(sine / 60)), math.rad(0 + 20 * math.sin(sine / 60)), math.rad(0 + 55 * math.sin(sine / 60))), 0.3)
561
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90 + 25 * math.cos(sine / 60)), math.rad(-20 - 20 * math.sin(sine / 60)), math.rad(0 - 55 * math.sin(sine / 60))), 0.3)
562
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.86 + 0.03 * math.cos(sine / 65), -0.4) * CFrame.Angles(math.rad(15 - 45 * math.cos(sine / 70)), math.rad(3), math.rad(-4)), 0.8)
563
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.05 * math.cos(sine / 65), -0.4) * CFrame.Angles(math.rad(15 - 35 * math.cos(sine / 65)), math.rad(-3), math.rad(4)), 0.8)
564
			end
565
		elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
566
			Anim = "Walk"
567
			if attack == false then
568
				Humanoid.CameraOffset = Vector3.new(0, 6 - 2.55 * math.cos(sine / 48.5), 0)
569
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.2)
570
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 6 - 2.55 * math.cos(sine / 48.5), 0) * CFrame.Angles(math.rad(-90 + 5 * math.cos(sine / 45)), math.rad(180 * math.cos(sine / 48.5)), math.rad(0)), 0.8)
571
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-4 + 2 * math.sin(sine / 48)), math.rad(0), math.rad(0)), 0.2)
572
				RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 45), 0) * angles(math.rad(90), math.rad(0), math.rad(90 - 20.5 * math.cos(sine / 45))), 0.3)
573
				LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 45), 0) * angles(math.rad(90), math.rad(0), math.rad(-90 + 20.5 * math.cos(sine / 45))), 0.3)
574
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.05 * math.cos(sine / 45), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.8)
575
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.05 * math.cos(sine / 45), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.8)
576
			end
577
		elseif torvel >= 22 and hitfloor ~= nil then
578
			Anim = "Run"
579
			if attack == false then
580
				Humanoid.CameraOffset = Vector3.new(0, 6 - 1.55 * math.cos(sine / 68.5), 0)
581
				RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 6 - 1.55 * math.cos(sine / 68.5), -0.2) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.2)
582
				Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 6 - 1.55 * math.cos(sine / 68.5), 0) * CFrame.Angles(math.rad(-40 + 20 * math.sin(sine / 68.5)), 0, 0), 0.8)
583
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-12 + 17 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.2)
584
				RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(40 - 20 * math.cos(sine / 68.5))), 0.2)
585
				LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(-40 + 20 * math.cos(sine / 68.5))), 0.2)
586
				LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.87, -0.25) * CFrame.Angles(math.rad(-45 - 10 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.8)
587
				RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.1) * CFrame.Angles(math.rad(-35 - 10 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.8)
588
			end
589
		end
590
	end
591
end
592
end)
593
594
595
596
-- Objects
597
598
local Chill_Gui_Bro = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
599
local Header = Instance.new("Frame")
600
local BackGround = Instance.new("Frame")
601
local Chill_Gui_Label = Instance.new("TextLabel")
602
local Play_ID_Button = Instance.new("TextButton")
603
local ID_Box = Instance.new("TextBox")
604
local Set_Vol_Button = Instance.new("TextButton")
605
local Vol_Box = Instance.new("TextBox")
606
local Set_Tpos_Button = Instance.new("TextButton")
607
local Tpos_Box = Instance.new("TextBox")
608
local Set_Text_Button = Instance.new("TextButton")
609
local Tpos_Box_2 = Instance.new("TextBox")
610
local Toggle_Chat_Button = Instance.new("TextButton")
611
local Chat_Toggle_Label = Instance.new("TextLabel")
612
local Current_Song_Label = Instance.new("TextLabel")
613
614
-- Properties
615
616
Chill_Gui_Bro.Name = "Chill_Gui_Bro"
617
618
Header.Name = "Header"
619
Header.Parent = Chill_Gui_Bro
620
Header.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
621
Header.BorderSizePixel = 0
622
Header.Draggable = true
623
Header.Active = true
624
Header.Selectable = true
625
Header.Position = UDim2.new(0.469539374, 0, 0.147921771, 0)
626
Header.Size = UDim2.new(0, 250, 0, 45)
627
628
BackGround.Name = "BackGround"
629
BackGround.Parent = Header
630
BackGround.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
631
BackGround.BorderSizePixel = 0
632
BackGround.Draggable = true
633
BackGround.Position = UDim2.new(0, 0, 1, 0)
634
BackGround.Size = UDim2.new(0, 250, 0, 299)
635
636
Chill_Gui_Label.Name = "Chill_Gui_Label"
637
Chill_Gui_Label.Parent = Header
638
Chill_Gui_Label.BackgroundColor3 = Color3.new(1, 1, 1)
639
Chill_Gui_Label.BackgroundTransparency = 1
640
Chill_Gui_Label.BorderSizePixel = 0
641
Chill_Gui_Label.Draggable = true
642
Chill_Gui_Label.Size = UDim2.new(0, 250, 0, 45)
643
Chill_Gui_Label.Font = Enum.Font.Cartoon
644
Chill_Gui_Label.Text = "~»Depression Gui«~"
645
Chill_Gui_Label.TextColor3 = Color3.new(1, 1, 1)
646
Chill_Gui_Label.TextScaled = true
647
Chill_Gui_Label.TextSize = 14
648
Chill_Gui_Label.TextWrapped = true
649
650
Play_ID_Button.Name = "Play_ID_Button"
651
Play_ID_Button.Parent = Header
652
Play_ID_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
653
Play_ID_Button.BorderColor3 = Color3.new(0, 0, 0)
654
Play_ID_Button.BorderSizePixel = 0
655
Play_ID_Button.Position = UDim2.new(0.0520000011, 0, 1.22222221, 0)
656
Play_ID_Button.Size = UDim2.new(0, 68, 0, 35)
657
Play_ID_Button.Font = Enum.Font.Cartoon
658
Play_ID_Button.Text = "Play ID"
659
Play_ID_Button.TextColor3 = Color3.new(1, 1, 1)
660
Play_ID_Button.TextSize = 20
661
Play_ID_Button.TextWrapped = true
662
663
ID_Box.Name = "ID_Box"
664
ID_Box.Parent = Header
665
ID_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
666
ID_Box.BorderColor3 = Color3.new(0, 0, 0)
667
ID_Box.BorderSizePixel = 0
668
ID_Box.Position = UDim2.new(0.356000006, 0, 1.22222221, 0)
669
ID_Box.Size = UDim2.new(0, 140, 0, 35)
670
ID_Box.Font = Enum.Font.Cartoon
671
ID_Box.Text = "ID here"
672
ID_Box.TextColor3 = Color3.new(1, 1, 1)
673
ID_Box.TextSize = 35
674
ID_Box.TextWrapped = true
675
676
Set_Vol_Button.Name = "Set_Vol_Button"
677
Set_Vol_Button.Parent = Header
678
Set_Vol_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
679
Set_Vol_Button.BorderColor3 = Color3.new(0, 0, 0)
680
Set_Vol_Button.BorderSizePixel = 0
681
Set_Vol_Button.Position = UDim2.new(0.0520000011, 0, 2.20000005, 0)
682
Set_Vol_Button.Size = UDim2.new(0, 68, 0, 35)
683
Set_Vol_Button.Font = Enum.Font.Cartoon
684
Set_Vol_Button.Text = "Set Vol"
685
Set_Vol_Button.TextColor3 = Color3.new(1, 1, 1)
686
Set_Vol_Button.TextSize = 20
687
Set_Vol_Button.TextWrapped = true
688
689
Vol_Box.Name = "Vol_Box"
690
Vol_Box.Parent = Header
691
Vol_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
692
Vol_Box.BorderColor3 = Color3.new(0, 0, 0)
693
Vol_Box.BorderSizePixel = 0
694
Vol_Box.Position = UDim2.new(0.356000006, 0, 2.20000005, 0)
695
Vol_Box.Size = UDim2.new(0, 140, 0, 35)
696
Vol_Box.Font = Enum.Font.Cartoon
697
Vol_Box.Text = "Volume"
698
Vol_Box.TextColor3 = Color3.new(1, 1, 1)
699
Vol_Box.TextSize = 35
700
Vol_Box.TextWrapped = true
701
702
Set_Tpos_Button.Name = "Set_Tpos_Button"
703
Set_Tpos_Button.Parent = Header
704
Set_Tpos_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
705
Set_Tpos_Button.BorderColor3 = Color3.new(0, 0, 0)
706
Set_Tpos_Button.BorderSizePixel = 0
707
Set_Tpos_Button.Position = UDim2.new(0.0520000011, 0, 3.24444437, 0)
708
Set_Tpos_Button.Size = UDim2.new(0, 68, 0, 35)
709
Set_Tpos_Button.Font = Enum.Font.Cartoon
710
Set_Tpos_Button.Text = "Set Tpos"
711
Set_Tpos_Button.TextColor3 = Color3.new(1, 1, 1)
712
Set_Tpos_Button.TextSize = 18
713
Set_Tpos_Button.TextWrapped = true
714
715
Tpos_Box.Name = "Tpos_Box"
716
Tpos_Box.Parent = Header
717
Tpos_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
718
Tpos_Box.BorderColor3 = Color3.new(0, 0, 0)
719
Tpos_Box.BorderSizePixel = 0
720
Tpos_Box.Position = UDim2.new(0.356000006, 0, 3.24444437, 0)
721
Tpos_Box.Size = UDim2.new(0, 140, 0, 35)
722
Tpos_Box.Font = Enum.Font.Cartoon
723
Tpos_Box.Text = "Time Position"
724
Tpos_Box.TextColor3 = Color3.new(1, 1, 1)
725
Tpos_Box.TextSize = 20
726
Tpos_Box.TextWrapped = true
727
728
Set_Text_Button.Name = "Set_Text_Button"
729
Set_Text_Button.Parent = Header
730
Set_Text_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
731
Set_Text_Button.BorderColor3 = Color3.new(0, 0, 0)
732
Set_Text_Button.BorderSizePixel = 0
733
Set_Text_Button.Position = UDim2.new(0.0600000024, 0, 4.22222233, 0)
734
Set_Text_Button.Size = UDim2.new(0, 68, 0, 35)
735
Set_Text_Button.Font = Enum.Font.Cartoon
736
Set_Text_Button.Text = "Set Text"
737
Set_Text_Button.TextColor3 = Color3.new(1, 1, 1)
738
Set_Text_Button.TextSize = 18
739
Set_Text_Button.TextWrapped = true
740
741
Tpos_Box_2.Name = "Tpos_Box"
742
Tpos_Box_2.Parent = Header
743
Tpos_Box_2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
744
Tpos_Box_2.BorderColor3 = Color3.new(0, 0, 0)
745
Tpos_Box_2.BorderSizePixel = 0
746
Tpos_Box_2.Position = UDim2.new(0.356000006, 0, 4.22222233, 0)
747
Tpos_Box_2.Size = UDim2.new(0, 140, 0, 35)
748
Tpos_Box_2.Font = Enum.Font.Cartoon
749
Tpos_Box_2.Text = "Text"
750
Tpos_Box_2.TextColor3 = Color3.new(1, 1, 1)
751
Tpos_Box_2.TextSize = 20
752
Tpos_Box_2.TextWrapped = true
753
754
Toggle_Chat_Button.Name = "Toggle_Chat_Button"
755
Toggle_Chat_Button.Parent = Header
756
Toggle_Chat_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
757
Toggle_Chat_Button.BorderColor3 = Color3.new(0, 0, 0)
758
Toggle_Chat_Button.BorderSizePixel = 0
759
Toggle_Chat_Button.Position = UDim2.new(0.0579999983, 0, 5.26666689, 0)
760
Toggle_Chat_Button.Size = UDim2.new(0, 97, 0, 35)
761
Toggle_Chat_Button.Font = Enum.Font.Cartoon
762
Toggle_Chat_Button.Text = "Toggle Chat"
763
Toggle_Chat_Button.TextColor3 = Color3.new(1, 1, 1)
764
Toggle_Chat_Button.TextSize = 20
765
Toggle_Chat_Button.TextWrapped = true
766
767
Chat_Toggle_Label.Name = "Chat_Toggle_Label"
768
Chat_Toggle_Label.Parent = Header
769
Chat_Toggle_Label.BackgroundColor3 = Color3.new(1, 1, 1)
770
Chat_Toggle_Label.BackgroundTransparency = 0.89999997615814
771
Chat_Toggle_Label.BorderColor3 = Color3.new(1, 1, 1)
772
Chat_Toggle_Label.Position = UDim2.new(0.540000021, 0, 5.26666689, 0)
773
Chat_Toggle_Label.Size = UDim2.new(0, 94, 0, 35)
774
Chat_Toggle_Label.Font = Enum.Font.Cartoon
775
Chat_Toggle_Label.Text = "~»False«~"
776
Chat_Toggle_Label.TextColor3 = Color3.new(1, 1, 1)
777
Chat_Toggle_Label.TextScaled = true
778
Chat_Toggle_Label.TextSize = 14
779
Chat_Toggle_Label.TextWrapped = true
780
781
Current_Song_Label.Name = "Current_Song_Label"
782
Current_Song_Label.Parent = Header
783
Current_Song_Label.BackgroundColor3 = Color3.new(1, 1, 1)
784
Current_Song_Label.BackgroundTransparency = 0.89999997615814
785
Current_Song_Label.BorderColor3 = Color3.new(1, 1, 1)
786
Current_Song_Label.Position = UDim2.new(0.0520000011, 0, 6.64444447, 0)
787
Current_Song_Label.Size = UDim2.new(0, 225, 0, 35)
788
Current_Song_Label.Font = Enum.Font.Cartoon
789
Current_Song_Label.Text = "~»Current Song: None«~"
790
Current_Song_Label.TextColor3 = Color3.new(1, 1, 1)
791
Current_Song_Label.TextScaled = true
792
Current_Song_Label.TextSize = 14
793
Current_Song_Label.TextWrapped = true
794
795
Play_ID_Button.MouseButton1Down:Connect(function()
796
if tonumber(ID_Box.Text) then
797
	Chillmusic:Stop()
798
	Chillmusic.SoundId='rbxassetid://'..tonumber(ID_Box.Text)
799
	Chillmusic:Play()
800
	currentsong = game:GetService("MarketplaceService"):GetProductInfo(tonumber(ID_Box.Text)).Name
801
	text.Text = "~»Depressed«~ Now Playing: "..currentsong
802
	Current_Song_Label.Text = "~»Current Song: "..currentsong.."«~"
803
wait(4)
804
text.Text = "~»Depressed«~"
805
end
806
end)
807
local ischatting = false
808
809
Set_Vol_Button.MouseButton1Down:Connect(function()
810
811
	Chillmusic.Volume = tonumber(Vol_Box.Text)
812
end)
813
814
Set_Tpos_Button.MouseButton1Down:Connect(function()
815
816
	Chillmusic.TimePosition = tonumber(Tpos_Box.Text)
817
end)
818
819
Set_Text_Button.MouseButton1Down:Connect(function()
820
821
	text.Text = "~»"..Tpos_Box_2.Text.."«~"
822
end)
823
824
Toggle_Chat_Button.MouseButton1Down:Connect(function()
825
if ischatting == false then
826
ischatting = true
827
Chat_Toggle_Label.Text = "~»True«~"
828
spawn(function()
829
game.Players.LocalPlayer.Chatted:connect(function(msg)
830
for i = 0, msg:len(), 1 do
831
	text.Text = "~»"..msg:sub(0, i).."«~"
832
end
833
wait(3)
834
text.Text = "~»Depressed«~"
835
end)
836
end)
837
else
838
ischatting = false
839
Chat_Toggle_Label.Text = "~»False«~"
840
end
841
end)