View difference between Paste ID: fygnEyFG and 3PsmjEaY
SHOW: | | - or go back to the newest paste.
1-
--whitelist--
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-
then
3+
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4-
-- friend list
4+
local RealPlayer = Player
5-
print([[
5+
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6-
___________________________________
6+
--------------------------------------------------------------------
7
no_anim = false
8-
Whitelist system
8+
9-
Build 0001
9+
10-
1x1x1x1IAMbck
10+
11
aiming_anim = false
12-
___________________________________
12+
13-
]])
13+
14
bg = Instance.new("BodyGyro",root)
15-
function checkfriendlist(model)
15+
16-
local friend = true
16+
17-
local target = nil
17+
18-
if model.ClassName == "Player" then
18+
19-
target = model
19+
20
  if value ~= nil and value ~= 0 then
21-
target = game:GetService("Players"):GetPlayerFromCharacter(model)
21+
22
     rs:wait()
23-
if target ~= nil then
23+
24-
if target:IsFriendsWith(153566520) then friend = true end
24+
25
	rs:wait()
26-
return friend
26+
27
end
28
29-
if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
29+
30-
warn("You're not whitelisted")
30+
31-
--wait(1)
31+
32-
--error("Script has been stopped.")
32+
33
if id == "Stop" then
34
if not torso:FindFirstChild("MusicRuin") then
35-
warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
35+
36
end
37
soundz:Stop()
38-
while true do
38+
39-
wait()
39+
40-
local blind = Instance.new('ScreenGui')
40+
41-
local user = game.Players.LocalPlayer
41+
42-
blind.Parent = user.PlayerGui
42+
43-
local scr = Instance.new('TextLabel')
43+
44-
scr.Parent = blind
44+
45-
scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." "
45+
46-
scr.TextScaled = true
46+
47-
scr.Font = Enum.Font.Arial
47+
48-
scr.TextColor = BrickColor.new(1001)
48+
49-
scr.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
49+
50-
scr.BorderColor3 = Color3.new(0, 0, 0)
50+
51-
scr.Position = UDim2.new(0, 0, 0, 0)
51+
52-
scr.Size = UDim2.new(1, 1, 1, 1)
52+
53
54
----------------------------------------------------------------------------
55
56-
--whitelist--
56+
57
  return a + (b - a)*t
58-
Player = game:GetService("Players").LocalPlayer
58+
59-
PlayerGui = Player.PlayerGui
59+
60-
Cam = workspace.CurrentCamera
60+
61-
Backpack = Player.Backpack
61+
62-
Character = Player.Character
62+
63-
char = Player.Character
63+
64-
Humanoid = Character.Humanoid
64+
65-
Mouse = Player:GetMouse()
65+
66-
RootPart = Character["HumanoidRootPart"]
66+
67-
Torso = Character["Torso"]
67+
68-
Head = Character["Head"]
68+
69-
RightArm = Character["Right Arm"]
69+
70-
LeftArm = Character["Left Arm"]
70+
71-
RightLeg = Character["Right Leg"]
71+
72-
LeftLeg = Character["Left Leg"]
72+
73-
RootJoint = RootPart["RootJoint"]
73+
74-
Neck = Torso["Neck"]
74+
75-
RightShoulder = Torso["Right Shoulder"]
75+
76-
LeftShoulder = Torso["Left Shoulder"]
76+
77-
RightHip = Torso["Right Hip"]
77+
78-
LeftHip = Torso["Left Hip"]
78+
79
    return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
80-
local Orin = "http://www.roblox.com/asset/?id=7074786"
80+
81-
Head.face.Texture = Orin
81+
82-
function weld(a, b, acf)
82+
83-
	local w = Instance.new("Weld", a)
83+
84-
	w.Part0 = a
84+
85-
	w.Part1 = b
85+
86-
	w.C0 = acf
86+
87
  local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
