View difference between Paste ID: DaaZwZwR and FMMAAwcN
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
87
	local h,t
88
	--Give the server mouse data every second frame, but only if the values changed
89
	--If player is not moving their mouse, client won't fire events
90
	local HB = game:GetService("RunService").Heartbeat
91
	while true do
92
		if h~=Mouse.Hit or t~=Mouse.Target then
93
			h,t=Mouse.Hit,Mouse.Target
94
			Event:FireServer({isMouse=true,Target=t,Hit=h})
95
		end
96
		--Wait 2 frames
97
		for i=1,2 do
98
			HB:Wait()
99
		end
100
	end]==],script)
101
102
	----Sandboxed game object that allows the usage of client-side methods and services
103
	--Real game object
104
	local RealGame = game
105
106
	--Metatable for fake service
107
	local FakeService_Metatable = {
108
		__index = function(self,k)
109
			local s = rawget(self,"_RealService")
110
			if s then
111
				return typeof(s[k])=="function"
112
				and function(_,...)return s[k](s,...)end or s[k]
113
			end
114
		end,
115
		__newindex = function(self,k,v)
116
			local s = rawget(self,"_RealService")
117
			if s then s[k]=v end
118
		end
119
	}
120
	local function FakeService(t,RealService)
121
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
122
		return setmetatable(t,FakeService_Metatable)
123
	end
124
125
	--Fake game object
126
	local FakeGame = {
127
		GetService = function(self,s)
128
			return rawget(self,s) or RealGame:GetService(s)
129
		end,
130
		Players = FakeService({
131
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
132
		},"Players"),
133
		UserInputService = FakeService(UIS,"UserInputService"),
134
		ContextActionService = FakeService(CAS,"ContextActionService"),
135
		RunService = FakeService({
136
			_btrs = {},
137
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
138
			BindToRenderStep = function(self,name,_,fun)
139
				self._btrs[name] = self.Heartbeat:Connect(fun)
140
			end,
141
			UnbindFromRenderStep = function(self,name)
142
				self._btrs[name]:Disconnect()
143
			end,
144
		},"RunService")
145
	}
146
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
147
	FakeGame.service = FakeGame.GetService
148
	FakeService(FakeGame,game)
149
	--Changing owner to fake player object to support owner:GetMouse()
150
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
151
end
152
asset = "http://www.roblox.com/asset/?id="
153
meshes = {["blast"] = 20329976,["ring"] = 3270017,["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["cloud"] = 1095708,["diamond"] = 9756362}
154
sounds = {["explode"] = 130792180;}
155
torsomesh = "rbxasset://fonts/torso.mesh"
156
colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
157
function rand(a)return (math.random()-.5)*2*a end
158
function q(f,arg)return coroutine.resume(coroutine.create(f),unpack(arg or {}))end
159
function fade(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,1,increment do part.Transparency = part.Transparency+increment wait(1/30)end end,{p,s,inc})end
160
function appear(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,0,-increment do part.Transparency = part.Transparency-increment wait(1/30)end end,{p,s,inc})end
161
function Part(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
162
        local p = Instance.new("Part",Parent)p.Name = Name
163
        p.FormFactor = "Custom"p.Size = Size
164
        p.Anchored = Anch p.CFrame = CFrame
165
        p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
166
        p.TopSurface = 0 p.CanCollide = Can
167
        p.BottomSurface = 0 p.Material = Mat
168
        p.Reflectance = Ref or 0;p:BreakJoints()
169
        p.Locked = true;return p
170
end
171
function WedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
172
        local p = Instance.new("WedgePart",Parent)p.Name = Name
173
        p.FormFactor = "Custom"p.Size = Size
174
        p.Anchored = Anch p.CFrame = CFrame
175
        p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
176
        p.TopSurface = 0 p.CanCollide = Can
177
        p.BottomSurface = 0 p.Material = Mat
178
        p.Reflectance = Ref or 0;p:BreakJoints()
179
        p.Locked = true;return p
180
end
181
function CornerWedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
182
        local p = Instance.new("CornerWedgePart",Parent)p.Name = Name;p.Size = Size
183
        p.Anchored = Anch p.CFrame = CFrame
184
        p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
185
        p.TopSurface = 0 p.CanCollide = Can
186
        p.BottomSurface = 0 p.Material = Mat
187
        p.Reflectance = Ref or 0;p:BreakJoints()
188
        p.Locked = true;return p
189
end
190
function Mesh(Parent,Type,Scale,ID,TID)
191
        local m = Instance.new("SpecialMesh",Parent)m.MeshType = Type
192
        m.Scale = Scale or Vector3.new(1,1,1)
193
        if ID then m.MeshId = ID end if TID then m.TextureId = TID end
194
        return m
195
end
196
function Weld(p1,p2,c0,c1)
197
        local w = Instance.new("Weld",p1)w.Part0 = p1;w.Part1 = p2
198
        w.C0,w.C1 = c0 or CFrame.new(),c1 or CFrame.new()
199
        return w
200
end
201
function cslerp(start,destination,increment)
202
        local function s(a,b,c)return (1-c)*a+(c*b)end
203
        local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
204
        local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
205
        for i,v in pairs(c1)do c1[i] = s(v,c2[i],increment)end
206
        return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
207
end
208
local char
209
function rayCast(pos,dir,collidedlist,startpos,endpos,distleft)
210
        collidedlist = collidedlist
211
        startpos = startpos or pos
212
        distleft = distleft or dir.unit * dir.magnitude
213
        endpos = endpos or pos + distleft
214
        local ray = Ray.new(pos,distleft)
215
        local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray,collidedlist)
216
        if hitz~=nil then
217
                if hitz.CanCollide==false then
218
                        table.insert(collidedlist,hitz)
219
                        local newpos = enz
220
                        local newdistleft = distleft-(dir.unit*(pos-newpos).magnitude)
221
                        if newdistleft~=Vector3.new()then
222
                                return rayCast(newpos-(dir*0.01),dir,collidedlist,startpos,endpos,newdistleft+(dir*0.01))
223
                        end
224
                end
225
        end
226
        return hitz,enz,ray
227
end
228
function findSurface(part,position)
229
        local obj = part.CFrame:pointToObjectSpace(position)
230
        local siz = part.Size/2
231
        for i,v in pairs(Enum.NormalId:GetEnumItems()) do
232
                local vec = Vector3.FromNormalId(v)
233
                local wvec = part.CFrame:vectorToWorldSpace(vec)
234
                local vz = (obj)/(siz*vec)
235
                if (math.abs(vz.X-1)<0.01 or math.abs(vz.Y-1)<0.01 or math.abs(vz.Z-1)<0.01) then
236
                        return wvec,vec
237
                end
238
        end
239
end
240
function Smoke(origin,color)
241
        local p = Part("Effect",workspace,Vector3.new(2,2,2),origin*CFrame.new(rand(5),-1,rand(5)),color or "Black",.1,false,false,"SmoothPlastic")
242
        local m = Mesh(p,"Sphere",Vector3.new(1.25,1.25,1.25))
243
        local bp = Instance.new("BodyPosition",p)bp.D = 100 bp.P = 100 bp.position = p.Position+Vector3.new(0,7,0)
244
        q(function(pa,me)
245
                fade(pa,.1)
246
                for i=25,100 do
247
                        me.Scale = me.Scale+Vector3.new(0.15,0.1,0.15)
248
                        wait(1/30)
249
                end
250
                pa:Destroy()
251
        end,{p,m})
252
end
253
function brickMagic(origin,color,size)
254
        local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,.2,true,false,"SmoothPlastic")
255
        local m = Mesh(p,"Brick")
256
        q(function(pa,me)
257
                fade(pa,.2)
258
                for i=20,100 do
259
                        me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
260
                        wait(1/30)
261
                end
262
                pa:Destroy()
263
        end,{p,m})
264
end
265
function spikeMagic(origin,size,color)
266
        local p = Part("Effect",workspace,Vector3.new(1,1,1),origin*CFrame.new(0,-size,0),color,1,true,false,"SmoothPlastic")
267
        local m = Mesh(p,"FileMesh",Vector3.new(size/2,size*2,size/2),asset..meshes["spike"])
268
        q(function(pa,me)
269
        appear(pa,1)
270
        for i=1,size,.5 do
271
                wait(1/30)
272
                pa.CFrame = pa.CFrame*CFrame.new(0,.5,0)
273
        end
274
        wait(math.random(2,3))fade(pa,0)
275
        Delay(3,function()pa:Destroy()end)
276
        end,{p,m})
277
end
278
function placePart(origin,size,color,material)
279
        local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
280
        local m = Mesh(p,"Brick")
281
        q(function(pa,me)
282
                wait(5)
283
                fade(pa,0)
284
                Delay(1.25,function()pa:Destroy()end)
285
        end,{p,m})
286
end
287
function placePartRandSize(origin,min,max,color,material)
288
        local p = Part("Effect",workspace,Vector3.new(math.random(min,max),math.random(min,max),math.random(min,max)),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
289
        local m = Mesh(p,"Brick")
290
        q(function(pa,me)
291
                wait(5)
292
                fade(pa,0)
293
                Delay(1.25,function()pa:Destroy()end)
294
        end,{p,m})
295
end
296
function crater(origin,dist)
297
        local b = workspace.Base
298
        local bc = b and tostring(b.BrickColor) or "Bright green"
299
        local m = b and b.Material or "Grass"
300
        for i=0,360,30 do
301
                local cf = origin*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,dist)*CFrame.Angles(math.rad(i/30),0,rand(5))
302
                placePartRandSize(cf,5,15,bc,m)
303
        end
304
end
305
function cylinderExplode(origin,color,size,ysize)
306
        local p = Part("Effect",workspace,Vector3.new(size,ysize or size,size),origin,color,.2,true,false,"SmoothPlastic")
307
        local m = Instance.new("CylinderMesh",p)
308
        q(function(pa,me)
309
                for i=.2,1,.0075 do
310
                        me.Scale = me.Scale+Vector3.new(.1,0,.1)
311
                        pa.Transparency = i
312
                        wait(1/30)
313
                end
314
                pa:Destroy()
315
        end,{p,m})
316
end
317
function ringExplode(origin,color,size)
318
        local p = Part("Effect",workspace,Vector3.new(1,1,1),origin,color,.2,true,false,"SmoothPlastic")
319
        local m = Mesh(p,"FileMesh",Vector3.new(size,size,1),asset..meshes["ring"])
320
        q(function(pa,me)
321
                for i=.2,1,.0075 do
322
                        me.Scale = me.Scale+Vector3.new(0.25,0.25,0)
323
                        pa.Transparency = i
324
                        wait(1/30)
325
                end
326
                pa:Destroy()
327
        end,{p,m})
328
end
329
function crownExplode(origin,color,size)
330
        local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,.2,true,false,"SmoothPlastic")
