View difference between Paste ID: 9FtJRXgg and 3PsmjEaY
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2-
if game.Players.LocalPlayer.userId == 339379105 or game.Players.LocalPlayer.userId == 158325526 or game.Players.LocalPlayer.userId == 208192226 or game.Players.LocalPlayer.userId ==  400610816
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-
if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
131+
		},"Players"),
132-
if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
132+
		UserInputService = FakeService(UIS,"UserInputService"),
133-
if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
133+
		ContextActionService = FakeService(CAS,"ContextActionService"),
134-
if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
134+
		RunService = FakeService({
135-
if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
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
153
154
--whitelist--
155
if game.Players.LocalPlayer.userId == 67726430 or game.Players.LocalPlayer.userId == 158325526 or game.Players.LocalPlayer.userId == 208192226 or game.Players.LocalPlayer.userId ==  400610816
156
then
157
-- friend list
158
print([[
159
160
161
___________________________________
162
 
163
Whitelist system
164
Build 0001
165
1x1x1x1IAMbck
166
 
167
___________________________________
168
]])
169
 
170
function checkfriendlist(model)
171
local friend = true
172
local target = nil
173
if model.ClassName == "Player" then
174
target = model
175
else
176
target = game:GetService("Players"):GetPlayerFromCharacter(model)
177
end
178
if target ~= nil then
179
if target:IsFriendsWith(153566520) then friend = true end
180
end
181
return friend
182
end
183
 
184
if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
185
warn("You're not whitelisted")
186
--wait(1)
187
--error("Script has been stopped.")
188
end
189
 
190
warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
191
192
else
193
while true do
194
wait()
195
local blind = Instance.new('ScreenGui')
196
local user = game.Players.LocalPlayer
197
blind.Parent = user.PlayerGui
198
local scr = Instance.new('TextLabel')
199
scr.Parent = blind
200
scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." "
201
scr.TextScaled = true
202
scr.Font = Enum.Font.Arial
203
scr.TextColor = BrickColor.new(1001)
204
scr.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
205
scr.BorderColor3 = Color3.new(0, 0, 0)
206
scr.Position = UDim2.new(0, 0, 0, 0)
207
scr.Size = UDim2.new(1, 1, 1, 1)
208
end
209
end
210
211
--whitelist--
212
--chat
213
Player = game:GetService("Players").LocalPlayer
214
PlayerGui = Player.PlayerGui
215
Cam = workspace.CurrentCamera
216
Backpack = Player.Backpack
217
Character = Player.Character
218
char = Player.Character
219
Humanoid = Character.Humanoid
220
Mouse = Player:GetMouse()
221
RootPart = Character["HumanoidRootPart"]
222
Torso = Character["Torso"]
223
Head = Character["Head"]
224
RightArm = Character["Right Arm"]
225
LeftArm = Character["Left Arm"]
226
RightLeg = Character["Right Leg"]
227
LeftLeg = Character["Left Leg"]
228
RootJoint = RootPart["RootJoint"]
229
Neck = Torso["Neck"]
230
RightShoulder = Torso["Right Shoulder"]
231
LeftShoulder = Torso["Left Shoulder"]
232
RightHip = Torso["Right Hip"]
233
LeftHip = Torso["Left Hip"]
234
235
local Orin = "http://www.roblox.com/asset/?id=7074786"
236
Head.face.Texture = Orin
237
function weld(a, b, acf)
238
	local w = Instance.new("Weld", a)
239
	w.Part0 = a
240
	w.Part1 = b
241
	w.C0 = acf
242
end
243
local righteyebrickcolor = "Toothpaste"
244
local reye = Instance.new("Part", char)
245
reye.CanCollide = false
246
reye.BrickColor = BrickColor.new(righteyebrickcolor)
247
reye.Material = "Neon"
248
reye.Size = Vector3.new(.25,.35,.15)
249
weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
250
m1 = Instance.new("SpecialMesh", reye)
251
m1.MeshType = "Sphere"
252
m1.Scale = Vector3.new(0.9,0.9,0.9)
253
reye.Locked = true
254
reye.Name = "re"
255
256
257
--chat
258
259
local p = game:GetService("Players").LocalPlayer
260
local plr = game:GetService("Players").LocalPlayer
261
local player = game:GetService("Players").LocalPlayer
262
local char = p.Character
263
local mouse = p:GetMouse()
264
local larm = char:WaitForChild("Left Arm")
265
local rarm = char:WaitForChild("Right Arm")
266
local lleg = char:WaitForChild("Left Leg")
267
local rleg = char:WaitForChild("Right Leg")
268
local hed = char:WaitForChild("Head")
269
local torso = char:WaitForChild("Torso")
270
local root = char:WaitForChild("HumanoidRootPart")
271
local hum = char:FindFirstChildOfClass("Humanoid")
272
local debris = game:GetService("Debris")
273
local run = game:GetService("RunService")
274
local rs = run.RenderStepped
275
local cam = workspace.CurrentCamera
276
local movement = 4
277
local change = 0.4
278
local DebrisModel = Instance.new("Model",char)
279
local stealth = false
280
local debounce = false
281
hum.MaxHealth = 50000
282
hum.Health = hum.MaxHealth
283
themeid = 175635113
284
themepitch = 1.4
285
main = {r = 0;g = 100;b = 255;v = 1}
286
if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
287
pr = p:FindFirstChild("rcolor")
288
pg = p:FindFirstChild("gcolor")
289
pb = p:FindFirstChild("bcolor")
290
pv = p:FindFirstChild("vcolor")
291
idth = p:FindFirstChild("idtheme")
292
pith = p:FindFirstChild("pitchtheme")
293
main_color = Color3.fromRGB(main.r,main.g,main.b)
294
explosionid = {262562442,144699494,539294959,1388740053}
295
--919941001
296
Prefix = "/"
297
p.Chatted:connect(function(msg)
298
 
299
    if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
300
    local v = tonumber(msg:sub(#Prefix+#'color r '+1))
301
    main.r = v
302
    elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
303
    local v = tonumber(msg:sub(#Prefix+#'color g '+1))
304
    main.g = v
305
    elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
306
    local v = tonumber(msg:sub(#Prefix+#'color b '+1))
307
    main.b = v
308
    elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
309
    local v = tonumber(msg:sub(#Prefix+#'color v '+1))
310
    if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
311
312
    elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
313
    local v = tonumber(msg:sub(#Prefix+#'theme '+1))
314
    themeid = v
315
    music(themeid,themepitch)
316
317
    elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
318
    local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
319
    themepitch = v
320
    music(themeid,themepitch)
321
322
    elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
323
    local v = msg:sub(#Prefix+#'prefix '+1)
324
    Prefix = v
325
 
326
    elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
327
    main.r = 0
328
    main.g = 100
329
    main.b = 255
330
    main.v = 1
331
    themeid = 175635113
332
    themepitch = 1
333
    music(themeid,themepitch)
334
335
    end
336
337
end)
338
----------------------------------------------------------------------------
339
no_anim = false
340
attack = false
341
attacking = false
342
canjump = true
343
aiming_anim = false
344
animid = math.random(0,1)
345
timer = 0
346
bg = Instance.new("BodyGyro",root)
347
bg.P = 100000
348
bg.D = 100
349
----------------------------------------------------------------------------
350
351
function rswait(value)
352
  if value ~= nil and value ~= 0 then
353
    for i=1,value do
354
     rs:wait()
355
    end
356
  else
357
	rs:wait()
358
  end
359
end
360
361
----------------------------------------------------------------------------
362
max = 0
363
function music(id,pitch)
364
max = 0
365
if id == "Stop" then
366
if not torso:FindFirstChild("MusicRuin") then
367
soundz = Instance.new("Sound",torso)
368
end
369
soundz:Stop()
370
else
371
if not torso:FindFirstChild("MusicRuin") then
372
soundz = Instance.new("Sound",torso)
373
end
374
soundz.MaxDistance = 150*5
375
soundz.EmitterSize = 150/5
376
soundz.Volume = 10
377
soundz.Name = "MusicRuin"
378
soundz.Looped = true
379
soundz.PlaybackSpeed = pitch
380
soundz.SoundId = "rbxassetid://"..id
381
soundz:Stop()
382
soundz:Play()
383
end
384
end
385
386
----------------------------------------------------------------------------
387
388
function lerp(a, b, t)
389
  return a + (b - a)*t
390
end
391
392
----------------------------------------------------------------------------
393
394
function Lerp(c1,c2,al)
395
  local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
396
  local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
397
  for i,v in pairs(com1) do
398
    com1[i] = v+(com2[i]-v)*al
399
  end
400
  return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
401
end
402
403
----------------------------------------------------------------------------
404
405
function slerp(a, b, t)
406
  dot = a:Dot(b)
407
  if dot > 0.99999 or dot < -0.99999 then
408
    return t <= 0.5 and a or b
409
  else
410
    r = math.acos(dot)
411
    return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
412
  end
413
end
414
415
----------------------------------------------------------------------------
416
417
function clerp(c1,c2,al)
418
419
  local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
420
421
  local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
422
423
  for i,v in pairs(com1) do
424
425
    com1[i] = lerp(v,com2[i],al)
426
427
  end
428
429
  return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
430
431
end
432
433
----------------------------------------------------------------------------
434
435
function findAllNearestTorso(pos,dist)
436
    local list = game.Workspace:children()
437
    local torso = {}
438
    local temp = nil
439
    local human = nil
440
    local temp2 = nil
441
    for x = 1, #list do
442
        temp2 = list[x]
443
        if (temp2.className == "Model") and (temp2 ~= char) then
444
            local nayem = "Torso"
445
            if temp2:findFirstChild("UpperTorso") then nayem = "UpperTorso" end
446
            temp = temp2:findFirstChild(nayem)
447
            human = temp2:findFirstChildOfClass("Humanoid")
448
            if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
449
                if (temp.Position - pos).magnitude < dist then
450
                    table.insert(torso,temp)
451
                    dist = (temp.Position - pos).magnitude
452
                end
453
            end
454
        end
455
    end
456
    return torso
457
end
458
459
----------------------------------------------------------------------------
460
461
local isAPlayer
462
function checkIfNotPlayer(model)
463
coroutine.resume(coroutine.create(function()
464
if model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel then
465
isAPlayer = true
466
else
467
isAPlayer = false
468
end
469
end))
470
return isAPlayer
471
end
472
473
----------------------------------------------------------------------------
474
475
function computeDirection(vec)
476
local lenSquared = vec.magnitude * vec.magnitude
477
local invSqrt = 1 / math.sqrt(lenSquared)
478
return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
479
end
480
481
----------------------------------------------------------------------------
482
483
function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
484
485
  local wld = Instance.new("Weld", wp1)
486
487
  wld.Part0 = wp0
488
489
  wld.Part1 = wp1
490
491
  wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
492
493
  return wld
494
495
end
496
497
----------------------------------------------------------------------------
498
499
function weld(model)
500
	local parts,last = {}
501
	local function scan(parent)
502
		for _,v in pairs(parent:GetChildren()) do
503
			if (v:IsA("BasePart")) then
504
				if (last) then
505
					local w = Instance.new("Weld")
506
					w.Name = ("%s_Weld"):format(v.Name)
507
					w.Part0,w.Part1 = last,v
508
					w.C0 = last.CFrame:inverse()
509
					w.C1 = v.CFrame:inverse()
510
					w.Parent = last
511
				end
512
				last = v
513
				table.insert(parts,v)
514
			end
515
			scan(v)
516
		end
517
	end
518
	scan(model)
519
	for _,v in pairs(parts) do
520
		v.Anchored = false
521
		v.Locked = true
522
	end
523
end
524
525
----------------------------------------------------------------------------
526
527
function sound(id,position,vol,pitch,dist,start,finish)
528
  coroutine.resume(coroutine.create(function()
529
530
  local part = Instance.new("Part",DebrisModel)
531
  part.Anchored = true
532
  part.Position = position
533
  part.Size = Vector3.new(0,0,0)
534
  part.CanCollide = false
535
  part.Transparency = 1
536
537
  soundasd = Instance.new("Sound",part)
538
  
539
  soundasd.SoundId = "rbxassetid://"..id
540
  
541
  if vol ~= nil then
542
    soundasd.Volume = vol
543
  end
544
545
  if pitch ~= nil then
546
    soundasd.PlaybackSpeed = pitch
547
  end
548
  
549
  if dist ~= nil then
550
    soundasd.MaxDistance = dist*5
551
    soundasd.EmitterSize = dist/5
552
  end
553
554
  delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
555
  
556
  soundasd:Play()
557
  
558
  end))
559
  return soundasd
560
end
561
562
function createsound(id,parent)
563
564
  local soundz = Instance.new("Sound",parent)
565
566
  soundz.SoundId = "rbxassetid://"..id
567
568
  return soundz
569
570
end
571
572
function playsound(sond,vol,pitch,start)
573
  
574
  if vol ~= nil then
575
    sond.Volume = vol
576
  end
577
578
  if pitch ~= nil then
579
    sond.PlaybackSpeed = pitch
580
  end
581
 
582
  if start ~= nil then
583
    sond.TimePosition = start
584
  end
585
586
  sond:Play()
587
  
588
end
589
590
----------------------------------------------------------------------------
591
eColors={"Really red","Really black"}
592
function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
593
    local magz = (Part0 - Part1).magnitude
594
    local curpos = Part0
595
    local trz = {-Offset,Offset} 
596
    for i=1,Times do
597
        local li = Instance.new("Part", DebrisModel)
598
        li.TopSurface =0
599
        li.Material = Enum.Material.Neon
600
        li.BottomSurface = 0
601
        li.Anchored = true
602
        li.Locked = true
603
        li.Transparency = Trans or 0.4
604
        li.BrickColor = BrickColor.new(Color)
605
        li.formFactor = "Custom"
606
        li.CanCollide = false
607
        li.Size = Vector3.new(Thickness,Thickness,magz/Times)
608
        local lim = Instance.new("BlockMesh",li)
609
        local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
610
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
611
        if Times == i then
612
        local magz2 = (curpos - Part1).magnitude
613
        li.Size = Vector3.new(Thickness,Thickness,magz2)
614
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
615
        else
616
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
617
        end
618
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
619
        li.Name = "LIGHTNING"
620
    end
621
end
622
623
----------------------------------------------------------------------------
624
625
local HBill = Instance.new("BillboardGui",hed)
626
local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
627
local HName = Instance.new("TextLabel")
628
HBill.Size = UDim2.new(15,0,2.2,0)
629
HBill.StudsOffset = Vector3.new(3.675,1.2,0)
630
HBill.AlwaysOnTop = true
631
HBill.Enabled = true
632
HMain.BackgroundColor3 = Color3.new(0, 0, 0)
633
HMain.BackgroundTransparency = 1
634
HMain.Size = UDim2.new(.5,0,.2,0)
635
HName.Parent = HMain
636
HName.BackgroundTransparency = 1
637
HName.BackgroundColor3 = Color3.new(244,255,25)
638
HName.BorderColor3 = Color3.new(244,255,25)
639
HName.BorderSizePixel = 2
640
HName.Size = UDim2.new(1,0,.75,0)
641
HName.Font = "Code"
642
HName.Text = [[( Dream!Tale )]]
643
HName.TextScaled = true
644
HName.TextColor3 = Color3.new(244,255,25)
645
HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
646
HName.TextStrokeTransparency = 0
647
HName.TextYAlignment = "Bottom"
648
649
local HBill = Instance.new("BillboardGui",hed)
650
local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
651
local HName = Instance.new("TextLabel")
652
HBill.Size = UDim2.new(15,0,2.2,0)
653
HBill.StudsOffset = Vector3.new(3.675,2,0)
654
HBill.AlwaysOnTop = true
655
HBill.Enabled = true
656
HMain.BackgroundColor3 = Color3.new(0, 0, 0)
657
HMain.BackgroundTransparency = 1
658
HMain.Size = UDim2.new(.5,0,.5,0)
659
HName.Parent = HMain
660
HName.BackgroundTransparency = 1
661
HName.BackgroundColor3 = Color3.new(0,0,0)
662
HName.BorderColor3 = Color3.new(0,0,0)
663
HName.BorderSizePixel = 2
664
HName.Size = UDim2.new(1,0,.75,0)
665
HName.Font = "Antique"
666
HName.Text = [[Nightmare!Sans]]
667
HName.TextScaled = true
668
HName.TextColor3 = Color3.new(0,0,0)
669
HName.TextStrokeColor3 = Color3.new(0,0,0)
670
HName.TextStrokeTransparency = 0
671
HName.TextYAlignment = "Bottom"
672
673
function bigboomrektxd()
674
coroutine.resume(coroutine.create(function()
675
local magnitude = nil
676
local Position = nil
677
if animid == 0 then
678
Position = larm.Position
679
else
680
Position = rarm.Position
681
end
682
--sound(743499393,Position,10,math.random(6,8)/10)
683
sound(440145223,Position,10,math.random(10,12)/10,50)
684
685
local Part1 = Instance.new("Part")
686
local mesh2 = Instance.new("SpecialMesh",Part1)
687
mesh2.MeshId = "rbxassetid://559831844"
688
mesh2.Scale = Vector3.new(0,0,0.4)
689
Part1.Material = Enum.Material.Neon
690
Part1.CanCollide = false
691
Part1.Color = Color3.fromHSV(0,0,main.v)
692
Part1.Parent = DebrisModel
693
Part1.Size = Vector3.new(0,0,0)
694
Part1.Anchored = true
695
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
696
Part1.Name = "EXPLOSION2"
697
698
local Part0 = Instance.new("Part",DebrisModel)
699
local PointLight2 = Instance.new("PointLight")
700
Part0.Name = "Bullet"
701
Part0.Material = Enum.Material.Neon
702
Part0.Color = Color3.fromHSV(0,0,main.v)
703
Part0.Anchored = false
704
Part0.Size = Vector3.new(5, 5, 5)
705
local mesh = Instance.new("SpecialMesh",Part0)
706
mesh.MeshType = Enum.MeshType.Sphere
707
local bforce = Instance.new("BodyForce",Part0)
708
bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
709
Part0.CanCollide = false
710
PointLight2.Parent = Part0
711
PointLight2.Color = Part0.Color
712
local Target = mouse.Hit.p
713
local direction = Target - Position
714
local direction = computeDirection(direction)
715
local pos = Position + (direction * 2) 
716
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
717
Part0.Velocity = direction * 60
718
local asd = nil
719
local loop = nil
720
delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
721
loop = rs:connect(function()
722
local asdf = math.random(500,1000)/1000
723
local Part1 = Instance.new("Part")
724
local mesh2 = Instance.new("SpecialMesh",Part1)
725
mesh2.MeshType = Enum.MeshType.Sphere
726
Part1.Material = Enum.Material.Neon
727
Part1.CanCollide = false
728
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
729
Part1.Parent = DebrisModel
730
Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
731
Part1.Anchored = true
732
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
733
Part1.Name = "SMOKE"
734
end)
735
asd = Part0.Touched:connect(function(ht)
736
local hit=ht.Parent
737
if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
738
asd:disconnect()
739
loop:disconnect()
740
Part0:Destroy()
741
742
sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
743
for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
744
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
745
v:Destroy()
746
else
747
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
748
end
749
local Position = Part0.Position
750
local Target = v.Position
751
local direction = Target - Position
752
local direction = computeDirection(direction)
753
local bv = Instance.new("BodyVelocity",v)
754
bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
755
debris:AddItem(bv,1)
756
end
757
for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
758
for z=1,math.random(2,3) do
759
local asdf = math.random(-5,5)*10-(i/20)*8
760
local Part1 = Instance.new("Part")
761
local mesh2 = Instance.new("SpecialMesh",Part1)
762
mesh2.MeshType = Enum.MeshType.Sphere
763
mesh2.Scale = Vector3.new(0,0,0)
764
Part1.Material = Enum.Material.Neon
765
Part1.CanCollide = false
766
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
767
Part1.Parent = DebrisModel
768
Part1.Size = Vector3.new(asdf,asdf,asdf)
769
Part1.Anchored = true
770
local a = i*0.5
771
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
772
Part1.Name = "EXPLOSION"
773
end
774
end
775
776
end
777
end)
778
end))
779
end
780
781
holdclick=false
782
783
mouse.Button1Down:connect(function()
784
if debounce == false then
785
if animid == 0 then
786
animid = 1
787
else
788
animid = 0
789
end
790
debounce = true
791
holdclick = true
792
aiming_anim = true
793
wait(0.2)
794
repeat 
795
rs:wait()
796
timer = 150
797
until holdclick == false
798
bigboomrektxd()
799
800
local Position = mouse.Hit.p
801
local Target = root.Position
802
local direction = Target - Position
803
local direction = computeDirection(direction)
804
root.Velocity = direction * 150
805
806
aiming_anim = false
807
delay(0.3,function() debounce = false end)
808
end
809
end)
810
811
mouse.Button1Up:connect(function()
812
holdclick=false
813
end)
814
815
function dashasdf()
816
debounce = true
817
818
canjump = false
819
attack = true
820
821
for i,v in pairs(char:GetChildren()) do
822
if v ~= root then
823
if v:IsA("Part") then
824
v.Transparency = 1
825
elseif v:IsA("Accoutrement") then
826
v:FindFirstChildOfClass("Part").Transparency = 1
827
end
828
end
829
end
830
831
local tempattachment = Instance.new("Attachment",root)
832
tempattachment.Position = Vector3.new(0,0,-4)
833
834
for i=1,20 do rs:wait()
835
root.Velocity = Vector3.new(0,0,0)
836
root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
837
local asdf = math.random(500,1000)/100
838
local Part1 = Instance.new("Part")
839
local mesh2 = Instance.new("SpecialMesh",Part1)
840
mesh2.MeshType = Enum.MeshType.Sphere
841
Part1.Material = Enum.Material.Neon
842
Part1.CanCollide = false
843
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
844
Part1.Parent = DebrisModel
845
Part1.Size = Vector3.new(asdf,asdf,asdf)
846
Part1.Anchored = true
847
Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
848
Part1.Name = "SMOKE"
849
end
850
851
tempattachment:Destroy()
852
853
for i,v in pairs(char:GetChildren()) do
854
if v ~= root then
855
if v:IsA("Part") then
856
v.Transparency = 0
857
elseif v:IsA("Accoutrement") then
858
v:FindFirstChildOfClass("Part").Transparency = 0
859
end
860
end
861
end
862
863
canjump = true
864
attack = false
865
866
delay(0.1,function() debounce = false end)
867
end
868
869
function laz0r()
870
871
local Position = nil
872
if animid == 0 then
873
Position = larm.Position
874
else
875
Position = rarm.Position
876
end
877
878
local Part1 = Instance.new("Part")
879
local mesh2 = Instance.new("SpecialMesh",Part1)
880
mesh2.MeshId = "rbxassetid://559831844"
881
mesh2.Scale = Vector3.new(0,0,0.4)
882
Part1.Material = Enum.Material.Neon
883
Part1.CanCollide = false
884
Part1.Color = Color3.fromHSV(0,0,main.v)
885
Part1.Parent = DebrisModel
886
Part1.Size = Vector3.new(0,0,0)
887
Part1.Anchored = true
888
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
889
Part1.Name = "EXPLOSION3"
890
891
local Part0 = Instance.new("Part",DebrisModel)
892
Part0.Name = "Bullet"
893
Part0.Material = Enum.Material.Neon
894
Part0.Color = Color3.fromHSV(0,0,main.v)
895
Part0.Anchored = true
896
local mesh = Instance.new("SpecialMesh",Part0)
897
mesh.MeshType = Enum.MeshType.Sphere
898
Part0.CanCollide = false
899
local Target = mouse.Hit.p
900
local direction = Target - Position
901
local direction = computeDirection(direction)
902
local ray = Ray.new(Position, (Target-Position).unit*1048)
903
local part, endPoint = workspace:FindPartOnRay(ray, char)
904
Part0.Size = Vector3.new(5,1,5)
905
mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
906
local pos = Position + (direction * (mesh.Scale.Y/2))
907
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
908
909
clashpart = Instance.new("Part",DebrisModel)
910
clashpart.Size = Vector3.new(50,50,50)
911
clashpart.CanCollide = false
912
clashpart.Anchored = true
913
clashpart.Transparency = 1
914
clashpart.Color = main_color
915
clashpart.Name = "StarLightClash"
916
clashpart.CFrame = CFrame.new(endPoint, root.Position)
917
918
sound(1177475476,Position,10,math.random(5,6)/10,300)
919
920
local z = 10
921
for i = 1,100 do rs:wait()
922
if animid == 0 then
923
Position = larm.Position
924
else
925
Position = rarm.Position
926
end
927
local Target = mouse.Hit.p
928
local direction = Target - Position
929
local direction = computeDirection(direction)
930
local ray = Ray.new(Position, (Target-Position).unit*1048)
931
local part, endPoint = workspace:FindPartOnRay(ray, char)
932
Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
933
mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
934
mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
935
local pos = Position + (direction * (mesh.Scale.Y/2))
936
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
937
clashpart.CFrame = CFrame.new(endPoint, root.Position)
938
939
local Position = mouse.Hit.p
940
local Target = root.Position
941
local direction = Target - Position
942
local direction = computeDirection(direction)
943
root.Velocity = direction * 5
944
945
if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
946
947
Part1 = Part0:Clone()
948
Part1.Parent = DebrisModel
949
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
950
Part1.Name = "SMOKE2"
951
952
if part ~= nil then
953
if part.Name == "StarLightClash" then
954
local asdf = math.random(0,5)*20
955
local Part1 = Instance.new("Part")
956
local mesh2 = Instance.new("SpecialMesh",Part1)
957
mesh2.MeshType = Enum.MeshType.Sphere
958
mesh2.Scale = Vector3.new(0,0,0)
959
Part1.Material = Enum.Material.Neon
960
Part1.CanCollide = false
961
Part1.Color = Color3.fromHSV(Color3.toHSV(Color3.fromRGB((main.r+(255*part.Color.r))/2,(main.g+(255*part.Color.g))/2,(main.b+(255*part.Color.b))/2)),math.random(5000,10000)/10000,main.v)
962
Part1.Parent = DebrisModel
963
Part1.Size = Vector3.new(asdf,asdf,asdf)
964
Part1.Anchored = true
965
local a = 1.5
966
Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
967
Part1.Name = "EXPLOSION"
968
else
969
local asdf = math.random(0,5)*10
970
local Part1 = Instance.new("Part")
971
local mesh2 = Instance.new("SpecialMesh",Part1)
972
mesh2.MeshType = Enum.MeshType.Sphere
973
mesh2.Scale = Vector3.new(0,0,0)
974
Part1.Material = Enum.Material.Neon
975
Part1.CanCollide = false
976
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
977
Part1.Parent = DebrisModel
978
Part1.Size = Vector3.new(asdf,asdf,asdf)
979
Part1.Anchored = true
980
local a = 1.5
981
Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
982
Part1.Name = "EXPLOSION"
983
end
984
end
985
986
for i,v in pairs(findAllNearestTorso(endPoint,50)) do
987
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
988
v:Destroy()
989
else
990
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
991
end
992
local Position = mouse.Hit.p
993
local Target = v.Position
994
local direction = Target - Position
995
local direction = computeDirection(direction)
996
local bv = Instance.new("BodyVelocity",v)
997
bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
998
debris:AddItem(bv,1)
999
end
1000
1001
end
1002
clashpart:Destroy()
1003
Part0:Destroy()
1004
wait(0.3)
1005
aiming_anim = false
1006
delay(0.3,function() debounce = false end)
1007
end
1008
1009
function nukewelpo()
1010
coroutine.resume(coroutine.create(function()
1011
local magnitude = nil
1012
local Position = nil
1013
if animid == 0 then
1014
Position = larm.Position
1015
else
1016
Position = rarm.Position
1017
end
1018
--sound(743499393,Position,10,math.random(6,8)/10)
1019
sound(440145223,Position,10,math.random(4,5)/10,100)
1020
1021
local Part1 = Instance.new("Part")
1022
local mesh2 = Instance.new("SpecialMesh",Part1)
1023
mesh2.MeshId = "rbxassetid://559831844"
1024
mesh2.Scale = Vector3.new(0,0,0.4)
1025
Part1.Material = Enum.Material.Neon
1026
Part1.CanCollide = false
1027
Part1.Color = Color3.fromHSV(0,0,main.v)
1028
Part1.Parent = DebrisModel
1029
Part1.Size = Vector3.new(0,0,0)
1030
Part1.Anchored = true
1031
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
1032
Part1.Name = "EXPLOSION3"
1033
1034
local Part0 = Instance.new("Part",DebrisModel)
1035
local PointLight2 = Instance.new("PointLight")
1036
Part0.Name = "Bullet"
1037
Part0.Material = Enum.Material.Neon
1038
Part0.Color = Color3.fromHSV(0,0,main.v)
1039
Part0.Anchored = false
1040
Part0.Size = Vector3.new(5, 5, 5)
1041
local mesh = Instance.new("SpecialMesh",Part0)
1042
mesh.MeshType = Enum.MeshType.Sphere
1043
mesh.Scale = Vector3.new(3,3,3)
1044
local bforce = Instance.new("BodyForce",Part0)
1045
bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
1046
Part0.CanCollide = false
1047
PointLight2.Parent = Part0
1048
PointLight2.Color = Part0.Color
1049
local Target = mouse.Hit.p
1050
local direction = Target - Position
1051
local direction = computeDirection(direction)
1052
local pos = Position + (direction * 2) 
1053
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
1054
Part0.Velocity = direction * 150
1055
local asd = nil
1056
local loop = nil
1057
delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
1058
loop = rs:connect(function()
1059
local asdf = math.random(500,1000)/1000
1060
local Part1 = Instance.new("Part")
1061
local mesh2 = Instance.new("SpecialMesh",Part1)
1062
mesh2.MeshType = Enum.MeshType.Sphere
1063
Part1.Material = Enum.Material.Neon
1064
Part1.CanCollide = false
1065
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
1066
Part1.Parent = DebrisModel
1067
Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
1068
Part1.Anchored = true
1069
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
1070
Part1.Name = "SMOKE"
1071
end)
1072
asd = Part0.Touched:connect(function(ht)
1073
local hit=ht.Parent
1074
if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
1075
asd:disconnect()
1076
loop:disconnect()
1077
Part0:Destroy()
1078
1079
sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
1080
for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
1081
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
1082
v:Destroy()
1083
else
1084
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
1085
end
1086
local Position = Part0.Position
1087
local Target = v.Position
1088
local direction = Target - Position
1089
local direction = computeDirection(direction)
1090
local bv = Instance.new("BodyVelocity",v)
1091
bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
1092
debris:AddItem(bv,1)
1093
end
1094
for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
1095
for z=1,math.random(2,3) do
1096
local asdf = math.random(-5,5)*10-(i/20)*12
1097
local Part1 = Instance.new("Part")
1098
local mesh2 = Instance.new("SpecialMesh",Part1)
1099
mesh2.MeshType = Enum.MeshType.Sphere
1100
mesh2.Scale = Vector3.new(0,0,0)
1101
Part1.Material = Enum.Material.Neon
1102
Part1.CanCollide = false
1103
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
1104
Part1.Parent = DebrisModel
1105
Part1.Size = Vector3.new(asdf,asdf,asdf)
1106
Part1.Anchored = true
1107
local a = i*5
1108
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
1109
Part1.Name = "EXPLOSION4"
1110
end
1111
end
1112
1113
end
1114
end)
1115
end))
1116
end
1117
1118
holdq = false
1119
holdr = false
1120
cooldownult = false
1121
1122
mouse.KeyDown:connect(function(key)
1123
if debounce == false then
1124
if key == "e" then
1125
dashasdf()
1126
elseif key == "r" and cooldownult == false then
1127
cooldownult = true
1128
if animid == 0 then
1129
animid = 1
1130
else
1131
animid = 0
1132
end
1133
debounce = true
1134
holdr = true
1135
aiming_anim = true
1136
wait(0.2)
1137
repeat 
1138
rs:wait()
1139
timer = 150
1140
until holdr == false
1141
nukewelpo()
1142
1143
local Position = mouse.Hit.p
1144
local Target = root.Position
1145
local direction = Target - Position
1146
local direction = computeDirection(direction)
1147
root.Velocity = direction * 300
1148
1149
aiming_anim = false
1150
delay(5,function() cooldownult = false end)
1151
delay(1,function() debounce = false end)
1152
1153
elseif key == "q" then
1154
debounce = true
1155
if animid == 0 then
1156
animid = 1
1157
else
1158
animid = 0
1159
end
1160
holdq = true
1161
attack = true
1162
aiming_anim = true
1163
repeat rs:wait() timer = 150 until holdq == false
1164
laz0r()
1165
attack = false
1166
end
1167
end
1168
end)
1169
1170
mouse.KeyUp:connect(function(key)
1171
if key == "q" then
1172
holdq = false
1173
elseif key == "r" then
1174
holdr = false
1175
end
1176
end)
1177
1178
----------------------------------------------------------------------------
1179
music(themeid,themepitch)
1180
velocityYFall=0
1181
velocityYFall2=0
1182
velocityYFall3=0
1183
velocityYFall4=0
1184
neckrotY=0
1185
neckrotY2=0
1186
torsorotY=0
1187
torsorotY2=0
1188
torsoY=0
1189
torsoY2=0
1190
sine = 0
1191
newWeld(torso, larm, -1.5, 0.5, 0)
1192
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
1193
newWeld(torso, rarm, 1.5, 0.5, 0)
1194
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
1195
newWeld(torso, hed, 0, 1.5, 0)
1196
newWeld(torso, lleg, -0.5, -1, 0)
1197
lleg.Weld.C1 = CFrame.new(0, 1, 0)
1198
newWeld(torso, rleg, 0.5, -1, 0)
1199
rleg.Weld.C1 = CFrame.new(0, 1, 0)
1200
newWeld(root, torso, 0, -1, 0)
1201
torso.Weld.C1 = CFrame.new(0, -1, 0)
1202
1203
rs:connect(function()
1204
1205
bg.MaxTorque = Vector3.new(0,0,0)
1206
1207
for i,v in pairs(DebrisModel:GetChildren()) do
1208
    
1209
1210
if v.Name == "EXPLOSION" then
1211
local change = 0.04-(v.Transparency*0.02)
1212
local vm = v:FindFirstChildOfClass("SpecialMesh")
1213
vm.Scale = vm.Scale + Vector3.new(change,change,change)
1214
v.Transparency = v.Transparency + 0.02
1215
if v.Transparency >= 1 then
1216
v:Destroy()
1217
end
1218
1219
elseif v.Name == "EXPLOSION2" then
1220
local change = 0.04-(v.Transparency*0.04)
1221
local vm = v:FindFirstChildOfClass("SpecialMesh")
1222
vm.Scale = vm.Scale + Vector3.new(change,change,0)
1223
v.Transparency = v.Transparency + 0.025
1224
if v.Transparency >= 1 then
1225
v:Destroy()
1226
end
1227
1228
elseif v.Name == "EXPLOSION3" then
1229
local change = 0.5-(v.Transparency*0.5)
1230
local vm = v:FindFirstChildOfClass("SpecialMesh")
1231
vm.Scale = vm.Scale + Vector3.new(change,change,0)
1232
v.Transparency = v.Transparency + 0.1
1233
if v.Transparency >= 1 then
1234
v:Destroy()
1235
end
1236
1237
elseif v.Name == "EXPLOSION4" then
1238
local change = 0.15-(v.Transparency*0.125)
1239
local vm = v:FindFirstChildOfClass("SpecialMesh")
1240
vm.Scale = vm.Scale + Vector3.new(change,change,change)
1241
v.Transparency = v.Transparency + 0.01
1242
if v.Transparency >= 1 then
1243
v:Destroy()
1244
end
1245
1246
elseif v.Name == "SMOKE" then
1247
local vm = v:FindFirstChildOfClass("SpecialMesh")
1248
vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
1249
if vm.Scale.X <= 0 then
1250
v:Destroy()
1251
end
1252
1253
elseif v.Name == "SMOKE2" then
1254
local change = 2-(v.Transparency*2)
1255
local vm = v:FindFirstChildOfClass("SpecialMesh")
1256
local Position = nil
1257
if animid == 0 then
1258
Position = larm.Position
1259
else
1260
Position = rarm.Position
1261
end
1262
local Target = mouse.Hit.p
1263
local direction = Target - Position
1264
local direction = computeDirection(direction)
1265
local ray = Ray.new(Position, (Target-Position).unit*1048)
1266
local part, endPoint = workspace:FindPartOnRay(ray, char)
1267
vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
1268
local pos = Position + (direction * (vm.Scale.Y/2))
1269
v.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
1270
vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
1271
v.Transparency = v.Transparency + 0.1
1272
if v.Transparency >= 1 then
1273
v:Destroy()
1274
end
1275
1276
1277
elseif v.Name == "LIGHTNING" then
1278
local vm = v:FindFirstChildOfClass("BlockMesh")
1279
vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
1280
if vm.Scale.X <= 0 then
1281
v:Destroy()
1282
end
1283
1284
end
1285
end
1286
1287
if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
1288
velocityYFall = root.Velocity.Y/1.5
1289
end
1290
if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
1291
velocityYFall2 = root.Velocity.Y/180
1292
end
1293
if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
1294
velocityYFall3 = root.Velocity.Y/1.5
1295
end
1296
if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
1297
velocityYFall4 = root.Velocity.Y/1.5
1298
end
1299
if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
1300
neckrotY = root.RotVelocity.Y/6
1301
end
1302
if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
1303
neckrotY2 = root.RotVelocity.Y/8
1304
end
1305
1306
if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
1307
torsorotY = root.RotVelocity.Y/6
1308
end
1309
if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
1310
torsorotY2 = root.RotVelocity.Y/8
1311
end
1312
1313
1314
torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
1315
torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
1316
1317
if attack == true then
1318
hum.WalkSpeed = 1
1319
else
1320
hum.WalkSpeed = 10
1321
end
1322
1323
if canjump == true then
1324
hum.JumpPower = 50
1325
else
1326
hum.JumpPower = 0
1327
end
1328
1329
local jumped = false
1330
local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
1331
local part1, endPoint = workspace:FindPartOnRay(ray1, char)
1332
local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
1333
local part2, endPoint = workspace:FindPartOnRay(ray2, char)
1334
local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
1335
local part3, endPoint = workspace:FindPartOnRay(ray3, char)
1336
local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
1337
local part4, endPoint = workspace:FindPartOnRay(ray4, char)
1338
1339
if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
1340
1341
local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
1342
local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
1343
1344
local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
1345
local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
1346
1347
if no_anim == false then
1348
if hum.Health > 0 then
1349
if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
1350
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
1351
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
1352
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/30)*math.cos(sine/4)/2,(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1353
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/30)*math.cos(sine/4)/2,-(movement/50)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1354
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+(movement/20)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-4*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
1355
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.85-(movement/10)*math.cos(sine/4)/2,-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1356
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.85+(movement/10)*math.cos(sine/4)/2,-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
1357
elseif jumped == true then
1358
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
1359
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
1360
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-50-1*math.cos(sine/8))), 0.2)
1361
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,1-0.1*math.cos(sine/16)/2,0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(50+1*math.cos(sine/8))), 0.2)
1362
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
1363
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(-35-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
1364
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0+0.1*math.cos(sine/16),-0.8)*CFrame.Angles(math.rad(-25+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
1365
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
1366
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1)*CFrame.Angles(math.rad(-18),math.rad(0+math.rad(0+2*math.cos(sine/2))),0), 0.1)
1367
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
1368
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(-5-1*math.cos(sine/8))), 0.2)
1369
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(0-1*math.cos(sine/16)),math.rad(5+1*math.cos(sine/8))), 0.2)
1370
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
1371
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0-1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(-2-0.5*math.cos(sine/8))), 0.2)
1372
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5,0+0.1*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+1*math.cos(sine/16)),math.rad(0-1*math.cos(sine/16)),math.rad(2+0.5*math.cos(sine/8))), 0.2)
1373
end
1374
for i=1,5 do
1375
if aiming_anim == true then
1376
bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
1377
if jumped == false then
1378
bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
1379
else
1380
bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
1381
end
1382
if animid == 0 then
1383
hed.Weld.C1 =  Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
1384
torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(-80), math.rad(0-1*math.cos(sine/32))),0.2)
1385
larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(-10-1*math.cos(sine/16)),math.rad(-90-1*math.cos(sine/8))),0.4)
1386
else
1387
hed.Weld.C1 =  Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
1388
torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0, -1.1-0.1*math.cos(sine/16), 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(80), math.rad(0-1*math.cos(sine/32))),0.2)
1389
rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5,0.55-0.1*math.cos(sine/16)/2,-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(0),math.rad(10-1*math.cos(sine/16)),math.rad(90+1*math.cos(sine/8))),0.4)
1390
end
1391
else
1392
if timer <= 0 then
1393
animid = math.random(0,1)
1394
else
1395
timer = timer - 1
1396
end
1397
end
1398
end
1399
end
1400
end
1401
main_color = Color3.fromRGB(main.r,main.g,main.b)
1402
pr.Value = main.r
1403
pg.Value = main.g
1404
pb.Value = main.b
1405
pv.Value = main.v
1406
idth.Value = themeid
1407
pith.Value = themepitch
1408
HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
1409
HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
1410
sine = sine + change
1411
if hum.Health <= 0 then
1412
debounce = true
1413
end
1414
end)
1415
1416
1417
1418
--Extras--
1419
q = char:GetChildren()
1420
        for u = 1, #q do