88-
local righteyebrickcolor = "Toothpaste"
88+
89-
local reye = Instance.new("Part", char)
89+
90-
reye.CanCollide = false
90+
91-
reye.BrickColor = BrickColor.new(righteyebrickcolor)
91+
92-
reye.Material = "Neon"
92+
93-
reye.Size = Vector3.new(.25,.35,.15)
93+
94-
weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
94+
95-
m1 = Instance.new("SpecialMesh", reye)
95+
96-
m1.MeshType = "Sphere"
96+
97-
m1.Scale = Vector3.new(0.9,0.9,0.9)
97+
98-
reye.Locked = true
98+
99-
reye.Name = "re"
99+
100
101
----------------------------------------------------------------------------
102
103
function findAllNearestTorso(pos,dist)
104-
local p = game:GetService("Players").LocalPlayer
104+
105-
local plr = game:GetService("Players").LocalPlayer
105+
106-
local player = game:GetService("Players").LocalPlayer
106+
107-
local char = p.Character
107+
108-
local mouse = p:GetMouse()
108+
109-
local larm = char:WaitForChild("Left Arm")
109+
110-
local rarm = char:WaitForChild("Right Arm")
110+
111-
local lleg = char:WaitForChild("Left Leg")
111+
112-
local rleg = char:WaitForChild("Right Leg")
112+
113-
local hed = char:WaitForChild("Head")
113+
114-
local torso = char:WaitForChild("Torso")
114+
115-
local root = char:WaitForChild("HumanoidRootPart")
115+
116-
local hum = char:FindFirstChildOfClass("Humanoid")
116+
117-
local debris = game:GetService("Debris")
117+
118-
local run = game:GetService("RunService")
118+
119-
local rs = run.RenderStepped
119+
120-
local cam = workspace.CurrentCamera
120+
121-
local movement = 4
121+
122-
local change = 0.4
122+
123-
local DebrisModel = Instance.new("Model",char)
123+
124-
local stealth = false
124+
125-
local debounce = false
125+
126-
hum.MaxHealth = 50000
126+
127-
hum.Health = hum.MaxHealth
127+
128-
themeid = 175635113
128+
129-
themepitch = 1.4
129+
130-
main = {r = 0;g = 100;b = 255;v = 1}
130+
131-
if p:FindFirstChild("rcolor") then main.r = p.rcolor.Value else local string = Instance.new("StringValue",p) string.Name = "rcolor" end
131+
132-
if p:FindFirstChild("gcolor") then main.g = p.gcolor.Value else local string = Instance.new("StringValue",p) string.Name = "gcolor" end
132+
133-
if p:FindFirstChild("bcolor") then main.b = p.bcolor.Value else local string = Instance.new("StringValue",p) string.Name = "bcolor" end
133+
134-
if p:FindFirstChild("vcolor") then main.v = p.vcolor.Value else local string = Instance.new("StringValue",p) string.Name = "vcolor" end
134+
135-
if p:FindFirstChild("idtheme") then themeid = p.idtheme.Value else local string = Instance.new("StringValue",p) string.Name = "idtheme" end
135+
136-
if p:FindFirstChild("pitchtheme") then themepitch = p.pitchtheme.Value else local string = Instance.new("StringValue",p) string.Name = "pitchtheme" end
136+
137-
pr = p:FindFirstChild("rcolor")
137+
138-
pg = p:FindFirstChild("gcolor")
138+
139-
pb = p:FindFirstChild("bcolor")
139+
140-
pv = p:FindFirstChild("vcolor")
140+
141-
idth = p:FindFirstChild("idtheme")
141+
142-
pith = p:FindFirstChild("pitchtheme")
142+
143
function computeDirection(vec)
144-
explosionid = {262562442,144699494,539294959,1388740053}
144+
145-
--919941001
145+
146-
Prefix = "/"
146+
147-
p.Chatted:connect(function(msg)
147+
148
149-
    if msg:lower():sub(1,#Prefix+#'color r ')==Prefix..'color r ' then
149+
150-
    local v = tonumber(msg:sub(#Prefix+#'color r '+1))
150+
151-
    main.r = v
151+
152-
    elseif msg:lower():sub(1,#Prefix+#'color g ')==Prefix..'color g ' then
152+
153-
    local v = tonumber(msg:sub(#Prefix+#'color g '+1))
153+
154-
    main.g = v
154+
155-
    elseif msg:lower():sub(1,#Prefix+#'color b ')==Prefix..'color b ' then
155+
156-
    local v = tonumber(msg:sub(#Prefix+#'color b '+1))
156+
157-
    main.b = v
157+
158-
    elseif msg:lower():sub(1,#Prefix+#'color v ')==Prefix..'color v ' then
158+
159-
    local v = tonumber(msg:sub(#Prefix+#'color v '+1))
159+
160-
    if v > 1 then main.v = 1 elseif v < -1 then main.v = -1 else main.v = v end
160+
161
  return wld
162-
    elseif msg:lower():sub(1,#Prefix+#'theme ')==Prefix..'theme ' then
162+
163-
    local v = tonumber(msg:sub(#Prefix+#'theme '+1))
163+
164-
    themeid = v
164+
165-
    music(themeid,themepitch)
165+
166
167-
    elseif msg:lower():sub(1,#Prefix+#'pitch ')==Prefix..'pitch ' then
167+
168-
    local v = tonumber(msg:sub(#Prefix+#'pitch '+1))
168+
169-
    themepitch = v
169+
170-
    music(themeid,themepitch)
170+
171
			if (v:IsA("BasePart")) then
172-
    elseif msg:lower():sub(1,#Prefix+#'prefix ')==Prefix..'prefix ' then
172+
173-
    local v = msg:sub(#Prefix+#'prefix '+1)
173+
174-
    Prefix = v
174+
175
					w.Part0,w.Part1 = last,v
176-
    elseif msg:lower():sub(1,#Prefix+#'reset')==Prefix..'reset' then
176+
177-
    main.r = 0
177+
178-
    main.g = 100
178+
179-
    main.b = 255
179+
180-
    main.v = 1
180+
181-
    themeid = 175635113
181+
182-
    themepitch = 1
182+
183-
    music(themeid,themepitch)
183+
184
		end
185
	end
186
	scan(model)
187
	for _,v in pairs(parts) do
188
		v.Anchored = false
189
		v.Locked = true
190
	end
191
end
192
193
----------------------------------------------------------------------------
194
195
function sound(id,position,vol,pitch,dist,start,finish)
196
  coroutine.resume(coroutine.create(function()
197
198
  local part = Instance.new("Part",DebrisModel)
199
  part.Anchored = true
200
  part.Position = position
201
  part.Size = Vector3.new(0,0,0)
202
  part.CanCollide = false
203
  part.Transparency = 1
204
205
  soundasd = Instance.new("Sound",part)
206
  
207
  soundasd.SoundId = "rbxassetid://"..id
208
  
209
  if vol ~= nil then
210
    soundasd.Volume = vol
211
  end
212
213
  if pitch ~= nil then
214
    soundasd.PlaybackSpeed = pitch
215
  end
216
  
217
  if dist ~= nil then
218
    soundasd.MaxDistance = dist*5
219
    soundasd.EmitterSize = dist/5
220
  end
221
222
  delay(0.5,function() debris:AddItem(part,soundasd.TimeLength+3) end)
223
  
224
  soundasd:Play()
225
  
226
  end))
227
  return soundasd
228
end
229
230
function createsound(id,parent)
231
232
  local soundz = Instance.new("Sound",parent)
233
234
  soundz.SoundId = "rbxassetid://"..id
235
236
  return soundz
237
238
end
239
240
function playsound(sond,vol,pitch,start)
241
  
242
  if vol ~= nil then
243
    sond.Volume = vol
244
  end
245
246
  if pitch ~= nil then
247
    sond.PlaybackSpeed = pitch
248
  end
249
 
250
  if start ~= nil then
251
    sond.TimePosition = start
252
  end
253
254
  sond:Play()
255
  
256
end
257
258
----------------------------------------------------------------------------
259
eColors={"Really red","Really black"}
260
function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
261
    local magz = (Part0 - Part1).magnitude
262
    local curpos = Part0
263
    local trz = {-Offset,Offset} 
264
    for i=1,Times do
265
        local li = Instance.new("Part", DebrisModel)
266
        li.TopSurface =0
267
        li.Material = Enum.Material.Neon
268
        li.BottomSurface = 0
269
        li.Anchored = true
270
        li.Locked = true
271
        li.Transparency = Trans or 0.4
272
        li.BrickColor = BrickColor.new(Color)
273
        li.formFactor = "Custom"
274
        li.CanCollide = false
275
        li.Size = Vector3.new(Thickness,Thickness,magz/Times)
276
        local lim = Instance.new("BlockMesh",li)
277
        local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
278
        local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
279
        if Times == i then
280
        local magz2 = (curpos - Part1).magnitude
281
        li.Size = Vector3.new(Thickness,Thickness,magz2)
282
        li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
283
        else
284
        li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
285
        end
286
        curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
287
        li.Name = "LIGHTNING"
288
    end
289
end
290
291
----------------------------------------------------------------------------
292
293
local HBill = Instance.new("BillboardGui",hed)
294
local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
295
local HName = Instance.new("TextLabel")
296
HBill.Size = UDim2.new(15,0,2.2,0)
297
HBill.StudsOffset = Vector3.new(3.675,1.2,0)
298
HBill.AlwaysOnTop = true
299
HBill.Enabled = true
300
HMain.BackgroundColor3 = Color3.new(0, 0, 0)
301
HMain.BackgroundTransparency = 1
302
HMain.Size = UDim2.new(.5,0,.2,0)
303
HName.Parent = HMain
304
HName.BackgroundTransparency = 1
305
HName.BackgroundColor3 = Color3.new(244,255,25)
306
HName.BorderColor3 = Color3.new(244,255,25)
307
HName.BorderSizePixel = 2
308
HName.Size = UDim2.new(1,0,.75,0)
309
HName.Font = "Code"
310
HName.Text = [[( Dream!Tale )]]
311
HName.TextScaled = true
312
HName.TextColor3 = Color3.new(244,255,25)
313
HName.TextStrokeColor3 = Color3.new(0.1,0.1,0.1)
314
HName.TextStrokeTransparency = 0
315
HName.TextYAlignment = "Bottom"
316
317
local HBill = Instance.new("BillboardGui",hed)
318
local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
319
local HName = Instance.new("TextLabel")
320
HBill.Size = UDim2.new(15,0,2.2,0)
321
HBill.StudsOffset = Vector3.new(3.675,2,0)
322
HBill.AlwaysOnTop = true
323
HBill.Enabled = true
324
HMain.BackgroundColor3 = Color3.new(0, 0, 0)
325
HMain.BackgroundTransparency = 1
326
HMain.Size = UDim2.new(.5,0,.5,0)
327
HName.Parent = HMain
328
HName.BackgroundTransparency = 1
329
HName.BackgroundColor3 = Color3.new(0,0,0)
330
HName.BorderColor3 = Color3.new(0,0,0)
331
HName.BorderSizePixel = 2
332
HName.Size = UDim2.new(1,0,.75,0)
333
HName.Font = "Antique"
334
HName.Text = [[Nightmare!Sans]]
335
HName.TextScaled = true
336
HName.TextColor3 = Color3.new(0,0,0)
337
HName.TextStrokeColor3 = Color3.new(0,0,0)
338
HName.TextStrokeTransparency = 0
339
HName.TextYAlignment = "Bottom"
340
341
function bigboomrektxd()
342
coroutine.resume(coroutine.create(function()
343
local magnitude = nil
344
local Position = nil
345
if animid == 0 then
346
Position = larm.Position
347
else
348
Position = rarm.Position
349
end
350
--sound(743499393,Position,10,math.random(6,8)/10)
351
sound(440145223,Position,10,math.random(10,12)/10,50)
352
353
local Part1 = Instance.new("Part")
354
local mesh2 = Instance.new("SpecialMesh",Part1)
355
mesh2.MeshId = "rbxassetid://559831844"
356
mesh2.Scale = Vector3.new(0,0,0.4)
357
Part1.Material = Enum.Material.Neon
358
Part1.CanCollide = false
359
Part1.Color = Color3.fromHSV(0,0,main.v)
360
Part1.Parent = DebrisModel
361
Part1.Size = Vector3.new(0,0,0)
362
Part1.Anchored = true
363
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
364
Part1.Name = "EXPLOSION2"
365
366
local Part0 = Instance.new("Part",DebrisModel)
367
local PointLight2 = Instance.new("PointLight")
368
Part0.Name = "Bullet"
369
Part0.Material = Enum.Material.Neon
370
Part0.Color = Color3.fromHSV(0,0,main.v)
371
Part0.Anchored = false
372
Part0.Size = Vector3.new(5, 5, 5)
373
local mesh = Instance.new("SpecialMesh",Part0)
374
mesh.MeshType = Enum.MeshType.Sphere
375
local bforce = Instance.new("BodyForce",Part0)
376
bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
377
Part0.CanCollide = false
378
PointLight2.Parent = Part0
379
PointLight2.Color = Part0.Color
380
local Target = mouse.Hit.p
381
local direction = Target - Position
382
local direction = computeDirection(direction)
383
local pos = Position + (direction * 2) 
384
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
385
Part0.Velocity = direction * 60
386
local asd = nil
387
local loop = nil
388
delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
389
loop = rs:connect(function()
390
local asdf = math.random(500,1000)/1000
391
local Part1 = Instance.new("Part")
392
local mesh2 = Instance.new("SpecialMesh",Part1)
393
mesh2.MeshType = Enum.MeshType.Sphere
394
Part1.Material = Enum.Material.Neon
395
Part1.CanCollide = false
396
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
397
Part1.Parent = DebrisModel
398
Part1.Size = Part0.Size + Vector3.new(asdf,asdf,asdf)
399
Part1.Anchored = true
400
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-1000,1000)/750,math.random(-1000,1000)/750,math.random(-1000,1000)/750))
401
Part1.Name = "SMOKE"
402
end)
403
asd = Part0.Touched:connect(function(ht)
404
local hit=ht.Parent
405
if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
406
asd:disconnect()
407
loop:disconnect()
408
Part0:Destroy()
409
410
sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(6,9)/10,200)
411
for i,v in pairs(findAllNearestTorso(Part0.Position,50)) do
412
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
413
v:Destroy()
414
else
415
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(50,60)/10))
416
end
417
local Position = Part0.Position
418
local Target = v.Position
419
local direction = Target - Position
420
local direction = computeDirection(direction)
421
local bv = Instance.new("BodyVelocity",v)
422
bv.Velocity = direction * (50 - ((Position - Target).magnitude/2))
423
debris:AddItem(bv,1)
424
end
425
for i=1,14,2 do for x=1,math.random(0,1) do rs:wait() end
426
for z=1,math.random(2,3) do
427
local asdf = math.random(-5,5)*10-(i/20)*8
428
local Part1 = Instance.new("Part")
429
local mesh2 = Instance.new("SpecialMesh",Part1)
430
mesh2.MeshType = Enum.MeshType.Sphere
431
mesh2.Scale = Vector3.new(0,0,0)
432
Part1.Material = Enum.Material.Neon
433
Part1.CanCollide = false
434
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
435
Part1.Parent = DebrisModel
436
Part1.Size = Vector3.new(asdf,asdf,asdf)
437
Part1.Anchored = true
438
local a = i*0.5
439
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-10,10),math.random(-2,2)*a))
440
Part1.Name = "EXPLOSION"
441
end
442
end
443
444
end
445
end)
446
end))
447
end
448
449
holdclick=false
450
451
mouse.Button1Down:connect(function()
452
if debounce == false then
453
if animid == 0 then
454
animid = 1
455
else
456
animid = 0
457
end
458
debounce = true
459
holdclick = true
460
aiming_anim = true
461
wait(0.2)
462
repeat 
463
rs:wait()
464
timer = 150
465
until holdclick == false
466
bigboomrektxd()
467
468
local Position = mouse.Hit.p
469
local Target = root.Position
470
local direction = Target - Position
471
local direction = computeDirection(direction)
472
root.Velocity = direction * 150
473
474
aiming_anim = false
475
delay(0.3,function() debounce = false end)
476
end
477
end)
478
479
holdclick=false
480
end)
481
482
function dashasdf()
483
debounce = true
484
485
canjump = false
486
attack = true
487
488
for i,v in pairs(char:GetChildren()) do
489
if v ~= root then
490
if v:IsA("Part") then
491
v.Transparency = 1
492
elseif v:IsA("Accoutrement") then
493
v:FindFirstChildOfClass("Part").Transparency = 1
494
end
495
end
496
end
497
498
local tempattachment = Instance.new("Attachment",root)
499
tempattachment.Position = Vector3.new(0,0,-4)
500
501
for i=1,20 do rs:wait()
502
root.Velocity = Vector3.new(0,0,0)
503
root.CFrame = CFrame.new(tempattachment.WorldPosition) * CFrame.Angles(math.rad(root.Orientation.X),math.rad(root.Orientation.Y),math.rad(root.Orientation.Z))
504
local asdf = math.random(500,1000)/100
505
local Part1 = Instance.new("Part")
506
local mesh2 = Instance.new("SpecialMesh",Part1)
507
mesh2.MeshType = Enum.MeshType.Sphere
508
Part1.Material = Enum.Material.Neon
509
Part1.CanCollide = false
510
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
511
Part1.Parent = DebrisModel
512
Part1.Size = Vector3.new(asdf,asdf,asdf)
513
Part1.Anchored = true
514
Part1.CFrame = CFrame.new(root.Position + Vector3.new(math.random(-1000,1000)/500,math.random(-1000,1000)/500,math.random(-1000,1000)/500))
515
Part1.Name = "SMOKE"
516
end
517
518
tempattachment:Destroy()
519
520
for i,v in pairs(char:GetChildren()) do
521
if v ~= root then
522
if v:IsA("Part") then
523
v.Transparency = 0
524
elseif v:IsA("Accoutrement") then
525
v:FindFirstChildOfClass("Part").Transparency = 0
526
end
527
end
528
end
529
530
canjump = true
531
attack = false
532
533
delay(0.1,function() debounce = false end)
534
end
535
536
function laz0r()
537
538
local Position = nil
539
if animid == 0 then
540
Position = larm.Position
541
else
542
Position = rarm.Position
543
end
544
545
local Part1 = Instance.new("Part")
546
local mesh2 = Instance.new("SpecialMesh",Part1)
547
mesh2.MeshId = "rbxassetid://559831844"
548
mesh2.Scale = Vector3.new(0,0,0.4)
549
Part1.Material = Enum.Material.Neon
550
Part1.CanCollide = false
551
Part1.Color = Color3.fromHSV(0,0,main.v)
552
Part1.Parent = DebrisModel
553
Part1.Size = Vector3.new(0,0,0)
554
Part1.Anchored = true
555
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
556
Part1.Name = "EXPLOSION3"
557
558
local Part0 = Instance.new("Part",DebrisModel)
559
Part0.Name = "Bullet"
560
Part0.Material = Enum.Material.Neon
561
Part0.Color = Color3.fromHSV(0,0,main.v)
562
Part0.Anchored = true
563
local mesh = Instance.new("SpecialMesh",Part0)
564
mesh.MeshType = Enum.MeshType.Sphere
565
Part0.CanCollide = false
566
local Target = mouse.Hit.p
567
local direction = Target - Position
568
local direction = computeDirection(direction)
569
local ray = Ray.new(Position, (Target-Position).unit*1048)
570
local part, endPoint = workspace:FindPartOnRay(ray, char)
571
Part0.Size = Vector3.new(5,1,5)
572
mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
573
local pos = Position + (direction * (mesh.Scale.Y/2))
574
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
575
576
clashpart = Instance.new("Part",DebrisModel)
577
clashpart.Size = Vector3.new(50,50,50)
578
clashpart.CanCollide = false
579
clashpart.Anchored = true
580
clashpart.Transparency = 1
581
clashpart.Color = main_color
582
clashpart.Name = "StarLightClash"
583
clashpart.CFrame = CFrame.new(endPoint, root.Position)
584
585
sound(1177475476,Position,10,math.random(5,6)/10,300)
586
587
local z = 10
588
for i = 1,100 do rs:wait()
589
if animid == 0 then
590
Position = larm.Position
591
else
592
Position = rarm.Position
593
end
594
local Target = mouse.Hit.p
595
local direction = Target - Position
596
local direction = computeDirection(direction)
597
local ray = Ray.new(Position, (Target-Position).unit*1048)
598
local part, endPoint = workspace:FindPartOnRay(ray, char)
599
Part0.Size = Vector3.new(5-((i/100)*5),1,5-((i/100)*5))
600
mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude,1)
601
mesh.Offset = Vector3.new(math.random(-10000,10000)/20000,math.random(-10000,10000)/20000,0)
602
local pos = Position + (direction * (mesh.Scale.Y/2))
603
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
604
clashpart.CFrame = CFrame.new(endPoint, root.Position)
605
606
local Position = mouse.Hit.p
607
local Target = root.Position
608
local direction = Target - Position
609
local direction = computeDirection(direction)
610
root.Velocity = direction * 5
611
612
if i >= z then z = i + 10 sound(explosionid[math.random(1,#explosionid)],endPoint,10,math.random(6,9)/10,200) end
613
614
Part1 = Part0:Clone()
615
Part1.Parent = DebrisModel
616
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
617
Part1.Name = "SMOKE2"
618
619
if part ~= nil then
620
if part.Name == "StarLightClash" then
621
local asdf = math.random(0,5)*20
622
local Part1 = Instance.new("Part")
623
local mesh2 = Instance.new("SpecialMesh",Part1)
624
mesh2.MeshType = Enum.MeshType.Sphere
625
mesh2.Scale = Vector3.new(0,0,0)
626
Part1.Material = Enum.Material.Neon
627
Part1.CanCollide = false
628
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)
629
Part1.Parent = DebrisModel
630
Part1.Size = Vector3.new(asdf,asdf,asdf)
631
Part1.Anchored = true
632
local a = 1.5
633
Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
634
Part1.Name = "EXPLOSION"
635
else
636
local asdf = math.random(0,5)*10
637
local Part1 = Instance.new("Part")
638
local mesh2 = Instance.new("SpecialMesh",Part1)
639
mesh2.MeshType = Enum.MeshType.Sphere
640
mesh2.Scale = Vector3.new(0,0,0)
641
Part1.Material = Enum.Material.Neon
642
Part1.CanCollide = false
643
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
644
Part1.Parent = DebrisModel
645
Part1.Size = Vector3.new(asdf,asdf,asdf)
646
Part1.Anchored = true
647
local a = 1.5
648
Part1.CFrame = CFrame.new(endPoint + Vector3.new(math.random(-2,2)*a,math.random(-4,4),math.random(-2,2)*a))
649
Part1.Name = "EXPLOSION"
650
end
651
end
652
653
for i,v in pairs(findAllNearestTorso(endPoint,50)) do
654
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
655
v:Destroy()
656
else
657
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(120,180))
658
end
659
local Position = mouse.Hit.p
660
local Target = v.Position
661-
mouse.Button1Up:connect(function()
661+
662
local direction = computeDirection(direction)
663
local bv = Instance.new("BodyVelocity",v)
664
bv.Velocity = direction * (10 - ((Position - Target).magnitude/2))
665
debris:AddItem(bv,1)
666
end
667
668
end
669
clashpart:Destroy()
670
Part0:Destroy()
671
wait(0.3)
672
aiming_anim = false
673
delay(0.3,function() debounce = false end)
674
end
675
676
function nukewelpo()
677
coroutine.resume(coroutine.create(function()
678
local magnitude = nil
679
local Position = nil
680
if animid == 0 then
681
Position = larm.Position
682
else
683
Position = rarm.Position
684
end
685
--sound(743499393,Position,10,math.random(6,8)/10)
686
sound(440145223,Position,10,math.random(4,5)/10,100)
687
688
local Part1 = Instance.new("Part")
689
local mesh2 = Instance.new("SpecialMesh",Part1)
690
mesh2.MeshId = "rbxassetid://559831844"
691
mesh2.Scale = Vector3.new(0,0,0.4)
692
Part1.Material = Enum.Material.Neon
693
Part1.CanCollide = false
694
Part1.Color = Color3.fromHSV(0,0,main.v)
695
Part1.Parent = DebrisModel
696
Part1.Size = Vector3.new(0,0,0)
697
Part1.Anchored = true
698
Part1.CFrame = CFrame.new(Position,mouse.Hit.p)
699
Part1.Name = "EXPLOSION3"
700
701
local Part0 = Instance.new("Part",DebrisModel)
702
local PointLight2 = Instance.new("PointLight")
703
Part0.Name = "Bullet"
704
Part0.Material = Enum.Material.Neon
705
Part0.Color = Color3.fromHSV(0,0,main.v)
706
Part0.Anchored = false
707
Part0.Size = Vector3.new(5, 5, 5)
708
local mesh = Instance.new("SpecialMesh",Part0)
709
mesh.MeshType = Enum.MeshType.Sphere
710
mesh.Scale = Vector3.new(3,3,3)
711
local bforce = Instance.new("BodyForce",Part0)
712
bforce.force = Vector3.new(0, ((bforce.Parent:getMass())*workspace.Gravity), 0)
713
Part0.CanCollide = false
714
PointLight2.Parent = Part0
715
PointLight2.Color = Part0.Color
716
local Target = mouse.Hit.p
717
local direction = Target - Position
718
local direction = computeDirection(direction)
719
local pos = Position + (direction * 2) 
720
Part0.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
721
Part0.Velocity = direction * 150
722
local asd = nil
723
local loop = nil
724
delay(5, function() Part0:Destroy() loop:disconnect() asd:disconnect() end)
725
loop = rs:connect(function()
726
local asdf = math.random(500,1000)/1000
727
local Part1 = Instance.new("Part")
728
local mesh2 = Instance.new("SpecialMesh",Part1)
729
mesh2.MeshType = Enum.MeshType.Sphere
730
Part1.Material = Enum.Material.Neon
731
Part1.CanCollide = false
732
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
733
Part1.Parent = DebrisModel
734
Part1.Size = (Part0.Size*3) + Vector3.new(asdf,asdf,asdf)
735
Part1.Anchored = true
736
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-3000,3000)/750,math.random(-3000,3000)/750,math.random(-3000,3000)/750))
737
Part1.Name = "SMOKE"
738
end)
739
asd = Part0.Touched:connect(function(ht)
740
local hit=ht.Parent
741
if checkIfNotPlayer(ht) == true and ht.CanCollide == true then
742
asd:disconnect()
743
loop:disconnect()
744
Part0:Destroy()
745
746
sound(explosionid[math.random(1,#explosionid)],Part0.Position,10,math.random(3,5)/10,500)
747
for i,v in pairs(findAllNearestTorso(Part0.Position,160)) do
748
if v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth >= 9e+99 then
749
v:Destroy()
750
else
751
v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(math.random(20,30)/10))
752
end
753
local Position = Part0.Position
754
local Target = v.Position
755
local direction = Target - Position
756
local direction = computeDirection(direction)
757
local bv = Instance.new("BodyVelocity",v)
758
bv.Velocity = direction * (120 - ((Position - Target).magnitude/2))
759
debris:AddItem(bv,1)
760
end
761
for i=1,10,0.5 do for x=1,math.random(0,1) do rs:wait() end
762
for z=1,math.random(2,3) do
763
local asdf = math.random(-5,5)*10-(i/20)*12
764
local Part1 = Instance.new("Part")
765
local mesh2 = Instance.new("SpecialMesh",Part1)
766
mesh2.MeshType = Enum.MeshType.Sphere
767
mesh2.Scale = Vector3.new(0,0,0)
768
Part1.Material = Enum.Material.Neon
769
Part1.CanCollide = false
770
Part1.Color = Color3.fromHSV(Color3.toHSV(main_color),math.random(0,10000)/10000,main.v)
771
Part1.Parent = DebrisModel
772
Part1.Size = Vector3.new(asdf,asdf,asdf)
773
Part1.Anchored = true
774
local a = i*5
775
Part1.CFrame = CFrame.new(Part0.Position + Vector3.new(math.random(-2,2)*a,math.random(-30,30),math.random(-2,2)*a))
776
Part1.Name = "EXPLOSION4"
777
end
778
end
779
780
end
781
end)
782
end))
783
end
784
785
holdq = false
786
holdr = false
787
cooldownult = false
788
789
mouse.KeyDown:connect(function(key)
790
if debounce == false then
791
if key == "e" then
792
dashasdf()
793
elseif key == "r" and cooldownult == false then
794
cooldownult = true
795
if animid == 0 then
796
animid = 1
797
else
798
animid = 0
799
end
800
debounce = true
801
holdr = true
802
aiming_anim = true
803
wait(0.2)
804
repeat 
805
rs:wait()
806
timer = 150
807
until holdr == false
808
nukewelpo()
809
810
local Position = mouse.Hit.p
811
local Target = root.Position
812
local direction = Target - Position
813
local direction = computeDirection(direction)
814
root.Velocity = direction * 300
815
816
aiming_anim = false
817
delay(5,function() cooldownult = false end)
818
delay(1,function() debounce = false end)
819
820
elseif key == "q" then
821
debounce = true
822
if animid == 0 then
823
animid = 1
824
else
825
animid = 0
826
end
827
holdq = true
828
attack = true
829
aiming_anim = true
830
repeat rs:wait() timer = 150 until holdq == false
831
laz0r()
832
attack = false
833
end
834
end
835
end)
836
837
mouse.KeyUp:connect(function(key)
838
if key == "q" then
839
holdq = false
840
elseif key == "r" then
841
holdr = false
842
end
843
end)
844
845
----------------------------------------------------------------------------
846
music(themeid,themepitch)
847
velocityYFall=0
848
velocityYFall2=0
849
velocityYFall3=0
850
velocityYFall4=0
851
neckrotY=0
852
neckrotY2=0
853
torsorotY=0
854
torsorotY2=0
855
torsoY=0
856
torsoY2=0
857
sine = 0
858
newWeld(torso, larm, -1.5, 0.5, 0)
859
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
860
newWeld(torso, rarm, 1.5, 0.5, 0)
861
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
862
newWeld(torso, hed, 0, 1.5, 0)
863
newWeld(torso, lleg, -0.5, -1, 0)
864
lleg.Weld.C1 = CFrame.new(0, 1, 0)
865
newWeld(torso, rleg, 0.5, -1, 0)
866
rleg.Weld.C1 = CFrame.new(0, 1, 0)
867
newWeld(root, torso, 0, -1, 0)
868
torso.Weld.C1 = CFrame.new(0, -1, 0)
869
870
rs:connect(function()
871
872
bg.MaxTorque = Vector3.new(0,0,0)
873
874
for i,v in pairs(DebrisModel:GetChildren()) do
875
    
876
877
if v.Name == "EXPLOSION" then
878
local change = 0.04-(v.Transparency*0.02)
879
local vm = v:FindFirstChildOfClass("SpecialMesh")
880
vm.Scale = vm.Scale + Vector3.new(change,change,change)
881
v.Transparency = v.Transparency + 0.02
882
if v.Transparency >= 1 then
883
v:Destroy()
884
end
885
886
elseif v.Name == "EXPLOSION2" then
887
local change = 0.04-(v.Transparency*0.04)
888
local vm = v:FindFirstChildOfClass("SpecialMesh")
889
vm.Scale = vm.Scale + Vector3.new(change,change,0)
890
v.Transparency = v.Transparency + 0.025
891
if v.Transparency >= 1 then
892
v:Destroy()
893
end
894
895
elseif v.Name == "EXPLOSION3" then
896
local change = 0.5-(v.Transparency*0.5)
897
local vm = v:FindFirstChildOfClass("SpecialMesh")
898
vm.Scale = vm.Scale + Vector3.new(change,change,0)
899
v.Transparency = v.Transparency + 0.1
900
if v.Transparency >= 1 then
901
v:Destroy()
902
end
903
904
elseif v.Name == "EXPLOSION4" then
905
local change = 0.15-(v.Transparency*0.125)
906
local vm = v:FindFirstChildOfClass("SpecialMesh")
907
vm.Scale = vm.Scale + Vector3.new(change,change,change)
908
v.Transparency = v.Transparency + 0.01
909
if v.Transparency >= 1 then
910
v:Destroy()
911
end
912
913
elseif v.Name == "SMOKE" then
914
local vm = v:FindFirstChildOfClass("SpecialMesh")
915
vm.Scale = vm.Scale - Vector3.new(0.075,0.075,0.075)
916
if vm.Scale.X <= 0 then
917
v:Destroy()
918
end
919
920
elseif v.Name == "SMOKE2" then
921
local change = 2-(v.Transparency*2)
922
local vm = v:FindFirstChildOfClass("SpecialMesh")
923
local Position = nil
924
if animid == 0 then
925
Position = larm.Position
926
else
927
Position = rarm.Position
928
end
929
local Target = mouse.Hit.p
930
local direction = Target - Position
931
local direction = computeDirection(direction)
932
local ray = Ray.new(Position, (Target-Position).unit*1048)
933
local part, endPoint = workspace:FindPartOnRay(ray, char)
934
vm.Scale = Vector3.new(vm.Scale.X,(Position-endPoint).magnitude,vm.Scale.Z) + Vector3.new(change,0,change)
935
local pos = Position + (direction * (vm.Scale.Y/2))
936
v.CFrame = CFrame.new(pos,  pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
937
vm.Offset = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,0)
938
v.Transparency = v.Transparency + 0.1
939
if v.Transparency >= 1 then
940
v:Destroy()
941
end
942
943
944
elseif v.Name == "LIGHTNING" then
945
local vm = v:FindFirstChildOfClass("BlockMesh")
946
vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0)
947
if vm.Scale.X <= 0 then
948
v:Destroy()
949
end
950
951
end
952
end
953
954
if -root.Velocity.Y/1.5 > 0 and -root.Velocity.Y/1.5 < 160 then
955
velocityYFall = root.Velocity.Y/1.5
956
end
957
if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
958
velocityYFall2 = root.Velocity.Y/180
959
end
960
if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
961
velocityYFall3 = root.Velocity.Y/1.5
962
end
963
if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
964
velocityYFall4 = root.Velocity.Y/1.5
965
end
966
if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
967
neckrotY = root.RotVelocity.Y/6
968
end
969
if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
970
neckrotY2 = root.RotVelocity.Y/8
971
end
972
973
if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
974
torsorotY = root.RotVelocity.Y/6
975
end
976
if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
977
torsorotY2 = root.RotVelocity.Y/8
978
end
979
980
981
torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
982
torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
983
984
if attack == true then
985
hum.WalkSpeed = 1
986
else
987
hum.WalkSpeed = 10
988
end
989
990
if canjump == true then
991
hum.JumpPower = 50
992
else
993
hum.JumpPower = 0
994
end
995
996
local jumped = false
997
local ray1 = Ray.new(root.Position+Vector3.new(1,0,0),Vector3.new(0, -6, 0))
998
local part1, endPoint = workspace:FindPartOnRay(ray1, char)
999
local ray2 = Ray.new(root.Position-Vector3.new(1,0,0),Vector3.new(0, -6, 0))
1000
local part2, endPoint = workspace:FindPartOnRay(ray2, char)
1001
local ray3 = Ray.new(root.Position+Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
1002
local part3, endPoint = workspace:FindPartOnRay(ray3, char)
1003
local ray4 = Ray.new(root.Position-Vector3.new(0,0,0.5),Vector3.new(0, -6, 0))
1004
local part4, endPoint = workspace:FindPartOnRay(ray4, char)
1005
1006
if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
1007
1008
local rlegray = Ray.new(rleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
1009
local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
1010
1011
local llegray = Ray.new(lleg.Position+Vector3.new(0,0.5,0),Vector3.new(0, -1.75, 0))
1012
local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
1013
1014
if no_anim == false then
1015
if hum.Health > 0 then
1016
if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
1017
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)
1018
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-10),0,0),0.1)
1019
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)
1020
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)
1021
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)
1022
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)
1023
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)
1024
elseif jumped == true then
1025
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)
1026
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0),0.1)
1027
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)
1028
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)
1029
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)
1030
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)
1031
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)
1032
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then
1033
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)
1034
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-15),0,0),0.1)
1035
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)
1036
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)
1037
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)
1038
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)
1039
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)
1040
end
1041
for i=1,5 do
1042
if aiming_anim == true then
1043
bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
1044
if jumped == false then
1045
bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
1046
else
1047
bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
1048
end
1049
if animid == 0 then
1050
hed.Weld.C1 =  Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(-80),0),0.4)
1051
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)
1052
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)
1053
else
1054
hed.Weld.C1 =  Lerp(hed.Weld.C1,CFrame.Angles(0,math.rad(80),0),0.4)
1055
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)
1056
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)
1057
end
1058
else
1059
if timer <= 0 then
1060
animid = math.random(0,1)
1061
else
1062
timer = timer - 1
1063
end
1064
end
1065
end
1066
end
1067
end
1068
main_color = Color3.fromRGB(main.r,main.g,main.b)
1069
pr.Value = main.r
1070
pg.Value = main.g
1071
pb.Value = main.b
1072
pv.Value = main.v
1073
idth.Value = themeid
1074
pith.Value = themepitch
1075
HName.TextStrokeColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v/2)
1076
HName.TextColor3 = Color3.fromHSV(Color3.toHSV(main_color),1,main.v)
1077
sine = sine + change
1078
if hum.Health <= 0 then
1079
debounce = true
1080
end
1081
end)
1082
1083
1084
1085
--Extras--
1086
q = char:GetChildren()
1087
        for u = 1, #q do