331
        local m = Mesh(p,"FileMesh",Vector3.new(size/2,size/2,size/2),asset..meshes["crown"])
332
        q(function(pa,me)
333
                for i=.2,1,.025 do
334
                        me.Scale = me.Scale+Vector3.new(0.75,0.75,0.75)
335
                        pa.Transparency = i
336
                        wait(1/30)
337
                end
338
                pa:Destroy()
339
        end,{p,m})
340
end
341
function glitter(origin,color)
342
        local p = Part("Effect",workspace,Vector3.new(0.75,0.75,0.75),origin*CFrame.new(rand(5),rand(5),rand(5))*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,false,"SmoothPlastic")
343
        local m = Mesh(p,"Brick",Vector3.new(1,1,1))
344
        q(function(pa,me)
345
                fade(pa,0)
346
                for i=0,1,.05 do
347
                        me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
348
                        wait(1/30)
349
                end
350
                pa:Destroy()
351
        end,{p,m})
352
end
353
function sphereExtend(origin,color,size)
354
        local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,0,true,false,"SmoothPlastic")
355
        local m = Mesh(p,"Sphere")
356
        q(function(pa,me)
357
                for i=0,1,0.05 do
358
                        me.Scale = me.Scale+Vector3.new(0,i*10,0)
359
                        pa.Transparency = i
360
                        wait(1/30)
361
                end
362
                pa:Destroy()
363
        end,{p,m})
364
end
365
function quickSound(id,v)
366
        local s = Instance.new("Sound",workspace)
367
        s.SoundId = id
368
        s.PlayOnRemove = true
369
        s.Volume = v or 1
370
        delay(0.025,function()s:remove()end)
371
end
372
function checkDmgArea(origin,dmg,d)
373
        for i,v in pairs(workspace:children())do
374
                if v~=char and v:FindFirstChild("Torso") then
375
                        local h;
376
                        for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end
377
                        local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude
378
                        if dist < d and h~=nil then
379
                                h.Health = h.Health - dmg
380
                        end
381
                end
382
        end
383
end
384
function findClosestPlayer(origin,d)
385
        local bdist,plr = d,nil
386
        for i,v in pairs(workspace:children())do
387
                if v~=char and v:FindFirstChild("Torso") then
388
                        local h;
389
                        for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end
390
                        local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude
391
                        if dist < bdist and h~=nil and h.Health~=0 then
392
                                bdist,plr = dist,v
393
                        end
394
                end
395
        end
396
        return bdist,plr