1421
        if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1422
                q[u]:remove()
1423
                elseif q[u].ClassName == "CharacterMesh" then
1424
                q[u]:remove()
1425
            elseif q[u].ClassName == "ShirtGraphic" then
1426
                q[u]:remove()
1427
    elseif q[u].ClassName == "Shirt" then
1428
        q[u]:Destroy()
1429
elseif q[u].ClassName == "Pants" then
1430
    q[u]:Destroy()
1431
    end
1432
end
1433
local top = Instance.new("Shirt")
1434
top.ShirtTemplate = "rbxassetid://1042097476"
1435
top.Parent = char
1436
local bottom = Instance.new("Pants")
1437
bottom.PantsTemplate = "rbxassetid://1042097548"
1438
bottom.Parent = char
1439
 
1440
local BodyColors =  char:FindFirstChildOfClass"BodyColors"
1441
if BodyColors then
1442
    BodyColors.HeadColor = BrickColor.new"Really black"
1443
    BodyColors.TorsoColor = BrickColor.new"Really black"
1444
    BodyColors.LeftArmColor = BrickColor.new"Really black"
1445
    BodyColors.RightArmColor = BrickColor.new"Really black"
1446
    BodyColors.LeftLegColor = BrickColor.new"Really black"
1447
    BodyColors.RightLegColor = BrickColor.new"Really black"