1088
        if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1089
                q[u]:remove()
1090
                elseif q[u].ClassName == "CharacterMesh" then
1091
                q[u]:remove()
1092
            elseif q[u].ClassName == "ShirtGraphic" then
1093
                q[u]:remove()
1094
    elseif q[u].ClassName == "Shirt" then
1095
        q[u]:Destroy()
1096
elseif q[u].ClassName == "Pants" then
1097
    q[u]:Destroy()
1098
    end
1099
end
1100
local top = Instance.new("Shirt")
1101
top.ShirtTemplate = "rbxassetid://1042097476"
1102
top.Parent = char
1103
local bottom = Instance.new("Pants")
1104
bottom.PantsTemplate = "rbxassetid://1042097548"
1105
bottom.Parent = char
1106
 
1107
local BodyColors =  char:FindFirstChildOfClass"BodyColors"
1108
if BodyColors then
1109
    BodyColors.HeadColor = BrickColor.new"Really black"
1110
    BodyColors.TorsoColor = BrickColor.new"Really black"
1111
    BodyColors.LeftArmColor = BrickColor.new"Really black"
1112
    BodyColors.RightArmColor = BrickColor.new"Really black"
1113
    BodyColors.LeftLegColor = BrickColor.new"Really black"
1114
    BodyColors.RightLegColor = BrickColor.new"Really black"