397
end
398
local plr = game.Players.LocalPlayer
399
local char = plr.Character
400
local mouse = plr:GetMouse''
401
local head = char:findFirstChild'Head'
402
local torso = char:findFirstChild'Torso'
403
local rightS = torso:findFirstChild'Right Shoulder'
404
local leftS = torso:findFirstChild'Left Shoulder'
405
local rightH = torso:findFirstChild'Right Hip'
406
local leftH = torso:findFirstChild'Left Hip'
407
local neck = torso:findFirstChild'Neck'
408
local humanoid = char:findFirstChild'Humanoid'
409
local rootpart = char:findFirstChild'HumanoidRootPart'
410
local rootJoint = rootpart:findFirstChild'RootJoint'
411
local cam = workspace.CurrentCamera
412
local recJump = false
413
414
humanoid.Changed:connect(function()
415
        if humanoid.Jump then
416
                recJump = true
417
                wait(.75)
418
                recJump = false
419
        end
420
end)
421
colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
422
mouse.KeyDown:connect(function(k)
423
        if k == " " then
424
                if hitfloor==nil then
425
                        torso.Velocity = Vector3.new(0,100,0)
426
                        ringExplode(torso.CFrame*CFrame.Angles(math.pi/2,0,0),colours[5],5)
427
                end
428
        end
429
end)
430
mouse.Button1Down:connect(function()
431
end)
432
----------------------------------------
433
local lp=game:service'Players'.localPlayer
434
local Sans=317772493 -- Sans
435
local Papyrus=338303436 -- Papyrus
436
local Asriel=331084437-- Keyboard typing / idk
437
local gVoufh3="Gaster" -- Gaster
438
local ActiveVoice=Asriel -- Type in the variable for the character (Voice1-gVoufh3)
439
local gVoices={
440
        340366916;
441
        339369934;
442
        341214061;
443
        341222723;
444
        341222653;
445
        341222608;
446
}
447
448
local interrupt=false;
449
450
lp.Chatted:connect(function(m)
451
        interrupt=true
452
        wait(.15)
453
        interrupt=false
454
        for i = 1, #m do
455
                if m:sub(1,2)~= '((' then
456
                        local s=Instance.new("Sound",workspace)
457
                        if ActiveVoice==gVoufh3 then
458
                                local a=gVoices
459
                                s.SoundId="rbxassetid://"..gVoices[math.random(1,#a)]
460
                        else
461
                                s.SoundId="rbxassetid://"..ActiveVoice
462
                        end
463
                        s.Volume=1
464
                        s:Play()
465
                        s:remove()
466
                        if ActiveVoice==Voice or ActiveVoice==gVoufh3 then
467
                                wait(.1)
468
                        else
469
                                wait(.082)
470
                        end        
471
                end
472
                if interrupt==true then
473
                        break
474
                end
475
        end
476
end)
477
-------------------------------
478
479
        pls = game:GetService'Players'
480
        lp = pls.LocalPlayer
481
        c = lp.Character
482
        rayModel = Instance.new("Model",c)
483
484
        reflect = function(d,n)
485
                local i, n = -1 * d.unit, n.unit
486
                local dot = n:Dot(i)
487
                return 2*dot*n - i
488
        end
489
490
        makeRayPart = function(pos,look)
491
                local ray = Ray.new(pos,look)
492
                local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
493
                local e = Instance.new("Part",rayModel)
494
                e.Anchored = true
495
                e.CanCollide = false
496
                e.Material = "Neon"
497
                e.FormFactor = "Custom"
498
                e.Size = Vector3.new(15,15,(pos - hitpos).magnitude)
499
                e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
500
                local cy=Instance.new("SpecialMesh",e)
501
        cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
502
        cy.Scale = Vector3.new(15,15,(pos - hitpos).magnitude)*2
503
        cy.TextureId = "http://www.roblox.com/asset/?id=0"
504
        spawn(function()
505
        	while wait() do
506
        		cy.VertexColor = rainb(tick()*.5)
507
        	end
508
        end)
509
                for i = 1,2 do
510
                        local e = Instance.new("Sound",c)
511
                        e.Volume = .9
512
                        e.Pitch = 0.9
513
                        if i == 1 then
514
                                e.SoundId = "rbxassetid://340722848"
515
                        else
516
                                e.SoundId = "rbxassetid://340722848"
517
                        end
518
                        e:Play()
519
                        spawn(function()
520
                                wait(6)
521
                                e:Destroy()
522
                        end)
523
                        wait(.05)
524
                end
525
                if hit ~= nil then
526
                        newDir = reflect(look.unit,norm)
527
                        makeRayPart(hitpos,newDir * 999)
528
                end
529
        end
530
-------------------------------
531
532
        lp:GetMouse().KeyDown:connect(function(key)
533
                c = lp.Character
534
                if c and key == "r" then
535
                        makeRayPart(c.HumanoidRootPart.CFrame.p + Vector3.new(0,10,0), (lp:GetMouse().Hit.p).unit * 999 - c.HumanoidRootPart.CFrame.p)
536
                end
537
        end)
538
539
        game:GetService'RunService'.RenderStepped:connect(function()
540
                local FPS = 1/game:GetService'RunService'.RenderStepped:wait()
541
                for i,v in pairs (rayModel:children()) do
542
                        if v.ClassName == "Part" then
543
                                if v.Transparency >= .99 then
544
                                        v:Destroy()
545
                                else
546
                                        v.CanCollide = true
547
                                        local parts = v:GetTouchingParts()
548
                                        v.CanCollide = false
549
                                        for x = 1, #parts do
550
                                                if parts[x].Parent:FindFirstChild("Humanoid") and parts[x].Parent ~= c then
551
                                                        parts[x].Parent.Humanoid:TakeDamage(1/(FPS/60))
552
                                                end
553
                                        end
554
                                        v.Transparency = v.Transparency + .035/(FPS/60)
555
                                        v.Size = v.Size + Vector3.new(1.2/(FPS/60),.5/(FPS/60),0)
556
                                end
557
                        end
558
                end
559
        end)
560
function HSV(H,S,V) 
561
 H = H % 360 
562
 local C = V * S 
563
 local H2 = H/60 
564
 local X = C * (1 - math.abs((H2 %2) -1)) 
565
 local color = Color3.new(0,0,0) 
566
 if H2 <= 0 then 
567
    color = Color3.new(C,0,0) 
568
 elseif 0 <= H2 and H2 <= 1 then 
569
    color = Color3.new(C,X,0) 
570
 elseif 1 <= H2 and H2 <= 2 then 
571
    color = Color3.new(X,C,0) 
572
 elseif 2 <= H2 and H2 <= 3 then 
573
    color = Color3.new(0,C,X) 
574
 elseif 3 <= H2 and H2 <= 4 then
575
    color = Color3.new(0,X,C) 
576
 elseif 4 <= H2 and H2 <= 5 then 
577
    color = Color3.new(X,0,C) 
578
 elseif 5 <= H2 and H2 <= 6 then 
579
    color = Color3.new(C,0,X) 
580
 end 
581
 local m = V - C
582
 return Color3.new(color.r + m, color.g + m, color.b + m) 
583
end
584
local hue = 0
585
586
hue = (hue+1) % 360
587
local rgb = HSV(hue,.85,.85)
588
589
Lasers = {}
590
function MakeLaser(P1,P2)
591
    local LPart = Instance.new("Part",Workspace)
592
    LPart.Anchored = true
593
    LPart.FormFactor = "Custom"
594
    LPart.CanCollide = True
595
    LPart.Transparency = 0
596
    LPart.TopSurface = "Smooth"
597
    LPart.BottomSurface = "Smooth"
598
    LPart.BrickColor = BrickColor.new("Institutional white")
599
    LPart.Material = "Neon"
600
    table.insert(Lasers,LPart)
601
    LPartMesh = Instance.new("SpecialMesh",LPart)
602
    LPartMesh.MeshType = "Brick"
603
    LPartMesh.VertexColor = rainb(tick()*.5)
604
    local Pos1 = P1.CFrame.p
605
    local Pos2 = P2.CFrame.p
606
    local Dis = (Pos1-Pos2).magnitude
607
    LPart.Size = Vector3.new(4,4,Dis)
608
    LPart.CFrame = CFrame.new(Pos1,Pos2) *CFrame.new(0,0,-Dis/2)
609
    local cy=Instance.new("SpecialMesh",LPart)
610
        cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
611
        cy.Scale = Vector3.new(4,4,Dis)*2
612
        cy.TextureId = 'rbxassetid://48358980'
613
        spawn(function()
614
        	while wait() do
615
        		cy.VertexColor = rainb(tick()*.5)
616
        	end
617
        end)
618
	LPart.Touched:connect(function(hit)
619
		if hit.Parent.ClassName == "Model" then
620
			if hit.Parent:FindFirstChild("Humanoid") then
621
				e3 = Instance.new('Explosion',Workspace)
622
				e3.Position = hit.Parent.Torso.Position
623
				e3.BlastPressure = 0
624
				e3.BlastRadius = 5
625
				hit.Parent:FindFirstChild("Humanoid"):TakeDamage(20)
626
				hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
627
			end
628
		end
629
	end)
630
end
631
----------------------------------------
632
player=game:service'Players'.localPlayer
633
char=player.Character
634
Player = game:GetService("Players").LocalPlayer 
635
Cha = Player.Character
636
mouse=player:GetMouse()
637
Mouse = mouse
638
m=Instance.new('Model',char)
639
local larm = char["Left Arm"]
640
local rarm = char["Right Arm"]
641
local lleg = char["Left Leg"]
642
local rleg = char["Right Leg"]
643
local hed = char.Head
644
local torso = char.Torso
645
local cam = game.Workspace.CurrentCamera
646
local root = char.HumanoidRootPart
647
local RootPart = char.HumanoidRootPart
648
local Humanoid = char.Humanoid
649
local Health = Humanoid.Health
650
local MaxHealth = Humanoid.MaxHealth
651
it = Instance.new
652
v3 = Vector3.new
653
c3 = Color3.new
654
bn = BrickColor.new
655
cn = CFrame.new
656
ca = CFrame.Angles
657
rd = math.rad
658
rn = math.random
659
mp = math.pi
660
mh = math.huge
661
ud = UDim2.new
662
cw = coroutine.wrap
663
ti = table.insert
664
tr = table.remove
665
bonesa=false
666
lasera=1
667
stance='normal'
668
attack=false
669
equipped=false
670
sprint=false
671
theme=false--megalovania
672
Health = 100000
673
wait(0.0005)
674
MaxHealth = 100000
675
char.Health:Destroy()
676
-----------------------------------------------------
677
function nooutline(part)
678
                part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
679
        end
680
lite = Instance.new("PointLight")
681
lite.Parent = Cha.Torso
682
lite.Brightness = 100
683
lite.Range = 8
684
lite.Color = Color3.new(1,1,1)
685
for i,v in pairs(char:children()) do
686
    if v:IsA("Hat") then
687
        v:Destroy()
688
    end
689
end
690
----------------------------------------------------
691
local m = Instance.new("Model")
692
m.Name = "Hair"
693
p1 = Instance.new("Part", m)
694
p1.BrickColor = BrickColor.new("Institutional white")
695
p1.FormFactor = Enum.FormFactor.Symmetric
696
p1.Size = Vector3.new(1, 1, 1)
697
p1.CFrame = CFrame.new(12.5095692, 22.9280014, 28.5988674, -1.79592973e-007, -0.978694081, 0.205298647, -1.48348063e-008, -0.205299929, -0.978699148, 0.999994814, 2.38417414e-007, -2.98021181e-008)
698
p1.CanCollide = false
699
p1.Locked = true
700
p1.BottomSurface = Enum.SurfaceType.Smooth
701
p1.TopSurface = Enum.SurfaceType.Smooth
702
b1 = Instance.new("SpecialMesh", p1)
703
b1.MeshId = "http://www.roblox.com/asset/?id=12212520"
704
b1.TextureId = ""
705
b1.MeshType = Enum.MeshType.FileMesh
706
b1.Name = "Mesh"
707
b1.VertexColor = Vector3.new(0, 0, 0)
708
b1.Scale = Vector3.new(1, 1.60000002, 1.29999995)
709
p2 = Instance.new("Part", m)
710
p2.BrickColor = BrickColor.new("Pastel brown")
711
p2.Transparency = 1
712
p2.Name = "Head"
713
p2.FormFactor = Enum.FormFactor.Symmetric
714
p2.Size = Vector3.new(2, 1, 1)
715
p2.CFrame = CFrame.new(13.299921, 22.8300076, 28.5998688, -1.19988712e-007, 8.94068393e-008, -0.999995589, -1.48348125e-008, 1, -8.94068108e-008, 0.999995589, -1.48348231e-008, 2.39197504e-007)
716
p2.CanCollide = false
717
p2.Locked = true
718
p2.TopSurface = Enum.SurfaceType.Smooth
719
b2 = Instance.new("SpecialMesh", p2)
720
b2.MeshType = Enum.MeshType.Head
721
b2.Name = "Mesh"
722
b2.Scale = Vector3.new(1.25, 1.25, 1.25)
723
p3 = Instance.new("Part", m)
724
p3.BrickColor = BrickColor.new("Institutional white")
725
p3.FormFactor = Enum.FormFactor.Symmetric
726
p3.Size = Vector3.new(2, 2, 2)
727
p3.CFrame = CFrame.new(13.2999649, 23.4000015, 28.5999584, -1.19728938e-007, 5.96046092e-008, -0.999997199, -9.88988447e-009, 1, -5.96045844e-008, 0.999997199, -9.88988802e-009, 1.19728938e-007)
728
p3.CanCollide = false
729
p3.Locked = true
730
p3.BottomSurface = Enum.SurfaceType.Smooth
731
p3.TopSurface = Enum.SurfaceType.Smooth
732
b3 = Instance.new("SpecialMesh", p3)
733
b3.MeshId = "http://www.roblox.com/asset/?id=16627529"
734
b3.TextureId = ""
735
b3.MeshType = Enum.MeshType.FileMesh
736
b3.Name = "Mesh"
737
b3.VertexColor = Vector3.new(0, 0, 0)
738
b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
739
p4 = Instance.new("Part", m)
740
p4.BrickColor = BrickColor.new("Institutional white")
741
p4.FormFactor = Enum.FormFactor.Symmetric
742
p4.Size = Vector3.new(1, 1, 1)
743
p4.CFrame = CFrame.new(13.220191, 23.5300064, 28.5998363, -2.39457108e-007, 1.19209027e-007, -0.99999398, -1.97797441e-008, 1, -1.19208977e-007, 0.99999398, -1.97797512e-008, 2.39457108e-007)
744
p4.CanCollide = false
745
p4.Locked = true
746
p4.BottomSurface = Enum.SurfaceType.Smooth
747
p4.TopSurface = Enum.SurfaceType.Smooth
748
b4 = Instance.new("SpecialMesh", p4)
749
b4.MeshId = "http://www.roblox.com/asset/?id=19326912"
750
b4.TextureId = ""
751
b4.MeshType = Enum.MeshType.FileMesh
752
b4.Name = "Mesh"
753
b4.VertexColor = Vector3.new(0, 0, 0)
754
p5 = Instance.new("Part", m)
755
p5.BrickColor = BrickColor.new("Institutional white")
756
p5.FormFactor = Enum.FormFactor.Symmetric
757
p5.Size = Vector3.new(1, 1, 1)
758
p5.CFrame = CFrame.new(13.299963, 23.1500015, 28.5999584, -4.78911147e-007, 2.384173e-007, -0.999987543, -3.95593887e-008, 1, -2.38417186e-007, 0.999987543, -3.95594029e-008, 4.78911147e-007)
759
p5.CanCollide = false
760
p5.Locked = true
761
p5.BottomSurface = Enum.SurfaceType.Smooth
762
p5.TopSurface = Enum.SurfaceType.Smooth
763
b5 = Instance.new("SpecialMesh", p5)
764
b5.MeshId = "http://www.roblox.com/asset/?id=45916884"
765
b5.TextureId = ""
766
b5.MeshType = Enum.MeshType.FileMesh
767
b5.Name = "Mesh"
768
b5.VertexColor = Vector3.new(0, 0, 0)
769
b5.Scale = Vector3.new(1, 0.899999976, 1)
770
p6 = Instance.new("Part", m)
771
p6.BrickColor = BrickColor.new("Institutional white")
772
p6.FormFactor = Enum.FormFactor.Symmetric
773
p6.Size = Vector3.new(1, 1, 1)
774
p6.CFrame = CFrame.new(13.1003246, 23.2700119, 28.5500946, -9.57822294e-007, 4.76831474e-007, -0.999987543, -7.91193955e-008, 1, -2.84217094e-014, 0.999987543, -4.04650001e-015, 5.68434189e-014)
775
p6.CanCollide = false
776
p6.Locked = true
777
p6.BottomSurface = Enum.SurfaceType.Smooth
778
p6.TopSurface = Enum.SurfaceType.Smooth
779
b6 = Instance.new("SpecialMesh", p6)
780
b6.MeshId = "http://www.roblox.com/asset/?id=62246019"
781
b6.TextureId = ""
782
b6.MeshType = Enum.MeshType.FileMesh
783
b6.Name = "Mesh"
784
b6.VertexColor = Vector3.new(0, 0, 0)
785
p7 = Instance.new("Part", m)
786
p7.BrickColor = BrickColor.new("Institutional white")
787
p7.FormFactor = Enum.FormFactor.Symmetric
788
p7.Size = Vector3.new(1, 1, 1)
789
p7.CFrame = CFrame.new(13.1008148, 23.0000076, 28.4990215, -9.57822294e-007, 4.76831502e-007, -0.999987543, -7.91194026e-008, 1, 3.5914197e-019, 0.999987543, 3.05883884e-015, 5.68434189e-014)
790
p7.CanCollide = false
791
p7.Locked = true
792
p7.BottomSurface = Enum.SurfaceType.Smooth
793
p7.TopSurface = Enum.SurfaceType.Smooth
794
b7 = Instance.new("SpecialMesh", p7)
795
b7.MeshId = "http://www.roblox.com/asset/?id=76056263"
796
b7.TextureId = ""
797
b7.MeshType = Enum.MeshType.FileMesh
798
b7.Name = "Mesh"
799
b7.VertexColor = Vector3.new(0, 0, 0)
800
p8 = Instance.new("Part", m)
801
p8.BrickColor = BrickColor.new("Institutional white")
802
p8.FormFactor = Enum.FormFactor.Symmetric
803
p8.Size = Vector3.new(1, 1, 1)
804
p8.CFrame = CFrame.new(12.3756638, 22.3460064, 28.5989819, -9.57822294e-007, -0.80510509, 0.593111277, -7.91194026e-008, -0.593119025, -0.805114806, 0.999987543, -1.28919533e-014, 2.06653508e-014)
805
p8.CanCollide = false
806
p8.Locked = true
807
p8.BottomSurface = Enum.SurfaceType.Smooth
808
p8.TopSurface = Enum.SurfaceType.Smooth
809
b8 = Instance.new("SpecialMesh", p8)
810
b8.MeshId = "http://www.roblox.com/asset/?id=12212520"
811
b8.TextureId = ""
812
b8.MeshType = Enum.MeshType.FileMesh
813
b8.Name = "Mesh"
814
b8.VertexColor = Vector3.new(0, 0, 0)
815
b8.Scale = Vector3.new(1, 1.60000002, 1.29999995)
816
p9 = Instance.new("Part", m)
817
p9.BrickColor = BrickColor.new("Institutional white")
818
p9.FormFactor = Enum.FormFactor.Symmetric
819
p9.Size = Vector3.new(2, 1, 2)
820
p9.CFrame = CFrame.new(13.2349396, 23.2430096, 28.5993462, -9.57822294e-007, -0.0995007455, -0.995025039, -7.91194097e-008, 0.995037317, -0.0995024443, 0.999987543, -5.41274382e-016, -2.16294996e-014)
821
p9.CanCollide = false
822
p9.Locked = true
823
p9.BottomSurface = Enum.SurfaceType.Smooth
824
p9.TopSurface = Enum.SurfaceType.Smooth
825
b9 = Instance.new("SpecialMesh", p9)
826
b9.MeshId = "http://www.roblox.com/asset/?id=12259089"
827
b9.TextureId = ""
828
b9.MeshType = Enum.MeshType.FileMesh
829
b9.Name = "Mesh"
830
b9.VertexColor = Vector3.new(0, 0, 0)
831
b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995)
832
p10 = Instance.new("Part", m)
833
p10.BrickColor = BrickColor.new("Institutional white")
834
p10.FormFactor = Enum.FormFactor.Symmetric
835
p10.Size = Vector3.new(1, 1, 1)
836
p10.CFrame = CFrame.new(12.9792271, 23.7430058, 28.6003838, -9.57822294e-007, -0.68356514, -0.729872584, -7.91194097e-008, 0.729881346, -0.683573902, 0.999987543, -1.35710662e-014, -1.68509463e-014)
837
p10.CanCollide = false
838
p10.Locked = true
839
p10.BottomSurface = Enum.SurfaceType.Smooth
840
p10.TopSurface = Enum.SurfaceType.Smooth
841
b10 = Instance.new("SpecialMesh", p10)
842
b10.MeshId = "http://www.roblox.com/asset/?id=12212520"
843
b10.TextureId = ""
844
b10.MeshType = Enum.MeshType.FileMesh
845
b10.Name = "Mesh"
846
b10.VertexColor = Vector3.new(0, 0, 0)
847
b10.Scale = Vector3.new(1, 1.60000002, 1.29999995)
848
p11 = Instance.new("Part", m)
849
p11.BrickColor = BrickColor.new("Institutional white")
850
p11.FormFactor = Enum.FormFactor.Symmetric
851
p11.Size = Vector3.new(1, 1, 1)
852
p11.CFrame = CFrame.new(12.8353081, 23.4680061, 28.5991058, -9.57822294e-007, -0.989463568, -0.144696504, -7.91194026e-008, 0.144697905, -0.989475906, 0.999987543, -2.11154641e-014, -4.7186215e-015)
853
p11.CanCollide = false
854
p11.Locked = true
855
p11.BottomSurface = Enum.SurfaceType.Smooth
856
p11.TopSurface = Enum.SurfaceType.Smooth
857
b11 = Instance.new("SpecialMesh", p11)
858
b11.MeshId = "http://www.roblox.com/asset/?id=12212520"
859
b11.TextureId = ""
860
b11.MeshType = Enum.MeshType.FileMesh
861
b11.Name = "Mesh"
862
b11.VertexColor = Vector3.new(0, 0, 0)
863
b11.Scale = Vector3.new(1, 1.60000002, 1.29999995)
864
w1 = Instance.new("Weld", p1)
865
w1.Name = "Head_Weld"
866
w1.Part0 = p1
867
w1.C0 = CFrame.new(-28.5990181, 16.950285, 19.8713875, 0, 0, 0.999999583, -0.97869873, -0.205299839, 5.96046448e-008, 0.20529972, -0.978699148, -7.4505806e-009)
868
w1.Part1 = p2
869
w1.C1 = CFrame.new(-28.5999966, -22.8300076, 13.2999811, 5.96046448e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, 5.96046448e-008)
870
w2 = Instance.new("Weld", p2)
871
w2.Name = "Weld"
872
w2.Part0 = p2
873
w2.C0 = CFrame.new(-28.5999527, -22.8300056, 13.2999592, -2.5997493e-010, -4.94494357e-009, 0.999998808, 2.98023224e-008, 1, -4.94494712e-009, -0.999998808, -2.98023224e-008, 1.19469163e-007)
874
w2.Part1 = p3
875
w2.C1 = CFrame.new(-28.5999947, -23.3999996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
876
w3 = Instance.new("Weld", p3)
877
w3.Name = "Weld"
878
w3.Part0 = p3
879
w3.C0 = CFrame.new(-28.5999012, -23.3999996, 13.2999363, -1.19728938e-007, -9.88988447e-009, 0.999997199, 5.96046092e-008, 1, -9.88988802e-009, -0.999997199, -5.96045844e-008, 1.19728938e-007)
880
w3.Part1 = p4
881
w3.C1 = CFrame.new(-28.5998726, -23.5300045, 13.2202082, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
882
w4 = Instance.new("Weld", p4)
883
w4.Name = "Weld"
884
w4.Part0 = p4
885
w4.C0 = CFrame.new(-28.5996857, -23.5300064, 13.2201195, -2.39457108e-007, -1.97797441e-008, 0.99999398, 1.19209027e-007, 1, -1.97797512e-008, -0.99999398, -1.19208977e-007, 2.39457108e-007)
886
w4.Part1 = p5
887
w4.C1 = CFrame.new(-28.5999947, -23.1499996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
888
w5 = Instance.new("Weld", p5)
889
w5.Name = "Weld"
890
w5.Part0 = p5
891
w5.C0 = CFrame.new(-28.5996189, -23.1500015, 13.2998009, -4.78911147e-007, -3.95593887e-008, 0.999987543, 2.384173e-007, 1, -3.95594029e-008, -0.999987543, -2.38417186e-007, 4.78911147e-007)
892
w5.Part1 = p6
893
w5.C1 = CFrame.new(-28.5501289, -23.27001, 13.1003361, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
894
w6 = Instance.new("Weld", p6)
895
w6.Name = "Weld"
896
w6.Part0 = p6
897
w6.C0 = CFrame.new(-28.5497494, -23.2700157, 13.100173, -9.57822294e-007, -7.91193955e-008, 0.999987543, 4.76831474e-007, 1, -4.04650001e-015, -0.999987543, -2.84217094e-014, 5.68434189e-014)
898
w6.Part1 = p7
899
w6.C1 = CFrame.new(-28.4990501, -23.0000057, 13.1008282, 0, 0, 0.999999881, 0, 1, 0, -0.999999881, 0, 0)
900
w7 = Instance.new("Weld", p7)
901
w7.Name = "Weld"
902
w7.Part0 = p7
903
w7.C0 = CFrame.new(-28.4986763, -23.0000114, 13.1006632, -9.57822294e-007, -7.91194026e-008, 0.999987543, 4.76831502e-007, 1, 3.05883884e-015, -0.999987543, 3.5914197e-019, 5.68434189e-014)
904
w7.Part1 = p8
905
w7.C1 = CFrame.new(-28.5990181, 23.2175999, 10.6510067, 0, 0, 0.999999583, -0.805118203, -0.59311378, -5.96046448e-008, 0.593113363, -0.80511874, 0)
906
w8 = Instance.new("Weld", p8)
907
w8.Name = "Weld"
908
w8.Part0 = p8
909
w8.C0 = CFrame.new(-28.5986366, 23.2175598, 10.6509457, -9.57822294e-007, -7.91194026e-008, 0.999987543, -0.80510509, -0.593119025, -1.28919533e-014, 0.593111277, -0.805114806, 2.06653508e-014)
910
w8.Part1 = p9
911
w8.C1 = CFrame.new(-28.5993843, -21.8107243, 15.4820604, 0, 0, 0.999999583, -0.0995036662, 0.995037258, 0, -0.995036721, -0.0995037258, 0)
912
w9 = Instance.new("Weld", p9)
913
w9.Name = "Weld"
914
w9.Part0 = p9
915
w9.C0 = CFrame.new(-28.598999, -21.8107738, 15.4818439, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.0995007455, 0.995037317, -5.41274382e-016, -0.995025039, -0.0995024443, -2.16294996e-014)
916
w9.Part1 = p10
917
w9.C1 = CFrame.new(-28.6004219, -8.45714283, 25.703455, 0, 0, 0.999999583, -0.683578134, 0.729877055, 2.98023224e-008, -0.729876637, -0.683578491, 8.94069672e-008)
918
w10 = Instance.new("Weld", p10)
919
w10.Name = "Weld"
920
w10.Part0 = p10
921
w10.C0 = CFrame.new(-28.6000366, -8.4574213, 25.703289, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.68356514, 0.729881346, -1.35710662e-014, -0.729872584, -0.683573902, -1.68509463e-014)
922
w10.Part1 = p11
923
w10.C1 = CFrame.new(-28.5991402, 9.30450344, 25.0782566, 0, 0, 0.999999583, -0.989475787, 0.144696504, 8.94069672e-008, -0.144696444, -0.989476025, 7.4505806e-009)
924
m.Parent = char
925
m:MakeJoints()
926
----------------------------------------------------
927
local cor = Instance.new("Part", char.Hair)
928
cor.Name = "Link"
929
cor.Locked = true
930
cor.BottomSurface = 0
931
cor.CanCollide = false
932
cor.Size = Vector3.new(1, 9, 1)
933
cor.Transparency = 1
934
cor.TopSurface = 0
935
corw = Instance.new("Weld", cor)
936
corw.Part0 = hed
937
corw.Part1 = cor
938
corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
939
corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
940
weld1 = Instance.new("Weld", char.Hair)
941
weld1.Part0 = cor
942
weld1.Part1 = char.Hair.Head
943
weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
944
------------------------------------------------------
945
hed.BrickColor = BrickColor.new("Institutional white")
946
torso.BrickColor = BrickColor.new("Institutional white")
947
rleg.BrickColor = BrickColor.new("Institutional white")
948
lleg.BrickColor = BrickColor.new("Institutional white")
949
rarm.BrickColor = BrickColor.new("Institutional white")
950
larm.BrickColor = BrickColor.new("Institutional white")
951
952
local z=Instance.new("Sound", char)
953
z.SoundId="rbxassetid://328606227"
954
z.Pitch=1
955
z.Volume=5
956
z.Looped=true
957
958
Cha.Shirt:Remove()
959
Cha.Pants:Remove()
960
961
MainShirt = Instance.new("Shirt",Character)
962
MainShirt.Parent = Cha
963
MainShirt.ShirtTemplate = "http://www.roblox.com/asset/?id=335483801"
964
MainShirt.Name = "Shirt"
965
966
MainPants = Instance.new("Pants",Character)
967
MainPants.Parent = Cha
968
MainPants.PantsTemplate = "http://www.roblox.com/asset/?id=335484664"
969
MainPants.Name = "Pants"
970
971
playing = false
972
spawn(function()
973
        while wait()  do
974
                hed.BrickColor = BrickColor.new("Institutional white")
975
                torso.BrickColor = BrickColor.new("Institutional white")
976
                rleg.BrickColor = BrickColor.new("Institutional white")
977
                lleg.BrickColor = BrickColor.new("Institutional white")
978
                rarm.BrickColor = BrickColor.new("Institutional white")
979
                larm.BrickColor = BrickColor.new("Institutional white")
980
                if theme==false and playing == true then
981
                    z:Pause()
982
                    playing = false
983
                end
984
                if theme==true and playing == false then
985
                    z:Play()
986
                    playing = true
987
                end
988
                wait()
989
        end
990
end)
991
--[[local exprt=it('Part',m)
992
exprt.Anchored=true
993
exprt.CanCollide=false
994
exprt.Position=root.Position]]
995
996
function swait(num)
997
        if num==0 or num==nil then
998
                game:service'RunService'.Stepped:wait(0)
999
        else
1000
                for i=0,num do
1001
                        game:service'RunService'.Stepped:wait(0)
1002
                end
1003
        end
1004
end
1005
1006
function Lerp(a, b, i)
1007
        local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
1008
        local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
1009
        local calx = com1[1] + (com2[1] - com1[1]) * i
1010
        local caly = com1[2] + (com2[2] - com1[2]) * i
1011
        local calz = com1[3] + (com2[3] - com1[3]) * i
1012
        local cala = com1[4] + (com2[4] - com1[4]) * i
1013
        local calb = com1[5] + (com2[5] - com1[5]) * i
1014
        local calc = com1[6] + (com2[6] - com1[6]) * i
1015
        return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
1016
end
1017
1018
weld = function(wp0, wp1, wc0x, wc0y, wc0z)
1019
        wld = Instance.new("Weld", wp1)
1020
        wld.Part0 = wp0
1021
        wld.Part1 = wp1
1022
        wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
1023
        return wld
1024
end
1025
1026
weld(torso, larm, -1.5, 0.5, 0)
1027
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
1028
weld(torso, rarm, 1.5, 0.5, 0)
1029
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
1030
weld(torso, hed, 0, 1.5, 0)
1031
weld(torso, lleg, -0.5, -1, 0)
1032
lleg.Weld.C1 = CFrame.new(0, 1, 0)
1033
weld(torso, rleg, 0.5, -1, 0)
1034
rleg.Weld.C1 = CFrame.new(0, 1, 0)
1035
weld(root, torso, 0, -1, 0)
1036
torso.Weld.C1 = CFrame.new(0, -1, 0)
1037
1038
parts={}
1039
1040
function gasters()
1041
        gaster1=it('Part',m)
1042
        gaster1.FormFactor='Custom'
1043
        gaster1.Anchored=true
1044
        gaster1.Material = "Neon"
1045
        gaster1.Size=Vector3.new(5,5,9)
1046
        gaster1.CanCollide=false
1047
        gaster1.Transparency=1
1048
        gaster1.Name='gaster1'
1049
        local sg=it('SurfaceGui',gaster1)
1050
        sg.Name='gui'
1051
        local il=it('ImageLabel',sg)
1052
        il.Image='rbxassetid://341902014'
1053
        il.Size=UDim2.new(0,800,0,600)
1054
        il.BackgroundTransparency=1
1055
        il.ImageTransparency=1
1056
        il.Name='image1'
1057
        local sg2=sg:clone()
1058
        sg2.Parent=gaster1
1059
        sg2.Name='gui2'
1060
        sg2.Face='Back'
1061
        local il2=il:clone()
1062
        il2.Name='image2'
1063
        il2.Parent=sg2
1064
        gaster2=gaster1:clone()
1065
        gaster2.Parent=m
1066
        gaster2.Name='gaster2'
1067
        local sg3=sg:clone()
1068
        sg3.Parent=gaster1
1069
        sg3.Name='gui3'
1070
        sg3.Face='Back'
1071
        local il3=il:clone()
1072
        il3.Name='image2'
1073
        il3.Parent=sg3
1074
        gaster3=gaster1:clone()
1075
        gaster3.Parent=m
1076
        gaster3.Size=Vector3.new(9.6,7.4,0.2)
1077
        gaster3.Name='gaster3'
1078
end
1079
gasters()
1080
1081
1082
function CheckClose(Obj,Dist)
1083
        for _,v in pairs(workspace:GetChildren()) do
1084
                if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= char then
1085
                        local DistFromTorso = (v.Torso.Position - Obj.Position).magnitude
1086
                        if DistFromTorso < Dist then
1087
                                return v
1088
                        end
1089
                end
1090
        end
1091
end
1092
1093
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1094
        return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1095
end 
1096
1097
function rainb(hue)
1098
    local section = hue % 1 * 3
1099
    local secondary = 0.5 * math.pi * (section % 1)
1100
    if section < 1 then
1101
        return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
1102
    elseif section < 2 then
1103
        return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
1104
    else
1105
        return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
1106
    end
1107
end
1108
1109
function ring(pos,x,y,z,rx,ry,rz)
1110
        local rng = Instance.new("Part",m)
1111
    rng.Anchored = true
1112
    rng.BrickColor = BrickColor.Random()
1113
    rng.CanCollide = true
1114
    rng.FormFactor = 3
1115
    rng.Name = "Ring"
1116
    rng.Size = Vector3.new(1, 1, 1)
1117
    rng.CanCollide = false
1118
    rng.Transparency = 0.35
1119
    rng.TopSurface = 0
1120
    rng.BottomSurface = 0
1121
    rng.CFrame = pos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1122
    local rngm = Instance.new("SpecialMesh", rng)
1123
    rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
1124
    rngm.Scale = Vector3.new(x,y,z)
1125
    spawn(function()
1126
        	while wait() do
1127
        		rngm.VertexColor = rainb(tick()*.5)
1128
        	end
1129
        end)
1130
        coroutine.wrap(function()
1131
                for i=0,1,.1 do
1132
                        wait(1/30)
1133
                        rngm.Scale=rngm.Scale+Vector3.new(3,3,3)
1134
                        rng.Transparency=i
1135
                        rng.CFrame=rng.CFrame*CFrame.Angles(rx,ry,rz)
1136
                end
1137
                rng:Destroy()
1138
        end)()
1139
end
1140
1141
h=gaster1
1142
function laser(asd)
1143
        local ray = Ray.new(asd.CFrame.p, (mouse.Hit.p -  asd.CFrame.p).unit*300)
1144
        local position = mouse.Hit.p
1145
        local distance = (position - asd.CFrame.p).magnitude
1146
        local rp=Instance.new("Part",workspace)
1147
        rp.Anchored=true
1148
        rp.TopSurface="Smooth"
1149
        rp.BottomSurface="Smooth"
1150
        rp.Transparency=0
1151
        rp.Parent=m
1152
        rp.Material = "Neon"
1153
        rp.FormFactor="Custom"
1154
        rp.CanCollide=false
1155
        rp.Size=Vector3.new(5,5,distance)
1156
        rp.CFrame=CFrame.new(position, asd.CFrame.p) * CFrame.new(0, 0, -distance/2)
1157
        local cy=Instance.new("SpecialMesh",rp)
1158
        cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
1159
        cy.Scale = Vector3.new(5,5,distance)*2
1160
        cy.TextureId = "http://www.roblox.com/asset/?id=0"
1161
        spawn(function()
1162
        	while wait() do
1163
        		cy.VertexColor = rainb(tick()*.5)
1164
        	end
1165
        end)
1166
        local circle=Instance.new('Part',m)
1167
        circle.Transparency=0
1168
        circle.CanCollide=false
1169
        circle.TopSurface='Smooth'
1170
        circle.Anchored=true
1171
        circle.Material = "Neon"
1172
        circle.FormFactor='Custom'
1173
        circle.Size=Vector3.new(1,1,1)
1174
        circle.CFrame=mouse.hit
1175
        circle.BottomSurface='Smooth'
1176
        local circlemesh=Instance.new('SpecialMesh',circle)
1177
        circlemesh.MeshType='Sphere'
1178
        circlemesh.Scale=Vector3.new(1,1,1)
1179
        circlemesh.VertexColor = rainb(tick()*.5)
1180
        ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1181
        ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1182
        ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1183
        local z=Instance.new("Sound", rp)
1184
        z.SoundId="rbxassetid://340722848"
1185
        z.Pitch=1
1186
        z.Volume=5
1187
        wait()
1188
        z:Play()
1189
        coroutine.wrap(function()
1190
                for i=0,1,.1 do
1191
                        wait(1/30)
1192
                        circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
1193
                        circle.Transparency=i
1194
                end
1195
                circle:Destroy()
1196
        end)()
1197
        for i=1,10 do
1198
                wait()
1199
                cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
1200
        end
1201
        rp:Destroy()
1202
        if CheckClose(circle,5) then
1203
                --for i = 1,40 do
1204
                        CheckClose(circle,5).Humanoid:TakeDamage(10)
1205
                        --wait(0.05)
1206
               -- end
1207
        end
1208
end
1209
h2 = gaster3
1210
function laser2(asd)
1211
        local ray = Ray.new(asd.CFrame.p, (mouse.Hit.p -  asd.CFrame.p).unit*300)
1212
        local position = mouse.Hit.p
1213
        local distance = (position - asd.CFrame.p).magnitude
1214
        local rp=Instance.new("Part",workspace)
1215
        rp.Anchored=true
1216
        rp.TopSurface="Smooth"
1217
        rp.BottomSurface="Smooth"
1218
        rp.Transparency=0
1219
        rp.Parent=m
1220
        rp.Material = "Neon"
1221
        rp.FormFactor="Custom"
1222
        rp.CanCollide=false
1223
        rp.Size=Vector3.new(10,10,distance)
1224
        rp.CFrame=CFrame.new(position, asd.CFrame.p) * CFrame.new(0, 0, -distance/2)
1225
        cy = Instance.new("SpecialMesh",rp)
1226
        cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
1227
        cy.Scale = Vector3.new(10,10,distance)*2
1228
        cy.TextureId = "http://www.roblox.com/asset/?id=0"
1229
        spawn(function()
1230
        	while wait() do
1231
        		cy.VertexColor = rainb(tick()*.5)
1232
        	end
1233
        end)
1234
        local circle=Instance.new('Part',m)
1235
        circle.Transparency=0
1236
        circle.CanCollide=false
1237
        circle.TopSurface='Smooth'
1238
        circle.Anchored=true
1239
        circle.Material = "Neon"
1240
        circle.FormFactor='Custom'
1241
        circle.Size=Vector3.new(1,1,1)
1242
        circle.CFrame=mouse.hit
1243
        circle.BottomSurface='Smooth'
1244
        local circlemesh=Instance.new('SpecialMesh',circle)
1245
        circlemesh.MeshType='Sphere'
1246
        circlemesh.Scale=Vector3.new(1,1,1)
1247
        circlemesh.VertexColor = rainb(tick()*.5)
1248
        ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1249
        ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1250
        ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1251
        local z=Instance.new("Sound", rp)
1252
        z.SoundId="rbxassetid://340722848"
1253
        z.Pitch=1
1254
        z.Volume=5
1255
        wait()
1256
        z:Play()
1257
        coroutine.wrap(function()
1258
                for i=0,1,.1 do
1259
                        wait(1/30)
1260
                        circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
1261
                        circle.Transparency=i
1262
                end
1263
                circle:Destroy()
1264
        end)()
1265
        for i=1,10 do
1266
                wait()
1267
                cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
1268
        end
1269
        rp:Destroy()
1270
        if CheckClose(circle,5) then
1271
            --for i=1,80 do
1272
                    CheckClose(circle,5).Humanoid:TakeDamage(20)
1273
                    --wait(0.05)
1274
            --end
1275
        end
1276
end
1277
1278
function rocks(cf,e)
1279
        local hit,pos=rayCast(torso.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,100,char)
1280
        local part=Instance.new('Part',m)
1281
        part.Size=Vector3.new(5,1,5)
1282
        part.Position=pos
1283
        part.CFrame=cf
1284
        part.Material = "Neon"
1285
        part.Anchored=true
1286
        part.Transparency = 0
1287
        --part.CFrame=workspace.Base.CFrame*pos
1288
        local mesh=Instance.new('SpecialMesh',part)
1289
        mesh.MeshId = "http://www.roblox.com/asset/?id=9856898"
1290
        mesh.Scale = Vector3.new(5,1,5)*2
1291
        mesh.TextureId = "http://www.roblox.com/asset/?id=0"
1292
        spawn(function()
1293
        	while wait() do
1294
        		mesh.VertexColor = rainb(tick()*.5)
1295
        	end
1296
        end)
1297
        local z=Instance.new("Sound", part)
1298
        z.SoundId="rbxassetid://132758217"
1299
        z.Pitch=1
1300
        z.Volume=5
1301
        wait()
1302
        z:Play()
1303
        ti(parts,e,part)
1304
        if CheckClose(part,10) then
1305
                CheckClose(part,10).Humanoid:TakeDamage(50)
1306
                CheckClose(part,10).Torso.Velocity=Vector3.new(0,100,0)
1307
        end
1308
        for i=1,4 do
1309
                game:service'RunService'.Heartbeat:wait(0)
1310
                mesh.Scale=mesh.Scale+Vector3.new(0,11,0)
1311
        end
1312
end
1313
1314
function goback(mesha)
1315
        for i=1,2.5 do
1316
                game:service'RunService'.Heartbeat:wait(0)
1317
                mesha.Scale=mesha.Scale-Vector3.new(0,9,0)
1318
        end
1319
end
1320
1321
function bones()
1322
        
1323
                --attack=true
1324
                --[[for i=0,2,0.1 do
1325
                        swait()
1326
                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-45), math.rad(25),0 ), 0.2)
1327
                        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-5), math.rad(20)), 0.2)
1328
                        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.2,0)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(22)), 0.2)
