SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | ||
172 | --//Paste script below this line. | |
173 | ||
174 | local p = game.Players.LocalPlayer | |
175 | local char = p.Character | |
176 | local mouse = p:GetMouse() | |
177 | local larm = char["Left Arm"] | |
178 | local rarm = char["Right Arm"] | |
179 | local lleg = char["Left Leg"] | |
180 | local rleg = char["Right Leg"] | |
181 | local hed = char.Head | |
182 | local torso = char.Torso | |
183 | local hum = char.Humanoid | |
184 | local cam = game.Workspace.CurrentCamera | |
185 | local root = char.HumanoidRootPart | |
186 | local deb = false | |
187 | local shot = 0 | |
188 | local debris=game:service"Debris" | |
189 | ||
190 | local RbxUtility = LoadLibrary("RbxUtility") | |
191 | local Create = RbxUtility.Create | |
192 | local m = Create("Model") | |
193 | ||
194 | local l = game:GetService("Lighting") | |
195 | local rs = game:GetService("RunService").RenderStepped | |
196 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
197 | math.randomseed(os.time()) | |
198 | for i,v in pairs (game.Workspace:GetChildren()) do | |
199 | if v:IsA("Sound") then | |
200 | v:Destroy() | |
201 | end | |
202 | end | |
203 | ---------------------------------------------------- | |
204 | z = Instance.new("Sound", torso) | |
205 | z.SoundId = "rbxassetid://381955589"-- Cartton Imortallity :381955589 -- My Heart: 154299074 -- Sao Crossing: 246056418 -- SAN HOLO DOnkeykong: 246056418 -- "Innocence" - Sword Art Online OP 2: 142357253 -- OnePunch Hero: 339250412 (Fav) -- Sethbling: 170902050 | |
206 | z.Looped = true | |
207 | z.Volume = 1 | |
208 | wait(.1) | |
209 | z:Play() | |
210 | ---------------------------------------------------- | |
211 | function Tween(a,b,c) | |
212 | return a+(b-a)*c | |
213 | end | |
214 | ---------------------------------------------------- | |
215 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
216 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
217 | local List = {} | |
218 | for i,v in pairs(workspace:GetChildren())do | |
219 | if v:IsA("Model")then | |
220 | if v:findFirstChild("Torso")then | |
221 | if v ~= char then | |
222 | if(v.Torso.Position -Position).magnitude <= Distance then | |
223 | table.insert(List,v) | |
224 | end | |
225 | end | |
226 | end | |
227 | end | |
228 | end | |
229 | return List | |
230 | end | |
231 | ---------------------------------------------------- | |
232 | local HBill = Instance.new("BillboardGui", hed) | |
233 | local HMain = Instance.new("Frame", HBill) | |
234 | local HBar = Instance.new("Frame") | |
235 | local HBarBack = Instance.new("Frame") | |
236 | local HHealth = Instance.new("TextLabel", HBarBack) | |
237 | local HName = Instance.new("TextLabel", HBarBack) | |
238 | ||
239 | HBill.Size = UDim2.new(15,0,2.2,0) | |
240 | HBill.Name = "Health Display" | |
241 | HBill.StudsOffset = Vector3.new(0,4,0) | |
242 | HBill.AlwaysOnTop = true | |
243 | HBill.Enabled = true | |
244 | ||
245 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
246 | HMain.BackgroundTransparency = 1 | |
247 | HMain.Size = UDim2.new(1,0,1,0) | |
248 | ||
249 | HBarBack.Parent = HMain | |
250 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
251 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
252 | HBarBack.BorderSizePixel = 2 | |
253 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
254 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
255 | ||
256 | HBar.Parent = HBarBack | |
257 | HBar.BackgroundColor3 = Color3.new(0, 1, 0) | |
258 | HBar.BorderColor3 = Color3.new(0,0,0) | |
259 | HBar.Size = UDim2.new(.5,0,1,0) | |
260 | ||
261 | HHealth.BackgroundTransparency = 1 | |
262 | HHealth.Size = UDim2.new(1,0,1,0) | |
263 | HHealth.Font = "SourceSansItalic" | |
264 | HHealth.Text = "[10/10]" | |
265 | HHealth.TextScaled = true | |
266 | HHealth.TextColor3 = Color3.new(1,1,1) | |
267 | HHealth.TextStrokeColor3 = Color3.new(85/255, 0, 127/255) | |
268 | HHealth.TextStrokeTransparency = 0 | |
269 | ||
270 | HName.Parent = HMain | |
271 | HName.BackgroundTransparency = 1 | |
272 | HName.Size = UDim2.new(1,0,.5,0) | |
273 | HName.Font = "SourceSansItalic" | |
274 | HName.Text = "Royal Scythizone" | |
275 | HName.TextScaled = true | |
276 | HName.TextColor3 = Color3.new(85/255, 0,127/255) | |
277 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
278 | HName.TextStrokeTransparency = 0 | |
279 | HName.TextYAlignment = "Top" | |
280 | ||
281 | local runServ = game:GetService("RunService").RenderStepped | |
282 | runServ:connect(function() | |
283 | HHealth.Text = "["..hum.Health.."]" | |
284 | HBar:TweenSize(UDim2.new((hum.Health/hum.MaxHealth),0,1,0), _, "Linear", .4) | |
285 | end) | |
286 | ---------------------------------------------------- | |
287 | cn,ca,bc,v3,r = CFrame.new,CFrame.Angles,BrickColor.new,Vector3.new,function(a)return (math.random()-.5)*2*(a or 1) end | |
288 | deg,nf,c3,ins,ma,pi,mr = math.deg,math.floor,Color3.new,Instance.new,math.abs,math.pi,math.rad | |
289 | local pert = function(prnt,cfr,siz,col,anc,canc,tra,mat,typ) | |
290 | local p = ins(typ or "Part") | |
291 | p.FormFactor = "Custom" | |
292 | p.Material = mat | |
293 | p.Transparency = tra | |
294 | p.CanCollide = canc | |
295 | p.Anchored = anc | |
296 | p.BrickColor = bc(col) | |
297 | p.Size = siz | |
298 | p.CFrame = cfr | |
299 | p.Parent = prnt | |
300 | p.Locked = true | |
301 | p.TopSurface,p.BottomSurface = 0,0 | |
302 | p:BreakJoints() | |
303 | return p | |
304 | end | |
305 | local mesh = function(typ,prnt,scal,mtyp,mid,mtx) | |
306 | local m = ins(typ or "SpecialMesh") | |
307 | if mtyp then m.MeshType = mtyp end | |
308 | if mid then m.MeshId = mid end | |
309 | if mtx then m.TextureId = mtx end | |
310 | if scal then m.Scale = scal end | |
311 | m.Parent = prnt | |
312 | return m | |
313 | end | |
314 | function cylinderOpen(cf,col,col2) | |
315 | local p = pert(char,cf,v3(0,1000,0),col,true,false,.1,"SmoothPlastic") | |
316 | local pm = mesh("CylinderMesh",p) | |
317 | local p2 = pert(char,cf,v3(0,1000,0),col2,true,false,.1,"SmoothPlastic") | |
318 | local p2m = mesh("CylinderMesh",p2) | |
319 | Spawn(function() | |
320 | for i=.1,1.1,.0125 do | |
321 | p.Transparency = i | |
322 | p2.Transparency = i | |
323 | pm.Scale = pm.Scale + v3(.8,0,.8) | |
324 | p2m.Scale = p2m.Scale + v3(.5,0,.5) | |
325 | wait() | |
326 | end | |
327 | p:Destroy() | |
328 | p2:Destroy() | |
329 | end) | |
330 | end | |
331 | ||
332 | function expandDong() | |
333 | local nTarg = Torso | |
334 | local Orbi = Instance.new('Part') | |
335 | Orbi.Size = Vector3.new(3,3,3) | |
336 | Orbi.CanCollide = false | |
337 | Orbi.Locked = true | |
338 | Orbi.Shape = 'Ball' | |
339 | Orbi.Anchored = true | |
340 | Orbi.Transparency = .6 | |
341 | Orbi.TopSurface,Orbi.BottomSurface = 0,0 | |
342 | Orbi.Name = 'Expand Dong' | |
343 | Orbi.BrickColor = BrickColor.new('Royal purple') | |
344 | ||
345 | local OrbiMesh = Instance.new('SpecialMesh',Orbi) | |
346 | OrbiMesh.Name = 'Dxpand Eong' | |
347 | OrbiMesh.Scale = Vector3.new(2, 2, 2) | |
348 | OrbiMesh.MeshType = 'Sphere' | |
349 | Orbi.Parent = char | |
350 | ypcall(function() | |
351 | for i = 3,.35,-1 do | |
352 | OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7) | |
353 | Orbi.CFrame = nTarg.CFrame | |
354 | end | |
355 | for i = .6,1,.05 do | |
356 | wait(0.04) | |
357 | Orbi.Transparency = i | |
358 | end | |
359 | Orbi:Destroy() | |
360 | end) | |
361 | end | |
362 | ||
363 | ||
364 | function expandDong2() | |
365 | local nTarg = Torso | |
366 | local Orbi = Instance.new('Part') | |
367 | Orbi.Size = Vector3.new(3,3,3) | |
368 | Orbi.CanCollide = false | |
369 | Orbi.Locked = true | |
370 | Orbi.Shape = 'Ball' | |
371 | Orbi.Anchored = true | |
372 | Orbi.Transparency = .6 | |
373 | Orbi.TopSurface,Orbi.BottomSurface = 0,0 | |
374 | Orbi.Name = 'Expand Dong' | |
375 | Orbi.BrickColor = BrickColor.new('Really black') | |
376 | ||
377 | local OrbiMesh = Instance.new('SpecialMesh',Orbi) | |
378 | OrbiMesh.Name = 'Dxpand Eong' | |
379 | OrbiMesh.Scale = Vector3.new(2.5, 2.5, 2.5) | |
380 | OrbiMesh.MeshType = 'Sphere' | |
381 | Orbi.Parent = char | |
382 | ypcall(function() | |
383 | for i = 3,0,-1 do | |
384 | OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7) | |
385 | Orbi.CFrame = nTarg.CFrame | |
386 | end | |
387 | for i = .6,1,.05 do | |
388 | wait(0.04) | |
389 | Orbi.Transparency = i | |
390 | end | |
391 | Orbi:Destroy() | |
392 | end) | |
393 | end | |
394 | cylinderOpen(char.Torso.CFrame,"Royal purple","Really black") | |
395 | ----------------------------------------------------- | |
396 | function pert(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
397 | local fp = Create("Part"){ | |
398 | formFactor = formfactor, | |
399 | Parent = parent, | |
400 | Reflectance = reflectance, | |
401 | Transparency = transparency, | |
402 | CanCollide = false, | |
403 | Locked = true, | |
404 | BrickColor = BrickColor.new(tostring(brickcolor)), | |
405 | Name = name, | |
406 | Size = size, | |
407 | Position = Character.Torso.Position, | |
408 | Material = material, | |
409 | } | |
410 | nooutline(fp) | |
411 | return fp | |
412 | end | |
413 | ---------------------------------------------------- | |
414 | function ShowDamage(part,partCFrame,Text) | |
415 | local Rate = (1 / 30) | |
416 | local Time = (Time or 2) | |
417 | local Frames = (Time / Rate) | |
418 | ||
419 | bill2 = Instance.new("BillboardGui", part) | |
420 | bill2.Size = UDim2.new(4, 4, 4, 4) | |
421 | bill2.AlwaysOnTop = false | |
422 | ||
423 | label = Instance.new("TextLabel", bill2) | |
424 | label.Size = UDim2.new(1,2,1,2) | |
425 | label.Position = UDim2.new(0, 0, -.65, 0) | |
426 | label.TextColor3 = Color3.new(0, 0, 0) | |
427 | label.TextStrokeTransparency = 0 | |
428 | label.TextStrokeColor3 = Color3.new(255, 255, 255) | |
429 | label.BackgroundTransparency = 1 | |
430 | label.Visible = true | |
431 | label.Font = 'SourceSansLight' | |
432 | label.FontSize = 'Size24' | |
433 | label.Text = Text | |
434 | ||
435 | for Frame = 1, Frames do | |
436 | wait(Rate) | |
437 | local Percent = (Frame / Frames) | |
438 | part.CFrame = CFrame.new(partCFrame) + Vector3.new(0, Percent, 0) | |
439 | label.TextTransparency = Percent | |
440 | end | |
441 | ||
442 | ||
443 | end | |
444 | ||
445 | function Damage(hit,mm) | |
446 | if hit ~= nil and damen == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then | |
447 | hit.Parent.Humanoid:TakeDamage(mm) | |
448 | coroutine.resume(coroutine.create(function() | |
449 | ShowDamage(hit,(hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), mm) | |
450 | end)) | |
451 | damen = false | |
452 | end | |
453 | end | |
454 | ----------------------------------------------------- | |
455 | Debounces = { | |
456 | CanAttack = true; | |
457 | NoIdl = false; | |
458 | Slashing = false; | |
459 | Slashed = false; | |
460 | RPunch = false; | |
461 | RPunched = false; | |
462 | LPunch = false; | |
463 | LPunched = false; | |
464 | } | |
465 | local Touche = {char.Name, } | |
466 | ---------------------------------------------------- | |
467 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
468 | local wld = Instance.new("Weld", wp1) | |
469 | wld.Part0 = wp0 | |
470 | wld.Part1 = wp1 | |
471 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
472 | end | |
473 | ---------------------------------------------------- | |
474 | newWeld(torso, larm, -1.5, 0.5, 0) | |
475 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
476 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
477 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
478 | newWeld(torso, hed, 0, 1.5, 0) | |
479 | newWeld(torso, lleg, -0.5, -1, 0) | |
480 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
481 | newWeld(torso, rleg, 0.5, -1, 0) | |
482 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
483 | newWeld(root, torso, 0, 0, 0) | |
484 | torso.Weld.C1 = CFrame.new(0, 0, 0) | |
485 | ---------------------------------------------------- | |
486 | --~Gaunlet~-- | |
487 | Run = game:GetService("RunService") | |
488 | ||
489 | local scythe = Instance.new("Model", char) | |
490 | scythe.Name = "Scythe" | |
491 | ||
492 | local handle = Instance.new("Part", scythe) | |
493 | handle.CanCollide = false | |
494 | handle.Anchored = false | |
495 | handle.Material = Enum.Material.Wood | |
496 | handle.Size = Vector3.new(2, 7, 2) | |
497 | handle.Name = "Handle" | |
498 | handle.CFrame = CFrame.new(2, 3.573, 22) | |
499 | handle.Friction = 0.3 | |
500 | ||
501 | local mesh = Instance.new("CylinderMesh", handle) | |
502 | mesh.Scale = Vector3.new(0.4, 1.2, 0.13) | |
503 | ||
504 | local part = Instance.new("Part", scythe) | |
505 | part.FormFactor = Enum.FormFactor.Custom | |
506 | part.CanCollide = false | |
507 | part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
508 | part.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
509 | part.Anchored = false | |
510 | part.Material = Enum.Material.Neon | |
511 | part.Size = Vector3.new(0.203, 2.849, 0.2) | |
512 | part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
513 | part.CFrame = CFrame.new(-1.054, 6.358, 22.004) * CFrame.Angles(-0, 0, 1.8616886138916) | |
514 | part.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
515 | part.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
516 | part.BrickColor = BrickColor.new("Royal purple") | |
517 | part.Friction = 0.3 | |
518 | part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
519 | ||
520 | local part_2 = Instance.new("Part", scythe) | |
521 | part_2.FormFactor = Enum.FormFactor.Custom | |
522 | part_2.CanCollide = false | |
523 | part_2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
524 | part_2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
525 | part_2.Anchored = false | |
526 | part_2.Material = Enum.Material.Neon | |
527 | part_2.Size = Vector3.new(0.203, 0.776, 0.2) | |
528 | part_2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
529 | part_2.CFrame = CFrame.new(1.531, 7.679, 22.004) * CFrame.Angles(-0, 0, 1.5126248598099) | |
530 | part_2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
531 | part_2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
532 | part_2.BrickColor = BrickColor.new("Royal purple") | |
533 | part_2.Friction = 0.3 | |
534 | part_2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
535 | ||
536 | local part_3 = Instance.new("Part", scythe) | |
537 | part_3.FormFactor = Enum.FormFactor.Custom | |
538 | part_3.CanCollide = false | |
539 | part_3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
540 | part_3.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
541 | part_3.Anchored = false | |
542 | part_3.Material = Enum.Material.Neon | |
543 | part_3.Size = Vector3.new(0.203, 1.16, 0.2) | |
544 | part_3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
545 | part_3.CFrame = CFrame.new(1.184, 6.677, 22.004) * CFrame.Angles(-0, 0, 1.5824373960495) | |
546 | part_3.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
547 | part_3.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
548 | part_3.BrickColor = BrickColor.new("Royal purple") | |
549 | part_3.Friction = 0.3 | |
550 | part_3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
551 | ||
552 | local part_4 = Instance.new("Part", scythe) | |
553 | part_4.FormFactor = Enum.FormFactor.Custom | |
554 | part_4.CanCollide = false | |
555 | part_4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
556 | part_4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
557 | part_4.Anchored = false | |
558 | part_4.Material = Enum.Material.Neon | |
559 | part_4.Size = Vector3.new(0.203, 1.16, 0.2) | |
560 | part_4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
561 | part_4.CFrame = CFrame.new(0.585, 7.624, 22.004) * CFrame.Angles(-0, 0, 1.7046097517014) | |
562 | part_4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
563 | part_4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
564 | part_4.BrickColor = BrickColor.new("Royal purple") | |
565 | part_4.Friction = 0.3 | |
566 | part_4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
567 | ||
568 | local hitbox = Instance.new("Part", scythe) | |
569 | hitbox.FormFactor = Enum.FormFactor.Custom | |
570 | hitbox.CanCollide = false | |
571 | hitbox.Transparency = 1 | |
572 | hitbox.Anchored = false | |
573 | hitbox.Size = Vector3.new(5.444, 2.483, 1.907) | |
574 | hitbox.Name = "HitBox" | |
575 | hitbox.CFrame = CFrame.new(-0.722, 6.691, 21.458) | |
576 | hitbox.Friction = 0.3 | |
577 | ||
578 | local part_5 = Instance.new("Part", scythe) | |
579 | part_5.FormFactor = Enum.FormFactor.Custom | |
580 | part_5.CanCollide = false | |
581 | part_5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
582 | part_5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
583 | part_5.Anchored = false | |
584 | part_5.Material = Enum.Material.Neon | |
585 | part_5.Size = Vector3.new(0.401, 2.658, 0.2) | |
586 | part_5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
587 | part_5.CFrame = CFrame.new(-0.903, 6.65, 22.004) * CFrame.Angles(-0, 0, 1.9664081335068) | |
588 | part_5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
589 | part_5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
590 | part_5.BrickColor = BrickColor.new("Royal purple") | |
591 | part_5.Friction = 0.3 | |
592 | part_5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
593 | ||
594 | local part_6 = Instance.new("Part", scythe) | |
595 | part_6.FormFactor = Enum.FormFactor.Custom | |
596 | part_6.CanCollide = false | |
597 | part_6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
598 | part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
599 | part_6.Anchored = false | |
600 | part_6.Material = Enum.Material.Neon | |
601 | part_6.Size = Vector3.new(0.657, 1.16, 0.2) | |
602 | part_6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
603 | part_6.CFrame = CFrame.new(-1.296, 6.696, 22.004) * CFrame.Angles(-0, 0, 2.1758482456207) | |
604 | part_6.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
605 | part_6.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
606 | part_6.BrickColor = BrickColor.new("Royal purple") | |
607 | part_6.Friction = 0.3 | |
608 | part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
609 | ||
610 | local part_7 = Instance.new("Part", scythe) | |
611 | part_7.FormFactor = Enum.FormFactor.Custom | |
612 | part_7.CanCollide = false | |
613 | part_7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
614 | part_7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
615 | part_7.Anchored = false | |
616 | part_7.Material = Enum.Material.Neon | |
617 | part_7.Size = Vector3.new(0.2, 1.086, 0.2) | |
618 | part_7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
619 | part_7.CFrame = CFrame.new(-2.231, 6.191, 22.004) * CFrame.Angles(-0, 0, 2.4027414321899) | |
620 | part_7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
621 | part_7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
622 | part_7.BrickColor = BrickColor.new("Royal purple") | |
623 | part_7.Friction = 0.3 | |
624 | part_7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
625 | ||
626 | local part_8 = Instance.new("Part", scythe) | |
627 | part_8.FormFactor = Enum.FormFactor.Custom | |
628 | part_8.CanCollide = false | |
629 | part_8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
630 | part_8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
631 | part_8.Anchored = false | |
632 | part_8.Material = Enum.Material.Neon | |
633 | part_8.Size = Vector3.new(0.929, 1.078, 0.2) | |
634 | part_8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
635 | part_8.CFrame = CFrame.new(-0.344, 7.035, 22.004) * CFrame.Angles(-0, 0, 1.9140462875366) | |
636 | part_8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
637 | part_8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
638 | part_8.BrickColor = BrickColor.new("Royal purple") | |
639 | part_8.Friction = 0.3 | |
640 | part_8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
641 | ||
642 | local part_9 = Instance.new("Part", scythe) | |
643 | part_9.FormFactor = Enum.FormFactor.Custom | |
644 | part_9.CanCollide = false | |
645 | part_9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
646 | part_9.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
647 | part_9.Anchored = false | |
648 | part_9.Material = Enum.Material.Neon | |
649 | part_9.Size = Vector3.new(0.2, 2.741, 0.2) | |
650 | part_9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
651 | part_9.CFrame = CFrame.new(-1.359, 6.293, 22.004) * CFrame.Angles(-0, 0, 1.9664095640182) | |
652 | part_9.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
653 | part_9.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
654 | part_9.BrickColor = BrickColor.new("Royal purple") | |
655 | part_9.Friction = 0.3 | |
656 | part_9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
657 | ||
658 | local part_10 = Instance.new("Part", scythe) | |
659 | part_10.FormFactor = Enum.FormFactor.Custom | |
660 | part_10.CanCollide = false | |
661 | part_10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
662 | part_10.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
663 | part_10.Anchored = false | |
664 | part_10.Material = Enum.Material.Neon | |
665 | part_10.Size = Vector3.new(1.166, 1.367, 0.2) | |
666 | part_10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
667 | part_10.CFrame = CFrame.new(1.253, 7.147, 22.004) * CFrame.Angles(-0, 0, 1.5824372768402) | |
668 | part_10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
669 | part_10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
670 | part_10.BrickColor = BrickColor.new("Royal purple") | |
671 | part_10.Friction = 0.3 | |
672 | part_10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
673 | ||
674 | local part_11 = Instance.new("Part", scythe) | |
675 | part_11.FormFactor = Enum.FormFactor.Custom | |
676 | part_11.CanCollide = false | |
677 | part_11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
678 | part_11.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
679 | part_11.Anchored = false | |
680 | part_11.Material = Enum.Material.Neon | |
681 | part_11.Size = Vector3.new(0.986, 1.56, 0.2) | |
682 | part_11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
683 | part_11.CFrame = CFrame.new(0.129, 6.999, 22.004) * CFrame.Angles(-0, 0, 1.7046104669571) | |
684 | part_11.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
685 | part_11.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
686 | part_11.BrickColor = BrickColor.new("Royal purple") | |
687 | part_11.Friction = 0.3 | |
688 | part_11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
689 | ||
690 | local weld = Instance.new("Weld", scythe) | |
691 | weld.Part1 = part_11 | |
692 | weld.Part0 = part_10 | |
693 | weld.C1 = CFrame.new(-27.632, 3.85, -22.004) * CFrame.Angles(-0, 0, -1.7046104669571) | |
694 | weld.C0 = CFrame.new(-28.031, 1.579, -22.004) * CFrame.Angles(-0, 0, -1.5824372768402) | |
695 | ||
696 | local weld_2 = Instance.new("Weld", scythe) | |
697 | weld_2.Part1 = part | |
698 | weld_2.Part0 = handle | |
699 | weld_2.C1 = CFrame.new(-26.415, 6.808, -22.004) * CFrame.Angles(-0, 0, -1.8616886138916) | |
700 | weld_2.C0 = CFrame.new(-2, -24.473, -22) | |
701 | ||
702 | local weld_3 = Instance.new("Weld", scythe) | |
703 | weld_3.Part1 = part_2 | |
704 | weld_3.Part0 = part | |
705 | weld_3.C1 = CFrame.new(-28.619, -0.133, -22.004) * CFrame.Angles(-0, 0, -1.5126248598099) | |
706 | weld_3.C0 = CFrame.new(-26.415, 6.808, -22.004) * CFrame.Angles(-0, 0, -1.8616886138916) | |
707 | ||
708 | local weld_4 = Instance.new("Weld", scythe) | |
709 | weld_4.Part1 = part_3 | |
710 | weld_4.Part0 = part_2 | |
711 | weld_4.C1 = CFrame.new(-27.562, 1.504, -22.004) * CFrame.Angles(-0, 0, -1.5824373960495) | |
712 | weld_4.C0 = CFrame.new(-28.619, -0.133, -22.004) * CFrame.Angles(-0, 0, -1.5126248598099) | |
713 | ||
714 | local weld_5 = Instance.new("Weld", scythe) | |
715 | weld_5.Part1 = part_4 | |
716 | weld_5.Part0 = part_3 | |
717 | weld_5.C1 = CFrame.new(-28.191, 4.385, -22.004) * CFrame.Angles(-0, 0, -1.7046097517014) | |
718 | weld_5.C0 = CFrame.new(-27.562, 1.504, -22.004) * CFrame.Angles(-0, 0, -1.5824373960495) | |
719 | ||
720 | local weld_6 = Instance.new("Weld", scythe) | |
721 | weld_6.Part1 = hitbox | |
722 | weld_6.Part0 = part_4 | |
723 | weld_6.C1 = CFrame.new(0.722, -27.591, -21.458) | |
724 | weld_6.C0 = CFrame.new(-28.191, 4.385, -22.004) * CFrame.Angles(-0, 0, -1.7046097517014) | |
725 | ||
726 | local weld_7 = Instance.new("Weld", scythe) | |
727 | weld_7.Part1 = part_5 | |
728 | weld_7.Part0 = hitbox | |
729 | weld_7.C1 = CFrame.new(-25.77, 9.784, -22.004) * CFrame.Angles(-0, 0, -1.9664082527161) | |
730 | weld_7.C0 = CFrame.new(0.722, -27.591, -21.458) | |
731 | ||
732 | local weld_8 = Instance.new("Weld", scythe) | |
733 | weld_8.Part1 = part_6 | |
734 | weld_8.Part0 = part_5 | |
735 | weld_8.C1 = CFrame.new(-23.434, 14.631, -22.004) * CFrame.Angles(-0, 0, -2.175847530365) | |
736 | weld_8.C0 = CFrame.new(-25.77, 9.784, -22.004) * CFrame.Angles(-0, 0, -1.9664082527161) | |
737 | ||
738 | local weld_9 = Instance.new("Weld", scythe) | |
739 | weld_9.Part1 = part_7 | |
740 | weld_9.Part0 = part_6 | |
741 | weld_9.C1 = CFrame.new(-19.894, 18.525, -22.004) * CFrame.Angles(-0, 0, -2.4027411937714) | |
742 | weld_9.C0 = CFrame.new(-23.434, 14.631, -22.004) * CFrame.Angles(-0, 0, -2.175847530365) | |
743 | ||
744 | local weld_10 = Instance.new("Weld", scythe) | |
745 | weld_10.Part1 = part_8 | |
746 | weld_10.Part0 = part_7 | |
747 | weld_10.C1 = CFrame.new(-26.421, 9.077, -22.004) * CFrame.Angles(-0, 0, -1.9140462875366) | |
748 | weld_10.C0 = CFrame.new(-19.894, 18.525, -22.004) * CFrame.Angles(-0, 0, -2.4027411937714) | |
749 | ||
750 | local weld_11 = Instance.new("Weld", scythe) | |
751 | weld_11.Part1 = part_9 | |
752 | weld_11.Part0 = part_8 | |
753 | weld_11.C1 = CFrame.new(-25.616, 9.226, -22.004) * CFrame.Angles(-0, 0, -1.966409444809) | |
754 | weld_11.C0 = CFrame.new(-26.421, 9.077, -22.004) * CFrame.Angles(-0, 0, -1.9140462875366) | |
755 | ||
756 | local weld_12 = Instance.new("Weld", scythe) | |
757 | weld_12.Part1 = part_10 | |
758 | weld_12.Part0 = part_9 | |
759 | weld_12.C1 = CFrame.new(-28.031, 1.579, -22.004) * CFrame.Angles(-0, 0, -1.5824372768402) | |
760 | weld_12.C0 = CFrame.new(-25.616, 9.226, -22.004) * CFrame.Angles(-0, 0, -1.966409444809) | |
761 | ||
762 | ||
763 | ||
764 | local partweld = Instance.new("Weld", handle) | |
765 | partweld.Part0 = handle | |
766 | partweld.Part1 = rarm | |
767 | partweld.C0 = CFrame.new(0,-2.8,1)*CFrame.Angles(-30,0,0) | |
768 | ||
769 | ||
770 | for _,v in pairs(scythe:GetChildren()) do | |
771 | if v:IsA("Part") then | |
772 | v.CanCollide = false | |
773 | end | |
774 | end | |
775 | ||
776 | ||
777 | ||
778 | function slash() | |
779 | dem = hitbox.Touched:connect(function(hit) Damage(hit, 30) end) | |
780 | for i = 1,10 do | |
781 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.9,0) * CFrame.Angles(math.rad(21), math.rad(75), math.rad(50)), 1) | |
782 | --larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-18)), 1) | |
783 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),math.rad(-60),0), 0.5) | |
784 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(70), 0), 0.5) | |
785 | --[[lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5) | |
786 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5)]] | |
787 | wait() | |
788 | end | |
789 | damen = true | |
790 | dem = hitbox.Touched:connect(function(hit) Damage(hit, 30) end) | |
791 | for i = 1,25 do | |
792 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), 1) | |
793 | --larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(20)), 0.5) | |
794 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),math.rad(30),0), 0.5) | |
795 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5) | |
796 | --[[lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.5) | |
797 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5)]] | |
798 | if Debounces.on == false then break end | |
799 | ||
800 | wait() | |
801 | end | |
802 | damen = false | |
803 | dem:disconnect() | |
804 | enabled = true | |
805 | end | |
806 | ||
807 | ---------------------------------------------------- | |
808 | function nwSnd(prnt,pch,vol,id) | |
809 | local s=Instance.new("Sound",prnt) | |
810 | s.Pitch=pch | |
811 | s.Volume=vol | |
812 | s.SoundId="rbxassetid://"..id | |
813 | s.PlayOnRemove=true | |
814 | return s | |
815 | end | |
816 | ---------------------------------------------------- | |
817 | function newRay(start,face,range,wat) | |
818 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
819 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
820 | return rey,hit,pos | |
821 | end | |
822 | ---------------------------------------------------- | |
823 | function lerp(a, b, t) -- Linear interpolation | |
824 | return a + (b - a)*t | |
825 | end | |
826 | ||
827 | function slerp(a, b, t) --Spherical interpolation | |
828 | dot = a:Dot(b) | |
829 | if dot > 0.99999 or dot < -0.99999 then | |
830 | return t <= 0.5 and a or b | |
831 | else | |
832 | r = math.acos(dot) | |
833 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
834 | end | |
835 | end | |
836 | function matrixInterpolate(a, b, t) | |
837 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
838 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
839 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
840 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
841 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
842 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
843 | local t = v1:Dot(v2) | |
844 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
845 | return CFrame.new() | |
846 | end | |
847 | return CFrame.new( | |
848 | v0.x, v0.y, v0.z, | |
849 | v1.x, v1.y, v1.z, | |
850 | v2.x, v2.y, v2.z, | |
851 | v3.x, v3.y, v3.z) | |
852 | end | |
853 | ---------------------------------------------------- | |
854 | function genWeld(a,b) | |
855 | local w = Instance.new("Weld",a) | |
856 | w.Part0 = a | |
857 | w.Part1 = b | |
858 | return w | |
859 | end | |
860 | function weld(a, b) | |
861 | local weld = Instance.new("Weld") | |
862 | weld.Name = "W" | |
863 | weld.Part0 = a | |
864 | weld.Part1 = b | |
865 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
866 | weld.Parent = a | |
867 | return weld; | |
868 | end | |
869 | ---------------------------------------------------- | |
870 | function Lerp(c1,c2,al) | |
871 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
872 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
873 | for i,v in pairs(com1) do | |
874 | com1[i] = v+(com2[i]-v)*al | |
875 | end | |
876 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
877 | end | |
878 | ---------------------------------------------------- | |
879 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
880 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
881 | local List = {} | |
882 | for i,v in pairs(workspace:GetChildren())do | |
883 | if v:IsA("Model")then | |
884 | if v:findFirstChild("Torso")then | |
885 | if v ~= char then | |
886 | if(v.Torso.Position -Position).magnitude <= Distance then | |
887 | table.insert(List,v) | |
888 | end | |
889 | end | |
890 | end | |
891 | end | |
892 | end | |
893 | return List | |
894 | end | |
895 | ---------------------------------------------------- | |
896 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
897 | local wld = Instance.new("Weld", wp1) | |
898 | wld.Part0 = wp0 | |
899 | wld.Part1 = wp1 | |
900 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
901 | end | |
902 | ---------------------------------------------------- | |
903 | function weld5(part0, part1, c0, c1) | |
904 | weeld=Instance.new("Weld", part0) | |
905 | weeld.Part0=part0 | |
906 | weeld.Part1=part1 | |
907 | weeld.C0=c0 | |
908 | weeld.C1=c1 | |
909 | return weeld | |
910 | end | |
911 | ---------------------------------------------------- | |
912 | local animpose = "Idle" | |
913 | local lastanimpose = "Idle" | |
914 | local sine = 0 | |
915 | local change = 1 | |
916 | local val = 0 | |
917 | local ffing = false | |
918 | ---------------------------------------------------- | |
919 | ---------------------------------------------------- | |
920 | mouse.KeyDown:connect(function(key) | |
921 | if key == "e" then | |
922 | if Debounces.CanAttack == true then | |
923 | Debounces.CanAttack = false | |
924 | Debounces.NoIdl = true | |
925 | Debounces.on = true | |
926 | ||
927 | for i = 1, 20 do | |
928 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1) | |
929 | if Debounces.on == false then break end | |
930 | rs:wait() | |
931 | end | |
932 | ||
933 | local Ball = Instance.new("Part",rarm) | |
934 | Ball.Size = Vector3.new(.1,.1,.1) ---- For the hitbox. | |
935 | Ball.BrickColor = BrickColor.new("Royal purple") | |
936 | Ball.TopSurface = 0 | |
937 | Ball.Material = "Neon" | |
938 | Ball.BottomSurface = 0 ---- To make the top and bottom look smooth | |
939 | Ball.CanCollide = true | |
940 | ||
941 | local Ball2 = Instance.new("Weld",Ball) | |
942 | Ball2.Part0 = rarm | |
943 | Ball2.Part1 = Ball | |
944 | Ball2.C0 = CFrame.new(0,-1.1,0) | |
945 | ||
946 | local Ball3 = Instance.new("SpecialMesh",Ball) | |
947 | Ball3.MeshType = "Sphere" --- SInce its a ball and if you wanna do a random mesh then its MeshId = "" | |
948 | Ball3.Scale = Vector3.new(0.5,0.5,0.5) -- To start it off tiny as it grows. | |
949 | ||
950 | local c = game.Players.LocalPlayer.Character | |
951 | local radius = 10 | |
952 | local pos = Ball.CFrame | |
953 | local clrz = {'Really black','Royal purple'}; | |
954 | for HAAA = 1, 20 do | |
955 | for i = 1,1 do | |
956 | local clr = clrz[math.random(1,#clrz)] | |
957 | pos = Ball.CFrame | |
958 | local p = Instance.new('Part',c) | |
959 | local mafc,mafa = math.random(-10,10), math.random(-360,360) | |
960 | p.CanCollide = false | |
961 | p.FormFactor = 3 | |
962 | p.Size = Vector3.new(1,1,1) | |
963 | local m = Instance.new('SpecialMesh',p) | |
964 | m.MeshType = 'Brick' | |
965 | spawn(function() | |
966 | for i = 0,50 do | |
967 | local int,int2 = .02,.02 | |
968 | m.Scale = m.Scale - Vector3.new(int,int,int) | |
969 | p.Transparency = p.Transparency + int2 | |
970 | Ball3.Scale = Ball3.Scale + Vector3.new(0.02,0.02,0.02) | |
971 | game:service'RunService'.RenderStepped:wait() | |
972 | end | |
973 | pcall(function() | |
974 | p:Destroy() | |
975 | end) | |
976 | end) | |
977 | p.BrickColor = BrickColor.new(clr) | |
978 | p.Material = 'Neon' | |
979 | p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa) | |
980 | local bp = Instance.new('BodyPosition',p) | |
981 | bp.MaxForce = Vector3.new(1/0,1/0,1/0) | |
982 | bp.D = 100 | |
983 | bp.P = 100 | |
984 | bp.Position = pos.p | |
985 | game.Debris:AddItem(p,10) | |
986 | end | |
987 | end | |
988 | ||
989 | wait(1) | |
990 | Ball2:remove() | |
991 | Ball.CFrame = rarm.CFrame*CFrame.new(0,0,-4) | |
992 | ||
993 | local Fly = Instance.new("BodyVelocity",Ball) | |
994 | Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
995 | Ball.CFrame = CFrame.new(mouse.Hit.p) | |
996 | Fly.velocity = Ball.CFrame.lookVector*65 | |
997 | ||
998 | ||
999 | ||
1000 | Ball.Touched:connect(function(hit)--LINE 170 | |
1001 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent~=nil and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" and hit~="XIxSandStormxIX" or hit.Parent~="XIxSandStormxIX" or hit.Name~="XIxSandStormxIX" or hit~="XIxSandStormxIX"then | |
1002 | ||
1003 | for i,v in pairs(FindNearestTorso(Ball.CFrame.p,5))do | |
1004 | if v:FindFirstChild('Humanoid') and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" and hit~="XIxSandStormxIX" or hit.Parent~="XIxSandStormxIX" or hit.Name~="XIxSandStormxIX" or hit~="XIxSandStormxIX" then | |
1005 | v.Humanoid:TakeDamage(math.random(3,6)) | |
1006 | end | |
1007 | end | |
1008 | Fly:Destroy() | |
1009 | Ball.Anchored = true | |
1010 | Ball.CanCollide = false | |
1011 | for i = 1,50 do | |
1012 | wait() | |
1013 | Ball3.Scale = Ball3.Scale + Vector3.new(1,1,1) | |
1014 | Ball.Transparency = Ball.Transparency + .1 | |
1015 | end | |
1016 | end | |
1017 | end) | |
1018 | if Debounces.CanAttack == false then | |
1019 | Debounces.CanAttack = true | |
1020 | Debounces.NoIdl = false | |
1021 | Debounces.on = false | |
1022 | end | |
1023 | end | |
1024 | end | |
1025 | end) | |
1026 | ---------------------------------------------------------- | |
1027 | --[[attacktype = 1 | |
1028 | attack = false | |
1029 | ||
1030 | function attackone() | |
1031 | attack = true | |
1032 | for i = 1, 20 do | |
1033 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), .3) | |
1034 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(30)), 0.3) | |
1035 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 0.3, .3) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3) | |
1036 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(120), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1037 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1038 | rs:wait() | |
1039 | end | |
1040 | for i = 1, 20 do | |
1041 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .5) | |
1042 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5) | |
1043 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5) | |
1044 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5) | |
1045 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-120), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5) | |
1046 | rs:wait() | |
1047 | end | |
1048 | attack = false | |
1049 | end | |
1050 | ||
1051 | ||
1052 | function attacktwo() | |
1053 | attack = true | |
1054 | for i = 1, 20 do | |
1055 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1056 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.5, -.5) * CFrame.Angles(math.rad(150), math.rad(0), math.rad(0)), 0.3) | |
1057 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.3, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3) | |
1058 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1059 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-85), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1060 | rs:wait() | |
1061 | end | |
1062 | for i = 1, 20 do | |
1063 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5) | |
1064 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.3, -.5) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5) | |
1065 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5) | |
1066 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5) | |
1067 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-85), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5) | |
1068 | rs:wait() | |
1069 | end | |
1070 | attack = false | |
1071 | end | |
1072 | ||
1073 | function attackthree() | |
1074 | attack = true | |
1075 | ||
1076 | for i = 1, 20 do | |
1077 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
1078 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.8, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3) | |
1079 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.3, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3) | |
1080 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1081 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-140), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1082 | rs:wait() | |
1083 | end | |
1084 | for i = 1, 20 do | |
1085 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), .5) | |
1086 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(30)), 0.5) | |
1087 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.3, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5) | |
1088 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(140), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5) | |
1089 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5) | |
1090 | rs:wait() | |
1091 | end | |
1092 | attack = false | |
1093 | end | |
1094 | ||
1095 | mouse.Button1Down:connect(function() | |
1096 | if Debounces.CanAttack == true then | |
1097 | Debounces.CanAttack = false | |
1098 | Debounces.NoIdl = true | |
1099 | Debounces.on = true | |
1100 | ||
1101 | if Debounces.CanAttack == false then | |
1102 | Debounces.CanAttack = true | |
1103 | Debounces.NoIdl = false | |
1104 | Debounces.on = false | |
1105 | if attack == false and attacktype == 1 then | |
1106 | attacktype = 2 | |
1107 | attackone() | |
1108 | elseif attack == false and attacktype == 2 then | |
1109 | attacktype = 3 | |
1110 | attacktwo() | |
1111 | elseif attack == false and attacktype == 3 then | |
1112 | attacktype = 1 | |
1113 | attackthree() | |
1114 | end | |
1115 | end)]] | |
1116 | ||
1117 | ---------------------------------------------------------- | |
1118 | mouse.KeyDown:connect(function(key) | |
1119 | if key == "q" then | |
1120 | if Debounces.CanAttack == true then | |
1121 | Debounces.CanAttack = false | |
1122 | Debounces.NoIdl = true | |
1123 | Debounces.on = true | |
1124 | ||
1125 | for i = 1, 20 do | |
1126 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1) | |
1127 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4) | |
1128 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4) | |
1129 | if Debounces.on == false then break end | |
1130 | rs:wait() | |
1131 | end | |
1132 | for i = 1, 20 do | |
1133 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(20)), 1) | |
1134 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4) | |
1135 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4) | |
1136 | if Debounces.on == false then break end | |
1137 | rs:wait() | |
1138 | end | |
1139 | ||
1140 | hum.WalkSpeed = 0 | |
1141 | local m0del = Instance.new('Model',char) | |
1142 | local wave = Instance.new('Part',m0del) | |
1143 | wave.CFrame = char.Torso.CFrame * CFrame.new(3.5, 0, 0) | |
1144 | wave.TopSurface = 'Smooth' | |
1145 | wave.BottomSurface = 'Smooth' | |
1146 | wave.BrickColor = BrickColor.new('Royal purple') | |
1147 | wave.Anchored = true | |
1148 | wave.FormFactor = 'Custom' | |
1149 | wave.Shape = 'Ball' | |
1150 | wave.CanCollide = false | |
1151 | wave.Material = 'Neon' | |
1152 | wave.Size = Vector3.new(.4, .4, .4) | |
1153 | local lite = Instance.new('SelectionSphere',wave) | |
1154 | lite.Transparency = .7 | |
1155 | lite.Color = BrickColor.new('Royal purple') | |
1156 | lite.Adornee = wave | |
1157 | for awe = 1, 32 do | |
1158 | wave.Size = Vector3.new(wave.Size.X+.6, wave.Size.Y+.6, wave.Size.Z+.6) | |
1159 | wait() | |
1160 | wave.CFrame = wave.CFrame * CFrame.new(.5, 0, 0) | |
1161 | end | |
1162 | for zfvadi = 1, 20 do | |
1163 | wave.CFrame = wave.CFrame * CFrame.new(-1, 0, -1) | |
1164 | wait() | |
1165 | end | |
1166 | local beam = Instance.new('Part',m0del) | |
1167 | beam.TopSurface = 'Smooth' | |
1168 | beam.BottomSurface = 'Smooth' | |
1169 | beam.Material = 'Neon' | |
1170 | beam.Transparency = .6 | |
1171 | beam.Anchored = true | |
1172 | beam.BrickColor = BrickColor.new('Royal purple') | |
1173 | beam.CanCollide = false | |
1174 | local mesh = Instance.new('CylinderMesh',beam) | |
1175 | local realbeam = beam:Clone() | |
1176 | realbeam.Parent = m0del | |
1177 | realbeam.BrickColor = BrickColor.new('Royal purple') | |
1178 | realbeam.Transparency = .1 | |
1179 | realbeam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1180 | beam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
1181 | beam.Size = Vector3.new(23, 10/2, 23) | |
1182 | realbeam.Size = Vector3.new(24, 10/2, 24) | |
1183 | for HAAA = 1, 100 do | |
1184 | local starthere = char.Torso.CFrame * CFrame.new(0, 0, -17.5) | |
1185 | local idek = Ray.new(starthere.p,(starthere.p -(starthere * CFrame.new(0, 0, 1)).p).unit * 1000) | |
1186 | local thx = {char, m0del} | |
1187 | local p = wave:Clone() | |
1188 | table.insert(thx, p) | |
1189 | local Bonk, ovhere = workspace:FindPartOnRayWithIgnoreList(idek, thx) | |
1190 | local meg | |
1191 | ||
1192 | if Bonk then | |
1193 | if Bonk.CanCollide == false then | |
1194 | table.insert(thx,Bonk) | |
1195 | end | |
1196 | p.Parent = m0del | |
1197 | p.Size = Vector3.new(28, 28, 28) | |
1198 | p.Position = ovhere | |
1199 | end | |
1200 | if Bonk and Bonk.Parent:findFirstChild'Humanoid' then | |
1201 | local dionamuh = Bonk.Parent:findFirstChild'Humanoid' | |
1202 | dionamuh.Health = dionamuh.Health - 11 | |
1203 | end | |
1204 | meg = (starthere.p - ovhere).magnitude | |
1205 | wait(.01) | |
1206 | p:Destroy() | |
1207 | wait(.01) | |
1208 | realbeam.Size = Vector3.new(25/2, meg, 25/2) | |
1209 | beam.Size = Vector3.new(26/2, meg, 26/2) | |
1210 | realbeam.CFrame = starthere * CFrame.new(0, 0, -meg/2) * CFrame.Angles(math.rad(90), 0, 0) | |
1211 | beam.CFrame = starthere * CFrame.new(0, 0, -meg/2) * CFrame.Angles(math.rad(90), 0, 0) | |
1212 | wave.CFrame = starthere | |
1213 | end | |
1214 | hum.WalkSpeed = 16 | |
1215 | game:GetService('Debris'):AddItem(m0del, 4) | |
1216 | wait(3) | |
1217 | ||
1218 | if Debounces.CanAttack == false then | |
1219 | Debounces.CanAttack = true | |
1220 | Debounces.NoIdl = false | |
1221 | Debounces.on = false | |
1222 | end | |
1223 | end | |
1224 | end | |
1225 | end) | |
1226 | ---------------------------------------------------------- | |
1227 | --[[mouse.KeyDown:connect(function(key) | |
1228 | if key == "f" then | |
1229 | if Debounces.CanAttack == true then | |
1230 | Debounces.CanAttack = false | |
1231 | Debounces.NoIdl = true | |
1232 | Debounces.on = true | |
1233 | ||
1234 | for i = 1, 20 do | |
1235 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(.75, .4, -.4)*CFrame.Angles(math.rad(20),math.rad(-10),math.rad(0)), 1) | |
1236 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-.75, .4, -.4)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(0)), 1) | |
1237 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1) | |
1238 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 1) | |
1239 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.65, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(11)), 1) | |
1240 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.65, -1, 0) * CFrame.Angles(math.rad(90), math.rad(-0), math.rad(-11)), 1) | |
1241 | if Debounces.on == false then break end | |
1242 | rs:wait() | |
1243 | end | |
1244 | ||
1245 | local c = game.Players.LocalPlayer.Character | |
1246 | local radius = 10 | |
1247 | local pos = torso.CFrame | |
1248 | local clrz = {'Really black','Royal purple'}; | |
1249 | for HAAA = 1, 20 do | |
1250 | for i = 1,1 do | |
1251 | local clr = clrz[math.random(1,#clrz)] | |
1252 | pos = torso.CFrame | |
1253 | local p = Instance.new('Part',c) | |
1254 | local mafc,mafa = math.random(-10,10), math.random(-360,360) | |
1255 | p.CanCollide = false | |
1256 | p.FormFactor = 3 | |
1257 | p.Size = Vector3.new(1,1,1) | |
1258 | local m = Instance.new('SpecialMesh',p) | |
1259 | m.MeshType = 'Brick' | |
1260 | spawn(function() | |
1261 | for i = 0,50 do | |
1262 | local int,int2 = .02,.02 | |
1263 | m.Scale = m.Scale - Vector3.new(int,int,int) | |
1264 | p.Transparency = p.Transparency + int2 | |
1265 | game:service'RunService'.RenderStepped:wait() | |
1266 | end | |
1267 | pcall(function() | |
1268 | p:Destroy() | |
1269 | end) | |
1270 | end) | |
1271 | p.BrickColor = BrickColor.new(clr) | |
1272 | p.Material = 'Neon' | |
1273 | p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa) | |
1274 | local bp = Instance.new('BodyPosition',p) | |
1275 | bp.MaxForce = Vector3.new(1/0,1/0,1/0) | |
1276 | bp.D = 1000000 | |
1277 | bp.P = 10000 | |
1278 | bp.Position = pos.p | |
1279 | game.Debris:AddItem(p,10) | |
1280 | end | |
1281 | end | |
1282 | if Debounces.CanAttack == false then | |
1283 | Debounces.CanAttack = true | |
1284 | Debounces.NoIdl = false | |
1285 | Debounces.on = false | |
1286 | end | |
1287 | end | |
1288 | end | |
1289 | end)]] | |
1290 | ---------------------------------------------------------- | |
1291 | --Basic laser-- | |
1292 | --- MODMODE ACTIVATE <(^__^)> --- | |
1293 | ||
1294 | ||
1295 | local p = game.Players.LocalPlayer | |
1296 | local char = p.Character | |
1297 | local rarm = char["Right Arm"] | |
1298 | local torso = char.Torso | |
1299 | local shl=torso['Right Shoulder'] | |
1300 | local mouse = p:GetMouse() | |
1301 | hold=false | |
1302 | ||
1303 | rw=nil | |
1304 | n_cf=CFrame.new(1,.5,0) | |
1305 | ||
1306 | --mouse.Button1Down:connect(function() | |
1307 | mouse.KeyDown:connect(function(key) | |
1308 | if key == "x" then | |
1309 | local laz = Instance.new("Part",char) | |
1310 | laz.Anchored=true | |
1311 | laz.BrickColor=BrickColor.new"New Yeller" | |
1312 | laz.CanCollide=false | |
1313 | for _,v in pairs(Enum.NormalId:GetEnumItems())do | |
1314 | laz[v.Name..'Surface']=0 end | |
1315 | laz.Size=Vector3.new(0,0,0) | |
1316 | Instance.new("CylinderMesh",laz).Name='m' | |
1317 | pos = (rarm.CFrame*CFrame.new(0,-1.2,0)).p | |
1318 | hold=true | |
1319 | ||
1320 | local ptick=tick() | |
1321 | ||
1322 | while hold do | |
1323 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1) | |
1324 | if (tick()-ptick)>.1 then | |
1325 | Spawn(function() | |
1326 | local cl=laz:Clone() | |
1327 | cl.Parent=char | |
1328 | local msh=cl.m | |
1329 | local r=5 | |
1330 | for i=0,1,.1 do | |
1331 | msh.Scale=Vector3.new(1+i*r,1,1+i*r) | |
1332 | cl.Transparency=i | |
1333 | wait() | |
1334 | end | |
1335 | cl:Destroy() | |
1336 | end) | |
1337 | ptick=tick() | |
1338 | end | |
1339 | ||
1340 | local mag = (pos-mouse.hit.p).magnitude | |
1341 | laz.Size = Vector3.new(1,mag,1) | |
1342 | ||
1343 | laz.CFrame = (CFrame.new(pos,mouse.hit.p)*CFrame.new(0,0,-mag/2))*CFrame.Angles(math.pi/2,0,0) | |
1344 | ||
1345 | pos = (rarm.CFrame*CFrame.new(0,-1.2,0)).p | |
1346 | wait() | |
1347 | end | |
1348 | laz:Destroy() | |
1349 | end | |
1350 | end) | |
1351 | --end) | |
1352 | ||
1353 | --mouse.Button1Up:connect(function() | |
1354 | mouse.KeyUp:connect(function(key) | |
1355 | if key == "x" then | |
1356 | hold=false | |
1357 | end | |
1358 | end) | |
1359 | --end) | |
1360 | mouse.KeyDown:connect(function(key) | |
1361 | if key == "z" then | |
1362 | if Debounces.CanAttack == true then | |
1363 | Debounces.CanAttack = false | |
1364 | Debounces.NoIdl = true | |
1365 | Debounces.on = true | |
1366 | hostile = true | |
1367 | for i = 1, 15 do | |
1368 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1) | |
1369 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4) | |
1370 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4) | |
1371 | if Debounces.on == false then break end | |
1372 | rs:wait() | |
1373 | end | |
1374 | for i = 1, 15 do | |
1375 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(20)), 1) | |
1376 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4) | |
1377 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4) | |
1378 | if Debounces.on == false then break end | |
1379 | rs:wait() | |
1380 | end | |
1381 | ||
1382 | if armloop then | |
1383 | ch['Right Arm'].Anchored = true | |
1384 | local p0 = ch.Torso.CFrame | |
1385 | p0 = p0 + ((p0 * ca(pi/-2,0,0)).lookVector * -0.5) + (p0 * ca(0,pi/-2,0)).lookVector | |
1386 | local p1 = p0 + ((p0.p-lp:GetMouse().Hit.p).unit * -2) | |
1387 | ch['Right Arm'].CFrame = cf((p0.p + p1.p)/2,p0.p) * ca(-math.pi/2,0,0) | |
1388 | end | |
1389 | ||
1390 | local m0del = Instance.new('Model',char) | |
1391 | local wave = Instance.new('Part',m0del) | |
1392 | wave.CFrame = char.Torso.CFrame * CFrame.new(0, 30, 0) | |
1393 | wave.TopSurface = 'Smooth' | |
1394 | wave.BottomSurface = 'Smooth' | |
1395 | wave.BrickColor = BrickColor.new('Royal purple') | |
1396 | wave.Anchored = true | |
1397 | wave.FormFactor = 'Custom' | |
1398 | wave.Shape = 'Ball' | |
1399 | wave.CanCollide = false | |
1400 | wave.Material = 'Neon' | |
1401 | wave.Size = Vector3.new(3, 3, 3) | |
1402 | local lite = Instance.new('SelectionSphere',wave) | |
1403 | lite.Transparency = .7 | |
1404 | lite.Color = BrickColor.new('Royal purple') | |
1405 | lite.Adornee = wave | |
1406 | for awe = 1, 32 do | |
1407 | wave.Size = Vector3.new(wave.Size.X+1, wave.Size.Y+1, wave.Size.Z+1) | |
1408 | wait() | |
1409 | wave.CFrame = wave.CFrame * CFrame.new(0, .5, 0) | |
1410 | end | |
1411 | wave.Touched:connect(function(hit)--LINE 170 | |
1412 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then | |
1413 | ||
1414 | for i,v in pairs(FindNearestTorso(wave.CFrame.p,20))do | |
1415 | if v:FindFirstChild('Humanoid') and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then | |
1416 | v.Humanoid:TakeDamage(math.random(300,600)) | |
1417 | end | |
1418 | end | |
1419 | ||
1420 | end | |
1421 | end) | |
1422 | for zfvadi = 1, 25 do | |
1423 | wave.CFrame = wave.CFrame * CFrame.new(0, -2, -2) | |
1424 | wait() | |
1425 | end | |
1426 | ||
1427 | wave.Touched:connect(function(hit)--LINE 170 | |
1428 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then | |
1429 | ||
1430 | for i,v in pairs(FindNearestTorso(wave.CFrame.p,20))do | |
1431 | if v:FindFirstChild('Humanoid') and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then | |
1432 | v.Humanoid:TakeDamage(math.random(300,600)) | |
1433 | end | |
1434 | end | |
1435 | ||
1436 | end | |
1437 | end) | |
1438 | wait(1) | |
1439 | for zfvadi = 1, 25 do | |
1440 | wave.Size = Vector3.new(wave.Size.X-1.5, wave.Size.Y-1.5, wave.Size.Z-1.5) | |
1441 | wave.Transparency = wave.Transparency + .5 | |
1442 | wait() | |
1443 | end | |
1444 | game:GetService('Debris'):AddItem(m0del, 4) | |
1445 | hum.WalkSpeed = 16 | |
1446 | if Debounces.CanAttack == false then | |
1447 | Debounces.CanAttack = true | |
1448 | Debounces.NoIdl = false | |
1449 | Debounces.on = false | |
1450 | end | |
1451 | end | |
1452 | hostile = false | |
1453 | end | |
1454 | end) | |
1455 | ---------------------------------------------------------- | |
1456 | mouse.KeyDown:connect(function(key) | |
1457 | if key == "g" then | |
1458 | if Debounces.CanAttack == true then | |
1459 | Debounces.CanAttack = false | |
1460 | Debounces.NoIdl = true | |
1461 | Debounces.on = true | |
1462 | if Debounces.CanAttack == false then | |
1463 | Debounces.CanAttack = true | |
1464 | Debounces.NoIdl = false | |
1465 | Debounces.on = false | |
1466 | end | |
1467 | end | |
1468 | end | |
1469 | end) | |
1470 | ---------------------------------------------------- | |
1471 | mouse.KeyDown:connect(function(key) | |
1472 | if key == "m" then | |
1473 | if Debounces.CanAttack == true then | |
1474 | Debounces.CanAttack = false | |
1475 | Debounces.on = true | |
1476 | Debounces.NoIdl = true | |
1477 | hum.WalkSpeed = 50 | |
1478 | ||
1479 | BV = Instance.new("BodyVelocity", torso) | |
1480 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1481 | BV.P = 300000 | |
1482 | BV.Velocity = Vector3.new(0,200,0) | |
1483 | game:GetService("Debris"):AddItem(BV,.07) | |
1484 | ||
1485 | for i = 1, 20 do | |
1486 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
1487 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
1488 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
1489 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
1490 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
1491 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
1492 | if Debounces.on == false then break end | |
1493 | wait() | |
1494 | end | |
1495 | BV:Destroy() | |
1496 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
1497 | for i = 1, 30 do | |
1498 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
1499 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1500 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
1501 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1502 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
1503 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
1504 | if Debounces.on == false then break end | |
1505 | wait() | |
1506 | end | |
1507 | end | |
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | hum.WalkSpeed = 16 | |
1513 | Debounces.on = false | |
1514 | Debounces.NoIdl = false | |
1515 | if Debounces.CanAttack == false then | |
1516 | Debounces.CanAttack = true | |
1517 | end | |
1518 | end | |
1519 | end | |
1520 | end) | |
1521 | ---------------------------------------------------- | |
1522 | mouse.KeyDown:connect(function(key) | |
1523 | --if key:byte() == 32 then | |
1524 | if key == "c" then | |
1525 | if Debounces.CanAttack == true then | |
1526 | Debounces.CanAttack = false | |
1527 | Debounces.NoIdl = true | |
1528 | Debounces.on = true | |
1529 | local vu = Instance.new("BodyVelocity",torso) | |
1530 | vu.P = 500 | |
1531 | vu.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1532 | vu.velocity = Vector3.new(torso.CFrame.lookVector.X,torso.CFrame.lookVector.Y,torso.CFrame.lookVector.Z) | |
1533 | game:GetService("Debris"):AddItem(vu,0.267) | |
1534 | if Debounces.CanAttack == false then | |
1535 | Debounces.CanAttack = true | |
1536 | Debounces.NoIdl = false | |
1537 | Debounces.on = false | |
1538 | end | |
1539 | end | |
1540 | end | |
1541 | end) | |
1542 | ---------------------------------------------------------- | |
1543 | mouse.KeyDown:connect(function(key) | |
1544 | if key == "v" then | |
1545 | if Debounces.CanAttack == true then | |
1546 | Debounces.CanAttack = false | |
1547 | Debounces.NoIdl = true | |
1548 | Debounces.on = true | |
1549 | ||
1550 | slash() | |
1551 | if Debounces.CanAttack == false then | |
1552 | Debounces.CanAttack = true | |
1553 | Debounces.NoIdl = false | |
1554 | Debounces.on = false | |
1555 | end | |
1556 | end | |
1557 | ||
1558 | end | |
1559 | end) | |
1560 | ---------------------------------------------------------- | |
1561 | mouse.KeyDown:connect(function(key) | |
1562 | if key == "r" then | |
1563 | if Debounces.CanAttack == true then | |
1564 | Debounces.CanAttack = false | |
1565 | Debounces.on = true | |
1566 | Debounces.NoIdl = true | |
1567 | ||
1568 | ||
1569 | for i = 1,20 do | |
1570 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.01) | |
1571 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.01) | |
1572 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.1) | |
1573 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.01) | |
1574 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.01) | |
1575 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.01) | |
1576 | if Debounces.on == false then break end | |
1577 | wait() | |
1578 | end | |
1579 | ||
1580 | to = hitbox.Touched:connect(function(hit) | |
1581 | hit = hit.Parent | |
1582 | if hit and hit:IsA("Model") then | |
1583 | if hit:FindFirstChild("Humanoid") then | |
1584 | if hit.Name ~= p.Name then | |
1585 | hit:FindFirstChild("Humanoid"):TakeDamage(10) | |
1586 | end | |
1587 | end | |
1588 | end | |
1589 | end) | |
1590 | ||
1591 | for i = 1,26 do | |
1592 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.1) | |
1593 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.1) | |
1594 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.1) | |
1595 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(0), 0), 0.1) | |
1596 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(50), 0, math.rad(0)), 0.1) | |
1597 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.1) | |
1598 | if Debounces.on == false then break end | |
1599 | wait() | |
1600 | end | |
1601 | wait(.5) | |
1602 | to:disconnect() | |
1603 | if Debounces.CanAttack == false then | |
1604 | Debounces.CanAttack = true | |
1605 | Debounces.on = false | |
1606 | Debounces.NoIdl = false | |
1607 | end | |
1608 | end | |
1609 | end | |
1610 | end) | |
1611 | ||
1612 | ---------------------------------------------------------- | |
1613 | function unhols() | |
1614 | asd = handle:findFirstChild("HolstWeld") | |
1615 | asd:Destroy() | |
1616 | partweld.Parent = handle | |
1617 | on=false | |
1618 | end | |
1619 | ||
1620 | function hols() | |
1621 | local asd = Instance.new("Weld", handle) | |
1622 | asd.Name = "HolstWeld" | |
1623 | asd.Part0 = handle | |
1624 | asd.Part1 = char.Torso | |
1625 | asd.C0 = CFrame.new(0,0,-.6)*CFrame.Angles(0,0,260) | |
1626 | partweld.Parent=nil | |
1627 | on = true | |
1628 | end | |
1629 | ||
1630 | function particle() | |
1631 | local c = game.Players.LocalPlayer.Character | |
1632 | local radius = 10 | |
1633 | local pos = torso.CFrame | |
1634 | local clrz = {'Really black','Royal purple'}; | |
1635 | for HAAA = 1, 20 do | |
1636 | for i = 1,1 do | |
1637 | local clr = clrz[math.random(1,#clrz)] | |
1638 | pos = torso.CFrame | |
1639 | local p = Instance.new('Part',c) | |
1640 | local mafc,mafa = math.random(-10,10), math.random(-360,360) | |
1641 | p.CanCollide = false | |
1642 | p.FormFactor = 3 | |
1643 | p.Size = Vector3.new(1,1,1) | |
1644 | local m = Instance.new('SpecialMesh',p) | |
1645 | m.MeshType = 'Brick' | |
1646 | spawn(function() | |
1647 | for i = 0,50 do | |
1648 | local int,int2 = .02,.02 | |
1649 | m.Scale = m.Scale - Vector3.new(int,int,int) | |
1650 | p.Transparency = p.Transparency + int2 | |
1651 | game:service'RunService'.RenderStepped:wait() | |
1652 | end | |
1653 | pcall(function() | |
1654 | p:Destroy() | |
1655 | end) | |
1656 | end) | |
1657 | p.BrickColor = BrickColor.new(clr) | |
1658 | p.Material = 'Neon' | |
1659 | p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa) | |
1660 | local bp = Instance.new('BodyPosition',p) | |
1661 | bp.MaxForce = Vector3.new(1/0,1/0,1/0) | |
1662 | bp.D = 1000000 | |
1663 | bp.P = 10000 | |
1664 | bp.Position = pos.p | |
1665 | game.Debris:AddItem(p,10) | |
1666 | end | |
1667 | end | |
1668 | end | |
1669 | ---------------------------------------------------------- | |
1670 | Holstered = "off" | |
1671 | ||
1672 | mouse.KeyDown:connect(function(key) | |
1673 | ||
1674 | if key == "f" then | |
1675 | ||
1676 | if Holstered == "off" then | |
1677 | ||
1678 | hols() | |
1679 | ||
1680 | particle() | |
1681 | ||
1682 | Holstered = "on" | |
1683 | ||
1684 | elseif Holstered == "on" then | |
1685 | ||
1686 | unhols() | |
1687 | ||
1688 | particle() | |
1689 | ||
1690 | Holstered = "off" | |
1691 | ||
1692 | end | |
1693 | ||
1694 | end | |
1695 | ||
1696 | end) | |
1697 | ---------------------------------------------------------- | |
1698 | game:GetService("RunService").RenderStepped:connect(function() | |
1699 | char.Humanoid.FreeFalling:connect(function(f) | |
1700 | if f then | |
1701 | ffing = true | |
1702 | else | |
1703 | ffing = false | |
1704 | end | |
1705 | end) | |
1706 | sine = sine + change | |
1707 | if jumpn == true then | |
1708 | animpose = "Jumping" | |
1709 | elseif ffing == true then | |
1710 | animpose = "Freefalling" | |
1711 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
1712 | animpose = "Idle" | |
1713 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
1714 | animpose = "Walking" | |
1715 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
1716 | animpose = "Running" | |
1717 | end | |
1718 | if animpose ~= lastanimpose then | |
1719 | sine = 0 | |
1720 | if Debounces.NoIdl == false then | |
1721 | if animpose == "Idle" then | |
1722 | for i = 1, 2 do | |
1723 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-6),math.rad(8)), 1) | |
1724 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(6),math.rad(-8)), 1) | |
1725 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1) | |
1726 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-2),0, math.rad(0)), 1) | |
1727 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-16)), 1) | |
1728 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(16)), 1) | |
1729 | end | |
1730 | elseif animpose == "Walking" then | |
1731 | for i = 1, 2 do | |
1732 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-12),math.rad(14+24*math.cos(sine/8))),--[[Speed]] 0.2) | |
1733 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(12),math.rad(-14-24*math.cos(sine/8))),--[[Speed]] 0.2) | |
1734 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-0),0,0),--[[Speed]] 0.4) | |
1735 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-0),0, math.rad(0)),--[[Speed]] 0.05) | |
1736 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4) | |
1737 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4) | |
1738 | end | |
1739 | elseif animpose == "Freefalling" then | |
1740 | for i = 1, 2 do | |
1741 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
1742 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
1743 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
1744 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
1745 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
1746 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
1747 | end | |
1748 | elseif animpose == "Running" then | |
1749 | for i = 1, 2 do | |
1750 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 1) | |
1751 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 1) | |
1752 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-12),0,0), 1) | |
1753 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-18),0, math.rad(0)), 1) | |
1754 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-16)), 1) | |
1755 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(16)), 1) | |
1756 | wait() | |
1757 | end | |
1758 | end | |
1759 | else | |
1760 | end | |
1761 | end | |
1762 | lastanimpose = animpose | |
1763 | if Debounces.NoIdl == false then | |
1764 | if animpose == "Idle" then | |
1765 | change = 0.5 | |
1766 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-6),math.rad(8)), 1) | |
1767 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(6),math.rad(-8)), 1) | |
1768 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1) | |
1769 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-2),0, math.rad(0)), 1) | |
1770 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-16)), 1) | |
1771 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(16)), 1) | |
1772 | elseif animpose == "Walking" then | |
1773 | change = 1 | |
1774 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 1) | |
1775 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 1) | |
1776 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1) | |
1777 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-4),0, math.rad(0)), 1) | |
1778 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-1-0*math.cos(sine/14)/2,-.05 + math.sin(sine/14)/6) * CFrame.Angles(math.rad(-8) + -math.sin(sine/10)/2, 0, 0), 1) | |
1779 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-1+0*math.cos(sine/14)/2,-.05 + -math.sin(sine/14)/6) * CFrame.Angles(math.rad(-8) + math.sin(sine/10)/2, 0, 0), 1) | |
1780 | elseif animpose == "Running" then | |
1781 | change = 1 | |
1782 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 1) | |
1783 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 1) | |
1784 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-12),0,0), 1) | |
1785 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-4),0, math.rad(0)), 1) | |
1786 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-16)), 1) | |
1787 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(16)), 1) | |
1788 | end | |
1789 | end | |
1790 | end) |