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