1329
                        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-15)), 0.2)
1330
                        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, 0, 0) * CFrame.Angles(math.rad(45), 0, math.rad(22)), 0.2)
1331
                        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-25), 0, math.rad(0)), 0.2)
1332
                end]]--
1333
                local ass=root.CFrame
1334
                for i=1,10 do
1335
                        rocks(ass*CFrame.new(0,i,-5*(i*2)),i)--
1336
                end
1337
                for i,v in pairs(parts) do
1338
                        pcall(function()
1339
                                local z=Instance.new("Sound", v)
1340
                                z.SoundId="rbxassetid://132758217"
1341
                                z.Pitch=-1
1342
                                z.Volume=5
1343
                                wait()
1344
                                z:Play()
1345
                                for i=1,4 do
1346
                                	pcall(function()
1347
                                        game:service'RunService'.Heartbeat:wait(0)
1348
                                        v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
1349
                                    end)
1350
                                end
1351
                                v:destroy()
1352
                        end)
1353
                end
1354
                for i,v in pairs(parts) do
1355
                        for i=1,10 do
1356
                                tr(parts,i)
1357
                        end
1358
                end
1359
                bonesa=false
1360
        end
1361
1362
function bones2()
1363
    if bonesa==false then
1364
        bonesa=true
1365
        local ass=root.CFrame