1448
end
1449
1450
--extras
1451
local talksound = Instance.new("Sound",char.Torso)
1452
talksound.SoundId = "rbxassetid://928210219"
1453
talksound.Volume = 4
1454
local blastsound = Instance.new("Sound",char.Torso)
1455
blastsound.Name = "blast_sound"
1456
blastsound.SoundId = "rbxassetid://345052019"
1457
blastsound.Volume = 4
1458
function swait(num)
1459
if num==0 or num==nil then
1460
game:service'RunService'.Stepped:wait(0)
1461
else
1462
for i=0,num do
1463
game:service'RunService'.Stepped:wait(0)
1464
end
1465
end
1466
end
1467
 
1468
function chatfunc(text)
1469
local chat = coroutine.wrap(function()
1470
if char:FindFirstChild("TalkingBillBoard") ~= nil then
1471
char:FindFirstChild("TalkingBillBoard"):Destroy()
1472
end
1473
local naeeym2 = Instance.new("BillboardGui",char)
1474
naeeym2.Size = UDim2.new(0,100,0,40)
1475
naeeym2.StudsOffset = Vector3.new(0,3,0)
1476
naeeym2.Adornee = char.Head
1477
naeeym2.Name = "TalkingBillBoard"
1478
local tecks2 = Instance.new("TextLabel",naeeym2)
1479
tecks2.BackgroundTransparency = 1
1480
tecks2.BorderSizePixel = 0
1481
tecks2.Text = ""
1482
tecks2.Font = "Fantasy"
1483
tecks2.TextSize = 30
1484
tecks2.TextStrokeTransparency = 0
1485
tecks2.TextColor3 = Color3.new(.6,0,0)
1486
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
1487
tecks2.Size = UDim2.new(1,0,0.5,0)
1488
local tecks3 = Instance.new("TextLabel",naeeym2)
1489
tecks3.BackgroundTransparency = 1
1490
tecks3.BorderSizePixel = 0
1491
tecks3.Text = ""
1492
tecks3.Font = "Fantasy"
1493
tecks3.TextSize = 30
1494
tecks3.TextStrokeTransparency = 0
1495
tecks3.TextColor3 = Color3.new(0,0,0)
1496
tecks3.TextStrokeColor3 = Color3.new(1,1,1)
1497
tecks3.Size = UDim2.new(1,0,0.5,0)
1498
for i = 1,string.len(text),1 do
1499
tecks2.Text = string.sub(text,1,i)
1500
tecks3.Text = string.sub(text,1,i)
1501
tecks3.Text = string.sub(text,1,i)
1502
talksound:Play()
1503
wait(0.01)
1504
end
1505
wait(2)
1506
for i = 1, 50 do
1507
swait()
1508
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
1509
tecks2.Rotation = tecks2.Rotation - .8
1510
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
1511
tecks2.TextTransparency = tecks2.TextTransparency + .04
1512
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
1513
tecks3.Rotation = tecks2.Rotation + .8
1514
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
1515
tecks3.TextTransparency = tecks2.TextTransparency + .04
1516
end
1517
naeeym2:Destroy()
1518
end)
1519
chat()
1520
end
1521
function onChatted(msg)
1522
chatfunc(msg)
1523
end
1524
plr.Chatted:connect(onChatted)
1525
wait(2)
1526
chatfunc("It´s a beatefule night in void..")
1527
wait(2)
1528
chatfunc("Black is rising...")
1529
wait(2)
1530
chatfunc("Dream!Sans is dying....")
1531
wait(2)
1532
chatfunc("On days like these... Chara like you...")
1533
wait(2)
1534
chatfunc("Should be erasing in hell.")
1535
wait(0.5)
1536
char.Humanoid.Name = "Sans"
1537
1538
--chat
1539
1540
function Blast(AAA)
1541
	if AAA == "f" then