1115
end
1116
1117
--extras
1118
local talksound = Instance.new("Sound",char.Torso)
1119
talksound.SoundId = "rbxassetid://928210219"
1120
talksound.Volume = 4
1121
local blastsound = Instance.new("Sound",char.Torso)
1122
blastsound.Name = "blast_sound"
1123
blastsound.SoundId = "rbxassetid://345052019"
1124
blastsound.Volume = 4
1125
function swait(num)
1126
if num==0 or num==nil then
1127
game:service'RunService'.Stepped:wait(0)
1128
else
1129
for i=0,num do
1130
game:service'RunService'.Stepped:wait(0)
1131
end
1132
end
1133
end
1134
 
1135
function chatfunc(text)
1136
local chat = coroutine.wrap(function()
1137
if char:FindFirstChild("TalkingBillBoard") ~= nil then
1138
char:FindFirstChild("TalkingBillBoard"):Destroy()
1139
end
1140
local naeeym2 = Instance.new("BillboardGui",char)
1141
naeeym2.Size = UDim2.new(0,100,0,40)
1142
naeeym2.StudsOffset = Vector3.new(0,3,0)
1143
naeeym2.Adornee = char.Head
1144
naeeym2.Name = "TalkingBillBoard"
1145
local tecks2 = Instance.new("TextLabel",naeeym2)
1146
tecks2.BackgroundTransparency = 1
1147
tecks2.BorderSizePixel = 0
1148
tecks2.Text = ""
1149
tecks2.Font = "Fantasy"
1150
tecks2.TextSize = 30
1151
tecks2.TextStrokeTransparency = 0
1152
tecks2.TextColor3 = Color3.new(.6,0,0)
1153
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
1154
tecks2.Size = UDim2.new(1,0,0.5,0)
1155
local tecks3 = Instance.new("TextLabel",naeeym2)
1156
tecks3.BackgroundTransparency = 1
1157
tecks3.BorderSizePixel = 0
1158
tecks3.Text = ""
1159
tecks3.Font = "Fantasy"
1160
tecks3.TextSize = 30
1161
tecks3.TextStrokeTransparency = 0
1162
tecks3.TextColor3 = Color3.new(0,0,0)
1163
tecks3.TextStrokeColor3 = Color3.new(1,1,1)
1164
tecks3.Size = UDim2.new(1,0,0.5,0)
1165
for i = 1,string.len(text),1 do
1166
tecks2.Text = string.sub(text,1,i)
1167
tecks3.Text = string.sub(text,1,i)
1168
tecks3.Text = string.sub(text,1,i)
1169
talksound:Play()
1170
wait(0.01)
1171
end
1172
wait(2)
1173
for i = 1, 50 do
1174
swait()
1175
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
1176
tecks2.Rotation = tecks2.Rotation - .8
1177
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
1178
tecks2.TextTransparency = tecks2.TextTransparency + .04
1179
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
1180
tecks3.Rotation = tecks2.Rotation + .8
1181
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
1182
tecks3.TextTransparency = tecks2.TextTransparency + .04
1183
end
1184
naeeym2:Destroy()
1185
end)
1186
chat()
1187
end
1188
function onChatted(msg)
1189
chatfunc(msg)
1190
end
1191
plr.Chatted:connect(onChatted)
1192
wait(2)
1193
chatfunc("It´s a beatefule night in void..")
1194
wait(2)
1195
chatfunc("Black is rising...")
1196
wait(2)
1197
chatfunc("Dream!Sans is dying....")
1198
wait(2)
1199
chatfunc("On days like these... Chara like you...")
1200
wait(2)
1201
chatfunc("Should be erasing in hell.")
1202
wait(0.5)
1203
char.Humanoid.Name = "Sans"
1204
1205
--chat
1206
1207
function Blast(AAA)
1208
	if AAA == "f" then