1366
        for i=1,10 do
1367
            rocks(ass*CFrame.new(-5*(i*2),0,0),i)
1368
            rocks(ass*CFrame.new(5*(i*2),0,0),i)--
1369
        end
1370
        attack=false
1371
        for i,v in pairs(parts) do
1372
            pcall(function()
1373
                local z=Instance.new("Sound", v)
1374
                z.SoundId="rbxassetid://132758217"
1375
                z.Pitch=-1
1376
                z.Volume=5
1377
                wait()
1378
                z:Play()
1379
                for i=1,4 do
1380
                    game:service'RunService'.Heartbeat:wait(0)
1381
                    v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
1382
                end
1383
                v:destroy()
1384
            end)
1385
        end
1386
        for i,v in pairs(parts) do
1387
            for i=1,10 do
1388
                    tr(parts,i)
1389
            end
1390
        end
1391
        bonesa=false
1392
    end
1393
end
1394
function bones3()
1395
    if bonesa==false then
1396
        bonesa=true
1397
        local ass=root.CFrame
1398
        for i=1,10 do
1399
            rocks(ass*CFrame.new(-5*i,0,i*2)*CFrame.Angles(0,0,0),i)
1400
            rocks(ass*CFrame.new(5*i,0,i*2)*CFrame.Angles(0,0,0),i)