1542
		local chatmath = math.random(1,3)
1543
		if chatmath == 1 then
1544
			chatfunc("Gaster Blaster!")
1545
		end
1546
		if chatmath == 2 then
1547
			chatfunc("This is what you get for killing everybody.")
1548
		end
1549
		if chatmath == 3 then
1550
			chatfunc("Look, I gave up trying to go back a long time ago.")
1551
		end
1552
		local gasterblaster = Instance.new("Part",char.Torso)
1553
		gasterblaster.Size = Vector3.new(7, 16, 4)
1554
		gasterblaster.CanCollide = false
1555
		local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
1556
		gasterblastermesh.MeshId = "rbxassetid://431908407"
1557
		gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
1558
		local gasterblastertexture = Instance.new("Decal",gasterblaster)
1559
		gasterblastertexture.Face = "Back"
1560
		gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
1561
		local weeld = Instance.new("Weld",gasterblaster)
1562
		weeld.Part0 = gasterblaster
1563
		weeld.Part1 = char.Torso
1564
		weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
1565
		blastsound:Play()
1566
		char.Head.Anchored = true
1567
		wait(1)
1568
		local blast = Instance.new("Part",gasterblaster)
1569
		blast.Size = Vector3.new(18.07, 16.36, 73.54)
1570
		blast.Transparency = 0.7
1571
		blast.Material = "Neon"
1572
		blast.Color = Color3.new(1,1,1)
1573
		blast.CanCollide = true
1574
		local blastweld = Instance.new("Weld",blast)
1575
		blastweld.Part0 = blast
1576
		blastweld.Part1 = gasterblaster
1577
		blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1578
		blast.Touched:connect(function(part)
1579
			part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
1580
        end)
1581
		wait(2)
1582
		char.Head.Anchored = false
1583
		blast:Destroy()
1584
		gasterblaster:Destroy()
1585
	end
1586
end
1587
mouse.KeyDown:connect(Blast)