SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") | |
141 | ||
142 | local kan = Instance.new("Sound") kan.Volume = 6 kan.SoundId = "rbxassetid://390986739" kan.Looped = true kan.Parent = owner.Character.Torso kan:Play() | |
143 | ||
144 | wait(0.6) | |
145 | --[[ | |
146 | by Yourfirstnightmare-Dre#2941 | |
147 | Created with my animation rig, | |
148 | Abanonded project got bored not much to do | |
149 | ]]-- | |
150 | script.Parent=nil | |
151 | local p = game.Players.LocalPlayer | |
152 | local char = p.Character | |
153 | local mouse = p:GetMouse() | |
154 | local larm = char["Left Arm"] | |
155 | local rarm = char["Right Arm"] | |
156 | local lleg = char["Left Leg"] | |
157 | local rleg = char["Right Leg"] | |
158 | local euler=CFrame.fromEulerAnglesXYZ | |
159 | local hed = char.Head | |
160 | local torso = char.Torso | |
161 | local hum = char.Humanoid | |
162 | local root = char.HumanoidRootPart | |
163 | local walking = true | |
164 | local idle = true | |
165 | local rs = game:GetService("RunService").RenderStepped | |
166 | local new = Instance.new | |
167 | local v3 = Vector3.new | |
168 | local ns = NumberSequence.new | |
169 | local taunting = false | |
170 | local nr = NumberRange.new | |
171 | local bc = BrickColor.new | |
172 | local cf = CFrame.new | |
173 | local cfa = CFrame.Angles | |
174 | local rad = math.rad | |
175 | hum.Name = "1314____" | |
176 | hum.MaxHealth = math.huge | |
177 | hum.Health=math.huge | |
178 | local touchdb=false | |
179 | sine = 0 | |
180 | for i,v in pairs(char:GetChildren()) do | |
181 | if v:IsA("BodyColors") then | |
182 | v.HeadColor = bc("Really black") | |
183 | v.RightArmColor = bc("Really black") | |
184 | v.LeftArmColor=bc("Really black") | |
185 | v.TorsoColor=bc("Really black") | |
186 | v.RightLegColor = bc("Really black") | |
187 | v.LeftLegColor=bc("Really black") | |
188 | end | |
189 | end | |
190 | function NoOutline(Part) | |
191 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
192 | end | |
193 | db=game:GetService('Debris') | |
194 | function Debris(item,timer) | |
195 | db:AddItem(item,timer) | |
196 | end | |
197 | for i,v in pairs(char:GetChildren()) do | |
198 | if v.ClassName == "Accessory" or v:IsA("ShirtGraphic") then | |
199 | v:Destroy() | |
200 | end | |
201 | end | |
202 | hed.Transparency = 1 | |
203 | function Lerp(a,b,c) | |
204 | return a:lerp(b,c) | |
205 | end | |
206 | if char:findFirstChild("Shirt") and char:findFirstChild("Pants") then | |
207 | char.Shirt.ShirtTemplate = "rbxassetid://135561529" | |
208 | char.Pants.PantsTemplate = "rbxassetid://135562232" | |
209 | end | |
210 | ----------------------------------------------------Sounds? | |
211 | local swosh = Instance.new("Sound",torso) | |
212 | swosh.SoundId= "rbxassetid://877471479" | |
213 | local slash=Instance.new("Sound",torso) | |
214 | slash.SoundId= "rbxassetid://153092274" | |
215 | local exp=Instance.new("Sound",torso) | |
216 | exp.SoundId= "rbxassetid://142070127" | |
217 | local squish=Instance.new("Sound",torso) | |
218 | squish.SoundId= "rbxassetid://935843979" | |
219 | local summon=Instance.new("Sound",torso) | |
220 | summon.SoundId= "rbxassetid://429459101" | |
221 | local theworld=Instance.new("Sound",torso) | |
222 | theworld.SoundId= "rbxassetid://616576400" | |
223 | ---------------------------------------------------- | |
224 | New = function(Object, Parent, Name, Data) | |
225 | local Object = Instance.new(Object) | |
226 | for Index, Value in pairs(Data or {}) do | |
227 | Object[Index] = Value | |
228 | end | |
229 | Object.Parent = Parent | |
230 | Object.Name = Name | |
231 | return Object | |
232 | end | |
233 | local Skull = New("Part",hed,"Skull",{BrickColor = BrickColor.new("Brick yellow"),Size = Vector3.new(2, 1.20000005, 2),CFrame = CFrame.new(19.0000038, 4.29999971, -15.0499935, -0.087155804, 0, -0.99619472, 0, 1, 0, 0.99619472, 0, -0.087155804),Color = Color3.new(0.843137, 0.772549, 0.603922),}) | |
234 | local Mesh = New("SpecialMesh",Skull,"Mesh",{Scale = Vector3.new(3.20000005, 3.20000005, 3.20000005),MeshId = "http://www.roblox.com/asset/?id=6552202",TextureId = "http://www.roblox.com/asset/?id=6477494",MeshType = Enum.MeshType.FileMesh,}) | |
235 | local Part = New("Part",Skull,"Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999565, 0.299999923, 0.0999998972),CFrame = CFrame.new(19.7027473, 4.34184599, -15.2829018, 0.0871568993, 0, -0.996194661, 0, 1, 0, 0.996194661, 0, 0.0871568993),}) | |
236 | local Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=1007442229",}) | |
237 | local Joint = New("Weld",Part,"Joint",{Part0 = Part,Part1 = Skull,C0 = CFrame.new(0.170772552, -0.0418462753, 0.720369339, 0.984807551, 0, -0.173649371, 0, 1, 0, 0.173649371, 0, 0.984807551),}) | |
238 | local Part = New("Part",Skull,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1.19999981, 1),CFrame = CFrame.new(19.0784626, 4.20953131, -15.0668001, 0.0565838143, 0.0801356286, 0.995176673, -0.0452655554, 0.995954573, -0.0776245594, -0.997371256, -0.0406549312, 0.0599822886),Anchored = true,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
239 | local Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset/?id=1185246",MeshType = Enum.MeshType.FileMesh,}) | |
240 | local Joint = New("Weld",Part,"Joint",{Part0 = Part,Part1 = Skull,C0 = CFrame.new(-0.0252962112, 0.0831313133, -0.0840930939, -0.998507619, -0.0452655554, 0.030558195, -0.0474845134, 0.995954573, -0.0762873814, -0.0269813798, -0.0776245594, -0.996617556),}) | |
241 | local Part = New("Part",Skull,"Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999565, 0.299999923, 0.0999998972),CFrame = CFrame.new(19.6312962, 4.3499999, -14.7103682, -0.342020988, 0, -0.939692318, 0, 1, 0, 0.939692318, 0, -0.342020988),}) | |
242 | local Decal = New("Decal",Part,"Decal",{Texture = "http://www.roblox.com/asset/?id=1007442229",}) | |
243 | local Joint = New("Weld",Part,"Joint",{Part0 = Part,Part1 = Skull,C0 = CFrame.new(-0.103227615, -0.0500001907, 0.70938015, 0.965925634, 0, 0.258819848, 0, 1, 0, -0.258819848, 0, 0.965925634),}) | |
244 | local particleemitter = Instance.new("ParticleEmitter",torso) | |
245 | particleemitter.Texture = "rbxassetid://930754411" | |
246 | particleemitter.Rate = 1 | |
247 | particleemitter.VelocitySpread = 35 | |
248 | particleemitter.Enabled=false | |
249 | local headw=Instance.new("Weld",Skull) | |
250 | local grabpart=Instance.new("Part",char) | |
251 | grabpart.Size = Vector3.new(1,1,4) | |
252 | grabpart.Transparency=1 | |
253 | grabpart.CanCollide=false | |
254 | local wel=Instance.new("Weld",grabpart) | |
255 | wel.Part0=grabpart | |
256 | wel.Part1=rarm | |
257 | local dh=Instance.new("SpecialMesh",grabpart) | |
258 | dh.MeshId="http://www.roblox.com/asset/?id=12221720" | |
259 | dh.TextureId="http://www.roblox.com/asset/?id=12224218" | |
260 | dh.VertexColor=Vector3.new(0,0,0) | |
261 | wel.C0=CFrame.new(1,0,-1.5)*CFrame.Angles(rad(90),rad(180),rad(90)) | |
262 | for i,v in pairs(Skull:GetChildren()) do | |
263 | if v:IsA("BasePart") then v.Anchored = false | |
264 | end | |
265 | end | |
266 | headw.Part0=Skull | |
267 | headw.Part1=hed | |
268 | local fxFolder={} | |
269 | local fxtab={ | |
270 | blockeffect={ | |
271 | blockfx = function(cf,tim,s1,s2,s3) | |
272 | local block=Instance.new("Part",char) | |
273 | table.insert(fxFolder,block) | |
274 | NoOutline(block) | |
275 | block.BrickColor = BrickColor.new("Really black") | |
276 | block.Transparency = .6 | |
277 | block.Size = Vector3.new(s1,s2,s3) | |
278 | block.Anchored = true | |
279 | block.CanCollide = false | |
280 | block.CFrame = cf | |
281 | Debris(block,tim) | |
282 | end} | |
283 | } | |
284 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
285 | local wld = Instance.new("Weld", wp1) | |
286 | wld.Part0 = wp0 | |
287 | wld.Part1 = wp1 | |
288 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
289 | return wld | |
290 | end | |
291 | local larmweld=newWeld(torso,larm, -1.5, 0.5, 0) | |
292 | larmweld.C1 = CFrame.new(0, 0.5, 0) | |
293 | local rarmweld=newWeld(torso, rarm, 1.5, 0.5, 0) | |
294 | rarmweld.C1 = CFrame.new(0, 0.5, 0) | |
295 | local hedweld=newWeld(torso, hed, 0, 1.5, 0) | |
296 | local llegweld=newWeld(root, lleg, -0.5, -1, 0) | |
297 | llegweld.C1 = CFrame.new(0, 1, 0) | |
298 | local rlegweld=newWeld(root, rleg, 0.5, -1, 0) | |
299 | rlegweld.C1 = CFrame.new(0, 1 ,0) | |
300 | local torweld=newWeld(root, torso, 0, -1, 0) | |
301 | torweld.C1 = CFrame.new(0, -1, 0) | |
302 | function _IterateLerp(matrices,LerpIncrement) | |
303 | hedweld.C0 = Lerp(hedweld.C0,matrices[1],LerpIncrement); | |
304 | torweld.C0 = Lerp(torweld.C0,matrices[2],LerpIncrement); | |
305 | rarmweld.C0 = Lerp(rarmweld.C0,matrices[3],LerpIncrement); | |
306 | larmweld.C0 = Lerp(larmweld.C0,matrices[4],LerpIncrement); | |
307 | rlegweld.C0 = Lerp(rlegweld.C0,matrices[5],LerpIncrement); | |
308 | llegweld.C0 = Lerp(llegweld.C0,matrices[6],LerpIncrement); | |
309 | end; | |
310 | local function root0switch() | |
311 | rlegweld.Part0 = root | |
312 | llegweld.Part0 = root | |
313 | end | |
314 | local function torso0switch() | |
315 | rlegweld.Part0 = torso | |
316 | llegweld.Part0 = torso | |
317 | end | |
318 | local falling = false | |
319 | local jmp = false | |
320 | hum.StateChanged:connect(function(z,state) | |
321 | if state == Enum.HumanoidStateType.Freefall then | |
322 | falling = true | |
323 | taunting=false | |
324 | else | |
325 | falling = false | |
326 | end | |
327 | end) | |
328 | function spikefx(pos) | |
329 | local fxtab={} | |
330 | local wrap=coroutine.wrap(function() | |
331 | for i=1,10 do | |
332 | wait() | |
333 | local p=Instance.new("Part",workspace) | |
334 | local m=Instance.new("SpecialMesh",p) | |
335 | m.MeshType="Sphere" | |
336 | p.CFrame=pos | |
337 | m.Scale=v3(1.7,0.3,0.2) | |
338 | p.Material="Neon" | |
339 | Debris(p,.5) | |
340 | table.insert(fxtab,m) | |
341 | table.insert(fxtab,p) | |
342 | p.BrickColor=BrickColor.new("Black") | |
343 | p.CanCollide=false | |
344 | p.Anchored=true | |
345 | p.CFrame=p.CFrame*CFrame.new(math.random(-5,5),0,math.random(-5,5))*CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))) | |
346 | for _,v in pairs(fxtab) do | |
347 | if v:IsA("SpecialMesh") then | |
348 | v.Scale = v.Scale+Vector3.new(.4,0,0) | |
349 | else | |
350 | v.Transparency = v.Transparency+.1 | |
351 | end | |
352 | end | |
353 | end | |
354 | end);wrap() | |
355 | end | |
356 | rs:connect(function() | |
357 | sine=sine+1 | |
358 | local movevelocity=(root.Velocity*v3(1,0,1)).Magnitude | |
359 | if movevelocity <1 and idle and not taunting then | |
360 | if idle then | |
361 | _IterateLerp({ | |
362 | CFrame.new( 0.0816268921, 1.59128666, -0.102115631, 0.990605652, 0.133867279, 0.0279282276, -0.136749536, 0.969726801, 0.202310443, 0, -0.204229042, 0.978923142 ), | |
363 | CFrame.new( 0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )*CFrame.new(0,.05*math.sin(sine/12),0)*CFrame.Angles(.03*math.sin(sine/12),0,0), | |
364 | CFrame.new( 1.48942029, 0.564742684+.1*math.sin(sine/12), 0.0792327747, 0.978836656, -0.135966524, -0.152944341, 0.12948513, 0.990236998, -0.0516153388, 0.158469126, 0.0307189636, 0.986885965 ), | |
365 | CFrame.new( -1.50521326, 0.566599131+.1*math.sin(sine/12), 0.0541087911, 0.99075222, 0.132517859, 0.0291410107, -0.123971015, 0.971393645, -0.202547595, -0.0551485643, 0.197061881, 0.978838801), | |
366 | CFrame.new( 0.502287865, -1.00783682, -0.047161147, 0.995418072, -0.0143518364, -0.0945355073, 0.0156736188, 0.999789238, 0.0132541945, 0.0943253636, -0.0146751851, 0.995433271 ), | |
367 | CFrame.new( -0.50474906, -1.02262139, -0.0649240464, 0.990501583, 0.0527384132, 0.126985222, -0.0452422909, 0.997098863, -0.0612106584, -0.129844978, 0.0548841506, 0.990014195 ), | |
368 | },.1) | |
369 | end | |
370 | end | |
371 | if falling and idle then | |
372 | _IterateLerp({ | |
373 | CFrame.new( 0, 1.46811366, 0.175658226, 1, 0, 0, 0, 0.936247647, -0.351312846, 0, 0.351316303, 0.936256826 ), | |
374 | CFrame.new( 0, -0.999990225, 0, 1, 0, 0, 0, 0.999990225, 0, 0, 0, 1 ), | |
375 | CFrame.new( 1.43505383, 0.746422827, 0, 0.870108187, -0.492860764, 0, 0.492855906, 0.870099664, 0, 0, 0, 1 ), | |
376 | CFrame.new( -1.46059692, 0.69454664, 0, 0.921192586, 0.389106899, 0, -0.389103055, 0.921183467, 0, 0, 0, 1 ), | |
377 | CFrame.new( 0.506626964, -1.08112538, 0, 0.986746132, -0.162271619, 0, 0.162270024, 0.986736417, 0, 0, 0, 1 ), | |
378 | CFrame.new( -0.504866421, -1.06957817, 0, 0.990267456, 0.139177516, 0, -0.13917613, 0.99025774, 0, 0, 0, 1 ), | |
379 | },.2) | |
380 | end | |
381 | if movevelocity >1 and walking and not jmp and not falling then | |
382 | taunting=false | |
383 | if walking then | |
384 | _IterateLerp({ | |
385 | CFrame.new( 0.0209884644, 1.4973774, 0.168071747, 0.999927104, 0.0119819818, -0.00150420656, -0.0120720444, 0.988607109, -0.150034994, -0.000310648698, 0.150042206, 0.988679588 ), | |
386 | CFrame.new( 0, -1+.1*math.sin(sine/8), 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )*CFrame.Angles(6,rad(12*math.sin(sine/8)),0), | |
387 | CFrame.new( 1.48941588, 0.564742506, 0.07923612, 0.978836656, -0.160068884, -0.127502233, 0.12948513, 0.966909289, -0.219817966, 0.158469126, 0.198656261, 0.967172801 )*CFrame.Angles(rad(-45*math.sin(sine/8)),0,0), | |
388 | CFrame.new( -1.50521326, 0.566599131, 0.0541087911, 0.99075222, 0.132517859, 0.0291410107, -0.123971015, 0.971393645, -0.202547595, -0.0551485643, 0.197061881, 0.978838801)*CFrame.Angles(rad(45*math.sin(sine/8)),0,0), | |
389 | CFrame.new( 0.499892235, -1.00746632, -0.0195503682, 0.999869168, -0.0143518364, 0.00746365637, 0.0142403366, 0.999789238, 0.0147833973, -0.00767425448, -0.0146751851, 0.99986285 )*CFrame.Angles(rad(45*math.sin(sine/8)),0,0), | |
390 | CFrame.new( -0.500758886, -1.02675653, 0.00636120141, 0.998486161, 0.0527384132, -0.0156217664, -0.0535120256, 0.997098863, -0.0541301444, 0.0127217174, 0.0548841506, 0.998411775 )*CFrame.Angles(rad(-45*math.sin(sine/8)),0,0) | |
391 | },.1) | |
392 | end | |
393 | end | |
394 | for _,fx in pairs(fxFolder) do | |
395 | fx.CFrame = fx.CFrame*CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)) | |
396 | end | |
397 | end) | |
398 | function deathtouch() | |
399 | torso0switch() | |
400 | local deathdb=false | |
401 | local hb=rarm.Touched:connect(function(hit) | |
402 | if not hit:IsDescendantOf(char) then | |
403 | if deathdb then return end | |
404 | deathdb=true | |
405 | if hit.Parent then | |
406 | for i,v in pairs(hit.Parent:GetChildren()) do | |
407 | if v:IsA("BasePart") and v.Name ~= "Handle" and v.Size.x<200 then | |
408 | v:BreakJoints() | |
409 | exp:Play() | |
410 | local bv=Instance.new("BodyVelocity",v) | |
411 | bv.Velocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
412 | bv.MaxForce = Vector3.new(100000,100000,100000) | |
413 | v.BrickColor = BrickColor.new("Really black") | |
414 | v.Anchored = false | |
415 | Debris(v,10) | |
416 | end | |
417 | end | |
418 | end | |
419 | end | |
420 | end) | |
421 | for i=1, 10 do | |
422 | rs:wait(1) | |
423 | fxtab.blockeffect.blockfx(rarm.CFrame*CFrame.new(0,-2,0),1,1.5,1.5,1.5) | |
424 | _IterateLerp({ | |
425 | CFrame.new( -0.009729385738, 1.50443935, -0.0961799622, 0.258767962, 0.0345346108, -0.965322137, -0.0124208545, 0.999397218, 0.0324239396, 0.965859592, 0.00360014848, 0.259040236 ), | |
426 | CFrame.new( 0.320317775, -1.01938915, 0.0870335773, 0.17364949, -0.00954774767, 0.984761178, 3.65421684e-08, 0.999953091, 0.00969513413, -0.984807611, -0.00168353785, 0.173641086 ), | |
427 | CFrame.new( 1.3838644, 0.571409225, -0.176830292, -0.0357611366, -0.936706185, 0.348289967, 0.983349204, 0.0291584283, 0.17938672, -0.178188115, 0.348904669, 0.920063972 ), | |
428 | CFrame.new( -1.50522053, 0.56659919, 0.0541077442, 0.99075222, 0.121532187, 0.0603333004, -0.123971015, 0.991540074, 0.038461592, -0.0551485643, -0.0455854759, 0.99743706 ), | |
429 | CFrame.new( 0.600003242, -0.984540462, 0.0129966736, 0.984808087, 1.15483999e-07, -0.173646927, 0.013456177, 0.996993124, 0.076315023, 0.173124731, -0.0774922594, 0.98184669 ), | |
430 | CFrame.new( -0.600003242, -0.984540701, 0.0129947662, 0.98480773, -5.15952706e-07, 0.173649341, -0.0134561537, 0.996993005, 0.076316081, -0.173127204, -0.0774933025, 0.981846154 ) | |
431 | },0.25 ) | |
432 | end | |
433 | wait(.2) | |
434 | for i=1,7 do | |
435 | rs:wait(1) | |
436 | _IterateLerp({ | |
437 | CFrame.new( 0.0816268921, 1.59128666, -0.102115631, 0.990605652, 0.133867279, 0.0279282276, -0.136749536, 0.969726801, 0.202310443, 0, -0.204229042, 0.978923142 ), | |
438 | CFrame.new( 0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )*CFrame.Angles(rad(0),0,0), | |
439 | CFrame.new( 1.48942029, 0.564742684, 0.0792327747, 0.978836656, -0.135966524, -0.152944341, 0.12948513, 0.990236998, -0.0516153388, 0.158469126, 0.0307189636, 0.986885965 ), | |
440 | CFrame.new( -1.50522053, 0.56659919, 0.0541077442, 0.99075222, 0.121532187, 0.0603333004, -0.123971015, 0.991540074, 0.038461592, -0.0551485643, -0.0455854759, 0.99743706 ), | |
441 | CFrame.new( 0.502287865, -1.00783682, -0.047161147, 0.995418072, -0.0143518364, -0.0945355073, 0.0156736188, 0.999789238, 0.0132541945, 0.0943253636, -0.0146751851, 0.995433271 ), | |
442 | CFrame.new( -0.50474906, -1.02262139, -0.0649240464, 0.990501583, 0.0527384132, 0.126985222, -0.0452422909, 0.997098863, -0.0612106584, -0.129844978, 0.0548841506, 0.990014195 ), | |
443 | },.25) | |
444 | end | |
445 | hb:Disconnect() | |
446 | root0switch() | |
447 | end | |
448 | function chargeslash() | |
449 | torso0switch() | |
450 | for i=1,7 do | |
451 | wait() | |
452 | _IterateLerp({ | |
453 | CFrame.new( -0.0545110703, 1.56173253, 0, 0.995324731, -0.0965852737, 0, 0.096584335, 0.995314956, 0, 0, 0, 1 ), | |
454 | CFrame.new( 0, -0.999990225, 0, 1, 0, 0, 0, 0.999990225, 0, 0, 0, 1 ), | |
455 | CFrame.new( 1.50836289, 0.612062991, 0.137458801, 0.845401824, -0.503801167, 0.177426338, -0.027605487, -0.372942358, -0.927433074, 0.533416927, 0.779163361, -0.329197079 ), | |
456 | CFrame.new( -1.49072063, 0.595651746, -0.00649094954, 0.98144269, 0.191755578, 0, -0.191313684, 0.979181051, 0.0677044615, 0.0129828351, -0.066448696, 0.9977054 ), | |
457 | CFrame.new( 0.501660109, -1.04070473, 0, 0.996679068, -0.0814296976, 0, 0.0814289004, 0.996669233, 0, 0, 0, 1 ), | |
458 | CFrame.new( -0.500845671, -1.0290556, 0, 0.998308957, 0.0581314489, 0, -0.058130879, 0.998299122, 0, 0, 0, 1 ), | |
459 | },.4) | |
460 | end | |
461 | for i=1,10 do | |
462 | wait() | |
463 | grabpart.Transparency=grabpart.Transparency-0.1 | |
464 | end | |
465 | for i=1,7 do | |
466 | wait() | |
467 | _IterateLerp({ | |
468 | CFrame.new( -0.0545101166, 1.56173253, 4.76837158e-07, 0.995324731, -0.0965852737, 0, 0.096584335, 0.995314956, 0, 2.98023224e-08, 3.7252903e-09, 1 ), | |
469 | CFrame.new( 0, -0.999990225, 0, 0.613908231, 0, -0.789377391, 0, 0.999990225, 0, 0.789377391, 0, 0.613908231 ), | |
470 | CFrame.new( 1.16525662, 0.474341065, 0.340542078, 0.159188718, -0.971173942, 0.177426353, -0.303049803, -0.219109237, -0.927433074, 0.939583898, 0.0938687325, -0.329197049 ), | |
471 | CFrame.new( -1.49072158, 0.595651746, -0.00649142265, 0.98144269, 0.191755563, 0, -0.191313684, 0.979181051, 0.0677044615, 0.0129828155, -0.0664486885, 0.99770534 ), | |
472 | CFrame.new( 0.501660109, -1.04070473, 9.57399607e-07, 0.996679008, -0.0814296901, 0, 0.0814289004, 0.996669233, 0, 0, 3.7252903e-09, 1 ), | |
473 | CFrame.new( -0.500845671, -1.0290556, 4.76837158e-07, 0.998309016, 0.0581314489, 0, -0.058130879, 0.998299122, 0, 0, 0, 1 ), | |
474 | },.4) | |
475 | end | |
476 | swosh:Play() | |
477 | local bvol=Instance.new("BodyVelocity",torso) | |
478 | bvol.P = 100000 | |
479 | bvol.MaxForce=Vector3.new(bvol.P,0,bvol.P) | |
480 | bvol.Velocity = root.CFrame.lookVector*100 | |
481 | Debris(bvol,.2) | |
482 | local chopdb=false | |
483 | local hb=grabpart.Touched:connect(function(hit) | |
484 | if chopdb==true then return end | |
485 | if hit.Parent:findFirstChild("Head") and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then | |
486 | local tors = hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso") if tors then | |
487 | chopdb=true | |
488 | local hmu=hit.Parent:FindFirstChildOfClass("Humanoid") | |
489 | spikefx(tors.CFrame) | |
490 | slash:Play() | |
491 | for i,v in pairs(hit.Parent:GetChildren()) do | |
492 | if v:IsA("BasePart") and v.Name ~= "Handle" and v.Size.x<200 then | |
493 | v:BreakJoints() | |
494 | local bv=Instance.new("BodyVelocity",v) | |
495 | bv.Velocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
496 | bv.MaxForce = Vector3.new(100000,100000,100000) | |
497 | v.BrickColor = BrickColor.new("Really black") | |
498 | v.Anchored = false | |
499 | Debris(v,10) | |
500 | end | |
501 | end | |
502 | end | |
503 | end | |
504 | end) | |
505 | for i=1,7 do | |
506 | wait() | |
507 | _IterateLerp({ | |
508 | CFrame.new( -0.0102410316, 1.56405377, 0, 0.999967575, -0.00804331806, 0, 0.00804324076, 0.99995786, 0, 0, 0, 0.99999994 ), | |
509 | CFrame.new( 0, -0.999990225, 0, 0.309218496, 0, 0.950990975, 0, 0.999990225, 0, -0.950990975, 0, 0.309218496 ), | |
510 | CFrame.new( 1.52410364, 0.600606143, 0.127127171, 0.843653738, -0.536326528, -0.0245404467, -0.0442715883, -0.0239421558, -0.998722672, 0.535059035, 0.843670845, -0.0439433567 ), | |
511 | CFrame.new( -1.48721159, 0.590926051, -0.0660021305, 0.974422932, 0.191755563, -0.117173016, -0.18186219, 0.979181051, 0.0900608823, 0.132004589, -0.0664486811, 0.989019334 ), | |
512 | CFrame.new( 0.501660109, -1.04070473, 0, 0.996679008, -0.0814296901, 0, 0.0814289004, 0.996669233, 0, -2.98023224e-08, 0, 0.99999994 ), | |
513 | CFrame.new( -0.500846148, -1.0290556, 0, 0.998308837, 0.0581314452, 0, -0.058130879, 0.998299122, 0, 0, 0, 0.99999994 ), | |
514 | },.4) | |
515 | end | |
516 | hb:Disconnect() | |
517 | for i=1,10 do | |
518 | wait() | |
519 | grabpart.Transparency=grabpart.Transparency+0.1 | |
520 | end | |
521 | end | |
522 | function darkheart() | |
523 | torso0switch() | |
524 | summon:Play() | |
525 | for i=1,25 do | |
526 | wait() | |
527 | _IterateLerp({ | |
528 | CFrame.new( 0, 1.48561454, 0.119072914, 1, 0, 0, 0, 0.971229255, -0.238146394, 0, 0.238146394, 0.971229255 ), | |
529 | CFrame.new( 0, -2.62504315, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 ), | |
530 | CFrame.new( 1.48118687, 0.432643533, 0.117988974, 0.962375402, -0.270894974, -0.0212016907, -0.134712949, -0.407902002, -0.903032839, 0.235978872, 0.871912777, -0.429047942 ), | |
531 | CFrame.new( -1.48679996, 0.458605587, 0.106357396, 0.973600924, 0.227957353, 0.0116878562, 0.082788907, -0.304944426, -0.948764861, -0.212713808, 0.924686074, -0.315766543 ), | |
532 | CFrame.new( 0.5, -0.950745523, -0.529396296, 1, 0, 8.8817842e-16, 0, 0.204137847, 0.978942096, 0, -0.978942156, 0.204137862 ), | |
533 | CFrame.new( -0.5, -0.341685951, -0.633748055, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1 ), | |
534 | },.1) | |
535 | end | |
536 | wait(.2) | |
537 | local inc=-3 | |
538 | local swordtab={} | |
539 | for i=1,45 do | |
540 | wait() | |
541 | local dark=Instance.new("Part",char) | |
542 | dark.Size = Vector3.new(2,2,9) | |
543 | dark.Transparency=1 | |
544 | dark.CanCollide=false | |
545 | dark.Anchored = true | |
546 | table.insert(swordtab,dark) | |
547 | local dh=Instance.new("SpecialMesh",dark) | |
548 | dh.MeshId="http://www.roblox.com/asset/?id=12221720" | |
549 | dh.TextureId="http://www.roblox.com/asset/?id=12224218" | |
550 | dh.VertexColor=Vector3.new(0,0,0) | |
551 | dh.Scale=v3(2,2,2) | |
552 | dark.CFrame=root.CFrame*CFrame.new(0,-4,inc)*CFrame.Angles(rad(-90),rad(math.random(-45,45)),0) | |
553 | local wrap=coroutine.wrap(function() | |
554 | for i=1,10 do | |
555 | wait() | |
556 | dark.Transparency=dark.Transparency-.1 | |
557 | dark.CFrame=dark.CFrame*CFrame.new(0,0,.45) | |
558 | end | |
559 | end);wrap() | |
560 | local sq=false | |
561 | dark.Touched:connect(function(hit) | |
562 | if hit and hit.Parent and hit.Parent:findFirstChildOfClass("Humanoid") and not hit:isDescendantOf(char) then | |
563 | if sq then return end | |
564 | local tors = hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso") | |
565 | if tors then | |
566 | sq=true | |
567 | squish:Play() | |
568 | spikefx(tors.CFrame) | |
569 | for i,v in pairs(hit.Parent:GetChildren()) do | |
570 | if v:IsA("BasePart") and v.Name ~= "Handle" and v.Size.x<100 then | |
571 | v:BreakJoints() | |
572 | local bv=Instance.new("BodyVelocity",v) | |
573 | bv.Velocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
574 | bv.MaxForce = Vector3.new(100000,100000,100000) | |
575 | v.BrickColor = BrickColor.new("Really black") | |
576 | v.Anchored = false | |
577 | Debris(v,10) | |
578 | end | |
579 | end | |
580 | end | |
581 | end | |
582 | end) | |
583 | inc=inc-1 | |
584 | end | |
585 | for _,v in pairs(swordtab) do | |
586 | Debris(v,.4) | |
587 | local wrap=coroutine.wrap(function() | |
588 | for i=1,10 do | |
589 | wait() | |
590 | v.Transparency = v.Transparency+.1 | |
591 | v.CFrame = v.CFrame*CFrame.new(0,0,-.45) | |
592 | end | |
593 | end);wrap() | |
594 | end | |
595 | end | |
596 | function zaworld() | |
597 | torso0switch() | |
598 | particleemitter.Enabled=true | |
599 | taunting = true | |
600 | theworld:Play() | |
601 | for i=1,7 do | |
602 | wait() | |
603 | _IterateLerp({ | |
604 | CFrame.new( 0, 1.50000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 ), | |
605 | CFrame.new( 0, -0.948942542, -0.315449059, 1, 0, 0, 0, 0.948942542, -0.315449059, 0, 0.315449059, 0.948942542 ), | |
606 | CFrame.new( 1.03333831, 0.803000212, 0.328895986, 0.666042447, 0.745147169, 0.0338109061, 0.505401671, -0.484157503, 0.714255333, 0.54859519, -0.458636403, -0.699068129 ), | |
607 | CFrame.new( -1.0756973, 0.83096379, 0.25872466, 0.65691328, -0.751839459, 0.0565877482, -0.589003384, -0.464883924, 0.661027908, -0.470680177, -0.467568457, -0.748224497 ), | |
608 | CFrame.new( 0.504901886, -1.06555462, 0.02408427, 0.990197122, -0.139677078, 0, 0.131108776, 0.929454803, 0.344853967, -0.0481681935, -0.341473401, 0.93865639 ), | |
609 | CFrame.new( -0.513496816, -1.10789347, 0.0409053266, 0.973007023, 0.230775401, 0, -0.215787053, 0.909812391, 0.354510069, 0.0818122104, -0.344940811, 0.935052276 ), | |
610 | },.35) | |
611 | end | |
612 | end | |
613 | mouse.KeyDown:connect(function(k) | |
614 | if k=="z" then | |
615 | if touchdb then return end | |
616 | touchdb=true | |
617 | zaworld() | |
618 | repeat wait(.7) | |
619 | until not taunting | |
620 | root0switch() | |
621 | particleemitter.Enabled=false | |
622 | touchdb=false | |
623 | elseif k=="e" then | |
624 | if touchdb then return end | |
625 | touchdb=true | |
626 | walking=false | |
627 | idle = false | |
628 | deathtouch() | |
629 | walking=true | |
630 | idle=true | |
631 | touchdb=false | |
632 | elseif k=="f" then | |
633 | if touchdb then return end | |
634 | touchdb=true | |
635 | walking=false | |
636 | idle = false | |
637 | chargeslash() | |
638 | walking=true | |
639 | idle=true | |
640 | wait(.4) | |
641 | root0switch() | |
642 | touchdb=false | |
643 | elseif k=="r" then | |
644 | if touchdb then return end | |
645 | touchdb=true | |
646 | walking=false | |
647 | idle = false | |
648 | darkheart() | |
649 | walking=true | |
650 | idle=true | |
651 | wait(.4) | |
652 | root0switch() | |
653 | touchdb=false | |
654 | end | |
655 | end) |