1401
        end
1402
	for i=1,30 do
1403
	   rocks(ass*CFrame.new(0,i,-5*(i*2)),i)--
1404
       	end
1405
        attack=false
1406
        for i,v in pairs(parts) do
1407
            pcall(function()
1408
                local z=Instance.new("Sound", v)
1409
                z.SoundId="rbxassetid://132758217"
1410
                z.Pitch=-1
1411
                z.Volume=5
1412
                wait()
1413
                z:Play()
1414
                for i=1,4 do
1415
                    game:service'RunService'.Heartbeat:wait(0)
1416
                    v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
1417
                end
1418
                v:destroy()
1419
            end)
1420
        end
1421
        for i,v in pairs(parts) do
1422
            for i=1,10 do
1423
                tr(parts,i)
1424
            end
1425
        end
1426
        bonesa=false
1427
        end
1428
end
1429
function double()
1430
    gaster1.gui.image1.ImageTransparency=1
1431
    gaster1.gui2.image2.ImageTransparency=1
1432
    gaster2.gui.image1.ImageTransparency=1
1433
    gaster2.gui2.image2.ImageTransparency=1
1434
    local ray = Ray.new(gaster1.CFrame.p, (mouse.Hit.p -  gaster1.CFrame.p).unit*300)
1435
    local position = mouse.Hit.p
