SHOW:
|
|
- or go back to the newest paste.
1 | - | Player=game:GetService("Players").LocalPlayer |
1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | - | local p = game.Players.LocalPlayer |
56 | + | end |
57 | end) | |
58 | - | local mouse = p:GetMouse() |
58 | + | Event.Parent = NLS([==[ |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | ||
84 | Player=owner | |
85 | Character=Player.Character | |
86 | PlayerGui=Player.PlayerGui | |
87 | Backpack=Player.Backpack | |
88 | Torso=Character.Torso | |
89 | Head=Character.Head | |
90 | Humanoid=Character.Humanoid | |
91 | m=Instance.new('Model',Character) | |
92 | LeftArm=Character["Left Arm"] | |
93 | LeftLeg=Character["Left Leg"] | |
94 | RightArm=Character["Right Arm"] | |
95 | RightLeg=Character["Right Leg"] | |
96 | LS=Torso["Left Shoulder"] | |
97 | LH=Torso["Left Hip"] | |
98 | RS=Torso["Right Shoulder"] | |
99 | RH=Torso["Right Hip"] | |
100 | Face = Head.face | |
101 | Neck=Torso.Neck | |
102 | it=Instance.new | |
103 | attacktype=1 | |
104 | vt=Vector3.new | |
105 | cf=CFrame.new | |
106 | euler=CFrame.fromEulerAnglesXYZ | |
107 | angles=CFrame.Angles | |
108 | cloaked=false | |
109 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
110 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
111 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
112 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
113 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
114 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
115 | RootPart=Character.HumanoidRootPart | |
116 | RootJoint=RootPart.RootJoint | |
117 | RootCF=euler(-1.57,0,3.14) | |
118 | attack = false | |
119 | attackdebounce = false | |
120 | deb=false | |
121 | equipped=true | |
122 | hand=false | |
123 | MMouse=nil | |
124 | combo=0 | |
125 | mana=0 | |
126 | trispeed=1 | |
127 | pathtrans=.7 | |
128 | attackmode='none' | |
129 | local idle=0 | |
130 | local Anim="Idle" | |
131 | local Effects={} | |
132 | local gun=false | |
133 | local shoot=false | |
134 | player=nil | |
135 | cloak=false | |
136 | ||
137 | ||
138 | ---------------------------------------- | |
139 | local p = owner | |
140 | local char = p.Character | |
141 | local larm = char["Left Arm"] | |
142 | local rarm = char["Right Arm"] | |
143 | local lleg = char["Left Leg"] | |
144 | local rleg = char["Right Leg"] | |
145 | local hed = char.Head | |
146 | local torso = char.Torso | |
147 | local hum = char.Humanoid | |
148 | local cam = game.Workspace.CurrentCamera | |
149 | local root = char.HumanoidRootPart | |
150 | local rj = root.RootJoint | |
151 | local deb = false | |
152 | local shot = 0 | |
153 | local stanceToggle = "Idle1" | |
154 | local l = game:GetService("Lighting") | |
155 | local rs = game:GetService("RunService").RenderStepped | |
156 | local hb = game:GetService("RunService").Heartbeat | |
157 | local Stepped = game:GetService("RunService").Stepped | |
158 | math.randomseed(os.time()) | |
159 | ---------------------------------------------------- | |
160 | fat = Instance.new("BindableEvent",script) | |
161 | fat.Name = "Heartbeat" | |
162 | ||
163 | script:WaitForChild("Heartbeat") | |
164 | ||
165 | frame = 1/30 | |
166 | tf = 0 | |
167 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
168 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
169 | lastframe = tick() | |
170 | script.Heartbeat:Fire() --ayy lmao | |
171 | ||
172 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp | |
173 | tf = tf + s | |
174 | if tf >= frame then | |
175 | if allowframeloss then | |
176 | script.Heartbeat:Fire() | |
177 | lastframe=tick() | |
178 | else | |
179 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame)))) | |
180 | for i=1, math.floor(tf/frame) do | |
181 | script.Heartbeat:Fire() | |
182 | end | |
183 | lastframe=tick() | |
184 | end | |
185 | if tossremainder then | |
186 | tf = 0 | |
187 | else | |
188 | tf = tf - frame * math.floor(tf/frame) | |
189 | end | |
190 | end | |
191 | end) | |
192 | ||
193 | function Swait(NUMBER) | |
194 | if NUMBER == 0 or NUMBER == nil then | |
195 | fat.Event:wait() | |
196 | else | |
197 | for i = 1, NUMBER do | |
198 | fat.Event:wait() | |
199 | end | |
200 | end | |
201 | end | |
202 | ---------------------------------------------------- | |
203 | Debounces = { | |
204 | CanAttack = true; | |
205 | CanJoke = true; | |
206 | NoIdl = false; | |
207 | Slashing = false; | |
208 | Slashed = false; | |
209 | ks = false; | |
210 | } | |
211 | ---------------------------------------------------- | |
212 | ||
213 | function lerp(a, b, t) -- Linear interpolation | |
214 | return a + (b - a)*t | |
215 | end | |
216 | ||
217 | function slerp(a, b, t) --Spherical interpolation | |
218 | dot = a:Dot(b) | |
219 | if dot > 0.99999 or dot < -0.99999 then | |
220 | return t <= 0.5 and a or b | |
221 | else | |
222 | r = math.acos(dot) | |
223 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
224 | end | |
225 | end | |
226 | ||
227 | function matrixInterpolate(a, b, t) | |
228 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
229 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
230 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
231 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
232 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
233 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
234 | local t = v1:Dot(v2) | |
235 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
236 | return CFrame.new() | |
237 | end | |
238 | return CFrame.new( | |
239 | v0.x, v0.y, v0.z, | |
240 | v1.x, v1.y, v1.z, | |
241 | v2.x, v2.y, v2.z, | |
242 | v3.x, v3.y, v3.z) | |
243 | end | |
244 | ---------------------------------------------------- | |
245 | function genWeld(a,b) | |
246 | local w = Instance.new("Weld",a) | |
247 | w.Part0 = a | |
248 | w.Part1 = b | |
249 | return w | |
250 | end | |
251 | function weld(a, b) | |
252 | local weld = Instance.new("Weld") | |
253 | weld.Name = "W" | |
254 | weld.Part0 = a | |
255 | weld.Part1 = b | |
256 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
257 | weld.Parent = a | |
258 | return weld; | |
259 | end | |
260 | ---------------------------------------------------- | |
261 | function Lerp(c1,c2,al) | |
262 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
263 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
264 | for i,v in pairs(com1) do | |
265 | com1[i] = v+(com2[i]-v)*al | |
266 | end | |
267 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
268 | end | |
269 | ---------------------------------------------------- | |
270 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
271 | local wld = Instance.new("Weld", wp1) | |
272 | wld.Part0 = wp0 | |
273 | wld.Part1 = wp1 | |
274 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
275 | end | |
276 | ---------------------------------------------------- | |
277 | newWeld(torso, larm, -1.5, 0.5, 0) | |
278 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
279 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
280 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
281 | newWeld(torso, hed, 0, 1.5, 0) | |
282 | newWeld(torso, lleg, -0.5, -1, 0) | |
283 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
284 | newWeld(torso, rleg, 0.5, -1, 0) | |
285 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
286 | newWeld(root, torso, 0, -1, 0) | |
287 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
288 | ---------------------------------------------------- | |
289 | ||
290 | ---------------------------------------------------- | |
291 | ||
292 | ||
293 | ||
294 | ----{{ Torso Skin }}-------- | |
295 | ||
296 | local TBlast, TBMesh = Instance.new("Part"), Instance.new("SpecialMesh") | |
297 | TBlast.BrickColor = BrickColor.new("Deep orange") | |
298 | TBlast.Transparency = 1 | |
299 | TBlast.Anchored = true | |
300 | TBlast.CanCollide = false | |
301 | TBlast.CFrame = root.CFrame | |
302 | TBlast.Size = Vector3.new(2,2,2) | |
303 | TBMesh.Parent = TBlast | |
304 | TBMesh.MeshType = "Sphere" | |
305 | ||
306 | local TB, TM = Instance.new("Part"), Instance.new("SpecialMesh") | |
307 | TB.BrickColor = BrickColor.new("Deep orange") | |
308 | TB.Transparency = 1 | |
309 | TB.Anchored = true | |
310 | TB.CanCollide = false | |
311 | TB.CFrame = root.CFrame | |
312 | TB.Size = Vector3.new(2,2,2) | |
313 | TB.Parent = TBlast | |
314 | TM.MeshType = "Sphere" | |
315 | ||
316 | ||
317 | game.Lighting.Brightness = 0 | |
318 | game.Lighting.OutdoorAmbient = TB.BrickColor.Color | |
319 | game.Lighting.TimeOfDay = 0.1 | |
320 | game.Lighting.FogEnd = 1000 | |
321 | game.Lighting.FogColor = TB.BrickColor.Color | |
322 | game.Lighting.TimeOfDay = "00:00:00" | |
323 | game.Lighting.Ambient = Color3.new(0,0,0) | |
324 | game.Lighting.FogColor = Color3.new(0,0,0) | |
325 | game.Lighting.FogEnd = 500 | |
326 | game.Lighting.FogStart = 0 | |
327 | game.Lighting.GlobalShadows = true | |
328 | ||
329 | ||
330 | LightOnBody = Instance.new("PointLight", hed) | |
331 | LightOnBody.Brightness = 3000 | |
332 | LightOnBody.Range = 20 | |
333 | LightOnBody.Color = TBlast.BrickColor.Color | |
334 | z = Instance.new("Sound",char) --Smile: print("Ã?Æ?Ã?â??Ã?â? ââ?¬â?¢Ã?Æ?ââ?¬ Ã?¢ââ??‰â??¢Ã?Æ?Ã?â??Ã?¢ââ??¬ Ã?Æ?Ã?¢Ã?¢ââ?¬Å¡Ã?¬Ã?¢ââ?¬Å¾Ã?¢Ã?Æ?Ã?â??Ã?â? ââ?¬â?¢Ã?Æ?Ã?¢Ã?¢ââ?¬Å¡Ã?¬Ã?â?¦Ã?¡Ã?Æ?Ã?â??Ã?¢ââ??¬Ã?¡Ã?Æ?ââ?¬Å¡Ã?â??Ã?¢?Ã?Æ?Ã?â??Ã?â? ââ?¬â?¢Ã?Æ?ââ?¬ Ã?¢ââ??‰â??¢Ã?Æ?Ã?â??Ã?â??Ã?¢Ã?Æ?Ã?¢Ã?¢ââ??¬Ã?¡Ã?â??Ã?¬Ã?Æ?ââ?¬Â¦Ã?â??Ã?¡Ã?Æ?Ã?â??Ã?â? ââ?¬â?¢Ã?Æ?Ã?¢Ã?¢ââ?¬Å¡Ã?¬Ã?â?¦Ã?¡��?Æ?Ã?â??Ã?¢ââ??¬Ã?¡Ã?Æ?ââ?¬Å¡Ã?â??Ã?º") | |
335 | z.SoundId = "rbxassetid://621339355"--410761150, 411368002 | |
336 | z.Looped = true | |
337 | z.Pitch = 1 | |
338 | z.Volume = 7 | |
339 | wait(0.1) | |
340 | z:Play() | |
341 | ||
342 | local Orbd = Instance.new("Part", char) | |
343 | Orbd.Name = "Orbd" | |
344 | Orbd.Shape = Enum.PartType.Ball | |
345 | Orbd.CanCollide = false | |
346 | Orbd.BrickColor = BrickColor.new("Deep orange") | |
347 | Orbd.Transparency = 0 | |
348 | Orbd.Material = "Neon" | |
349 | Orbd.Size = Vector3.new(0.2, 0.2, 0.2) | |
350 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
351 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
352 | ||
353 | local Weld = Instance.new("Weld", Orbd) | |
354 | Weld.Part0 = char.Head | |
355 | Weld.Part1 = Orbd | |
356 | Weld.C1 = CFrame.new(-0.2, -0.2, 0.5) | |
357 | ||
358 | local Orbvc = Instance.new("Part", char) | |
359 | Orbvc.Name = "Orbvc" | |
360 | Orbvc.Shape = Enum.PartType.Ball | |
361 | Orbvc.CanCollide = false | |
362 | Orbvc.BrickColor = BrickColor.new("Deep orange") | |
363 | Orbvc.Transparency = 0 | |
364 | Orbvc.Material = "Neon" | |
365 | Orbvc.Size = Vector3.new(0.2, 0.2, 0.2) | |
366 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
367 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
368 | ||
369 | local Weld = Instance.new("Weld", Orbvc) | |
370 | Weld.Part0 = char.Head | |
371 | Weld.Part1 = Orbvc | |
372 | Weld.C1 = CFrame.new(0.2, -0.2, 0.5) | |
373 | ||
374 | local plr=game.Players.LocalPlayer | |
375 | local ch=plr.Character | |
376 | local head=ch.Head | |
377 | ||
378 | ||
379 | head.BrickColor = BrickColor.new("Really black") | |
380 | head.Transparency = 1 | |
381 | ||
382 | function doBrick(parent,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts) | |
383 | local p=Instance.new('Part',parent);p.BrickColor=colour;p.Material=material;p.Transparency=transparency;p.Anchored=a;p.CanCollide=cc;p.FormFactor="Custom";p.Size=size;p.BackSurface=bs;p.BottomSurface=bts;p.FrontSurface=fs;p.LeftSurface=ls;p.RightSurface=rs;p.TopSurface=ts;p.Position=pos;p.CFrame=p.CFrame*cf; | |
384 | return p | |
385 | end | |
386 | ||
387 | function doMesh(parent,meshType,meshId,scale) | |
388 | local m=Instance.new('SpecialMesh',parent);m.MeshType=meshType;m.MeshId=meshId;m.Scale=scale | |
389 | return m | |
390 | end | |
391 | ||
392 | ||
393 | local hm=Instance.new("Model",ch);hm.Name="HelmetModel" | |
394 | ||
395 | local hat=doBrick(hm,Vector3.new(0,0,0),head.CFrame*CFrame.new(0,0.1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),Vector3.new(1,1,1),BrickColor.new("Really black"),"Granite",0,true,false,10,10,10,10,10,10) | |
396 | local hoodMesh=doMesh(hat,"FileMesh","http://www.roblox.com/asset/?id=6552202",Vector3.new(3,3,3)) | |
397 | ||
398 | hat.Anchored = false | |
399 | ||
400 | w = Instance.new("Weld", game.Players.LocalPlayer.Character["Head"]) | |
401 | w.Part0 = game.Players.LocalPlayer.Character["Head"] | |
402 | w.Part1 = hat | |
403 | w.C0 = CFrame.new(0, .1, 0)*CFrame.Angles(0, 0, 0) | |
404 | ||
405 | ||
406 | ||
407 | plr:ClearCharacterAppearance() | |
408 | wait(0.1) | |
409 | plr.Character.Head.BrickColor = BrickColor.new("Really black") | |
410 | plr.Character.Torso.BrickColor = BrickColor.new("Really black") | |
411 | plr.Character["Right Arm"].BrickColor = BrickColor.new("Really black") | |
412 | plr.Character["Right Leg"].BrickColor = BrickColor.new("Really black") | |
413 | plr.Character["Left Leg"].BrickColor = BrickColor.new("Really black") | |
414 | plr.Character["Left Arm"].BrickColor = BrickColor.new("Really black") | |
415 | plr.Character.Head.face:Destroy() | |
416 | ||
417 | ||
418 | local runDummyScript = function(f,scri) | |
419 | local oldenv = getfenv(f) | |
420 | local newenv = setmetatable({}, { | |
421 | __index = function(_, k) | |
422 | if k:lower() == 'script' then | |
423 | return scri | |
424 | else | |
425 | return oldenv[k] | |
426 | end | |
427 | end | |
428 | }) | |
429 | setfenv(f, newenv) | |
430 | ypcall(function() f() end) | |
431 | end | |
432 | cors = {} | |
433 | mas = Instance.new("Model",game:GetService("Lighting")) | |
434 | mas.Name = "CompiledModel" | |
435 | o1 = Instance.new("Model") | |
436 | o2 = Instance.new("Part") | |
437 | o3 = Instance.new("Weld") | |
438 | o4 = Instance.new("Weld") | |
439 | o5 = Instance.new("Part") | |
440 | o6 = Instance.new("Part") | |
441 | o1.Name = "Torso2" | |
442 | o1.Parent = mas | |
443 | o2.Parent = o1 | |
444 | o2.Material = Enum.Material.Neon | |
445 | o2.BrickColor = BrickColor.new("Deep orange") | |
446 | o2.Position = Vector3.new(3, 3, 11.5) | |
447 | o2.Size = Vector3.new(2, 2, 1) | |
448 | o2.CFrame = CFrame.new(3, 3, 11.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
449 | o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
450 | o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
451 | o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
452 | o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
453 | o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
454 | o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
455 | o2.Color = Color3.new(1, 0.686275, 0) | |
456 | o2.Position = Vector3.new(3, 3, 11.5) | |
457 | o3.Name = "MainWeld" | |
458 | o3.Parent = o2 | |
459 | o3.C0 = CFrame.new(0.0149998665, 0.62999773, -0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
460 | o3.Part0 = o2 | |
461 | o3.Part1 = o5 | |
462 | o4.Name = "MainWeld" | |
463 | o4.Parent = o2 | |
464 | o4.C0 = CFrame.new(0.0149998665, -0.314815998, -0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
465 | o4.Part0 = o2 | |
466 | o4.Part1 = o6 | |
467 | o5.Parent = o1 | |
468 | o5.Material = Enum.Material.Granite | |
469 | o5.BrickColor = BrickColor.new("Really black") | |
470 | o5.Position = Vector3.new(3.01499987, 3.62999773, 11.4949999) | |
471 | o5.Size = Vector3.new(2.04999995, 0.839999557, 1.08999991) | |
472 | o5.CFrame = CFrame.new(3.01499987, 3.62999773, 11.4949999, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
473 | o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
474 | o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
475 | o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
476 | o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
477 | o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
478 | o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
479 | o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
480 | o5.Position = Vector3.new(3.01499987, 3.62999773, 11.4949999) | |
481 | o6.Parent = o1 | |
482 | o6.Material = Enum.Material.Granite | |
483 | o6.BrickColor = BrickColor.new("Really black") | |
484 | o6.Position = Vector3.new(3.01499987, 2.685184, 11.4949999) | |
485 | o6.Size = Vector3.new(2.04999995, 0.839999557, 1.08999991) | |
486 | o6.CFrame = CFrame.new(3.01499987, 2.685184, 11.4949999, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
487 | o6.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
488 | o6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
489 | o6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
490 | o6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
491 | o6.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
492 | o6.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
493 | o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
494 | o6.Position = Vector3.new(3.01499987, 2.685184, 11.4949999) | |
495 | mas.Parent = workspace | |
496 | mas:MakeJoints() | |
497 | local mas1 = mas:GetChildren() | |
498 | for i=1,#mas1 do | |
499 | mas1[i].Parent = workspace | |
500 | ypcall(function() mas1[i]:MakeJoints() end) | |
501 | end | |
502 | mas:Destroy() | |
503 | for i=1,#cors do | |
504 | coroutine.resume(cors[i]) | |
505 | end | |
506 | ||
507 | ||
508 | wait() | |
509 | ||
510 | workspace["Torso2"].Parent = game.Players.LocalPlayer.Character | |
511 | ||
512 | game.Players.LocalPlayer.Character["Torso2"].Name = "Familiar Torso2" | |
513 | ||
514 | w = Instance.new("Weld", game.Players.LocalPlayer.Character["Torso"]) | |
515 | w.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
516 | w.Part1 = o2 | |
517 | w.C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0) | |
518 | game.Players.LocalPlayer.Character["Torso"].Transparency = 1 | |
519 | ||
520 | for i,v in pairs (game.Players.LocalPlayer.Character["Familiar Torso2"]:GetChildren()) do | |
521 | if v.ClassName == "Part" then | |
522 | v.CanCollide = false | |
523 | v.Anchored = false | |
524 | end | |
525 | end | |
526 | ||
527 | ||
528 | ||
529 | ---{{Right Arm}}-------- | |
530 | local runDummyScript = function(f,scri) | |
531 | local oldenv = getfenv(f) | |
532 | local newenv = setmetatable({}, { | |
533 | __index = function(_, k) | |
534 | if k:lower() == 'script' then | |
535 | return scri | |
536 | else | |
537 | return oldenv[k] | |
538 | end | |
539 | end | |
540 | }) | |
541 | setfenv(f, newenv) | |
542 | ypcall(function() f() end) | |
543 | end | |
544 | cors = {} | |
545 | mas = Instance.new("Model",game:GetService("Lighting")) | |
546 | mas.Name = "CompiledModel" | |
547 | o1 = Instance.new("Model") | |
548 | o2 = Instance.new("Part") | |
549 | o3 = Instance.new("Weld") | |
550 | o4 = Instance.new("Weld") | |
551 | o5 = Instance.new("Weld") | |
552 | o6 = Instance.new("Weld") | |
553 | o7 = Instance.new("Weld") | |
554 | o8 = Instance.new("Weld") | |
555 | o9 = Instance.new("Weld") | |
556 | o10 = Instance.new("Weld") | |
557 | o11 = Instance.new("Part") | |
558 | o12 = Instance.new("Part") | |
559 | o13 = Instance.new("Part") | |
560 | o14 = Instance.new("Model") | |
561 | o15 = Instance.new("Part") | |
562 | o16 = Instance.new("Weld") | |
563 | o17 = Instance.new("Weld") | |
564 | o18 = Instance.new("Weld") | |
565 | o19 = Instance.new("Weld") | |
566 | o20 = Instance.new("Part") | |
567 | o21 = Instance.new("Part") | |
568 | o22 = Instance.new("Part") | |
569 | o23 = Instance.new("Part") | |
570 | o1.Name = "RightArm" | |
571 | o1.Parent = mas | |
572 | o2.Parent = o1 | |
573 | o2.Material = Enum.Material.Neon | |
574 | o2.BrickColor = BrickColor.new("Deep orange") | |
575 | o2.Position = Vector3.new(-3.5987432, 0.987944722, 11.4995985) | |
576 | o2.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
577 | o2.Size = Vector3.new(1, 2, 1) | |
578 | o2.CFrame = CFrame.new(-3.5987432, 0.987944722, 11.4995985, 1, -0.00018174194, 7.21687247e-05, 0.000181727533, 0.99999994, 0.000199583432, -7.22049954e-05, -0.000199570306, 1) | |
579 | o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
580 | o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
581 | o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
582 | o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
583 | o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
584 | o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
585 | o2.Color = Color3.new(1, 0.686275, 0) | |
586 | o2.Position = Vector3.new(-3.5987432, 0.987944722, 11.4995985) | |
587 | o3.Name = "MainWeld" | |
588 | o3.Parent = o2 | |
589 | o3.C0 = CFrame.new(-0.00500011444, 0.00169897079, 0.00500106812, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
590 | o3.Part0 = o2 | |
591 | o3.Part1 = o12 | |
592 | o4.Name = "MainWeld" | |
593 | o4.Parent = o2 | |
594 | o4.C0 = CFrame.new(-0.00500011444, -0.587784529, 0.00500106812, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
595 | o4.Part0 = o2 | |
596 | o4.Part1 = o13 | |
597 | o5.Name = "MainWeld" | |
598 | o5.Parent = o2 | |
599 | o5.C0 = CFrame.new(0.0796999931, 1.02396202, 0.208361626, -0.529894114, 0, 0.848072529, 0, 1, 0, -0.848072529, 0, -0.529894114) | |
600 | o5.Part0 = o2 | |
601 | o5.Part1 = o23 | |
602 | o6.Name = "MainWeld" | |
603 | o6.Parent = o2 | |
604 | o6.C0 = CFrame.new(-0.107108831, 1.02396202, 0.158407211, 0.601842105, 0, 0.798615098, 0, 1, 0, -0.798615098, 0, 0.601842105) | |
605 | o6.Part0 = o2 | |
606 | o6.Part1 = o21 | |
607 | o7.Name = "MainWeld" | |
608 | o7.Parent = o2 | |
609 | o7.C0 = CFrame.new(0.0340138674, 1.02396202, -0.0815076828, 0.104554683, 0, 0.994519114, 0, 1, 0, -0.994519174, 0, 0.104554668) | |
610 | o7.Part0 = o2 | |
611 | o7.Part1 = o22 | |
612 | o8.Name = "MainWeld" | |
613 | o8.Parent = o2 | |
614 | o8.C0 = CFrame.new(-0.00500011444, 0.734998703, 0.00500106812, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
615 | o8.Part0 = o2 | |
616 | o8.Part1 = o11 | |
617 | o9.Name = "MainWeld" | |
618 | o9.Parent = o2 | |
619 | o9.C0 = CFrame.new(0.112232327, 1.02396202, 0.00985622406, 0.933583438, 0, 0.358360171, 0, 1, 0, -0.358360112, 0, 0.933583498) | |
620 | o9.Part0 = o2 | |
621 | o9.Part1 = o20 | |
622 | o10.Name = "MainWeld" | |
623 | o10.Parent = o2 | |
624 | o10.C0 = CFrame.new(-0.190126657, 1.02396202, -0.0120782852, 0.956306815, 0, -0.292364985, 0, 1, 0, 0.292364985, 0, 0.956306815) | |
625 | o10.Part0 = o2 | |
626 | o10.Part1 = o15 | |
627 | o11.Parent = o1 | |
628 | o11.Material = Enum.Material.Granite | |
629 | o11.BrickColor = BrickColor.new("Really black") | |
630 | o11.Position = Vector3.new(-3.60387659, 1.72294354, 11.5044537) | |
631 | o11.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
632 | o11.Size = Vector3.new(1.08999991, 0.610000014, 1.04999995) | |
633 | o11.CFrame = CFrame.new(-3.60387659, 1.72294354, 11.5044537, 1, -0.00018174194, 7.21687247e-05, 0.000181727533, 0.99999994, 0.000199583432, -7.22049954e-05, -0.000199570306, 1) | |
634 | o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
635 | o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
636 | o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
637 | o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
638 | o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
639 | o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
640 | o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
641 | o11.Position = Vector3.new(-3.60387659, 1.72294354, 11.5044537) | |
642 | o12.Parent = o1 | |
643 | o12.Material = Enum.Material.Granite | |
644 | o12.BrickColor = BrickColor.new("Really black") | |
645 | o12.Position = Vector3.new(-3.60374331, 0.989643812, 11.5045996) | |
646 | o12.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
647 | o12.Size = Vector3.new(1.08999991, 0.610000014, 1.04999995) | |
648 | o12.CFrame = CFrame.new(-3.60374331, 0.989643812, 11.5045996, 1, -0.00018174194, 7.21687247e-05, 0.000181727533, 0.99999994, 0.000199583432, -7.22049954e-05, -0.000199570306, 1) | |
649 | o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
650 | o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
651 | o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
652 | o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
653 | o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
654 | o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
655 | o12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
656 | o12.Position = Vector3.new(-3.60374331, 0.989643812, 11.5045996) | |
657 | o13.Parent = o1 | |
658 | o13.Material = Enum.Material.Granite | |
659 | o13.BrickColor = BrickColor.new("Really black") | |
660 | o13.Position = Vector3.new(-3.60363603, 0.400160372, 11.5047169) | |
661 | o13.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
662 | o13.Size = Vector3.new(1.08999991, 0.329999954, 1.04999995) | |
663 | o13.CFrame = CFrame.new(-3.60363603, 0.400160372, 11.5047169, 1, -0.00018174194, 7.21687247e-05, 0.000181727533, 0.99999994, 0.000199583432, -7.22049954e-05, -0.000199570306, 1) | |
664 | o13.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
665 | o13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
666 | o13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
667 | o13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
668 | o13.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
669 | o13.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
670 | o13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
671 | o13.Position = Vector3.new(-3.60363603, 0.400160372, 11.5047169) | |
672 | o14.Name = "Star" | |
673 | o14.Parent = o1 | |
674 | o15.Parent = o14 | |
675 | o15.Material = Enum.Material.Granite | |
676 | o15.BrickColor = BrickColor.new("Deep orange") | |
677 | o15.Position = Vector3.new(-3.78905678, 2.01186967, 11.4873295) | |
678 | o15.Rotation = Vector3.new(-0.00999999978, -17, 0.00999999978) | |
679 | o15.Size = Vector3.new(0.0500000007, 0.0500000007, 1) | |
680 | o15.CFrame = CFrame.new(-3.78905678, 2.01186967, 11.4873295, 0.956327915, -0.00018174194, -0.292295963, 0.000232138496, 0.99999994, 0.000137732219, 0.292295933, -0.000199570306, 0.956327915) | |
681 | o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
682 | o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
683 | o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
684 | o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
685 | o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
686 | o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
687 | o15.Color = Color3.new(1, 0.686275, 0) | |
688 | o15.Position = Vector3.new(-3.78905678, 2.01186967, 11.4873295) | |
689 | o16.Name = "MainWeld" | |
690 | o16.Parent = o15 | |
691 | o16.C0 = CFrame.new(0.194045544, 0, -0.131924629, -0.190776467, 0, 0.981634915, 0, 1, 0, -0.981634796, 0, -0.190776095) | |
692 | o16.Part0 = o15 | |
693 | o16.Part1 = o22 | |
694 | o17.Name = "MainWeld" | |
695 | o17.Parent = o15 | |
696 | o17.C0 = CFrame.new(0.129232407, 0, 0.138762474, 0.34205988, 0, 0.939684212, 0, 1, 0, -0.939682126, 0, 0.34206447) | |
697 | o17.Part0 = o15 | |
698 | o17.Part1 = o21 | |
699 | o18.Name = "MainWeld" | |
700 | o18.Parent = o15 | |
701 | o18.C0 = CFrame.new(0.295556545, 0, -0.0674219131, 0.788021266, 0, 0.615649581, 0, 1, 0, -0.615650117, 0, 0.78802079) | |
702 | o18.Part0 = o15 | |
703 | o18.Part1 = o20 | |
704 | o19.Name = "MainWeld" | |
705 | o19.Parent = o15 | |
706 | o19.C0 = CFrame.new(0.322481155, 0, 0.131917953, -0.754688084, 0, 0.656095028, 0, 1, 0, -0.656095028, 0, -0.754688084) | |
707 | o19.Part0 = o15 | |
708 | o19.Part1 = o23 | |
709 | o20.Parent = o14 | |
710 | o20.Material = Enum.Material.Granite | |
711 | o20.BrickColor = BrickColor.new("Deep orange") | |
712 | o20.Position = Vector3.new(-3.48669624, 2.01192904, 11.5092421) | |
713 | o20.Rotation = Vector3.new(-0.0199999996, 21, 0.00999999978) | |
714 | o20.Size = Vector3.new(0.0500000119, 0.0500000007, 1) | |
715 | o20.CFrame = CFrame.new(-3.48669624, 2.01192904, 11.5092421, 0.93355757, -0.00018174194, 0.358427554, 9.81350677e-05, 0.99999994, 0.000251451711, -0.358427525, -0.000199570306, 0.93355763) | |
716 | o20.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
717 | o20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
718 | o20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
719 | o20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
720 | o20.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
721 | o20.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
722 | o20.Color = Color3.new(1, 0.686275, 0) | |
723 | o20.Position = Vector3.new(-3.48669624, 2.01192904, 11.5092421) | |
724 | o21.Parent = o14 | |
725 | o21.Material = Enum.Material.Granite | |
726 | o21.BrickColor = BrickColor.new("Deep orange") | |
727 | o21.Position = Vector3.new(-3.70602679, 2.01191878, 11.6578093) | |
728 | o21.Rotation = Vector3.new(-0.0299999993, 53, 0.0199999996) | |
729 | o21.Size = Vector3.new(0.0500000007, 0.0500000007, 1) | |
730 | o21.CFrame = CFrame.new(-3.70602679, 2.01191878, 11.6578093, 0.601784468, -0.00018174194, 0.79865855, -5.00190654e-05, 0.99999994, 0.000265248062, -0.79865855, -0.000199570306, 0.601784468) | |
731 | o21.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
732 | o21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
733 | o21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
734 | o21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
735 | o21.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
736 | o21.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
737 | o21.Color = Color3.new(1, 0.686275, 0) | |
738 | o21.Position = Vector3.new(-3.70602679, 2.01191878, 11.6578093) | |
739 | o22.Parent = o14 | |
740 | o22.Material = Enum.Material.Granite | |
741 | o22.BrickColor = BrickColor.new("Deep orange") | |
742 | o22.Position = Vector3.new(-3.56492138, 2.01189661, 11.4178839) | |
743 | o22.Rotation = Vector3.new(-0.109999999, 84, 0.100000001) | |
744 | o22.Size = Vector3.new(0.0500000007, 0.0500000007, 1) | |
745 | o22.CFrame = CFrame.new(-3.56492138, 2.01189661, 11.4178839, 0.104482912, -0.00018174194, 0.994526684, -0.000179489085, 0.99999994, 0.000201598872, -0.994526744, -0.000199570306, 0.104482859) | |
746 | o22.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
747 | o22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
748 | o22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
749 | o22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
750 | o22.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
751 | o22.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
752 | o22.Color = Color3.new(1, 0.686275, 0) | |
753 | o22.Position = Vector3.new(-3.56492138, 2.01189661, 11.4178839) | |
754 | o23.Parent = o14 | |
755 | o23.Material = Enum.Material.Granite | |
756 | o23.BrickColor = BrickColor.new("Deep orange") | |
757 | o23.Position = Vector3.new(-3.51921415, 2.01196265, 11.7077503) | |
758 | o23.Rotation = Vector3.new(-179.990005, 58, 179.979996) | |
759 | o23.Size = Vector3.new(0.0500000007, 0.0500000007, 0.930000067) | |
760 | o23.CFrame = CFrame.new(-3.51921415, 2.01196265, 11.7077503, -0.529955328, -0.00018174194, 0.848034263, -0.000265557581, 0.99999994, 4.83600379e-05, -0.848034263, -0.000199570306, -0.529955328) | |
761 | o23.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
762 | o23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
763 | o23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
764 | o23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
765 | o23.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
766 | o23.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
767 | o23.Color = Color3.new(1, 0.686275, 0) | |
768 | o23.Position = Vector3.new(-3.51921415, 2.01196265, 11.7077503) | |
769 | mas.Parent = workspace | |
770 | mas:MakeJoints() | |
771 | local mas1 = mas:GetChildren() | |
772 | for i=1,#mas1 do | |
773 | mas1[i].Parent = workspace | |
774 | ypcall(function() mas1[i]:MakeJoints() end) | |
775 | end | |
776 | mas:Destroy() | |
777 | for i=1,#cors do | |
778 | coroutine.resume(cors[i]) | |
779 | end | |
780 | ||
781 | ||
782 | ||
783 | wait() | |
784 | ||
785 | workspace["RightArm"].Parent = game.Players.LocalPlayer.Character | |
786 | ||
787 | game.Players.LocalPlayer.Character["RightArm"].Name = "Familiar Right Arm" | |
788 | ||
789 | w = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"]) | |
790 | w.Part0 = game.Players.LocalPlayer.Character["Right Arm"] | |
791 | w.Part1 = o2 | |
792 | w.C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0) | |
793 | game.Players.LocalPlayer.Character["Right Arm"].Transparency = 1 | |
794 | ||
795 | for i,v in pairs (game.Players.LocalPlayer.Character["Familiar Right Arm"]:GetChildren()) do | |
796 | if v.ClassName == "Part" then | |
797 | v.CanCollide = false | |
798 | v.Anchored = false | |
799 | end | |
800 | end | |
801 | ||
802 | ||
803 | ||
804 | ----{{ Right Leg }}------ | |
805 | --Created with PenguinAnonymous's compiler | |
806 | --PenguinAnonymous is not responsible for damages caused to your game | |
807 | --This plugin does not remove things | |
808 | --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing | |
809 | --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments | |
810 | --Thank you for using my plugin and enjoy :) | |
811 | --It is free to use | |
812 | --If you use this plugin to create your own, please give me credit | |
813 | --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry | |
814 | --Errors: | |
815 | local runDummyScript = function(f,scri) | |
816 | local oldenv = getfenv(f) | |
817 | local newenv = setmetatable({}, { | |
818 | __index = function(_, k) | |
819 | if k:lower() == 'script' then | |
820 | return scri | |
821 | else | |
822 | return oldenv[k] | |
823 | end | |
824 | end | |
825 | }) | |
826 | setfenv(f, newenv) | |
827 | ypcall(function() f() end) | |
828 | end | |
829 | cors = {} | |
830 | mas = Instance.new("Model",game:GetService("Lighting")) | |
831 | mas.Name = "CompiledModel" | |
832 | o1 = Instance.new("Model") | |
833 | o2 = Instance.new("Part") | |
834 | o3 = Instance.new("Weld") | |
835 | o4 = Instance.new("Weld") | |
836 | o5 = Instance.new("Weld") | |
837 | o6 = Instance.new("Weld") | |
838 | o7 = Instance.new("Part") | |
839 | o8 = Instance.new("Part") | |
840 | o9 = Instance.new("Part") | |
841 | o10 = Instance.new("Part") | |
842 | o1.Name = "RightLeg" | |
843 | o1.Parent = mas | |
844 | o2.Parent = o1 | |
845 | o2.Material = Enum.Material.Neon | |
846 | o2.BrickColor = BrickColor.new("Deep orange") | |
847 | o2.Position = Vector3.new(-4.19035339, 1.01002204, 4.73999977) | |
848 | o2.Size = Vector3.new(1, 2.01999998, 1) | |
849 | o2.CFrame = CFrame.new(-4.19035339, 1.01002204, 4.73999977, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
850 | o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
851 | o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
852 | o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
853 | o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
854 | o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
855 | o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
856 | o2.Color = Color3.new(1, 0.686275, 0) | |
857 | o2.Position = Vector3.new(-4.19035339, 1.01002204, 4.73999977) | |
858 | o3.Name = "MainWeld" | |
859 | o3.Parent = o2 | |
860 | o3.C0 = CFrame.new(-0.0150003433, -0.154792666, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
861 | o3.Part0 = o2 | |
862 | o3.Part1 = o9 | |
863 | o4.Name = "MainWeld" | |
864 | o4.Parent = o2 | |
865 | o4.C0 = CFrame.new(-0.0150003433, -0.639977336, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
866 | o4.Part0 = o2 | |
867 | o4.Part1 = o10 | |
868 | o5.Name = "MainWeld" | |
869 | o5.Parent = o2 | |
870 | o5.C0 = CFrame.new(-0.0150003433, 0.345878243, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
871 | o5.Part0 = o2 | |
872 | o5.Part1 = o8 | |
873 | o6.Name = "MainWeld" | |
874 | o6.Parent = o2 | |
875 | o6.C0 = CFrame.new(-0.0150003433, 0.799999952, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
876 | o6.Part0 = o2 | |
877 | o6.Part1 = o7 | |
878 | o7.Parent = o1 | |
879 | o7.Material = Enum.Material.Granite | |
880 | o7.BrickColor = BrickColor.new("Really black") | |
881 | o7.Position = Vector3.new(-4.20535374, 1.810022, 4.74499989) | |
882 | o7.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
883 | o7.CFrame = CFrame.new(-4.20535374, 1.810022, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
884 | o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
885 | o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
886 | o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
887 | o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
888 | o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
889 | o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
890 | o7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
891 | o7.Position = Vector3.new(-4.20535374, 1.810022, 4.74499989) | |
892 | o8.Parent = o1 | |
893 | o8.Material = Enum.Material.Granite | |
894 | o8.BrickColor = BrickColor.new("Really black") | |
895 | o8.Position = Vector3.new(-4.20535374, 1.35590029, 4.74499989) | |
896 | o8.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
897 | o8.CFrame = CFrame.new(-4.20535374, 1.35590029, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
898 | o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
899 | o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
900 | o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
901 | o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
902 | o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
903 | o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
904 | o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
905 | o8.Position = Vector3.new(-4.20535374, 1.35590029, 4.74499989) | |
906 | o9.Parent = o1 | |
907 | o9.Material = Enum.Material.Granite | |
908 | o9.BrickColor = BrickColor.new("Really black") | |
909 | o9.Position = Vector3.new(-4.20535374, 0.855229378, 4.74499989) | |
910 | o9.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
911 | o9.CFrame = CFrame.new(-4.20535374, 0.855229378, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
912 | o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
913 | o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
914 | o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
915 | o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
916 | o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
917 | o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
918 | o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
919 | o9.Position = Vector3.new(-4.20535374, 0.855229378, 4.74499989) | |
920 | o10.Parent = o1 | |
921 | o10.Material = Enum.Material.Granite | |
922 | o10.BrickColor = BrickColor.new("Really black") | |
923 | o10.Position = Vector3.new(-4.20535374, 0.370044708, 4.74499989) | |
924 | o10.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
925 | o10.CFrame = CFrame.new(-4.20535374, 0.370044708, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
926 | o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
927 | o10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
928 | o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
929 | o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
930 | o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
931 | o10.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
932 | o10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
933 | o10.Position = Vector3.new(-4.20535374, 0.370044708, 4.74499989) | |
934 | mas.Parent = workspace | |
935 | mas:MakeJoints() | |
936 | local mas1 = mas:GetChildren() | |
937 | for i=1,#mas1 do | |
938 | mas1[i].Parent = workspace | |
939 | ypcall(function() mas1[i]:MakeJoints() end) | |
940 | end | |
941 | mas:Destroy() | |
942 | for i=1,#cors do | |
943 | coroutine.resume(cors[i]) | |
944 | end | |
945 | ||
946 | ||
947 | ||
948 | wait() | |
949 | ||
950 | workspace["RightLeg"].Parent = game.Players.LocalPlayer.Character | |
951 | ||
952 | game.Players.LocalPlayer.Character["RightLeg"].Name = "Familiar Right Leg" | |
953 | ||
954 | w = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Leg"]) | |
955 | w.Part0 = game.Players.LocalPlayer.Character["Right Leg"] | |
956 | w.Part1 = o2 | |
957 | w.C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0) | |
958 | game.Players.LocalPlayer.Character["Right Leg"].Transparency = 1 | |
959 | ||
960 | for i,v in pairs (game.Players.LocalPlayer.Character["Familiar Right Leg"]:GetChildren()) do | |
961 | if v.ClassName == "Part" then | |
962 | v.CanCollide = false | |
963 | v.Anchored = false | |
964 | end | |
965 | end | |
966 | ||
967 | ||
968 | ||
969 | ||
970 | ----{{ Left Leg}}-------- | |
971 | local runDummyScript = function(f,scri) | |
972 | local oldenv = getfenv(f) | |
973 | local newenv = setmetatable({}, { | |
974 | __index = function(_, k) | |
975 | if k:lower() == 'script' then | |
976 | return scri | |
977 | else | |
978 | return oldenv[k] | |
979 | end | |
980 | end | |
981 | }) | |
982 | setfenv(f, newenv) | |
983 | ypcall(function() f() end) | |
984 | end | |
985 | cors = {} | |
986 | mas = Instance.new("Model",game:GetService("Lighting")) | |
987 | mas.Name = "CompiledModel" | |
988 | o1 = Instance.new("Model") | |
989 | o2 = Instance.new("Part") | |
990 | o3 = Instance.new("Weld") | |
991 | o4 = Instance.new("Weld") | |
992 | o5 = Instance.new("Weld") | |
993 | o6 = Instance.new("Weld") | |
994 | o7 = Instance.new("Part") | |
995 | o8 = Instance.new("Part") | |
996 | o9 = Instance.new("Part") | |
997 | o10 = Instance.new("Part") | |
998 | o1.Name = "LeftLeg" | |
999 | o1.Parent = mas | |
1000 | o2.Parent = o1 | |
1001 | o2.Material = Enum.Material.Neon | |
1002 | o2.BrickColor = BrickColor.new("Deep orange") | |
1003 | o2.Position = Vector3.new(3.73664784, 1.01502204, 4.73999977) | |
1004 | o2.Size = Vector3.new(1, 2.02999997, 1) | |
1005 | o2.CFrame = CFrame.new(3.73664784, 1.01502204, 4.73999977, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1006 | o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1007 | o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1008 | o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1009 | o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1010 | o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1011 | o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1012 | o2.Color = Color3.new(1, 0.686275, 0) | |
1013 | o2.Position = Vector3.new(3.73664784, 1.01502204, 4.73999977) | |
1014 | o3.Name = "MainWeld" | |
1015 | o3.Parent = o2 | |
1016 | o3.C0 = CFrame.new(-0.0150003433, 0.794999957, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1017 | o3.Part0 = o2 | |
1018 | o3.Part1 = o7 | |
1019 | o4.Name = "MainWeld" | |
1020 | o4.Parent = o2 | |
1021 | o4.C0 = CFrame.new(-0.0150003433, 0.340878248, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1022 | o4.Part0 = o2 | |
1023 | o4.Part1 = o8 | |
1024 | o5.Name = "MainWeld" | |
1025 | o5.Parent = o2 | |
1026 | o5.C0 = CFrame.new(-0.0150003433, -0.644977331, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1027 | o5.Part0 = o2 | |
1028 | o5.Part1 = o10 | |
1029 | o6.Name = "MainWeld" | |
1030 | o6.Parent = o2 | |
1031 | o6.C0 = CFrame.new(-0.0150003433, -0.159792662, 0.00500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1032 | o6.Part0 = o2 | |
1033 | o6.Part1 = o9 | |
1034 | o7.Parent = o1 | |
1035 | o7.Material = Enum.Material.Granite | |
1036 | o7.BrickColor = BrickColor.new("Really black") | |
1037 | o7.Position = Vector3.new(3.7216475, 1.810022, 4.74499989) | |
1038 | o7.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
1039 | o7.CFrame = CFrame.new(3.7216475, 1.810022, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1040 | o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1041 | o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1042 | o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1043 | o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1044 | o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1045 | o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1046 | o7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1047 | o7.Position = Vector3.new(3.7216475, 1.810022, 4.74499989) | |
1048 | o8.Parent = o1 | |
1049 | o8.Material = Enum.Material.Granite | |
1050 | o8.BrickColor = BrickColor.new("Really black") | |
1051 | o8.Position = Vector3.new(3.7216475, 1.35590029, 4.74499989) | |
1052 | o8.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
1053 | o8.CFrame = CFrame.new(3.7216475, 1.35590029, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1054 | o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1055 | o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1056 | o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1057 | o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1058 | o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1059 | o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1060 | o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1061 | o8.Position = Vector3.new(3.7216475, 1.35590029, 4.74499989) | |
1062 | o9.Parent = o1 | |
1063 | o9.Material = Enum.Material.Granite | |
1064 | o9.BrickColor = BrickColor.new("Really black") | |
1065 | o9.Position = Vector3.new(3.7216475, 0.855229378, 4.74499989) | |
1066 | o9.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
1067 | o9.CFrame = CFrame.new(3.7216475, 0.855229378, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1068 | o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1069 | o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1070 | o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1071 | o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1072 | o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1073 | o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1074 | o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1075 | o9.Position = Vector3.new(3.7216475, 0.855229378, 4.74499989) | |
1076 | o10.Parent = o1 | |
1077 | o10.Material = Enum.Material.Granite | |
1078 | o10.BrickColor = BrickColor.new("Really black") | |
1079 | o10.Position = Vector3.new(3.7216475, 0.370044708, 4.74499989) | |
1080 | o10.Size = Vector3.new(1.08999991, 0.379999936, 1.06999993) | |
1081 | o10.CFrame = CFrame.new(3.7216475, 0.370044708, 4.74499989, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1082 | o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1083 | o10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1084 | o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1085 | o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1086 | o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1087 | o10.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1088 | o10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1089 | o10.Position = Vector3.new(3.7216475, 0.370044708, 4.74499989) | |
1090 | mas.Parent = workspace | |
1091 | mas:MakeJoints() | |
1092 | local mas1 = mas:GetChildren() | |
1093 | for i=1,#mas1 do | |
1094 | mas1[i].Parent = workspace | |
1095 | ypcall(function() mas1[i]:MakeJoints() end) | |
1096 | end | |
1097 | mas:Destroy() | |
1098 | for i=1,#cors do | |
1099 | coroutine.resume(cors[i]) | |
1100 | end | |
1101 | ||
1102 | wait() | |
1103 | ||
1104 | workspace["LeftLeg"].Parent = game.Players.LocalPlayer.Character | |
1105 | ||
1106 | game.Players.LocalPlayer.Character["LeftLeg"].Name = "Familiar Left Leg" | |
1107 | ||
1108 | w = Instance.new("Weld", game.Players.LocalPlayer.Character["Left Leg"]) | |
1109 | w.Part0 = game.Players.LocalPlayer.Character["Left Leg"] | |
1110 | w.Part1 = o2 | |
1111 | w.C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0) | |
1112 | game.Players.LocalPlayer.Character["Left Leg"].Transparency = 1 | |
1113 | ||
1114 | for i,v in pairs (game.Players.LocalPlayer.Character["Familiar Left Leg"]:GetChildren()) do | |
1115 | if v.ClassName == "Part" then | |
1116 | v.CanCollide = false | |
1117 | v.Anchored = false | |
1118 | end | |
1119 | end | |
1120 | ||
1121 | ||
1122 | ||
1123 | -----{{ Left Arm}}------ | |
1124 | local runDummyScript = function(f,scri) | |
1125 | local oldenv = getfenv(f) | |
1126 | local newenv = setmetatable({}, { | |
1127 | __index = function(_, k) | |
1128 | if k:lower() == 'script' then | |
1129 | return scri | |
1130 | else | |
1131 | return oldenv[k] | |
1132 | end | |
1133 | end | |
1134 | }) | |
1135 | setfenv(f, newenv) | |
1136 | ypcall(function() f() end) | |
1137 | end | |
1138 | cors = {} | |
1139 | mas = Instance.new("Model",game:GetService("Lighting")) | |
1140 | mas.Name = "CompiledModel" | |
1141 | o1 = Instance.new("Model") | |
1142 | o2 = Instance.new("Part") | |
1143 | o3 = Instance.new("Weld") | |
1144 | o4 = Instance.new("Weld") | |
1145 | o5 = Instance.new("Weld") | |
1146 | o6 = Instance.new("Weld") | |
1147 | o7 = Instance.new("Weld") | |
1148 | o8 = Instance.new("Weld") | |
1149 | o9 = Instance.new("Weld") | |
1150 | o10 = Instance.new("Weld") | |
1151 | o11 = Instance.new("Part") | |
1152 | o12 = Instance.new("Part") | |
1153 | o13 = Instance.new("Part") | |
1154 | o14 = Instance.new("Model") | |
1155 | o15 = Instance.new("Part") | |
1156 | o16 = Instance.new("Weld") | |
1157 | o17 = Instance.new("Weld") | |
1158 | o18 = Instance.new("Weld") | |
1159 | o19 = Instance.new("Weld") | |
1160 | o20 = Instance.new("Part") | |
1161 | o21 = Instance.new("Part") | |
1162 | o22 = Instance.new("Part") | |
1163 | o23 = Instance.new("Part") | |
1164 | o1.Name = "LeftArm" | |
1165 | o1.Parent = mas | |
1166 | o2.Parent = o1 | |
1167 | o2.Material = Enum.Material.Neon | |
1168 | o2.BrickColor = BrickColor.new("Deep orange") | |
1169 | o2.Position = Vector3.new(18.4260292, 0.987944722, 11.4995985) | |
1170 | o2.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
1171 | o2.Size = Vector3.new(1, 2, 1) | |
1172 | o2.CFrame = CFrame.new(18.4260292, 0.987944722, 11.4995985, 1, -0.000181492287, 7.22773766e-05, 0.000181477895, 0.99999994, 0.000198908368, -7.23134726e-05, -0.000198895257, 1) | |
1173 | o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1174 | o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1175 | o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1176 | o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1177 | o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1178 | o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1179 | o2.Color = Color3.new(1, 0.686275, 0) | |
1180 | o2.Position = Vector3.new(18.4260292, 0.987944722, 11.4995985) | |
1181 | o3.Name = "MainWeld" | |
1182 | o3.Parent = o2 | |
1183 | o3.C0 = CFrame.new(-0.190127373, 1.02396202, -0.0120782852, 0.956306815, 0, -0.292364985, 0, 1, 0, 0.292364985, 0, 0.956306815) | |
1184 | o3.Part0 = o2 | |
1185 | o3.Part1 = o15 | |
1186 | o4.Name = "MainWeld" | |
1187 | o4.Parent = o2 | |
1188 | o4.C0 = CFrame.new(0.112231255, 1.02396202, 0.00985622406, 0.933583438, 0, 0.358360171, 0, 1, 0, -0.358360112, 0, 0.933583498) | |
1189 | o4.Part0 = o2 | |
1190 | o4.Part1 = o20 | |
1191 | o5.Name = "MainWeld" | |
1192 | o5.Parent = o2 | |
1193 | o5.C0 = CFrame.new(-0.107109547, 1.02396202, 0.158407211, 0.601842105, 0, 0.798615098, 0, 1, 0, -0.798615098, 0, 0.601842105) | |
1194 | o5.Part0 = o2 | |
1195 | o5.Part1 = o21 | |
1196 | o6.Name = "MainWeld" | |
1197 | o6.Parent = o2 | |
1198 | o6.C0 = CFrame.new(-0.00500011444, 0.00169897079, 0.00500106812, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1199 | o6.Part0 = o2 | |
1200 | o6.Part1 = o12 | |
1201 | o7.Name = "MainWeld" | |
1202 | o7.Parent = o2 | |
1203 | o7.C0 = CFrame.new(0.0340137482, 1.02396202, -0.0815076828, 0.104554683, 0, 0.994519114, 0, 1, 0, -0.994519174, 0, 0.104554668) | |
1204 | o7.Part0 = o2 | |
1205 | o7.Part1 = o22 | |
1206 | o8.Name = "MainWeld" | |
1207 | o8.Parent = o2 | |
1208 | o8.C0 = CFrame.new(0.0796995163, 1.02396202, 0.208361626, -0.529894114, 0, 0.848072529, 0, 1, 0, -0.848072529, 0, -0.529894114) | |
1209 | o8.Part0 = o2 | |
1210 | o8.Part1 = o23 | |
1211 | o9.Name = "MainWeld" | |
1212 | o9.Parent = o2 | |
1213 | o9.C0 = CFrame.new(-0.00500011444, -0.587784529, 0.00500106812, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1214 | o9.Part0 = o2 | |
1215 | o9.Part1 = o13 | |
1216 | o10.Name = "MainWeld" | |
1217 | o10.Parent = o2 | |
1218 | o10.C0 = CFrame.new(-0.00500011444, 0.734998703, 0.00500106812, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1219 | o10.Part0 = o2 | |
1220 | o10.Part1 = o11 | |
1221 | o11.Parent = o1 | |
1222 | o11.Material = Enum.Material.Granite | |
1223 | o11.BrickColor = BrickColor.new("Really black") | |
1224 | o11.Position = Vector3.new(18.4208965, 1.72294354, 11.5044537) | |
1225 | o11.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
1226 | o11.Size = Vector3.new(1.08999991, 0.610000014, 1.04999995) | |
1227 | o11.CFrame = CFrame.new(18.4208965, 1.72294354, 11.5044537, 1, -0.000181492287, 7.22773766e-05, 0.000181477895, 0.99999994, 0.000198908368, -7.23134726e-05, -0.000198895257, 1) | |
1228 | o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1229 | o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1230 | o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1231 | o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1232 | o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1233 | o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1234 | o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1235 | o11.Position = Vector3.new(18.4208965, 1.72294354, 11.5044537) | |
1236 | o12.Parent = o1 | |
1237 | o12.Material = Enum.Material.Granite | |
1238 | o12.BrickColor = BrickColor.new("Really black") | |
1239 | o12.Position = Vector3.new(18.42103, 0.989643753, 11.5045996) | |
1240 | o12.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
1241 | o12.Size = Vector3.new(1.08999991, 0.610000014, 1.04999995) | |
1242 | o12.CFrame = CFrame.new(18.42103, 0.989643753, 11.5045996, 1, -0.000181492287, 7.22773766e-05, 0.000181477895, 0.99999994, 0.000198908368, -7.23134726e-05, -0.000198895257, 1) | |
1243 | o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1244 | o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1245 | o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1246 | o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1247 | o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1248 | o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1249 | o12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1250 | o12.Position = Vector3.new(18.42103, 0.989643753, 11.5045996) | |
1251 | o13.Parent = o1 | |
1252 | o13.Material = Enum.Material.Granite | |
1253 | o13.BrickColor = BrickColor.new("Really black") | |
1254 | o13.Position = Vector3.new(18.4211369, 0.400160372, 11.5047169) | |
1255 | o13.Rotation = Vector3.new(-0.00999999978, 0, 0.00999999978) | |
1256 | o13.Size = Vector3.new(1.08999991, 0.329999954, 1.04999995) | |
1257 | o13.CFrame = CFrame.new(18.4211369, 0.400160372, 11.5047169, 1, -0.000181492287, 7.22773766e-05, 0.000181477895, 0.99999994, 0.000198908368, -7.23134726e-05, -0.000198895257, 1) | |
1258 | o13.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1259 | o13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1260 | o13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1261 | o13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1262 | o13.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1263 | o13.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1264 | o13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1265 | o13.Position = Vector3.new(18.4211369, 0.400160372, 11.5047169) | |
1266 | o14.Name = "Star" | |
1267 | o14.Parent = o1 | |
1268 | o15.Parent = o14 | |
1269 | o15.Material = Enum.Material.Granite | |
1270 | o15.BrickColor = BrickColor.new("Deep orange") | |
1271 | o15.Position = Vector3.new(18.2357159, 2.01186991, 11.4873304) | |
1272 | o15.Rotation = Vector3.new(-0.00999999978, -17, 0.00999999978) | |
1273 | o15.Size = Vector3.new(0.0500000007, 0.0500000007, 1) | |
1274 | o15.CFrame = CFrame.new(18.2357159, 2.01186991, 11.4873304, 0.956327975, -0.000181492287, -0.292295873, 0.000231702375, 0.99999994, 0.000137159645, 0.292295843, -0.000198895257, 0.956327975) | |
1275 | o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1276 | o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1277 | o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1278 | o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1279 | o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1280 | o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1281 | o15.Color = Color3.new(1, 0.686275, 0) | |
1282 | o15.Position = Vector3.new(18.2357159, 2.01186991, 11.4873304) | |
1283 | o16.Name = "MainWeld" | |
1284 | o16.Parent = o15 | |
1285 | o16.C0 = CFrame.new(0.295556068, 0, -0.0674219131, 0.788021266, 0, 0.615649581, 0, 1, 0, -0.615650117, 0, 0.78802079) | |
1286 | o16.Part0 = o15 | |
1287 | o16.Part1 = o20 | |
1288 | o17.Name = "MainWeld" | |
1289 | o17.Parent = o15 | |
1290 | o17.C0 = CFrame.new(0.194046021, 0, -0.131924629, -0.190776467, 0, 0.981634915, 0, 1, 0, -0.981634796, 0, -0.190776095) | |
1291 | o17.Part0 = o15 | |
1292 | o17.Part1 = o22 | |
1293 | o18.Name = "MainWeld" | |
1294 | o18.Parent = o15 | |
1295 | o18.C0 = CFrame.new(0.129232407, 0, 0.138762474, 0.34205988, 0, 0.939684212, 0, 1, 0, -0.939682126, 0, 0.34206447) | |
1296 | o18.Part0 = o15 | |
1297 | o18.Part1 = o21 | |
1298 | o19.Name = "MainWeld" | |
1299 | o19.Parent = o15 | |
1300 | o19.C0 = CFrame.new(0.322481155, 0, 0.131917953, -0.754688084, 0, 0.656095028, 0, 1, 0, -0.656095028, 0, -0.754688084) | |
1301 | o19.Part0 = o15 | |
1302 | o19.Part1 = o23 | |
1303 | o20.Parent = o14 | |
1304 | o20.Material = Enum.Material.Granite | |
1305 | o20.BrickColor = BrickColor.new("Deep orange") | |
1306 | o20.Position = Vector3.new(18.5380745, 2.01192904, 11.509243) | |
1307 | o20.Rotation = Vector3.new(-0.0199999996, 21, 0.00999999978) | |
1308 | o20.Size = Vector3.new(0.0500000119, 0.0500000007, 1) | |
1309 | o20.CFrame = CFrame.new(18.5380745, 2.01192904, 11.509243, 0.93355751, -0.000181492287, 0.358427644, 9.81439371e-05, 0.99999994, 0.000250732031, -0.358427614, -0.000198895257, 0.93355757) | |
1310 | o20.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1311 | o20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1312 | o20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1313 | o20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1314 | o20.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1315 | o20.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1316 | o20.Color = Color3.new(1, 0.686275, 0) | |
1317 | o20.Position = Vector3.new(18.5380745, 2.01192904, 11.509243) | |
1318 | o21.Parent = o14 | |
1319 | o21.Material = Enum.Material.Granite | |
1320 | o21.BrickColor = BrickColor.new("Deep orange") | |
1321 | o21.Position = Vector3.new(18.3187447, 2.01191854, 11.6578102) | |
1322 | o21.Rotation = Vector3.new(-0.0299999993, 53, 0.0199999996) | |
1323 | o21.Size = Vector3.new(0.0500000007, 0.0500000007, 1) | |
1324 | o21.CFrame = CFrame.new(18.3187447, 2.01191854, 11.6578102, 0.601784408, -0.000181492287, 0.798658609, -4.96301873e-05, 0.99999994, 0.000264642411, -0.798658609, -0.000198895257, 0.601784348) | |
1325 | o21.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1326 | o21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1327 | o21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1328 | o21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1329 | o21.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1330 | o21.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1331 | o21.Color = Color3.new(1, 0.686275, 0) | |
1332 | o21.Position = Vector3.new(18.3187447, 2.01191854, 11.6578102) | |
1333 | o22.Parent = o14 | |
1334 | o22.Material = Enum.Material.Granite | |
1335 | o22.BrickColor = BrickColor.new("Deep orange") | |
1336 | o22.Position = Vector3.new(18.4598503, 2.01189661, 11.4178848) | |
1337 | o22.Rotation = Vector3.new(-0.109999999, 84, 0.100000001) | |
1338 | o22.Size = Vector3.new(0.0500000007, 0.0500000007, 1) | |
1339 | o22.CFrame = CFrame.new(18.4598503, 2.01189661, 11.4178848, 0.1044828, -0.000181492287, 0.994526684, -0.000178843824, 0.99999994, 0.00020128004, -0.994526744, -0.000198895257, 0.104482748) | |
1340 | o22.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1341 | o22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1342 | o22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1343 | o22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1344 | o22.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1345 | o22.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1346 | o22.Color = Color3.new(1, 0.686275, 0) | |
1347 | o22.Position = Vector3.new(18.4598503, 2.01189661, 11.4178848) | |
1348 | o23.Parent = o14 | |
1349 | o23.Material = Enum.Material.Granite | |
1350 | o23.BrickColor = BrickColor.new("Deep orange") | |
1351 | o23.Position = Vector3.new(18.505558, 2.01196241, 11.7077503) | |
1352 | o23.Rotation = Vector3.new(-179.990005, 58, 179.979996) | |
1353 | o23.Size = Vector3.new(0.0500000007, 0.0500000007, 0.930000067) | |
1354 | o23.CFrame = CFrame.new(18.505558, 2.01196241, 11.7077503, -0.529955387, -0.000181492287, 0.848034203, -0.000264852803, 0.99999994, 4.85060373e-05, -0.848034203, -0.000198895257, -0.529955447) | |
1355 | o23.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
1356 | o23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
1357 | o23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
1358 | o23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
1359 | o23.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
1360 | o23.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
1361 | o23.Color = Color3.new(1, 0.686275, 0) | |
1362 | o23.Position = Vector3.new(18.505558, 2.01196241, 11.7077503) | |
1363 | mas.Parent = workspace | |
1364 | mas:MakeJoints() | |
1365 | local mas1 = mas:GetChildren() | |
1366 | for i=1,#mas1 do | |
1367 | mas1[i].Parent = workspace | |
1368 | ypcall(function() mas1[i]:MakeJoints() end) | |
1369 | end | |
1370 | mas:Destroy() | |
1371 | for i=1,#cors do | |
1372 | coroutine.resume(cors[i]) | |
1373 | end | |
1374 | ||
1375 | wait() | |
1376 | ||
1377 | workspace["LeftArm"].Parent = game.Players.LocalPlayer.Character | |
1378 | ||
1379 | game.Players.LocalPlayer.Character["LeftArm"].Name = "Familiar Left Arm" | |
1380 | ||
1381 | w = Instance.new("Weld", game.Players.LocalPlayer.Character["Left Arm"]) | |
1382 | w.Part0 = game.Players.LocalPlayer.Character["Left Arm"] | |
1383 | w.Part1 = o2 | |
1384 | w.C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0) | |
1385 | game.Players.LocalPlayer.Character["Left Arm"].Transparency = 1 | |
1386 | ||
1387 | for i,v in pairs (game.Players.LocalPlayer.Character["Familiar Left Arm"]:GetChildren()) do | |
1388 | if v.ClassName == "Part" then | |
1389 | v.CanCollide = false | |
1390 | v.Anchored = false | |
1391 | end | |
1392 | end | |
1393 | ||
1394 | ||
1395 | ||
1396 | ||
1397 | function smooth(obj) | |
1398 | local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"} | |
1399 | for i,v in pairs(sides) do | |
1400 | obj[v.."Surface"] = "SmoothNoOutlines" | |
1401 | end | |
1402 | end | |
1403 | function fade(obj, dest, grow) | |
1404 | spawn(function() | |
1405 | local oldcf = obj.CFrame | |
1406 | for i = 0, 10 do | |
1407 | if grow then | |
1408 | obj.Size = obj.Size +Vector3.new(1,1,1) | |
1409 | obj.CFrame = oldcf | |
1410 | end | |
1411 | obj.Transparency = obj.Transparency +0.1 | |
1412 | Swait() | |
1413 | end | |
1414 | if dest then | |
1415 | obj:Destroy() | |
1416 | end | |
1417 | end) | |
1418 | end | |
1419 | ||
1420 | ||
1421 | ||
1422 | ||
1423 | ||
1424 | IT = Instance.new | |
1425 | CF = CFrame.new | |
1426 | VT = Vector3.new | |
1427 | RAD = math.rad | |
1428 | C3 = Color3.new | |
1429 | UD2 = UDim2.new | |
1430 | BRICKC = BrickColor.new | |
1431 | ANGLES = CFrame.Angles | |
1432 | EULER = CFrame.fromEulerAnglesXYZ | |
1433 | COS = math.cos | |
1434 | ACOS = math.acos | |
1435 | SIN = math.sin | |
1436 | ASIN = math.asin | |
1437 | ABS = math.abs | |
1438 | MRANDOM = math.random | |
1439 | FLOOR = math.floor | |
1440 | ||
1441 | ||
1442 | function NoOutlines(PART) | |
1443 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1444 | end | |
1445 | ||
1446 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE) | |
1447 | local NEWPART = IT("Part") | |
1448 | NEWPART.formFactor = FORMFACTOR | |
1449 | NEWPART.Reflectance = REFLECTANCE | |
1450 | NEWPART.Transparency = TRANSPARENCY | |
1451 | NEWPART.CanCollide = false | |
1452 | NEWPART.Locked = true | |
1453 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1454 | NEWPART.Name = NAME | |
1455 | NEWPART.Size = SIZE | |
1456 | NEWPART.Position = Torso.Position | |
1457 | NoOutlines(NEWPART) | |
1458 | NEWPART.Material = MATERIAL | |
1459 | NEWPART:BreakJoints() | |
1460 | NEWPART.Parent = PARENT | |
1461 | return NEWPART | |
1462 | end | |
1463 | ||
1464 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
1465 | coroutine.resume(coroutine.create(function() | |
1466 | local NEWSOUND = IT("Sound", PARENT) | |
1467 | NEWSOUND.Volume = VOLUME | |
1468 | NEWSOUND.Pitch = PITCH | |
1469 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1470 | Swait() | |
1471 | NEWSOUND:play() | |
1472 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
1473 | end)) | |
1474 | end | |
1475 | ||
1476 | ||
1477 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1478 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1479 | end | |
1480 | ||
1481 | function FirePillar(POSITION1, POSITION2, SIZE, RISE, RANGE, LOWDAMAGE, HIGHDAMAGE, LASTINGTIME) | |
1482 | local POS1 = POSITION1 | |
1483 | local POS2 = POSITION2 | |
1484 | local MOUSELOOK = CF((POS1 + POS2) / 2, POS2) | |
1485 | local FIREPILLARHITSOUNDS = {"171378971", --[["646619365",--]] "472579737"--[[, "144140670"--]]} | |
1486 | local FIREPILLARCOLORS = {"Really black", "Black", "Deep orange"} | |
1487 | local FIREPILLAR1HIT, FIREPILLAR1POS = Raycast(POS1, MOUSELOOK.lookVector, RANGE * Player_Size, Character) | |
1488 | local FirePillarRefpart1 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1489 | FirePillarRefpart1.Anchored = true | |
1490 | FirePillarRefpart1.CFrame = CF(FIREPILLAR1POS) * CF(0, 10, 0) | |
1491 | game:GetService("Debris"):AddItem(FirePillarRefpart1, 5) | |
1492 | local FIREPILLAR2HIT, FIREPILLAR2POS = Raycast(FirePillarRefpart1.Position, CF(FirePillarRefpart1.Position, FirePillarRefpart1.Position + VT(0, -1, 0)).lookVector, 999, Character) | |
1493 | if FIREPILLAR2HIT ~= nil then | |
1494 | FirePillarRefpart1.Parent = nil | |
1495 | local FirePillarRefpart2 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1496 | FirePillarRefpart2.Anchored = true | |
1497 | FirePillarRefpart2.CFrame = CF(FIREPILLAR2POS) | |
1498 | game:GetService("Debris"):AddItem(FirePillarRefpart2, 5) | |
1499 | CreateSound(FIREPILLARHITSOUNDS[MRANDOM(1, #FIREPILLARHITSOUNDS)], FirePillarRefpart2, 1.2, MRANDOM(11, 13) / 10) | |
1500 | for i = 1, MRANDOM(5, 10) do | |
1501 | MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame * ANGLES(RAD(MRANDOM(-60, 60)), 0, RAD(MRANDOM(-60, 60))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 30, 30, 30, 0, 0, 0, MRANDOM(3, 5) / 100) | |
1502 | end | |
1503 | for i = 1, MRANDOM(15, 20) do | |
1504 | local FIREEFFECTSIZE = MRANDOM(1, 2) | |
1505 | MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame, CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-20, 20)), 0), VT(MRANDOM(SIZE / 6, SIZE / 4), 0, 0), FIREEFFECTSIZE, FIREEFFECTSIZE, FIREEFFECTSIZE, -0.02, -0.02, -0.02, MRANDOM(1, 2) / 100) | |
1506 | end | |
1507 | MagicCylinder("Really black", "Neon", CF(FIREPILLAR2POS), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, 0, 1.5, LASTINGTIME) | |
1508 | MagicSphere("Really black", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, RISE, 1.5, LASTINGTIME) | |
1509 | MagicSphere("Black", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.5, 0.1, SIZE * 0.5, 1.5, RISE * 0.75, 1.5, LASTINGTIME) | |
1510 | MagicSphere("Dark indigo", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.25, 0.1, SIZE * 0.25, 1.5, RISE * 0.375, 1.5, LASTINGTIME) | |
1511 | MagnitudeDamage("", "", "", "", 10, 10, 10, 1, FirePillarRefpart2, SIZE / 3, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, "Movement", -0.1, 3, true) | |
1512 | end | |
1513 | end | |
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | mouse.KeyDown:connect(function(key) | |
1520 | if key == "b" then | |
1521 | hum.WalkSpeed = 0 | |
1522 | if Debounces.CanAttack == true then | |
1523 | Debounces.CanAttack = false | |
1524 | Debounces.NoIdl = true | |
1525 | Debounces.on = true | |
1526 | v = Instance.new("Sound") | |
1527 | v.SoundId = "http://www.roblox.com/asset/?id=800952230" | |
1528 | v.Parent = char | |
1529 | v.Looped = false | |
1530 | v.Pitch = 1 | |
1531 | v.Volume = 3000 | |
1532 | ||
1533 | wait() | |
1534 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.1) | |
1535 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.1) | |
1536 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.1) | |
1537 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.1) | |
1538 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(30), 0, math.rad(-5)), 0.1) | |
1539 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(30), 0, math.rad(5)), 0.1) | |
1540 | if Debounces.on == false then | |
1541 | end | |
1542 | wait() | |
1543 | end | |
1544 | wait() | |
1545 | ||
1546 | v:Play() | |
1547 | ||
1548 | for i = 1, 15 do | |
1549 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1550 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1551 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1552 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1553 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1554 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1555 | if Debounces.on == false then | |
1556 | break | |
1557 | end | |
1558 | wait() | |
1559 | end | |
1560 | for i = 1, 15 do | |
1561 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1562 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1563 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1564 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1565 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1566 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1567 | if Debounces.on == false then | |
1568 | break | |
1569 | end | |
1570 | wait() | |
1571 | end | |
1572 | for i = 1, 15 do | |
1573 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1574 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1575 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1576 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1577 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1578 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1579 | if Debounces.on == false then | |
1580 | break | |
1581 | end | |
1582 | wait() | |
1583 | end | |
1584 | for i = 1, 15 do | |
1585 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1586 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1587 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1588 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1589 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1590 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1591 | if Debounces.on == false then | |
1592 | break | |
1593 | end | |
1594 | wait() | |
1595 | end | |
1596 | for i = 1, 15 do | |
1597 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1598 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1599 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1600 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1601 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1602 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1603 | if Debounces.on == false then | |
1604 | break | |
1605 | end | |
1606 | wait() | |
1607 | end | |
1608 | for i = 1, 10 do | |
1609 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1610 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1611 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0.2) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1612 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1613 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1614 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1615 | if Debounces.on == false then | |
1616 | break | |
1617 | end | |
1618 | wait() | |
1619 | end | |
1620 | ||
1621 | wait(1.4) | |
1622 | Debounces.NoIdl = false | |
1623 | hum.WalkSpeed = 5 | |
1624 | Debounces.on = false | |
1625 | wait() | |
1626 | if Debounces.CanAttack == false then | |
1627 | Debounces.CanAttack = true | |
1628 | v:Destroy() | |
1629 | ||
1630 | end | |
1631 | end | |
1632 | end) | |
1633 | ||
1634 | ||
1635 | ||
1636 | ||
1637 | ||
1638 | ||
1639 | ||
1640 | ||
1641 | function Ragdoll(Format, Character, Force) | |
1642 | if Force ~= true then | |
1643 | if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then | |
1644 | return false | |
1645 | end | |
1646 | if Character:FindFirstChild("Ragdoll") == nil and Format == false then | |
1647 | return false | |
1648 | end | |
1649 | end | |
1650 | local Head, Torso, Humanoid | |
1651 | local Dead = false | |
1652 | for _, Children in pairs(Character:GetChildren()) do | |
1653 | if Children.ClassName == "ForceField" then | |
1654 | Children:Remove() | |
1655 | end | |
1656 | if Children.Name == "" then | |
1657 | Children:Remove() | |
1658 | end | |
1659 | if Children.Name == "Head" then | |
1660 | Head = Children | |
1661 | end | |
1662 | if Children.Name == "Torso" then | |
1663 | Torso = Children | |
1664 | end | |
1665 | if Children.ClassName == "Humanoid" then | |
1666 | Humanoid = Children | |
1667 | end | |
1668 | if Children:IsA("Accoutrement") then | |
1669 | if Children:FindFirstChild("Handle") ~= nil then | |
1670 | if math.random(1, 3) == 1 then | |
1671 | coroutine.wrap(function() | |
1672 | Children.Parent = Workspace | |
1673 | wait() | |
1674 | Children.Parent = Character | |
1675 | Children.Handle.CanCollide = true | |
1676 | end)() | |
1677 | else | |
1678 | Children.Parent = Workspace | |
1679 | Children.Handle.CanCollide = true | |
1680 | end | |
1681 | else | |
1682 | Children:Remove() | |
1683 | end | |
1684 | end | |
1685 | end | |
1686 | if Humanoid ~= nil and Humanoid.Health <= 0 then | |
1687 | Dead = true | |
1688 | end | |
1689 | if Torso ~= nil then | |
1690 | for _, Children2 in pairs(Torso:GetChildren()) do | |
1691 | if Children2:IsA("JointInstance") then | |
1692 | Children2:Remove() | |
1693 | end | |
1694 | end | |
1695 | end | |
1696 | if Head ~= nil then | |
1697 | if (function() | |
1698 | if Dead == true and math.random(1, 2) == 1 then | |
1699 | return true | |
1700 | else | |
1701 | return false | |
1702 | end | |
1703 | end)() == false then | |
1704 | local Neck = Instance.new("Motor6D") | |
1705 | Neck.Name = "Neck" | |
1706 | Neck.Part0 = Torso | |
1707 | Neck.Part1 = Head | |
1708 | Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180)) | |
1709 | Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180)) | |
1710 | Neck.MaxVelocity = 0.1 | |
1711 | Neck.Parent = Torso | |
1712 | end | |
1713 | end | |
1714 | if Format == true then | |
1715 | local Ragdoll = Instance.new("IntValue") | |
1716 | Ragdoll.Name = "Ragdoll" | |
1717 | Ragdoll.Parent = Character | |
1718 | if Torso ~= nil then | |
1719 | Torso.Velocity = Torso.Velocity / 1.25 | |
1720 | Torso.RotVelocity = Torso.RotVelocity / 1.25 + Head.CFrame.lookVector * 80 | |
1721 | if Dead == true and Humanoid ~= nil then | |
1722 | local Humanoid2 = Humanoid:Clone() | |
1723 | wait() | |
1724 | Humanoid:Remove() | |
1725 | Humanoid2.Parent = Character | |
1726 | Humanoid = Humanoid2 | |
1727 | end | |
1728 | local Limb = Character:FindFirstChild("Right Arm") | |
1729 | if Limb ~= nil then | |
1730 | Limb.Velocity = Torso.Velocity | |
1731 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
1732 | local Joint = Instance.new("Glue") | |
1733 | Joint.Name = "RightShoulder" | |
1734 | Joint.Part0 = Torso | |
1735 | Joint.Part1 = Limb | |
1736 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1737 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1738 | Joint.Parent = Torso | |
1739 | local Weight = Instance.new("Part") | |
1740 | Weight.Name = "" | |
1741 | Weight.TopSurface = 0 | |
1742 | Weight.BottomSurface = 0 | |
1743 | Weight.Shape = "Block" | |
1744 | Weight.FormFactor = "Custom" | |
1745 | Weight.Size = Vector3.new(1, 1, 1) | |
1746 | Weight.Transparency = 1 | |
1747 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1748 | Weight.Parent = Character | |
1749 | local Weld = Instance.new("Weld") | |
1750 | Weld.Part0 = Limb | |
1751 | Weld.Part1 = Weight | |
1752 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
1753 | Weld.Parent = Limb | |
1754 | end | |
1755 | local Limb = Character:FindFirstChild("Left Arm") | |
1756 | if Limb then | |
1757 | Limb.Velocity = Torso.Velocity | |
1758 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
1759 | local Joint = Instance.new("Glue") | |
1760 | Joint.Name = "LeftShoulder" | |
1761 | Joint.Part0 = Torso | |
1762 | Joint.Part1 = Limb | |
1763 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1764 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1765 | Joint.Parent = Torso | |
1766 | local Weight = Instance.new("Part") | |
1767 | Weight.Name = "" | |
1768 | Weight.TopSurface = 0 | |
1769 | Weight.BottomSurface = 0 | |
1770 | Weight.Shape = "Block" | |
1771 | Weight.FormFactor = "Custom" | |
1772 | Weight.Size = Vector3.new(1, 1, 1) | |
1773 | Weight.Transparency = 1 | |
1774 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1775 | Weight.Parent = Character | |
1776 | local Weld = Instance.new("Weld") | |
1777 | Weld.Part0 = Limb | |
1778 | Weld.Part1 = Weight | |
1779 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
1780 | Weld.Parent = Limb | |
1781 | end | |
1782 | local Limb = Character:FindFirstChild("Right Leg") | |
1783 | if Limb then | |
1784 | Limb.Velocity = Torso.Velocity | |
1785 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
1786 | local Joint = Instance.new("Glue") | |
1787 | Joint.Name = "RightHip" | |
1788 | Joint.Part0 = Torso | |
1789 | Joint.Part1 = Limb | |
1790 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1791 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1792 | Joint.Parent = Torso | |
1793 | local Weight = Instance.new("Part") | |
1794 | Weight.Name = "" | |
1795 | Weight.TopSurface = 0 | |
1796 | Weight.BottomSurface = 0 | |
1797 | Weight.Shape = "Block" | |
1798 | Weight.FormFactor = "Custom" | |
1799 | Weight.Size = Vector3.new(1, 1, 1) | |
1800 | Weight.Transparency = 1 | |
1801 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1802 | Weight.Parent = Character | |
1803 | local Weld = Instance.new("Weld") | |
1804 | Weld.Part0 = Limb | |
1805 | Weld.Part1 = Weight | |
1806 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
1807 | Weld.Parent = Limb | |
1808 | end | |
1809 | local Limb = Character:FindFirstChild("Left Leg") | |
1810 | if Limb then | |
1811 | Limb.Velocity = Torso.Velocity | |
1812 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
1813 | local Joint = Instance.new("Glue") | |
1814 | Joint.Name = "LeftHip" | |
1815 | Joint.Part0 = Torso | |
1816 | Joint.Part1 = Limb | |
1817 | Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1818 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1819 | Joint.Parent = Torso | |
1820 | local Weight = Instance.new("Part") | |
1821 | Weight.Name = "" | |
1822 | Weight.TopSurface = 0 | |
1823 | Weight.BottomSurface = 0 | |
1824 | Weight.Shape = "Block" | |
1825 | Weight.FormFactor = "Custom" | |
1826 | Weight.Size = Vector3.new(1, 1, 1) | |
1827 | Weight.Transparency = 1 | |
1828 | Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1829 | Weight.Parent = Character | |
1830 | local Weld = Instance.new("Weld") | |
1831 | Weld.Part0 = Limb | |
1832 | Weld.Part1 = Weight | |
1833 | Weld.C0 = CFrame.new(0, -0.5, 0) | |
1834 | Weld.Parent = Limb | |
1835 | end | |
1836 | local Weight = Instance.new("Part") | |
1837 | Weight.Name = "" | |
1838 | Weight.TopSurface = 0 | |
1839 | Weight.BottomSurface = 0 | |
1840 | Weight.Shape = "Block" | |
1841 | Weight.FormFactor = "Custom" | |
1842 | Weight.Size = Vector3.new(1.75, 1.5, 1.1) | |
1843 | Weight.Transparency = 1 | |
1844 | Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
1845 | Weight.Parent = Character | |
1846 | local Weld = Instance.new("Weld") | |
1847 | Weld.Part0 = Torso | |
1848 | Weld.Part1 = Weight | |
1849 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1850 | Weld.Parent = Torso | |
1851 | end | |
1852 | elseif Format == false then | |
1853 | if Character:FindFirstChild("Ragdoll") ~= nil then | |
1854 | Character.Ragdoll:Remove() | |
1855 | end | |
1856 | if Torso ~= nil then | |
1857 | local Limb = Character:FindFirstChild("Right Arm") | |
1858 | if Limb ~= nil then | |
1859 | local Joint = Instance.new("Motor6D") | |
1860 | Joint.Name = "Right Shoulder" | |
1861 | Joint.Part0 = Torso | |
1862 | Joint.Part1 = Limb | |
1863 | Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1864 | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1865 | Joint.MaxVelocity = 0.15 | |
1866 | Joint.Parent = Torso | |
1867 | end | |
1868 | local Limb = Character:FindFirstChild("Left Arm") | |
1869 | if Limb ~= nil then | |
1870 | local Joint = Instance.new("Motor6D") | |
1871 | Joint.Name = "Left Shoulder" | |
1872 | Joint.Part0 = Torso | |
1873 | Joint.Part1 = Limb | |
1874 | Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1875 | Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1876 | Joint.MaxVelocity = 0.15 | |
1877 | Joint.Parent = Torso | |
1878 | end | |
1879 | local Limb = Character:FindFirstChild("Right Leg") | |
1880 | if Limb ~= nil then | |
1881 | local Joint = Instance.new("Motor6D") | |
1882 | Joint.Name = "Right Hip" | |
1883 | Joint.Part0 = Torso | |
1884 | Joint.Part1 = Limb | |
1885 | Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1886 | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1887 | Joint.MaxVelocity = 0.1 | |
1888 | Joint.Parent = Torso | |
1889 | end | |
1890 | local Limb = Character:FindFirstChild("Left Leg") | |
1891 | if Limb ~= nil then | |
1892 | local Joint = Instance.new("Motor6D") | |
1893 | Joint.Name = "Left Hip" | |
1894 | Joint.Part0 = Torso | |
1895 | Joint.Part1 = Limb | |
1896 | Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1897 | Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1898 | Joint.MaxVelocity = 0.1 | |
1899 | Joint.Parent = Torso | |
1900 | end | |
1901 | local Animate = Character:FindFirstChild("Animate") | |
1902 | if Animate ~= nil then | |
1903 | local Animate2 = Animate:Clone() | |
1904 | Animate:Remove() | |
1905 | Animate2.Parent = Character | |
1906 | end | |
1907 | end | |
1908 | else | |
1909 | return false | |
1910 | end | |
1911 | return true, Format | |
1912 | end | |
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | function weld5(part0, part1, c0, c1) | |
1919 | weeld=Instance.new("Weld", part0) | |
1920 | weeld.Part0=part0 | |
1921 | weeld.Part1=part1 | |
1922 | weeld.C0=c0 | |
1923 | weeld.C1=c1 | |
1924 | return weeld | |
1925 | end | |
1926 | ||
1927 | ||
1928 | ||
1929 | ||
1930 | ||
1931 | Grab = false | |
1932 | mouse.KeyDown:connect(function(key) | |
1933 | if key == "z" then | |
1934 | Debounces.on = true | |
1935 | Debounces.NoIdl = true | |
1936 | Debounces.ks = true | |
1937 | if Grab == false then | |
1938 | gp = nil | |
1939 | for i = 1, 20 do | |
1940 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1941 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
1942 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
1943 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
1944 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
1945 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
1946 | if Debounces.on == false then break end | |
1947 | rs:wait(2) | |
1948 | end | |
1949 | con1=larm.Touched:connect(function(hit) -- this is grab | |
1950 | ht = hit.Parent | |
1951 | hum1=ht:FindFirstChild('Humanoid') | |
1952 | if hum1 ~= nil then | |
1953 | if Debounces.ks==true then | |
1954 | z = Instance.new("Sound",hed) | |
1955 | z.SoundId = "rbxassetid://200632821" | |
1956 | z.Volume = 1 | |
1957 | z:Play() | |
1958 | Debounces.ks=false | |
1959 | end | |
1960 | hum1.PlatformStand=true | |
1961 | gp = ht | |
1962 | Grab = true | |
1963 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0)) | |
1964 | asd.Parent = larm | |
1965 | asd.Name = "asd" | |
1966 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
1967 | stanceToggle = "Grabbed" | |
1968 | ||
1969 | --[[elseif hum1 == nil then | |
1970 | con1:disconnect() | |
1971 | wait() return]]-- | |
1972 | end | |
1973 | end) | |
1974 | for i = 1, 20 do | |
1975 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
1976 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
1977 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2) | |
1978 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2) | |
1979 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1980 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
1981 | if Debounces.on == false then break end | |
1982 | rs:wait(2) | |
1983 | end | |
1984 | con1:disconnect() | |
1985 | Debounces.on = false | |
1986 | Debounces.NoIdl = false | |
1987 | elseif Grab == true then | |
1988 | Grab = false | |
1989 | --[[for i = 1, 16 do | |
1990 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3) | |
1991 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3) | |
1992 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3) | |
1993 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
1994 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
1995 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
1996 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3) | |
1997 | if Debounces.on == false then end | |
1998 | rs:wait() | |
1999 | end]]-- | |
2000 | for i = 1, 16 do | |
2001 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
2002 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-73)), 0.3) | |
2003 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
2004 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3) | |
2005 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
2006 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
2007 | if Debounces.on == false then end | |
2008 | rs:wait() | |
2009 | end | |
2010 | Grabee = gp:FindFirstChild("Torso") | |
2011 | par,loc=workspace:FindPartOnRay(Ray.new(Character.Torso.Position,(Character.Torso.Position-(Character.Torso.Position-Vector3.new(0,2,0))).unit*-500),Character) | |
2012 | for i=1, 30 do | |
2013 | p=Instance.new("Part") | |
2014 | p.FrontSurface=par.TopSurface | |
2015 | p.Material=par.Material | |
2016 | p.BottomSurface=0 | |
2017 | p.Anchored=true p.CanCollide=false | |
2018 | p.BrickColor=par.BrickColor | |
2019 | p.Size=Vector3.new(math.random(15,35)/5,math.random(15,35)/5,math.random(4,5)) | |
2020 | p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-i,i)/1,3,math.random(-i,i)/1),loc+Vector3.new(0,1000-i*20,0))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30) | |
2021 | p.Parent=Character | |
2022 | game:GetService("Debris"):AddItem(p,2+i*.1) | |
2023 | if math.random(1,5)==5 then | |
2024 | coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=30 f.RiseVelocity=0 f.Opacity=.025 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p) | |
2025 | end | |
2026 | end | |
2027 | for i=1, 30 do | |
2028 | for i=1, 1 do | |
2029 | p=Instance.new("Part") | |
2030 | p.TopSurface=par.TopSurface | |
2031 | p.BottomSurface=par.BottomSurface | |
2032 | p.Material=par.Material | |
2033 | p.BottomSurface=0 | |
2034 | p.Anchored=false p.CanCollide=true | |
2035 | p.BrickColor=par.BrickColor | |
2036 | p.formFactor="Custom" | |
2037 | p.Size=Vector3.new(math.random(15,35)/12,math.random(13,35)/12,math.random(15,35)/12) | |
2038 | p.CFrame=CFrame.new(Grabee.Position-Vector3.new(math.random(-4,4),-2,math.random(-4,4)))*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/5,math.random(-10,10)/20) | |
2039 | p.Parent=Character | |
2040 | game:GetService("Debris"):AddItem(p,3+i*.1) | |
2041 | p.Velocity=Vector3.new(math.random(-10,10)*4,math.random(40,80),math.random(-10,10)*4) | |
2042 | p.RotVelocity=p.Velocity | |
2043 | if math.random(1,5)==5 then | |
2044 | coroutine.resume(coroutine.create(function(p) f=Instance.new("Smoke") f.Parent=p f.Size=15 f.RiseVelocity=10 f.Opacity=.1 Swait(.1) f.Enabled=false Swait(1) f:Remove() end),p) | |
2045 | end | |
2046 | end | |
2047 | Swait(.025) | |
2048 | end | |
2049 | ||
2050 | for i = 1, 13 do | |
2051 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
2052 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-13)), 0.3) | |
2053 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3) | |
2054 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3) | |
2055 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3) | |
2056 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3) | |
2057 | if Debounces.on == false then end | |
2058 | rs:wait() | |
2059 | end | |
2060 | wait(0.3) | |
2061 | hum1:TakeDamage(math.random(10000020,10000030)) | |
2062 | if gp ~= nil then | |
2063 | for i,v in pairs(larm:GetChildren()) do | |
2064 | if v.Name == "asd" and v:IsA("Weld") then | |
2065 | v:Remove() | |
2066 | end | |
2067 | end | |
2068 | wait(0.3) | |
2069 | stanceToggle = "Idle1" | |
2070 | ||
2071 | ||
2072 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2073 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2074 | bv.P = 125000 | |
2075 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
2076 | ht=nil | |
2077 | Debounces.on = false | |
2078 | Debounces.NoIdl = false | |
2079 | elseif ht == nil then wait() | |
2080 | Grab = false | |
2081 | Debounces.on = false | |
2082 | Debounces.NoIdl = false | |
2083 | end | |
2084 | end | |
2085 | end | |
2086 | end) | |
2087 | ||
2088 | ||
2089 | ||
2090 | ||
2091 | ||
2092 | ||
2093 | mouse.KeyDown:connect(function(key) | |
2094 | if key == "q" then | |
2095 | Character.Humanoid.WalkSpeed = 0 | |
2096 | Debounces.on = true | |
2097 | Debounces.NoIdl = true | |
2098 | Debounces.ks = true | |
2099 | for i = 1, 20 do | |
2100 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.5,0,1.3), 0.2) | |
2101 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
2102 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-1,0),0.2) | |
2103 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
2104 | if Debounces.on == false then break end | |
2105 | rs:wait() | |
2106 | end | |
2107 | local HitBox = Instance.new("Part",Character["Right Arm"]) | |
2108 | HitBox.Size = Vector3.new(3,3,3) | |
2109 | HitBox.Transparency = 1 | |
2110 | HitBox.CanCollide = false | |
2111 | local HitBox2 = Instance.new("Weld",HitBox) | |
2112 | HitBox2.Part0 = Character["Right Arm"] | |
2113 | HitBox2.Part1 = HitBox | |
2114 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
2115 | HitBox.Touched:connect(function(hit) | |
2116 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then | |
2117 | HitBox:remove() | |
2118 | hit.Parent.Head.Transparency = 1e9 | |
2119 | local SFXZ = Instance.new("Sound",hit.Parent.Torso) | |
2120 | SFXZ.SoundId = "rbxassetid://206082273" | |
2121 | SFXZ.Volume = 1 | |
2122 | SFXZ.Pitch = 1 | |
2123 | SFXZ.Looped = false | |
2124 | wait(0.01) | |
2125 | SFXZ:Play() | |
2126 | local HitBox = Instance.new("Part",Character["Right Arm"]) | |
2127 | HitBox.Transparency = 0 | |
2128 | HitBox.Size = Vector3.new(1,1,1) | |
2129 | HitBox.BrickColor = hit.Parent.Head.BrickColor | |
2130 | HitBox.CanCollide = false | |
2131 | local HitBoxM = Instance.new("SpecialMesh",HitBox) | |
2132 | HitBoxM.MeshType = "Head" | |
2133 | HitBoxM.Scale = Vector3.new(1.25,1.25,1.25) | |
2134 | local HitBox2 = Instance.new("Weld",HitBox) | |
2135 | HitBox2.Part0 = Character["Right Arm"] | |
2136 | HitBox2.Part1 = HitBox | |
2137 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
2138 | local D = Instance.new("Decal",HitBox) | |
2139 | D.Face = "Front" | |
2140 | D.Texture = hit.Parent.Head.face.Texture | |
2141 | hit.Parent.Head.face:remove() | |
2142 | local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso) | |
2143 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
2144 | partasdeff.LightEmission = .1 | |
2145 | partasdeff.Size = NumberSequence.new(0.2) | |
2146 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
2147 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
2148 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2149 | partasdeff.Transparency = bbb | |
2150 | partasdeff.Size = aaa | |
2151 | partasdeff.ZOffset = .9 | |
2152 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
2153 | partasdeff.LockedToPart = false | |
2154 | partasdeff.EmissionDirection = "Top" | |
2155 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
2156 | partasdeff.Rate = 1000 | |
2157 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
2158 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
2159 | partasdeff.Speed = NumberRange.new(10) | |
2160 | partasdeff.VelocitySpread = 20 | |
2161 | partasdeff.Enabled=true | |
2162 | hit.Parent.Head:remove() | |
2163 | wait(1) | |
2164 | for i = 1,14 do | |
2165 | HitBoxM.Scale = HitBoxM.Scale - Vector3.new(0.1,0.1,0.1) | |
2166 | game:GetService("RunService").RenderStepped:wait() | |
2167 | end | |
2168 | HitBox:remove() | |
2169 | wait(0.5) | |
2170 | partasdeff.Enabled = false | |
2171 | HitBox:remove() | |
2172 | Debounces.on = false | |
2173 | Debounces.NoIdl = false | |
2174 | Debounces.ks = false | |
2175 | Character.Humanoid.WalkSpeed = 16 | |
2176 | local a = Instance.new("Part",game.Players.LocalPlayer.Character.Head) | |
2177 | a.Transparency = 1 | |
2178 | a.Size = Vector3.new(.2,.2,.2) | |
2179 | local b = Instance.new("Weld",a.Parent.Parent) | |
2180 | b.Part0 = a | |
2181 | b.Part1 = a.Parent | |
2182 | b.C0 = CFrame.new(0,.3,0.65) | |
2183 | local p2mit = Instance.new("ParticleEmitter",a) | |
2184 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
2185 | p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))}) | |
2186 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)}) | |
2187 | p2mit.Lifetime = NumberRange.new(1) | |
2188 | p2mit.Rate = 10 | |
2189 | p2mit.VelocitySpread = 10 | |
2190 | p2mit.Acceleration = Vector3.new(0,-10,0) | |
2191 | p2mit.Speed = NumberRange.new(0) | |
2192 | coroutine.wrap(function() | |
2193 | wait(15) | |
2194 | p2mit.Enabled=false | |
2195 | game:service'Debris':AddItem(a,2) | |
2196 | end)() | |
2197 | end | |
2198 | end) | |
2199 | for i = 1, 20 do | |
2200 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.9,0,0), 0.2) | |
2201 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
2202 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,1,0),0.2) | |
2203 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
2204 | if Debounces.on == false then break end | |
2205 | fat.Event:wait() | |
2206 | end | |
2207 | wait(0.5) | |
2208 | HitBox:remove() | |
2209 | wait(3) | |
2210 | Debounces.on = false | |
2211 | Debounces.NoIdl = false | |
2212 | Debounces.ks = false | |
2213 | Character.Humanoid.WalkSpeed = 5 | |
2214 | end | |
2215 | end) | |
2216 | ||
2217 | Humanoid.WalkSpeed = 5 | |
2218 | ||
2219 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
2220 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
2221 | local List = {} | |
2222 | for i,v in pairs(workspace:GetChildren())do | |
2223 | if v:IsA("Model")then | |
2224 | if v:findFirstChild("Torso")then | |
2225 | if v ~= char then | |
2226 | if(v.Torso.Position -Position).magnitude <= Distance then | |
2227 | table.insert(List,v) | |
2228 | end | |
2229 | end | |
2230 | end | |
2231 | end | |
2232 | end | |
2233 | return List | |
2234 | end | |
2235 | ||
2236 | ||
2237 | ||
2238 | ||
2239 | ||
2240 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2241 | local valuer = 5 | |
2242 | local valuer2 = 10 | |
2243 | local valuer3 = 15 | |
2244 | ||
2245 | ||
2246 | mouse.KeyDown:connect(function(key) | |
2247 | if key == "f" then | |
2248 | if Debounces.CanAttack == true then | |
2249 | Debounces.CanAttack = false | |
2250 | Debounces.NoIdl = true | |
2251 | Debounces.on = true | |
2252 | ||
2253 | ||
2254 | local en = Instance.new("Part",hed) | |
2255 | en.Material = "Neon" | |
2256 | en.BrickColor = BrickColor.new("Deep orange") | |
2257 | en.CanCollide = false | |
2258 | en.Size = Vector3.new(.1,.1,.1) | |
2259 | en.Shape = "Ball" | |
2260 | en.TopSurface = "SmoothNoOutlines" | |
2261 | en.BottomSurface = "SmoothNoOutlines" | |
2262 | ||
2263 | for i = 1,200 do | |
2264 | en.Size = en.Size + Vector3.new(.01,.01,.01) | |
2265 | en.CFrame = hed.CFrame * CFrame.new(0,1.35,-0.86) | |
2266 | if Debounces.on == false then break end | |
2267 | rs:wait() | |
2268 | end | |
2269 | ||
2270 | en:Destroy() | |
2271 | wait(0.1) | |
2272 | local X = Instance.new("Part",char) | |
2273 | X.BrickColor = BrickColor.new("Deep orange") | |
2274 | X.Name = "Shell" | |
2275 | X.Shape = "Ball" | |
2276 | X.Material = "Neon" | |
2277 | X.Size = Vector3.new(1,1,1) | |
2278 | X.CFrame = hed.CFrame * CFrame.new(0,1.35,-1.66) | |
2279 | local bv = Instance.new("BodyVelocity",X) | |
2280 | bv.maxForce = Vector3.new(99999,99999,99999) | |
2281 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
2282 | bv.velocity = X.CFrame.lookVector*65 | |
2283 | ||
2284 | Explode = X.Touched:connect(function(hit) | |
2285 | if hit ~= char and hit.Name ~= "Shell" then | |
2286 | local cf = X.CFrame | |
2287 | bv:Destroy() | |
2288 | X.Anchored = true | |
2289 | Explode:disconnect() | |
2290 | X.Size = Vector3.new(3,3,3) | |
2291 | X.Touched:connect(function(hit) end) | |
2292 | X.CanCollide = false | |
2293 | X.Transparency = 1 | |
2294 | ||
2295 | local part3 = Instance.new("Part", rarm) | |
2296 | part3.Anchored=true | |
2297 | part3.CanCollide=false | |
2298 | part3.Locked = true | |
2299 | part3.TopSurface = "SmoothNoOutlines" | |
2300 | part3.BottomSurface = "SmoothNoOutlines" | |
2301 | part3.FormFactor='Custom' | |
2302 | part3.Size=Vector3.new(2,2, 2) | |
2303 | part3.CFrame=X.CFrame | |
2304 | part3.Transparency=0 | |
2305 | part3.BrickColor=BrickColor.new("Deep orange") | |
2306 | local mesh3 = Instance.new("SpecialMesh",part3) | |
2307 | mesh3.MeshType = "Sphere" | |
2308 | mesh3.Scale = Vector3.new(2,2,2) | |
2309 | --debris:AddItem(X,8) | |
2310 | local part4 = Instance.new("Part", rarm) | |
2311 | part4.Material = "Neon" | |
2312 | part4.Anchored=true | |
2313 | part4.CanCollide=false | |
2314 | part4.Locked = true | |
2315 | part4.TopSurface = "SmoothNoOutlines" | |
2316 | part4.BottomSurface = "SmoothNoOutlines" | |
2317 | part4.FormFactor='Custom' | |
2318 | part4.Size=Vector3.new(2,2, 2) | |
2319 | part4.CFrame=X.CFrame | |
2320 | part4.Transparency=0 | |
2321 | part4.BrickColor=BrickColor.new("Really black") | |
2322 | local mesh4 = Instance.new("SpecialMesh",part4) | |
2323 | mesh4.MeshType = "Sphere" | |
2324 | mesh4.Scale = Vector3.new(1,1,1) | |
2325 | local part7 = Instance.new("Part", rarm) | |
2326 | part7.Material = "Neon" | |
2327 | part7.Anchored=true | |
2328 | part7.CanCollide=false | |
2329 | part7.Locked = true | |
2330 | part7.TopSurface = "SmoothNoOutlines" | |
2331 | part7.BottomSurface = "SmoothNoOutlines" | |
2332 | part7.FormFactor='Custom' | |
2333 | part7.Size=Vector3.new(2,2, 2) | |
2334 | part7.CFrame=X.CFrame | |
2335 | part7.Transparency=0 | |
2336 | part7.BrickColor=BrickColor.new("Really black") | |
2337 | local mesh7 = Instance.new("SpecialMesh",part7) | |
2338 | mesh7.MeshType = "Sphere" | |
2339 | mesh7.Scale = Vector3.new(0.2, 0.2, 0.2) | |
2340 | --[[X.Touched:connect(function(ht) | |
2341 | hit = ht.Parent | |
2342 | if ht and hit:IsA("Model") then | |
2343 | if hit:FindFirstChild("Humanoid") then | |
2344 | if hit.Name ~= p.Name then | |
2345 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2346 | wait(.3) | |
2347 | end | |
2348 | end | |
2349 | elseif ht and hit:IsA("Hat") then | |
2350 | if hit.Parent.Name ~= p.Name then | |
2351 | if hit.Parent:FindFirstChild("Humanoid") then | |
2352 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2353 | wait(.3) | |
2354 | end | |
2355 | end | |
2356 | end | |
2357 | end) | |
2358 | part3.Touched:connect(function(ht) | |
2359 | hit = ht.Parent | |
2360 | if ht and hit:IsA("Model") then | |
2361 | if hit:FindFirstChild("Humanoid") then | |
2362 | if hit.Name ~= p.Name then | |
2363 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2364 | wait(.3) | |
2365 | end | |
2366 | end | |
2367 | elseif ht and hit:IsA("Hat") then | |
2368 | if hit.Parent.Name ~= p.Name then | |
2369 | if hit.Parent:FindFirstChild("Humanoid") then | |
2370 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2371 | wait(.3) | |
2372 | end | |
2373 | end | |
2374 | end | |
2375 | end)]]-- | |
2376 | for i,v in pairs(FindNearestTorso(X.CFrame.p,50000))do | |
2377 | if v:FindFirstChild('Humanoid') then | |
2378 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
2379 | v.Humanoid.PlatformStand = true | |
2380 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
2381 | end | |
2382 | end | |
2383 | ||
2384 | local acos = math.acos | |
2385 | local sqrt = math.sqrt | |
2386 | local Vec3 = Vector3.new | |
2387 | local fromAxisAngle = CFrame.fromAxisAngle | |
2388 | ||
2389 | local function toAxisAngle(CFr) | |
2390 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
2391 | local Angle = math.acos((R00+R11+R22-1)/2) | |
2392 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2393 | A = A == 0 and 0.00001 or A | |
2394 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2395 | B = B == 0 and 0.00001 or B | |
2396 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2397 | C = C == 0 and 0.00001 or C | |
2398 | local x = (R21-R12)/sqrt(A) | |
2399 | local y = (R02-R20)/sqrt(B) | |
2400 | local z = (R10-R01)/sqrt(C) | |
2401 | return Vec3(x,y,z),Angle | |
2402 | end | |
2403 | ||
2404 | function ApplyTrig(Num,Func) | |
2405 | local Min,Max = Func(0),Func(1) | |
2406 | local i = Func(Num) | |
2407 | return (i-Min)/(Max-Min) | |
2408 | end | |
2409 | ||
2410 | function LerpCFrame(CFrame1,CFrame2,Num) | |
2411 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
2412 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
2413 | end | |
2414 | ||
2415 | function Crater(Torso,Radius) | |
2416 | Spawn(function() | |
2417 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
2418 | local Ignore = {} | |
2419 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
2420 | if v.Character ~= nil then | |
2421 | Ignore[#Ignore+1] = v.Character | |
2422 | end | |
2423 | end | |
2424 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
2425 | if Hit == nil then return end | |
2426 | local Parts = {} | |
2427 | for i = 1,360,10 do | |
2428 | local P = Instance.new("Part",Torso.Parent) | |
2429 | P.Anchored = true | |
2430 | P.FormFactor = "Custom" | |
2431 | P.BrickColor = Hit.BrickColor | |
2432 | P.Material = Hit.Material | |
2433 | P.TopSurface = "Smooth" | |
2434 | P.BottomSurface = "Smooth" | |
2435 | P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100) | |
2436 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
2437 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
2438 | if math.random(0,5) == 0 then -- rubble | |
2439 | local P = Instance.new("Part",Torso.Parent) | |
2440 | P.Anchored = true | |
2441 | P.FormFactor = "Custom" | |
2442 | P.BrickColor = Hit.BrickColor | |
2443 | P.Material = Hit.Material | |
2444 | P.TopSurface = "Smooth" | |
2445 | P.BottomSurface = "Smooth" | |
2446 | P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100) | |
2447 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
2448 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
2449 | end | |
2450 | end | |
2451 | for i = 0,1,0.05 do | |
2452 | for i2,v in pairs(Parts) do | |
2453 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
2454 | end | |
2455 | wait(0.02) | |
2456 | end | |
2457 | for i,v in pairs(Parts) do | |
2458 | if v[1].Size.X > 2.1 then | |
2459 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
2460 | end | |
2461 | v[1].Anchored = false | |
2462 | end | |
2463 | for i = 0,1,0.05 do | |
2464 | for i2,v in pairs(Parts) do | |
2465 | v[1].Transparency = i | |
2466 | if i == 1 then | |
2467 | v[1]:Destroy() | |
2468 | elseif i >= 0.25 then | |
2469 | v[1].CanCollide = false | |
2470 | end | |
2471 | end | |
2472 | wait(0.02) | |
2473 | end | |
2474 | Parts = nil | |
2475 | end) | |
2476 | end | |
2477 | ||
2478 | ||
2479 | Part = function(x,y,z,color,tr,cc,an,parent) | |
2480 | local p = Instance.new('Part',parent or Weapon) | |
2481 | p.formFactor = 'Custom' | |
2482 | p.Size = Vector3.new(x,y,z) | |
2483 | p.BrickColor = BrickColor.new(color) | |
2484 | p.CanCollide = cc | |
2485 | p.Transparency = tr | |
2486 | p.Anchored = an | |
2487 | p.TopSurface,p.BottomSurface = 0,0 | |
2488 | p.Locked=true | |
2489 | p:BreakJoints() | |
2490 | return p end | |
2491 | ||
2492 | Mesh = function(par,num,x,y,z) | |
2493 | local msh = _ | |
2494 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
2495 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
2496 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
2497 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
2498 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
2499 | end msh.Scale = Vector3.new(x,y,z) | |
2500 | return msh end | |
2501 | ||
2502 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
2503 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
2504 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
2505 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
2506 | v1,v2,v3=sz.x,sz.y,sz.z | |
2507 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
2508 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
2509 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
2510 | a.CFrame=cfr | |
2511 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
2512 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
2513 | ||
2514 | Spawn(function() | |
2515 | while wait() do | |
2516 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
2517 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
2518 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
2519 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
2520 | a.Transparency=a.Transparency+0.05 | |
2521 | a2.Transparency=a2.Transparency+0.05 | |
2522 | a3.Transparency=a3.Transparency+0.05 | |
2523 | end | |
2524 | end) | |
2525 | end | |
2526 | ||
2527 | Crater(X,120) | |
2528 | Crater(X,220) | |
2529 | Crater(X,320) | |
2530 | z = Instance.new("Sound",workspace) | |
2531 | z.SoundId = "rbxassetid://231917744" | |
2532 | z.Pitch = .5 | |
2533 | z.Volume = 5 | |
2534 | z1 = Instance.new("Sound",workspace) | |
2535 | z1.SoundId = "rbxassetid://231917744" | |
2536 | z1.Pitch = .5 | |
2537 | z1.Volume = 5 | |
2538 | z2 = Instance.new("Sound",workspace) | |
2539 | z2.SoundId = "rbxassetid://231917744" | |
2540 | z2.Pitch = .5 | |
2541 | z2.Volume = 5 | |
2542 | z3 = Instance.new("Sound",workspace) | |
2543 | z3.SoundId = "rbxassetid://245537790" | |
2544 | z3.Pitch = .7 | |
2545 | z3.Volume = 5 | |
2546 | z4 = Instance.new("Sound",workspace) | |
2547 | z4.SoundId = "rbxassetid://245537790" | |
2548 | z4.Pitch = .7 | |
2549 | z4.Volume = 5 | |
2550 | z4a = Instance.new("Sound",workspace) | |
2551 | z4a.SoundId = "rbxassetid://419447292" | |
2552 | z4a.Pitch = 1 | |
2553 | z4a.Volume = 5 | |
2554 | z3a = Instance.new("Sound",workspace) | |
2555 | z3a.SoundId = "rbxassetid://421328847" | |
2556 | z3a.Pitch = 1 | |
2557 | z3a.Volume = 5 | |
2558 | wait(0.1) | |
2559 | z:Play() | |
2560 | z1:Play() | |
2561 | z2:Play() | |
2562 | z3:Play() | |
2563 | z4:Play() | |
2564 | z3a:Play() | |
2565 | z4a:Play() | |
2566 | ||
2567 | local part=Instance.new('Part',rarm) | |
2568 | part.Anchored=true | |
2569 | part.CanCollide=false | |
2570 | part.Locked = true | |
2571 | part.FormFactor='Custom' | |
2572 | part.Size=Vector3.new(2,2,2) | |
2573 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
2574 | part.Transparency=0 | |
2575 | part.BrickColor=BrickColor.new('Really black') | |
2576 | local mesh=Instance.new('SpecialMesh',part) | |
2577 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2578 | mesh.Scale=Vector3.new(4,4,4) | |
2579 | local part2=part:clone() | |
2580 | part2.Parent = rarm | |
2581 | part2.BrickColor=BrickColor.new("Deep orange") | |
2582 | local part5=part:clone() | |
2583 | part5.Parent = rarm | |
2584 | part5.BrickColor=BrickColor.new("Deep orange") | |
2585 | local part6=part:clone() | |
2586 | part6.Parent = rarm | |
2587 | part6.BrickColor=BrickColor.new("Deep orange") | |
2588 | local mesh2=mesh:clone() | |
2589 | mesh2.Parent=part2 | |
2590 | mesh2.Scale=Vector3.new(6, 6, 6) | |
2591 | local mesh5=mesh:clone() | |
2592 | mesh5.Parent=part5 | |
2593 | mesh5.Scale=Vector3.new(6, 6, 6) | |
2594 | local mesh6=mesh:clone() | |
2595 | mesh6.Parent=part6 | |
2596 | mesh6.Scale=Vector3.new(6, 6, 6) | |
2597 | local blast = Instance.new("Part", rarm) | |
2598 | blast.BrickColor = BrickColor.new("Really black") | |
2599 | blast.Anchored = true | |
2600 | blast.CanCollide = false | |
2601 | blast.Locked = true | |
2602 | blast.Size = Vector3.new(2, 2, 2) | |
2603 | blast.TopSurface = "Smooth" | |
2604 | blast.BottomSurface = "Smooth" | |
2605 | blast.Transparency = 0 | |
2606 | blast.CFrame = HandCF | |
2607 | local bm = Instance.new("SpecialMesh", blast) | |
2608 | bm.Scale = Vector3.new(10,2,10) | |
2609 | bm.MeshId = "rbxassetid://3270017" | |
2610 | local blast2 = Instance.new("Part", rarm) | |
2611 | blast2.BrickColor = BrickColor.new("Really black") | |
2612 | blast2.Anchored = true | |
2613 | blast2.CanCollide = false | |
2614 | blast2.Locked = true | |
2615 | blast2.Size = Vector3.new(2, 2, 2) | |
2616 | blast2.TopSurface = "Smooth" | |
2617 | blast2.BottomSurface = "Smooth" | |
2618 | blast2.Transparency = 0 | |
2619 | blast2.CFrame = HandCF | |
2620 | local bm2 = Instance.new("SpecialMesh", blast2) | |
2621 | bm2.Scale = Vector3.new(6,2,6) | |
2622 | bm2.MeshId = "rbxassetid://3270017" | |
2623 | local blast3 = Instance.new("Part", rarm) | |
2624 | blast3.BrickColor = BrickColor.new("Really black") | |
2625 | blast3.Anchored = true | |
2626 | blast3.CanCollide = false | |
2627 | blast3.Locked = true | |
2628 | blast3.Size = Vector3.new(1, 1, 1) | |
2629 | blast3.TopSurface = "Smooth" | |
2630 | blast3.BottomSurface = "Smooth" | |
2631 | blast3.Transparency = 0 | |
2632 | blast3.CFrame = HandCF | |
2633 | local bm3 = Instance.new("SpecialMesh", blast3) | |
2634 | bm3.Scale = Vector3.new(6,2,6) | |
2635 | bm3.MeshId = "rbxassetid://3270017" | |
2636 | for i = 1,120 do rs:wait() | |
2637 | X.Transparency = X.Transparency + (1/120) | |
2638 | part.Transparency = part.Transparency + (1/120) | |
2639 | part2.Transparency = part2.Transparency + (1/120) | |
2640 | part3.Transparency = part3.Transparency + (1/120) | |
2641 | part4.Transparency = part4.Transparency + (1/120) | |
2642 | part5.Transparency = part5.Transparency + (1/120) | |
2643 | part6.Transparency = part6.Transparency + (1/120) | |
2644 | part7.Transparency = part7.Transparency + (1/120) | |
2645 | blast.Transparency = blast.Transparency + (1/120) | |
2646 | blast2.Transparency = blast2.Transparency + (1/120) | |
2647 | blast3.Transparency = blast3.Transparency + (1/120) | |
2648 | X.Size = X.Size + Vector3.new(1.6,1.6,1.6) | |
2649 | --part3.Size = part3.Size + Vector3.new(6,6,6) | |
2650 | mesh.Scale = mesh.Scale + Vector3.new(2,.4,2) | |
2651 | mesh2.Scale = mesh2.Scale + Vector3.new(2.2,.4,2.2) | |
2652 | mesh3.Scale = mesh3.Scale + Vector3.new(6,6,6) | |
2653 | mesh4.Scale = mesh4.Scale + Vector3.new(3.4,3.4,3.4) | |
2654 | mesh5.Scale = mesh5.Scale + Vector3.new(3.2,.4,3.2) | |
2655 | mesh6.Scale = mesh6.Scale + Vector3.new(4,.4,4) | |
2656 | mesh7.Scale = mesh7.Scale + Vector3.new(8,8,8) | |
2657 | bm.Scale = bm.Scale + Vector3.new(12,12,.4) | |
2658 | bm2.Scale = bm2.Scale + Vector3.new(8,8,.4) | |
2659 | bm3.Scale = bm3.Scale + Vector3.new(8,8,.4) | |
2660 | X.CFrame = cf | |
2661 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
2662 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
2663 | part3.CFrame=X.CFrame | |
2664 | part4.CFrame=X.CFrame | |
2665 | part7.CFrame=X.CFrame | |
2666 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
2667 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
2668 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2669 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
2670 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
2671 | rs:wait() | |
2672 | end | |
2673 | X:Destroy() | |
2674 | part:Destroy() | |
2675 | part2:Destroy() | |
2676 | part3:Destroy() | |
2677 | part4:Destroy() | |
2678 | part5:Destroy() | |
2679 | part6:Destroy() | |
2680 | blast:Destroy() | |
2681 | blast2:Destroy() | |
2682 | blast3:Destroy() | |
2683 | z:Destroy() | |
2684 | z1:Destroy() | |
2685 | z2:Destroy() | |
2686 | z3:Destroy() | |
2687 | z4:Destroy() | |
2688 | end | |
2689 | end) | |
2690 | ||
2691 | ||
2692 | if Debounces.CanAttack == false then | |
2693 | Debounces.CanAttack = true | |
2694 | Debounces.NoIdl = false | |
2695 | Debounces.on = false | |
2696 | end | |
2697 | end | |
2698 | end | |
2699 | end) | |
2700 | ||
2701 | ||
2702 | ||
2703 | ||
2704 | ||
2705 | ||
2706 | ||
2707 | function Throw() | |
2708 | if Grab == true then | |
2709 | Grab = false | |
2710 | stanceToggle = "Normal" | |
2711 | for i = 1, 16 do | |
2712 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
2713 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-50)), 0.3) | |
2714 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
2715 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3) | |
2716 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
2717 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
2718 | if Debounces.on == false then end | |
2719 | rs:wait() | |
2720 | end | |
2721 | for i = 1, 16 do | |
2722 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(20)), 0.3) | |
2723 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1.5,-.4)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(20)), 0.3) | |
2724 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(-10),0), 0.3) | |
2725 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.3) | |
2726 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
2727 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-15), math.rad(-15), math.rad(20)), 0.3) | |
2728 | if Debounces.on == false then end | |
2729 | rs:wait() | |
2730 | end | |
2731 | ||
2732 | ||
2733 | z3 = Instance.new("Sound",torso) | |
2734 | z3.SoundId = "rbxassetid://200632136" | |
2735 | z3.Pitch = 0.7 | |
2736 | z3.Volume = 14 | |
2737 | z3:Play() | |
2738 | ||
2739 | for i,v in pairs(larm:GetChildren()) do | |
2740 | if v.Name == "asd" and v:IsA("Weld") then | |
2741 | v:Remove() | |
2742 | end | |
2743 | end | |
2744 | ||
2745 | Ragdoll(true,gp) | |
2746 | bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2747 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2748 | bv.P = 125000 | |
2749 | bv.velocity = char.Head.CFrame.lookVector * 70 | |
2750 | ||
2751 | ||
2752 | ||
2753 | for i = 1, 12 do | |
2754 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6, 0, -.75)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(20)), 0.5) | |
2755 | if Debounces.on == false then end | |
2756 | wait() | |
2757 | end | |
2758 | ht=nil | |
2759 | Spawn(function() | |
2760 | wait(0.5) | |
2761 | bv:Destroy() | |
2762 | end) | |
2763 | stanceToggle = "Idle1" | |
2764 | Debounces.on = false | |
2765 | Debounces.NoIdl = false | |
2766 | elseif ht == nil then wait() | |
2767 | Grab = false | |
2768 | Debounces.on = false | |
2769 | Debounces.NoIdl = false | |
2770 | end | |
2771 | end | |
2772 | ||
2773 | ||
2774 | ||
2775 | function Drop() | |
2776 | if Grab == true then | |
2777 | Grab = false | |
2778 | for i,v in pairs(larm:GetChildren()) do | |
2779 | if v.Name == "asd" and v:IsA("Weld") then | |
2780 | v:Remove() | |
2781 | end | |
2782 | end | |
2783 | wait(0.1) | |
2784 | stanceToggle = "Idle1" | |
2785 | ||
2786 | end | |
2787 | end | |
2788 | ||
2789 | ||
2790 | mouse.KeyDown:connect(function(key) | |
2791 | if key == "x" then | |
2792 | if Grab == true then | |
2793 | Throw() | |
2794 | end | |
2795 | end | |
2796 | end) | |
2797 | ||
2798 | function Break() | |
2799 | if Grab == true then | |
2800 | z3 = Instance.new("Sound",torso) | |
2801 | z3.SoundId = "rbxassetid://314390675" | |
2802 | z3.Pitch = 0.7 | |
2803 | z3.Volume = 34 | |
2804 | z3:Play() | |
2805 | wait(0.1) | |
2806 | Ragdoll(true,gp) | |
2807 | end | |
2808 | end | |
2809 | ||
2810 | ||
2811 | mouse.KeyDown:connect(function(key) | |
2812 | if key == "c" then | |
2813 | if Grab == true then | |
2814 | Break() | |
2815 | end | |
2816 | end | |
2817 | end) | |
2818 | ||
2819 | mouse.KeyDown:connect(function(key) | |
2820 | if key == "v" then | |
2821 | if Grab == true then | |
2822 | Drop() | |
2823 | end | |
2824 | end | |
2825 | end) | |
2826 | ||
2827 | mouse.KeyDown:connect(function(key) | |
2828 | if key == "g" then | |
2829 | if Grab == true then | |
2830 | FinishHim() | |
2831 | end | |
2832 | end | |
2833 | end) | |
2834 | ||
2835 | ||
2836 | ||
2837 | local animpose = "Idle1" | |
2838 | local lastanimpose = "Idle1" | |
2839 | local grab = false | |
2840 | local Smooth = 1 | |
2841 | local sine = 0 | |
2842 | local change = 1 | |
2843 | local val = 0 | |
2844 | local ffing = false | |
2845 | ---------------------------------------------------- | |
2846 | x = Instance.new("Sound", char) | |
2847 | x.SoundId = "http://www.roblox.com/asset/?id=198360408" | |
2848 | x.Looped = true | |
2849 | x.Volume = 15 | |
2850 | local footsteps = false | |
2851 | --------------------------------------------- | |
2852 | jump = false | |
2853 | rs:connect(function() | |
2854 | if char.Humanoid.Jump == true then | |
2855 | jump = true | |
2856 | else | |
2857 | jump = false | |
2858 | end | |
2859 | char.Humanoid.FreeFalling:connect(function(f) | |
2860 | if f then | |
2861 | ffing = true | |
2862 | else | |
2863 | ffing = false | |
2864 | end | |
2865 | end) | |
2866 | sine = sine + change | |
2867 | if jump == true then | |
2868 | animpose = "Jumping" | |
2869 | elseif ffing == true then | |
2870 | animpose = "Freefalling" | |
2871 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
2872 | animpose = "Idle" | |
2873 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
2874 | animpose = "Walking" | |
2875 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
2876 | animpose = "Running" | |
2877 | end | |
2878 | RightLeg = CFrame.new(0.5,-1,0) | |
2879 | LeftLeg = CFrame.new(-0.5,-1,0) | |
2880 | ||
2881 | lefth = (torso.CFrame*LeftLeg) | |
2882 | righth = (torso.CFrame*RightLeg) | |
2883 | ||
2884 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
2885 | ||
2886 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
2887 | ||
2888 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
2889 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
2890 | if animpose ~= lastanimpose then | |
2891 | sine = 0 | |
2892 | if Debounces.NoIdl == false then | |
2893 | if stanceToggle == "Idle1" then | |
2894 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) | |
2895 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) | |
2896 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) | |
2897 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2) | |
2898 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2) | |
2899 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2) | |
2900 | elseif stanceToggle == "Idle2" then | |
2901 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3) | |
2902 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3) | |
2903 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2) | |
2904 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2) | |
2905 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2) | |
2906 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2) | |
2907 | end | |
2908 | fat.Event:wait() | |
2909 | end | |
2910 | else | |
2911 | end | |
2912 | lastanimpose = animpose | |
2913 | if Debounces.NoIdl == false then | |
2914 | if animpose == "Idle" then | |
2915 | change = 0.5 | |
2916 | if stanceToggle == "Idle1" then | |
2917 | ||
2918 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8) | |
2919 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
2920 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8) | |
2921 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
2922 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5) | |
2923 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5) | |
2924 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1) | |
2925 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1) | |
2926 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
2927 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1) | |
2928 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
2929 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1) | |
2930 | elseif stanceToggle == "Idle2" then | |
2931 | ||
2932 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1) | |
2933 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
2934 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6) | |
2935 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
2936 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8) | |
2937 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
2938 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
2939 | --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3) | |
2940 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
2941 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8) | |
2942 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8) | |
2943 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8) | |
2944 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8) | |
2945 | elseif stanceToggle == "Grabbed" then | |
2946 | grab = true | |
2947 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
2948 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
2949 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,1.25,0)*CFrame.Angles(math.rad(100+2*math.cos(sine/14)),math.rad(-62),math.rad(-80+4*math.cos(sine/14))), 0.3) | |
2950 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
2951 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
2952 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
2953 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
2954 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
2955 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
2956 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
2957 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
2958 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
2959 | end | |
2960 | elseif animpose == "Walking" then | |
2961 | if stanceToggle == "Grabbed" then | |
2962 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
2963 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
2964 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(-62),math.rad(-30+4*math.cos(sine/4))), 0.3) | |
2965 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
2966 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
2967 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
2968 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
2969 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
2970 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
2971 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
2972 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
2973 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
2974 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
2975 | elseif stanceToggle ~= "Grabbed" then | |
2976 | change = 0.5 | |
2977 | ||
2978 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
2979 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
2980 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
2981 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
2982 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
2983 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
2984 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
2985 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
2986 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
2987 | --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
2988 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
2989 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
2990 | --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
2991 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
2992 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
2993 | end | |
2994 | elseif animpose == "Running" then | |
2995 | change = 1 | |
2996 | ||
2997 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2) | |
2998 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
2999 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2) | |
3000 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
3001 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2) | |
3002 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5) | |
3003 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2) | |
3004 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
3005 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
3006 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
3007 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
3008 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
3009 | elseif animpose == "Jumping" then | |
3010 | ||
3011 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2) | |
3012 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
3013 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
3014 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
3015 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2) | |
3016 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
3017 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
3018 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
3019 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
3020 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
3021 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
3022 | elseif animpose == "Freefalling" then | |
3023 | ||
3024 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2) | |
3025 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
3026 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2) | |
3027 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
3028 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2) | |
3029 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
3030 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
3031 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
3032 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
3033 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2) | |
3034 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
3035 | end | |
3036 | end | |
3037 | ||
3038 | if animpose == "Walking" then | |
3039 | if footsteps == false then | |
3040 | x:Play() | |
3041 | footsteps = true | |
3042 | end | |
3043 | x.Pitch = 1.1 | |
3044 | elseif animpose == "Idle" then | |
3045 | x:Stop() | |
3046 | footsteps = false | |
3047 | elseif animpose == "Running" then | |
3048 | x.Pitch = 1.2 | |
3049 | if footsteps == false then | |
3050 | x:Play() | |
3051 | footsteps = true | |
3052 | end | |
3053 | end | |
3054 | end) | |
3055 | hum.MaxHealth = math.huge | |
3056 | wait(3) | |
3057 | hum.Health = math.huge |