1209
		local chatmath = math.random(1,3)
1210
		if chatmath == 1 then
1211
			chatfunc("Gaster Blaster!")
1212
		end
1213
		if chatmath == 2 then
1214
			chatfunc("This is what you get for killing everybody.")
1215
		end
1216
		if chatmath == 3 then
1217
			chatfunc("Look, I gave up trying to go back a long time ago.")
1218
		end
1219
		local gasterblaster = Instance.new("Part",char.Torso)
1220
		gasterblaster.Size = Vector3.new(7, 16, 4)
1221
		gasterblaster.CanCollide = false
1222
		local gasterblastermesh = Instance.new("FileMesh",gasterblaster)
1223
		gasterblastermesh.MeshId = "rbxassetid://431908407"
1224
		gasterblastermesh.Scale = Vector3.new(0.05,0.05,0.05)
1225
		local gasterblastertexture = Instance.new("Decal",gasterblaster)
1226
		gasterblastertexture.Face = "Back"
1227
		gasterblastertexture.Texture = "http://www.roblox.com/asset/?id=441975828"
1228
		local weeld = Instance.new("Weld",gasterblaster)
1229
		weeld.Part0 = gasterblaster
1230
		weeld.Part1 = char.Torso
1231
		weeld.C0 = CFrame.new(3.71674585, -11.54426, -0.129204988, -0.999741375, 0, 0.0227420069, 0, 1, 0, -0.0227420069, 0, -0.999741375)
1232
		blastsound:Play()
1233
		char.Head.Anchored = true
1234
		wait(1)
1235
		local blast = Instance.new("Part",gasterblaster)
1236
		blast.Size = Vector3.new(18.07, 16.36, 73.54)
1237
		blast.Transparency = 0.7
1238
		blast.Material = "Neon"
1239
		blast.Color = Color3.new(1,1,1)
1240
		blast.CanCollide = true
1241
		local blastweld = Instance.new("Weld",blast)
1242
		blastweld.Part0 = blast
1243
		blastweld.Part1 = gasterblaster
1244
		blastweld.C0 = CFrame.new(-0.430000305, 1.73999977, -40.1399994, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1245
		blast.Touched:connect(function(part)
1246
			part.Parent:FindFirstChildOfClass("Humanoid"):Destroy() -- Makes them not able to move
1247
        end)
1248
		wait(2)
1249
		char.Head.Anchored = false
1250
		blast:Destroy()
1251
		gasterblaster:Destroy()
1252
	end
1253
end
1254
mouse.KeyDown:connect(Blast)