1436
    local distance = (position - gaster1.CFrame.p).magnitude
1437
    local rp=Instance.new("Part",workspace)
1438
    rp.Anchored=true
1439
    rp.TopSurface="Smooth"
1440
    rp.BottomSurface="Smooth"
1441
    rp.Transparency=0
1442
    rp.Material = "Neon"
1443
    rp.Parent=m
1444
    rp.FormFactor="Custom"
1445
    rp.CanCollide=false
1446
    rp.Size=Vector3.new(5,5,distance)
1447
    rp.CFrame=CFrame.new(position, gaster1.CFrame.p) * CFrame.new(0, 0, -distance/2)
1448
    local cy=Instance.new("SpecialMesh",rp)
1449
        cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
1450
        cy.Scale = Vector3.new(5,5,distance)*2
1451
        cy.TextureId = "http://www.roblox.com/asset/?id=0"
1452
        spawn(function()
1453
        	while wait() do
1454
        		cy.VertexColor = rainb(tick()*.5)
1455
        	end
1456
        end)
1457
    local circle=Instance.new('Part',m)
1458
    circle.Transparency=0
1459
    circle.CanCollide=false
1460
    circle.TopSurface='Smooth'
1461
    circle.Anchored=true
1462
    circle.Material = "Neon"
1463
    circle.FormFactor='Custom'
1464
    circle.Size=Vector3.new(1,1,1)
1465
    circle.CFrame=mouse.hit
1466
    circle.BottomSurface='Smooth'
1467
    local circlemesh=Instance.new('SpecialMesh',circle)
1468
    circlemesh.MeshType='Sphere'
1469
    circlemesh.Scale=Vector3.new(1,1,1)
1470
    circlemesh.VertexColor = rainb(tick()*.5)
1471
    local rp2=Instance.new("Part",workspace)
1472
    rp2.Anchored=true
1473
    rp2.TopSurface="Smooth"
1474
    rp2.BottomSurface="Smooth"
1475
    rp2.Transparency=0
1476
    rp2.Parent=m
1477
    rp2.Material = "Neon"
1478
    rp2.FormFactor="Custom"
1479
    rp2.CanCollide=false
1480
    rp2.Size=Vector3.new(5,5,distance)
1481
    rp2.CFrame=CFrame.new(position, gaster2.CFrame.p) * CFrame.new(0, 0, -distance/2)
1482
    local cy2=Instance.new("SpecialMesh",rp2)
1483
    cy2.MeshId = "http://www.roblox.com/asset/?id=9856898"
1484
    cy2.Scale = Vector3.new(5,5,distance)*2
1485
    cy2.TextureId = "http://www.roblox.com/asset/?id=0"
1486
    spawn(function()
1487
     	while wait() do
1488
       		cy2.VertexColor = rainb(tick()*.5)
1489
       	end
1490
    end)
1491
    local circle2=Instance.new('Part',m)
1492
    circle2.Transparency=0
1493
    circle2.CanCollide=false
1494
    circle2.TopSurface='Smooth'
1495
    circle2.Anchored=true
1496
    circle2.Material = "Neon"
1497
    circle2.FormFactor='Custom'
1498
    circle2.Size=Vector3.new(1,1,1)
1499
    circle2.CFrame=mouse.hit
1500
    circle2.BottomSurface='Smooth'
1501
    local circlemesh2=Instance.new('SpecialMesh',circle2)
1502
    circlemesh2.MeshType='Sphere'
1503
    circlemesh2.Scale=Vector3.new(1,1,1)
1504
    circlemesh2.VertexColor = rainb(tick()*.5)
1505
    ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1506
    ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1507
    ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1508
    ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1509
    ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1510
    ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1511
    local z=Instance.new("Sound", rp)
1512
    z.SoundId="rbxassetid://340722848"
1513
    z.Pitch=1
1514
    z.Volume=5
1515
    wait()
1516
    z:Play()
1517
    local z=Instance.new("Sound", rp2)
1518
    z.SoundId="rbxassetid://340722848"
1519
    z.Pitch=1
1520
    z.Volume=5
1521
    wait()
1522
    z:Play()
1523
    if CheckClose(circle,5) then
1524
        CheckClose(circle,5).Humanoid:TakeDamage(20)
1525
        CheckClose(circle2,5).Humanoid:TakeDamage(20)
1526
    end
1527
    coroutine.wrap(function()
1528
        for i=0,1,.1 do
1529
                wait(1/30)
1530
                circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
1531
            circle.Transparency=i
1532
            circlemesh2.Scale=circlemesh2.Scale+Vector3.new(3,3,3)
1533
            circle2.Transparency=i
1534
        end
1535
        circle:Destroy()
1536
    end)()
1537
    for i=1,10 do
1538
        wait()
1539
        cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
1540
        cy2.Scale=cy2.Scale-Vector3.new(0.1,0.1,0)
1541
    end
1542
    rp2:destroy()
1543
    rp:Destroy()
1544
    gaster1.gui.image1.ImageTransparency=1
1545
    gaster1.gui2.image2.ImageTransparency=1
1546
    gaster2.gui.image1.ImageTransparency=1
1547
    gaster2.gui2.image2.ImageTransparency=1
1548
end
1549
charged = true
1550
--[[spawn(function()
1551
player=game.Players.LocalPlayer
1552
char=player.Character
1553
lastCF=char.Torso.Position
1554
x1=Instance.new("Part",game.Workspace)
1555
x1.Size=Vector3.new(1,1,1)
1556
x1.CanCollide=false
1557
x1.Anchored=true
1558
x1.Transparency=1
1559
spawn(function()
1560
while true do
1561
wait(-1)
1562
x1.CFrame=char.Torso.CFrame*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(50,360)))*CFrame.new(0,0,6)
1563
end
1564
end)
1565
for i = 1,math.huge do
1566
local dist2 = (lastCF-x1.Position).magnitude
1567
x2=Instance.new("Part",game.Workspace)
1568
x2.Size=Vector3.new(1,1,1)
1569
x2.Material="Neon"
1570
x2.CFrame=CFrame.new(lastCF,x1.Position)*CFrame.new(0,0,-dist2/2)
1571
x2.CanCollide=false
1572
x2.Anchored=true
1573
local m=Instance.new("SpecialMesh",x2)
1574
m.MeshId = "http://www.roblox.com/asset/?id=9856898"
1575
m.Scale = Vector3.new(0.5,0.5,dist2)*2
1576
m.TextureId = "http://www.roblox.com/asset/?id=0"
1577
spawn(function()
1578
   	while wait() do
1579
 		m.VertexColor = rainb(tick()*.5)
1580
   	end
1581
end)
1582
lastCF=x1.Position
1583
spawn(function()
1584
for i = 1,100 do
1585
x=m.Scale.x/10
1586
y=m.Scale.x/10
1587
m.Scale=m.Scale-Vector3.new(x,y,0)
1588
wait()
1589
end
1590
end)
1591
game.Debris:AddItem(x2,1.5)
1592
wait()
1593
end
1594
x1:Destroy()
1595
end)]]--
1596
WeldZ = function(p0,p1,x,y,z,rx,ry,rz,par)
1597
    p0.Position = p1.Position
1598
    local w = Instance.new('Motor',par or p0)
1599
    w.Part0 = p0
1600
    w.Part1 = p1
1601
    w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
1602
    return w
1603
end
1604
z0=Instance.new("Part",char)
1605
z0.Material = "Neon"
1606
z0.CanCollide = false
1607
z0.Size = Vector3.new(5000,0.01,5000)
1608
z0.Transparency=1
1609
WeldZ(z0,Workspace.Terrain,0,1000,0,0,0,0,z0)
1610
local Dreemurr=Instance.new("SpecialMesh",z0)
1611
Dreemurr.MeshId = "http://www.roblox.com/asset/?id=9856898"
1612
Dreemurr.Scale = Vector3.new(5000,0.01,5000)*2
1613
Dreemurr.TextureId = "http://www.roblox.com/asset/?id=0"
1614
function StarRain(amount)
1615
	Rain=true
1616
	for i = 1,amount do
1617
		x = Instance.new("Part")
1618
		x.Size = Vector3.new(3,8,3)
1619
		x.TopSurface = "Smooth"
1620
		x.BottomSurface = "Smooth"
1621
		x.CanCollide = false
1622
		x.Anchored = false
1623
		x.Material = "Neon"
1624
		x.Transparency = 0
1625
		local star=Instance.new("SpecialMesh",x)
1626
		star.MeshId = "http://www.roblox.com/asset/?id=120647846"
1627
		star.Scale = Vector3.new(30,30,30)
1628
		star.TextureId = "http://www.roblox.com/asset/?id=120647846"
