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