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