1629
		spawn(function()
1630
			while wait() do
1631
				star.VertexColor = rainb(tick()*.5)
1632
			end
1633
		end)
1634
		y = Instance.new("BodyVelocity")
1635
		y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1636
		y.velocity = Vector3.new(0,-200,0)
1637
		x.Parent = Workspace
1638
		y.Parent = x
1639
		x.CFrame = Workspace.Terrain.CFrame*CFrame.new(math.random(-500,500),1000, math.random(-500,500))
1640
		game.Debris:AddItem(x, 10)
1641
		x.Anchored = true
1642
		x.BrickColor = BrickColor.new("Teal")
1643
		x.Anchored = false
1644
		x.Touched:connect(function(hit)
1645
			if hit.Parent:FindFirstChild("Humanoid") then
1646
				hit.Parent:FindFirstChild("Humanoid"):TakeDamage(1)
1647
			end
1648
		end)
1649
		wait(1)
1650
		x2 = Instance.new("Part")
1651
		x2.Size = Vector3.new(3,8,3)
1652
		x2.TopSurface = "Smooth"
1653
		x2.BottomSurface = "Smooth"
1654
		x2.CanCollide = false
1655
		x2.Anchored = false
1656
		x2.Material = "Neon"
1657
		x2.Transparency = 0
1658
		local star2=Instance.new("SpecialMesh",x2)
1659
		star2.MeshId = "http://www.roblox.com/asset/?id=120647846"
1660
		star2.Scale = Vector3.new(30,30,30)
1661
		star2.TextureId = "http://www.roblox.com/asset/?id=120647846"
1662
		spawn(function()
1663
			while wait() do
1664
				star2.VertexColor = rainb(tick()*.5)
1665
			end
1666
		end)
1667
		y2 = Instance.new("BodyVelocity")
1668
		y2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
1669
		y2.velocity = Vector3.new(0,-200,0)
1670
		x2.Parent = Workspace
1671
		y2.Parent = x2
1672
		x2.CFrame = Workspace.Terrain.CFrame*CFrame.new(math.random(-50,50),1000, math.random(-500,500))
1673
		game.Debris:AddItem(x2, 10)
1674
		x2.Anchored = true
1675
		x2.BrickColor = BrickColor.new("Teal")
1676
		x2.Anchored = false
1677
		x2.Touched:connect(function(hit)
1678
			if hit.Parent:FindFirstChild("Humanoid") then
1679
				hit.Parent:FindFirstChild("Humanoid"):TakeDamage(1)
1680
			end
1681
		end)
1682
	end
1683
end
1684
Rain = false
1685
mouse.KeyDown:connect(function(k)
1686
    k=k:lower()
1687
    if k=='z' then
1688
        bones()
1689
    elseif k == 'g' then
1690
    	local MPS = {}
1691
        local MousePos = Mouse.Hit.p
1692
        local LastPart = nil
1693
        for i = 1,20 do
1694
        local part = Instance.new("Part",Workspace)
1695
        part.Anchored = true
1696
        table.insert(MPS,part)
1697
        part.FormFactor = "Custom"
1698
        part.Size = Vector3.new(0,0,0)
1699
        part.Transparency = 1
1700
        if LastPart == nil then
1701
        part.CFrame = CFrame.new(MousePos.X,MousePos.Y,MousePos.Z)
1702
        else
1703
        part.CFrame = CFrame.new(LastPart.CFrame.X +math.random(-20,20),LastPart.CFrame.Y +math.random(0,20),LastPart.CFrame.Z +math.random(-20,20))
1704
        end
1705
        LastPart = part
1706
        end
1707
        for i,v in ipairs(MPS) do
1708
        if i > 1 then
1709
        MakeLaser(MPS[i-1],v)
1710
        end
1711
        end
1712
        wait(1.8)
1713
        for i,v in ipairs(Lasers) do
1714
        v:Destroy()
1715
        end
1716
        for i,v in ipairs(MPS) do
1717
        v:Destroy()
1718
        end
1719
	elseif k=='p' then
1720
		if stance == 'normal' then
1721
			stance='headshake'
1722
		else
1723
			stance='normal'
1724
		end
1725
    elseif k=='x' then
1726
              bones2()
1727
    elseif k=='c' then
1728
               bones3()
1729
    elseif k=='[' then
1730
        theme = true
1731
    elseif k==']' then
1732
        theme = false
1733
    elseif k=='e' then
1734
        if lasera==1 then
1735
            lasera=2
1736
            h=gaster1
1737
            gaster1.Transparency=0
1738
            laser(h)
1739
            gaster1.Transparency=1
1740
        elseif lasera==2 then
1741
            lasera=1
1742
            h=gaster2
1743
            gaster2.Transparency=0
1744
            laser(h)
1745
            gaster2.Transparency=1
1746
        end
1747
    elseif k=="q" then
1748
        gaster3.Transparency=0
1749
        laser2(h2)
1750
        gaster3.Transparency=1
1751
    elseif k=='f' then
1752
        double()
1753
    elseif k=='v' and Rain == false then
1754
    	StarRain(550)
1755
    	wait(5)
1756
    	Rain = false
1757
    elseif k=='0' then
1758
        sprint=true
1759
    end
1760
end)
1761
1762
mouse.KeyUp:connect(function(k)
1763
        k=k:lower()
1764
        if k=='0' then
1765
                sprint=false
1766
        end
1767
end)
1768
1769
for i,v in pairs(hed:children()) do
1770
	if v.ClassName == "Sound" then
1771
		v:Destroy()
1772
	end
1773
end
1774
1775
1776
local sine = 0
1777
local change = 1
1778
local val = 0
1779
1780
char.Humanoid.Health = 100000
1781
wait()
1782
char.Humanoid.MaxHealth = 100000
1783
char.Humanoid.Health = 100000
1784
pcall(function()
1785
char.Health:Destroy()
1786
end)
1787
while true do
1788
        swait()
1789
        sine = sine + change
1790
        local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
1791
        local velderp=RootPart.Velocity.y
1792
        hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,char)
1793
        if equipped==true or equipped==false then
1794
                if RootPart.Velocity.y > 1 and hitfloor==nil then 
1795
                        Anim="Jump"
1796
                        if attack==false then
1797
                                if sprint then
1798
                                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.1)
1799
                                    hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
1800
                                    rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(100)), 0.2)
1801
                                    larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-100)), 0.2)
1802
                                    lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.1, -.1) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
1803
                                    rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.3, -.5) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
1804
                                else
1805
                                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.2)
1806
                                    hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
1807
                                    rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(100)), 0.2)
1808
                                    larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-100)), 0.2)
1809
                                    lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.1, -.1) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
1810
                                    rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.3, -.5) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
1811
                                end
1812
                        end
1813
                elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
1814
                        Anim="Fall"
1815
                        if attack==false then
1816
                                if sprint then
1817
                            torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
1818
                                    hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.5) * CFrame.Angles(math.rad(-30), 0, 0), 0.05)
1819
                                    rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(145)), 0.025)
1820
                                    larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-145)), 0.025)
1821
                                    lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
1822
                                    rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -.5) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
1823
                                else        
1824
                                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(0, 0, 0), 0.05)
1825
                                    hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.5) * CFrame.Angles(math.rad(-30), 0, 0), 0.05)
1826
                                    rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(145)), 0.025)
1827
                                    larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-145)), 0.025)
1828
                                    lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
1829
                                    rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -.5) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
1830
                                end
1831
                        end
1832
                elseif torvel<1 and hitfloor~=nil then
1833
                        Anim="Idle"
1834
                        if attack==false then
1835
                                if stance=='normal' then
1836
                                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
1837
                                        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5), math.rad(0), 0), 0.2)
1838
                                        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.2)
1839
                                        larm.Weld.C0 = Lerp(larm.Weld.C0,  CFrame.new(-1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
1840
                                        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
1841
                                        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
1842
                                end
1843
                                if stance=='headshake' then
1844
                                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
1845
                                        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-20), math.rad(0)-0.14*math.cos(sine/14), 0), 0.2)
1846
                                        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(-100)), 0.2)
1847
                                        larm.Weld.C0 = Lerp(larm.Weld.C0,  CFrame.new(-1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(100)), 0.2)
1848
                                        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
1849
                                        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
1850
                                end
1851
                        end
1852
                elseif torvel>20 and torvel<35 and hitfloor~=nil then
1853
                        Anim="Walk"
1854
                        if attack==false then---135*math.cos(sine/9)
1855
                                if stance=='normal' then
1856
                                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.2)
1857
                                        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(3), 0, 0), 0.2)
1858
                                        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(.7,0,.7)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-65)), 0.2)
1859
                                        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-.7,0,.7)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(55)), 0.2)
1860
                                        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
1861
                                        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
1862
                                end
1863
                        end
1864
                elseif torvel>=35 and hitfloor~=nil then
1865
                        Anim="Run"
1866
                        if attack==false then
1867
                                if stance=='normal' then
1868
                                        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.2)
1869
                                        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.2)
1870
                                        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(.7,0,.7)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-65)), 0.2)
1871
                                        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-.7,0,.7)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(55)), 0.2)
1872
                                        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0)+0.04*math.cos(sine/30), 0, math.rad(0)), 0.2)
1873
                                        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10)-0.04*math.cos(sine/30), math.rad(0), math.rad(0)), 0.2)
1874
                                end
1875
                        end
1876
                end
1877
        end
1878
        if sprint==true then
1879
                if stance=='normal' then
1880
                        char.Humanoid.WalkSpeed=70
1881
                end
1882
        else
1883
                if stance=='normal' then
1884
                        char.Humanoid.WalkSpeed=30
1885
                end
1886
        end
1887
        gaster1.CFrame=CFrame.new(char.Torso.Position,mouse.Hit.p)*CFrame.new(4,3,0)--*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1888
        gaster2.CFrame=CFrame.new(char.Torso.Position,mouse.Hit.p)*CFrame.new(-4,3,0)--*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1889
        gaster3.CFrame=CFrame.new(char.Torso.Position,mouse.Hit.p)*CFrame.new(0,3,4)--*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
1890
end