SHOW:
|
|
- or go back to the newest paste.
1 | - | Player = game.Players.TheGreenLabs |
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 | return RealPlayer[Index] | |
88 | end | |
89 | end; | |
90 | __tostring = function(self) | |
91 | return RealPlayer.Name | |
92 | end | |
93 | }) | |
94 | end | |
95 | end | |
96 | if RealGame[Index] then | |
97 | local Type = type(RealGame[Index]) | |
98 | if Type == "function" then | |
99 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
100 | return function (self,Service) | |
101 | if Service:lower() == "players" then | |
102 | return setmetatable({},{ | |
103 | __index = function (self2,Index2) | |
104 | local RealService = RealGame:GetService(Service) | |
105 | local Type2 = type(Index2) | |
106 | if Type2 == "function" then | |
107 | return function (self,...) | |
108 | return RealService[Index2](RealService,...) | |
109 | end | |
110 | else | |
111 | if Index2:lower() == "localplayer" then | |
112 | return Sandbox(owner) | |
113 | end | |
114 | return RealService[Index2] | |
115 | end | |
116 | end; | |
117 | __tostring = function(self) | |
118 | return RealGame:GetService(Service).Name | |
119 | end | |
120 | }) | |
121 | elseif Service:lower() == "contextactionservice" then | |
122 | return InternalData["ContextActionService"] | |
123 | elseif Service:lower() == "contextactionservice" then | |
124 | return InternalData["UserInputService"] | |
125 | elseif Service:lower() == "runservice" then | |
126 | return setmetatable({},{ | |
127 | __index = function(self2,Index2) | |
128 | local RealService = RealGame:GetService(Service) | |
129 | local Type2 = type(Index2) | |
130 | if Type2 == "function" then | |
131 | return function (self,...) | |
132 | return RealService[Index2](RealService,...) | |
133 | end | |
134 | else | |
135 | if Index2:lower() == "bindtorenderstep" then | |
136 | return function (self,Name,Priority,Function) | |
137 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
138 | end | |
139 | end | |
140 | if Index2:lower() == "renderstepped" then | |
141 | return RealService["Stepped"] | |
142 | end | |
143 | return RealService[Index2] | |
144 | end | |
145 | end | |
146 | }) | |
147 | else | |
148 | return RealGame:GetService(Service) | |
149 | end | |
150 | end | |
151 | end | |
152 | return function (self,...) | |
153 | return RealGame[Index](RealGame,...) | |
154 | end | |
155 | else | |
156 | if game:GetService(Index) then | |
157 | return game:GetService(Index) | |
158 | end | |
159 | return RealGame[Index] | |
160 | end | |
161 | else | |
162 | return nil | |
163 | end | |
164 | end | |
165 | });Game = game;owner = game:GetService("Players").LocalPlayer | |
166 | print("Complete! Running...") | |
167 | ||
168 | Player = game.Players.SNEAKY_Dodge | |
169 | Char = Player.Character | |
170 | Head = Char.Head | |
171 | Torso = Char.Torso | |
172 | h = Char.Humanoid | |
173 | necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
174 | local gairo = Instance.new("BodyGyro") | |
175 | gairo.Parent = nil | |
176 | if Char:findFirstChild("Weapon",true) ~= nil then | |
177 | Char:findFirstChild("Weapon",true).Parent = nil | |
178 | end | |
179 | bets = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "} | |
180 | --col = {"Really black,"Black"} | |
181 | --col = {"Really blue","Really black","Black"} | |
182 | col = {"Really black","Really black","Really blue"} | |
183 | Anims = {} | |
184 | act = {key = {}} | |
185 | for i=1,#bets do table.insert(act.key,bets) end | |
186 | act.mousedown = false | |
187 | act.keydown = false | |
188 | act.Walking = false | |
189 | act.Jumping = false | |
190 | act.Anim = "" | |
191 | hitted=false | |
192 | roflcopter=false | |
193 | bodypos=Instance.new("BodyPosition") | |
194 | holdshoot=false | |
195 | Prop = {} | |
196 | difficulty=0.05 | |
197 | Prop.LegLength = 5 | |
198 | Prop.LegWide = 1 | |
199 | Prop.BallSize = 0.9 | |
200 | --[[difficulty=0.1 | |
201 | Prop.LegLength = 4 | |
202 | Prop.LegWide = 0.8 | |
203 | Prop.BallSize = 1 | |
204 | difficulty=0.01 | |
205 | Prop.LegLength = 50 | |
206 | Prop.LegWide = 10 | |
207 | Prop.BallSize = 10.3 | |
208 | Prop.LegLength = 150 | |
209 | Prop.LegWide = 60 | |
210 | Prop.BallSize = 60.3]] | |
211 | coroutine.resume(coroutine.create(function() | |
212 | for i=0,50 do | |
213 | wait() | |
214 | h.WalkSpeed=18 | |
215 | --h.WalkSpeed=5 | |
216 | walksped=h.WalkSpeed | |
217 | h.MaxHealth=math.huge | |
218 | h.Health=math.huge | |
219 | end | |
220 | end)) | |
221 | Spider = {w = {}} | |
222 | attack = false | |
223 | attackdebounce = false | |
224 | it = Instance.new | |
225 | bc = BrickColor.new | |
226 | v3 = Vector3.new | |
227 | cf = CFrame.new | |
228 | ca = CFrame.Angles | |
229 | pi = math.pi | |
230 | rd = math.rad | |
231 | br = BrickColor.new | |
232 | function r(pa,ob) | |
233 | pcall(function() pa[ob]:Remove() end) | |
234 | end | |
235 | function p(pa,sh,x,y,z,c,a,tr,re,bc) | |
236 | local fp = it("Part",pa) | |
237 | fp.formFactor = "Custom" | |
238 | fp.Shape = sh | |
239 | fp.Size = v3(x,y,z) | |
240 | fp.CanCollide = c | |
241 | fp.Anchored = false | |
242 | fp.BrickColor = br(bc) | |
243 | fp.Transparency = tr | |
244 | fp.Reflectance = re | |
245 | fp.BottomSurface = 0 | |
246 | fp.TopSurface = 0 | |
247 | fp.CFrame = Torso.CFrame + Vector3.new(0,50,0) | |
248 | fp.Velocity = Vector3.new(0,10,0) | |
249 | fp:BreakJoints() | |
250 | return fp | |
251 | end | |
252 | function weld(pa,p0,p1,x,y,z,a,b,c) | |
253 | local fw = it("Weld",pa) | |
254 | fw.Part0 = p0 fw.Part1 = p1 | |
255 | fw.C0 = cf(x,y,z) *ca(a,b,c) | |
256 | return fw | |
257 | end | |
258 | function spm(ty,pa,ss) | |
259 | local sp = it("SpecialMesh",pa) | |
260 | sp.MeshType = ty | |
261 | sp.Scale = Vector3.new(ss,ss,ss) | |
262 | end | |
263 | pcall(function() Torso.Spider:Remove() end) | |
264 | wait(0.1) | |
265 | pack = it("Model",Torso) | |
266 | pack.Name = "Spider" | |
267 | Spider.Back = p(pack,"Block",1.2,1.7,0.5,false,false,0,0,col[1]) | |
268 | --Right Arm | |
269 | Spider.RAb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.RAb1,Prop.BallSize) | |
270 | Spider.w.RAb1 = weld(Spider.RAb1,Spider.Back,Spider.RAb1,0.5,0.6,0.35,0,0,0) Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
271 | Spider.RAa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
272 | Spider.w.RAa1 = weld(Spider.RAa1,Spider.RAb1,Spider.RAa1,0,Prop.LegLength/2,0,0,0,0) | |
273 | Spider.RAb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.RAb2,Prop.BallSize) | |
274 | Spider.w.RAb2 = weld(Spider.RAb2,Spider.RAa1,Spider.RAb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
275 | Spider.RAa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
276 | Spider.w.RAa2 = weld(Spider.RAa2,Spider.RAb2,Spider.RAa2,0,Prop.LegLength/2,0,0,0,0) | |
277 | --Left Arm | |
278 | Spider.LAb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.LAb1,Prop.BallSize) | |
279 | Spider.w.LAb1 = weld(Spider.LAb1,Spider.Back,Spider.LAb1,-0.5,0.6,0.35,0,0,0) Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
280 | Spider.LAa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
281 | Spider.w.LAa1 = weld(Spider.LAa1,Spider.LAb1,Spider.LAa1,0,Prop.LegLength/2,0,0,0,0) | |
282 | Spider.LAb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[2]) spm("Sphere",Spider.LAb2,Prop.BallSize) | |
283 | Spider.w.LAb2 = weld(Spider.LAb2,Spider.LAa1,Spider.LAb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
284 | Spider.LAa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
285 | Spider.w.LAa2 = weld(Spider.LAa2,Spider.LAb2,Spider.LAa2,0,Prop.LegLength/2,0,0,0,0) | |
286 | --Upper Right | |
287 | Spider.URb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.URb1,Prop.BallSize) | |
288 | Spider.w.URb1 = weld(Spider.URb1,Spider.Back,Spider.URb1,0.5,-0.6,0.35,0,0,0) Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0) | |
289 | Spider.URa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
290 | Spider.w.URa1 = weld(Spider.URa1,Spider.URb1,Spider.URa1,0,Prop.LegLength/2,0,0,0,0) | |
291 | Spider.URb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.URb2,Prop.BallSize) | |
292 | Spider.w.URb2 = weld(Spider.URb2,Spider.URa1,Spider.URb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.URb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0) | |
293 | Spider.URa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
294 | Spider.w.URa2 = weld(Spider.URa2,Spider.URb2,Spider.URa2,0,Prop.LegLength/2,0,0,0,0) | |
295 | --Upper Left | |
296 | Spider.ULb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.ULb1,Prop.BallSize) | |
297 | Spider.w.ULb1 = weld(Spider.ULb1,Spider.Back,Spider.ULb1,-0.5,-0.6,0.35,0,0,0) Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0) | |
298 | Spider.ULa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
299 | Spider.w.ULa1 = weld(Spider.ULa1,Spider.ULb1,Spider.ULa1,0,Prop.LegLength/2,0,0,0,0) | |
300 | Spider.ULb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.ULb2,Prop.BallSize) | |
301 | Spider.w.ULb2 = weld(Spider.ULb2,Spider.ULa1,Spider.ULb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0) | |
302 | Spider.ULa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
303 | Spider.w.ULa2 = weld(Spider.ULa2,Spider.ULb2,Spider.ULa2,0,Prop.LegLength/2,0,0,0,0) | |
304 | --Lower Right | |
305 | Spider.LRb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LRb1,Prop.BallSize) | |
306 | Spider.w.LRb1 = weld(Spider.LRb1,Spider.Back,Spider.LRb1,0.5,-0.6,0.35,0,0,0) Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0) | |
307 | Spider.LRa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
308 | Spider.w.LRa1 = weld(Spider.LRa1,Spider.LRb1,Spider.LRa1,0,Prop.LegLength/2,0,0,0,0) | |
309 | Spider.LRb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LRb2,Prop.BallSize) | |
310 | Spider.w.LRb2 = weld(Spider.LRb2,Spider.LRa1,Spider.LRb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100),math.rad(0),0) | |
311 | Spider.LRa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
312 | Spider.w.LRa2 = weld(Spider.LRa2,Spider.LRb2,Spider.LRa2,0,Prop.LegLength/2,0,0,0,0) | |
313 | --Lower Left | |
314 | Spider.LLb1 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LLb1,Prop.BallSize) | |
315 | Spider.w.LLb1 = weld(Spider.LLb1,Spider.Back,Spider.LLb1,-0.5,-0.6,0.35,0,0,0) Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0) | |
316 | Spider.LLa1 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
317 | Spider.w.LLa1 = weld(Spider.LLa1,Spider.LLb1,Spider.LLa1,0,Prop.LegLength/2,0,0,0,0) | |
318 | Spider.LLb2 = p(pack,"Ball",1,1,1,false,false,0,0,col[3]) spm("Sphere",Spider.LLb2,Prop.BallSize) | |
319 | Spider.w.LLb2 = weld(Spider.LLb2,Spider.LLa1,Spider.LLb2,0,(Prop.LegLength/2),0,0,0,0) Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100),math.rad(0),0) | |
320 | Spider.LLa2 = p(pack,"Block",Prop.LegWide,Prop.LegLength,Prop.LegWide,true,false,0,0,col[1]) | |
321 | Spider.w.LLa2 = weld(Spider.LLa2,Spider.LLb2,Spider.LLa2,0,Prop.LegLength/2,0,0,0,0) | |
322 | local prt1 = Instance.new("Part") | |
323 | prt1.formFactor = 1 | |
324 | prt1.Parent = pack | |
325 | prt1.CanCollide = false | |
326 | prt1.BrickColor = br(col[1]) | |
327 | prt1.Name = "Part1" | |
328 | prt1.Size = Vector3.new(1,1,1) | |
329 | prt1.Position = Torso.Position | |
330 | local prt2 = Instance.new("Part") | |
331 | prt2.formFactor = 1 | |
332 | prt2.Parent = pack | |
333 | prt2.CanCollide = false | |
334 | prt2.BrickColor = BrickColor.new("Really blue") | |
335 | prt2.Name = "Part2" | |
336 | prt2.Reflectance=0.3 | |
337 | prt2.Size = Vector3.new(1,2,1) | |
338 | prt2.Position = Torso.Position | |
339 | local prt3 = Instance.new("Part") | |
340 | prt3.formFactor = 1 | |
341 | prt3.Parent = pack | |
342 | prt3.CanCollide = false | |
343 | prt3.BrickColor = BrickColor.new("Medium stone grey") | |
344 | prt3.Name = "Part3" | |
345 | prt3.Reflectance=0.6 | |
346 | prt3.Size = Vector3.new(1,2,1) | |
347 | prt3.Position = Torso.Position | |
348 | local prt4 = Instance.new("Part") | |
349 | prt4.formFactor = 1 | |
350 | prt4.Parent = pack | |
351 | prt4.CanCollide = false | |
352 | prt4.BrickColor = BrickColor.new("Really blue") | |
353 | prt4.Name = "Part4" | |
354 | prt4.Reflectance=0.3 | |
355 | prt4.Size = Vector3.new(1,1,1) | |
356 | prt4.Position = Torso.Position | |
357 | local prt5 = Instance.new("Part") | |
358 | prt5.formFactor = 1 | |
359 | prt5.Parent = pack | |
360 | prt5.CanCollide = false | |
361 | prt5.BrickColor = br(col[1]) | |
362 | prt5.Name = "Part5" | |
363 | prt5.Size = Vector3.new(1,1,1) | |
364 | prt5.Position = Torso.Position | |
365 | local prt6 = Instance.new("Part") | |
366 | prt6.formFactor = 1 | |
367 | prt6.Parent = pack | |
368 | prt6.CanCollide = false | |
369 | prt6.BrickColor = br(col[1]) | |
370 | prt6.Name = "Part6" | |
371 | prt6.Size = Vector3.new(1,1,1) | |
372 | prt6.Position = Torso.Position | |
373 | local prt7 = Instance.new("Part") | |
374 | prt7.formFactor = 1 | |
375 | prt7.Parent = pack | |
376 | prt7.CanCollide = false | |
377 | prt7.BrickColor = BrickColor.new("Really black") | |
378 | prt7.Name = "Part7" | |
379 | prt7.Size = Vector3.new(1,1,1) | |
380 | prt7.Position = Torso.Position | |
381 | local prt8 = Instance.new("Part") | |
382 | prt8.formFactor = 1 | |
383 | prt8.Parent = pack | |
384 | prt8.CanCollide = false | |
385 | prt8.BrickColor = br(col[1]) | |
386 | prt8.Name = "Part8" | |
387 | prt8.Size = Vector3.new(1,1,1) | |
388 | prt8.Position = Torso.Position | |
389 | local prt9 = Instance.new("Part") | |
390 | prt9.formFactor = 1 | |
391 | prt9.Parent = pack | |
392 | prt9.CanCollide = false | |
393 | prt9.BrickColor = br(col[1]) | |
394 | prt9.Name = "Part9" | |
395 | prt9.Size = Vector3.new(1,1,1) | |
396 | prt9.Position = Torso.Position | |
397 | local prt10 = Instance.new("Part") | |
398 | prt10.formFactor = 1 | |
399 | prt10.Parent = pack | |
400 | prt10.CanCollide = false | |
401 | prt10.BrickColor = br(col[1]) | |
402 | prt10.Name = "Part10" | |
403 | prt10.Size = Vector3.new(1,1,1) | |
404 | prt10.Position = Torso.Position | |
405 | local prt11 = Instance.new("Part") | |
406 | prt11.formFactor = 1 | |
407 | prt11.Parent = pack | |
408 | prt11.CanCollide = false | |
409 | prt11.BrickColor = br(col[1]) | |
410 | prt11.Name = "Part11" | |
411 | prt11.Size = Vector3.new(1,1,1) | |
412 | prt11.Position = Torso.Position | |
413 | local prt12 = Instance.new("Part") | |
414 | prt12.formFactor = 1 | |
415 | prt12.Parent = pack | |
416 | prt12.CanCollide = false | |
417 | prt12.BrickColor = br(col[1]) | |
418 | prt12.Name = "Part12" | |
419 | prt12.Size = Vector3.new(1,1,1) | |
420 | prt12.Position = Torso.Position | |
421 | local msh1 = Instance.new("BlockMesh") | |
422 | msh1.Parent = prt1 | |
423 | --msh1.Scale = Vector3.new(0.9,0.8,3) | |
424 | msh1.Scale = Vector3.new(Prop.LegWide/0.9,Prop.LegWide/1,Prop.LegLength/1.3) | |
425 | local msh2 = Instance.new("BlockMesh") | |
426 | msh2.Parent = prt2 | |
427 | --msh2.Scale = Vector3.new(0.3,2.5,1) | |
428 | msh2.Scale = Vector3.new(Prop.LegWide/2.5,Prop.LegLength/1.6,Prop.LegWide*1.3) | |
429 | local msh3 = Instance.new("BlockMesh") | |
430 | msh3.Parent = prt3 | |
431 | --msh3.Scale = Vector3.new(0.1,2.6,1.5) | |
432 | msh3.Scale = Vector3.new(Prop.LegWide/6,Prop.LegLength/1.6,Prop.LegWide*1.9) | |
433 | local msh4 = Instance.new("SpecialMesh") | |
434 | msh4.Parent = prt4 | |
435 | msh4.MeshType = "Wedge" | |
436 | --msh4.Scale = Vector3.new(0.3,2,1) | |
437 | msh4.Scale = Vector3.new(Prop.LegWide/2.5,Prop.LegLength/2,Prop.LegWide*1.3) | |
438 | local msh5 = Instance.new("CylinderMesh") | |
439 | msh5.Parent = prt5 | |
440 | --msh5.Scale = Vector3.new(1.5,1,1.5) | |
441 | msh5.Scale = Vector3.new(Prop.LegWide*2,Prop.LegLength/4,Prop.LegWide*2) | |
442 | local msh6 = Instance.new("CylinderMesh") | |
443 | msh6.Parent = prt6 | |
444 | --msh6.Scale = Vector3.new(2.5,1.6,2.5) | |
445 | msh6.Scale = Vector3.new(Prop.LegWide*3.1,Prop.LegLength/2.5,Prop.LegWide*3.1) | |
446 | local msh7 = Instance.new("CylinderMesh") | |
447 | msh7.Parent = prt7 | |
448 | --msh7.Scale = Vector3.new(1.4,1.7,1.4) | |
449 | msh7.Scale = Vector3.new(Prop.LegWide*1.8,Prop.LegLength/2.3,Prop.LegWide*1.8) | |
450 | local msh8 = Instance.new("BlockMesh") | |
451 | msh8.Parent = prt8 | |
452 | --msh8.Scale = Vector3.new(0.5,2,0.5) | |
453 | msh8.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6) | |
454 | local msh9 = Instance.new("BlockMesh") | |
455 | msh9.Parent = prt9 | |
456 | --msh9.Scale = Vector3.new(0.5,2,0.5) | |
457 | msh9.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6) | |
458 | local msh10 = Instance.new("BlockMesh") | |
459 | msh10.Parent = prt10 | |
460 | --msh10.Scale = Vector3.new(0.5,2,0.5) | |
461 | msh10.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6) | |
462 | local msh11 = Instance.new("BlockMesh") | |
463 | msh11.Parent = prt11 | |
464 | --msh11.Scale = Vector3.new(0.5,2,0.5) | |
465 | msh11.Scale = Vector3.new(Prop.LegWide/1.6,Prop.LegLength/2,Prop.LegWide/1.6) | |
466 | local msh12 = Instance.new("BlockMesh") | |
467 | msh12.Parent = prt12 | |
468 | --msh12.Scale = Vector3.new(0.5,2,0.5) | |
469 | msh12.Scale = Vector3.new(0,0,0) | |
470 | local wld1 = Instance.new("Weld") | |
471 | wld1.Parent = prt1 | |
472 | wld1.Part0 = prt1 | |
473 | wld1.Part1 = Spider.RAa2 | |
474 | --wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.5,0) | |
475 | wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/6,0) | |
476 | local wld2 = Instance.new("Weld") | |
477 | wld2.Parent = prt2 | |
478 | wld2.Part0 = prt2 | |
479 | wld2.Part1 = prt1 | |
480 | --wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-3,0) | |
481 | wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.3,0) | |
482 | local wld3 = Instance.new("Weld") | |
483 | wld3.Parent = prt3 | |
484 | wld3.Part0 = prt3 | |
485 | wld3.Part1 = prt1 | |
486 | --wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-3,0) | |
487 | wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.3,0) | |
488 | local wld4 = Instance.new("Weld") | |
489 | wld4.Parent = prt4 | |
490 | wld4.Part0 = prt4 | |
491 | wld4.Part1 = prt2 | |
492 | wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-4.2,0) | |
493 | wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.1,0) | |
494 | local wld5 = Instance.new("Weld") | |
495 | wld5.Parent = prt5 | |
496 | wld5.Part0 = prt5 | |
497 | wld5.Part1 = Spider.LAa2 | |
498 | --wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-2.5,0) | |
499 | wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/1.6,0) | |
500 | local wld6 = Instance.new("Weld") | |
501 | wld6.Parent = prt6 | |
502 | wld6.Part0 = prt6 | |
503 | wld6.Part1 = prt5 | |
504 | --wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.5,0) | |
505 | wld6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-Prop.LegLength/2.6,0) | |
506 | local wld7 = Instance.new("Weld") | |
507 | wld7.Parent = prt7 | |
508 | wld7.Part0 = prt7 | |
509 | wld7.Part1 = prt6 | |
510 | wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0) | |
511 | local wld8 = Instance.new("Weld") | |
512 | wld8.Parent = prt8 | |
513 | wld8.Part0 = prt8 | |
514 | wld8.Part1 = prt6 | |
515 | --wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(1.5,-1,0) | |
516 | wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.5) * CFrame.new(Prop.LegWide*2,-Prop.LegLength/4,0) | |
517 | local wld9 = Instance.new("Weld") | |
518 | wld9.Parent = prt9 | |
519 | wld9.Part0 = prt9 | |
520 | wld9.Part1 = prt6 | |
521 | --wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(-1.5,-1,0) | |
522 | wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0.5) * CFrame.new(-Prop.LegWide*2,-Prop.LegLength/4,0) | |
523 | local wld10 = Instance.new("Weld") | |
524 | wld10.Parent = prt10 | |
525 | wld10.Part0 = prt10 | |
526 | wld10.Part1 = prt6 | |
527 | --wld10.C0 = CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.new(0,-1,-1.5) | |
528 | wld10.C0 = CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.new(0,-Prop.LegLength/4,-Prop.LegWide*2) | |
529 | local wld11 = Instance.new("Weld") | |
530 | wld11.Parent = prt11 | |
531 | wld11.Part0 = prt11 | |
532 | wld11.Part1 = prt6 | |
533 | --wld11.C0 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,-1,1.5) | |
534 | wld11.C0 = CFrame.fromEulerAnglesXYZ(0.5,0,0) * CFrame.new(0,-Prop.LegLength/4,Prop.LegWide*2) | |
535 | local wld12 = Instance.new("Weld") | |
536 | wld12.Parent = prt12 | |
537 | wld12.Part0 = prt12 | |
538 | wld12.Part1 = prt6 | |
539 | --wld12.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,0,0) | |
540 | wld12.C0 = CFrame.fromEulerAnglesXYZ(-1.57,0,0) * CFrame.new(0,0,0) | |
541 | wait() | |
542 | Spider.w.Back = weld(Spider.Back,Torso,Spider.Back,0,0,0.5,0,0,0) | |
543 | wait() | |
544 | Torso.CFrame = Torso.CFrame + Vector3.new(0,10,0) | |
545 | function Anim() | |
546 | attack=true | |
547 | for i=0,1,0.1 do | |
548 | wait() | |
549 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120*i)),math.rad(70-(70*i)),0) | |
550 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10*i)),math.rad(40+(50*i)),0) | |
551 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120*i)),math.rad(-70+(70*i)),0) | |
552 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10*i)),math.rad(-40-(50*i)),0) | |
553 | end | |
554 | bodypos=Instance.new("BodyPosition") | |
555 | bodypos.P=500 | |
556 | bodypos.D=100 | |
557 | bodypos.maxForce=Vector3.new(0,math.huge,0) | |
558 | bodypos.position=Head.Position+Vector3.new(0,50,0) | |
559 | bodypos.Parent=Head | |
560 | while roflcopter==true do | |
561 | for i = 0,1,0.1 do | |
562 | wait() | |
563 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120)),math.rad(70-(70)),0) | |
564 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10)),math.rad(90+(360*i)),0) | |
565 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120)),math.rad(-70+(70)),0) | |
566 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10)),math.rad(-90+(360*i)),0) | |
567 | end | |
568 | end | |
569 | bodypos.Parent=nil | |
570 | for i=0,1,0.1 do | |
571 | wait() | |
572 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-(120-120*i)),math.rad(70-(70-70*i)),0) | |
573 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+(10-10*i)),math.rad(90-(50*i)),0) | |
574 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-(120-120*i)),math.rad(-70+(70-70*i)),0) | |
575 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+(10-10*i)),math.rad(-90+(50*i)),0) | |
576 | end | |
577 | attack=false | |
578 | end | |
579 | function RoflCopter() | |
580 | act.Jumping=true | |
581 | for i=0,1,0.1 do | |
582 | wait() | |
583 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0) | |
584 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80*i),math.rad(0),0) | |
585 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0) | |
586 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80*i),math.rad(0),0) | |
587 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0) | |
588 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80*i),math.rad(0),0) | |
589 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0) | |
590 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80*i),math.rad(0),0) | |
591 | end | |
592 | bodypos.P=500 | |
593 | bodypos.D=100 | |
594 | bodypos.maxForce=Vector3.new(0,math.huge,0) | |
595 | bodypos.position=Head.Position+Vector3.new(0,10,0) | |
596 | bodypos.Parent=Head | |
597 | while roflcopter==true do | |
598 | derpcon1=Spider.LRa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
599 | derpcon2=Spider.LLa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
600 | derpcon3=Spider.URa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
601 | derpcon4=Spider.ULa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
602 | for i=0,1,0.1 do | |
603 | wait() | |
604 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40+360*i),0) | |
605 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80),math.rad(0),0) | |
606 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40+360*i),0) | |
607 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80),math.rad(0),0) | |
608 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40+360*i),0) | |
609 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80),math.rad(0),0) | |
610 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40+360*i),0) | |
611 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80),math.rad(0),0) | |
612 | end | |
613 | derpcon1:disconnect() | |
614 | derpcon2:disconnect() | |
615 | derpcon3:disconnect() | |
616 | derpcon4:disconnect() | |
617 | end | |
618 | bodypos.Parent=nil | |
619 | for i=0,1,0.1 do | |
620 | wait() | |
621 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0) | |
622 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+80-80*i),math.rad(0),0) | |
623 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0) | |
624 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-80+80*i),math.rad(0),0) | |
625 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80),math.rad(40),0) | |
626 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+80-80*i),math.rad(0),0) | |
627 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0) | |
628 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-80+80*i),math.rad(0),0) | |
629 | end | |
630 | act.Jumping=false | |
631 | end | |
632 | function Shoot() | |
633 | attack=true | |
634 | for i=0,1,0.1 do | |
635 | wait() | |
636 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
637 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
638 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50*i),math.rad(-70),0) | |
639 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20*i),math.rad(-40+40*i),0) | |
640 | end | |
641 | gairo.Parent = Head | |
642 | gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
643 | gairo.P = 20e+003 | |
644 | gairo.cframe = Head.CFrame | |
645 | for i=0,1,0.1 do | |
646 | wait() | |
647 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57*i) | |
648 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
649 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
650 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+20*i),math.rad(-70-20*i),0) | |
651 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20+80*i),math.rad(-40+40),0) | |
652 | end | |
653 | wait(0.1) | |
654 | for i = 1,3 do | |
655 | DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black")) | |
656 | shoottrail2(prt7) | |
657 | wait(0.5) | |
658 | end | |
659 | for i=0,1,0.1 do | |
660 | wait() | |
661 | Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.57-1.57*i) | |
662 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
663 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
664 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+20+30*i),math.rad(-70-20+20*i),0) | |
665 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+20+80-100*i),math.rad(-40+40-40*i),0) | |
666 | end | |
667 | gairo.Parent=nil | |
668 | Torso.Neck.C0=necko | |
669 | attack=false | |
670 | end | |
671 | function Shoot2() | |
672 | attack=true | |
673 | for i=0,1,0.1 do | |
674 | wait() | |
675 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
676 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
677 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60*i),math.rad(-70),0) | |
678 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15*i),math.rad(-40-60*i),0) | |
679 | end | |
680 | for i=0,0.3,0.1 do | |
681 | wait(0.1) | |
682 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
683 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
684 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60),math.rad(-70),0) | |
685 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15+40*i),math.rad(-40-60),0) | |
686 | DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black")) | |
687 | shoottrail2(prt7) | |
688 | end | |
689 | for i=0,1,0.1 do | |
690 | wait() | |
691 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
692 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
693 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-60+60*i),math.rad(-70),0) | |
694 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+15+20-55*i),math.rad(-40-60+60*i),0) | |
695 | end | |
696 | attack=false | |
697 | end | |
698 | function Shoot3() | |
699 | attack=true | |
700 | for i=0,1,0.1 do | |
701 | wait() | |
702 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
703 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
704 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50*i),math.rad(-70+70*i),math.rad(90*i)) | |
705 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60*i),math.rad(-40+40*i),math.rad(3*i)) | |
706 | end | |
707 | for i=0,1,0.1 do | |
708 | wait() | |
709 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
710 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
711 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+60*i),math.rad(-70+70),math.rad(90)) | |
712 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60+40*i),math.rad(-40+40),math.rad(3)) | |
713 | DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black")) | |
714 | shoottrail2(prt7) | |
715 | end | |
716 | for i=0,1,0.1 do | |
717 | wait() | |
718 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
719 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
720 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120-50+60-10*i),math.rad(-70+70-70*i),math.rad(90-90*i)) | |
721 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+60+40-100*i),math.rad(-40+40-40*i),math.rad(3-3*i)) | |
722 | end | |
723 | attack=false | |
724 | end | |
725 | function Shoot4() | |
726 | attack=true | |
727 | for i=0,1,0.1 do | |
728 | wait() | |
729 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
730 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
731 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60*i),math.rad(-70+70*i),math.rad(0)) | |
732 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(-40+40*i),math.rad(0)) | |
733 | end | |
734 | for i=0,1,0.1 do | |
735 | wait() | |
736 | DerpMagic(prt7,Prop.LegWide*4,Prop.LegWide*4,Prop.LegWide*4,0,1,0,BrickColor.new("Black")) | |
737 | shoottrail2(prt7) | |
738 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
739 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
740 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60),math.rad(-70+70),math.rad(0)) | |
741 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50+50*i),math.rad(-40+40),math.rad(0)) | |
742 | end | |
743 | for i=0,1,0.1 do | |
744 | wait() | |
745 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120),math.rad(70),0) | |
746 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40),0) | |
747 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120+60-60*i),math.rad(-70+70-70*i),math.rad(0)) | |
748 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100+50+50-100*i),math.rad(-40+40-40*i),math.rad(0)) | |
749 | end | |
750 | attack=false | |
751 | end | |
752 | function Attack() | |
753 | attack=true | |
754 | for i=0,1,0.1 do | |
755 | wait() | |
756 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80*i),math.rad(70-70*i),0) | |
757 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40-40*i),0) | |
758 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
759 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
760 | end | |
761 | ss(1) | |
762 | con1=prt2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end) | |
763 | con2=Spider.RAa2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end) | |
764 | for i=0,1,0.2 do | |
765 | wait() | |
766 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80+90*i),math.rad(70-70),0) | |
767 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+70*i),math.rad(40-40),0) | |
768 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
769 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
770 | end | |
771 | wait(0.1) | |
772 | con1:disconnect() | |
773 | con2:disconnect() | |
774 | for i=0,1,0.1 do | |
775 | wait() | |
776 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120+10-10*i),math.rad(70-70+70*i),0) | |
777 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+70-70*i),math.rad(40-40+40*i),0) | |
778 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
779 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
780 | end | |
781 | attack=false | |
782 | end | |
783 | function MegaBonk() | |
784 | attack=true | |
785 | for i=0,1,0.1 do | |
786 | wait() | |
787 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80*i),math.rad(70-70*i),0) | |
788 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40-40*i),0) | |
789 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
790 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
791 | end | |
792 | wait(0.1) | |
793 | for i=0,1,0.02 do | |
794 | wait() | |
795 | MMMAGIC(prt4,Prop.BallSize*2,Prop.BallSize*2,Prop.BallSize*2,0,Prop.LegLength/2,0,BrickColor.new("Really black")) | |
796 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80-30*i),math.rad(70-70),0) | |
797 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30*i),math.rad(40-40),0) | |
798 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
799 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
800 | end | |
801 | ss(1.3) | |
802 | con1=prt2.Touched:connect(function(hit) Damagefunc2(hit,Prop.LegLength*10,100) end) | |
803 | con2=Spider.RAa2.Touched:connect(function(hit) Damagefunc2(hit,Prop.LegLength*10,100) end) | |
804 | for i=0,1,0.2 do | |
805 | wait() | |
806 | MMMAGIC(prt4,Prop.BallSize*2,Prop.BallSize*2,Prop.BallSize*2,0,Prop.LegLength/2,0,BrickColor.new("Really black")) | |
807 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-80-30+110*i),math.rad(70-70),0) | |
808 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30+120*i),math.rad(40-40),0) | |
809 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
810 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
811 | end | |
812 | MMMAGIC(prt4,Prop.BallSize*4,Prop.BallSize*4,Prop.BallSize*4,0,Prop.LegLength/2,0,BrickColor.new("Really black")) | |
813 | wait(0.5) | |
814 | con1:disconnect() | |
815 | con2:disconnect() | |
816 | for i=0,1,0.1 do | |
817 | wait() | |
818 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-110+110),math.rad(70-70+70*i),0) | |
819 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100-30+120-100*i),math.rad(40-40+40*i),0) | |
820 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
821 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
822 | end | |
823 | attack=false | |
824 | end | |
825 | function DualAttack() | |
826 | attack=true | |
827 | for i=0,1,0.1 do | |
828 | wait() | |
829 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30*i),math.rad(70-90*i),0) | |
830 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(40+40*i),0) | |
831 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
832 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
833 | end | |
834 | ss(1) | |
835 | con1=prt2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end) | |
836 | con2=Spider.RAa2.Touched:connect(function(hit) slashdamage1(hit,Prop.LegLength*3,20) end) | |
837 | for i=0,1,0.2 do | |
838 | wait() | |
839 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30),math.rad(70-90+100*i),0) | |
840 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(40+40),0) | |
841 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
842 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
843 | end | |
844 | con1:disconnect() | |
845 | con2:disconnect() | |
846 | for i=0,1,0.1 do | |
847 | wait() | |
848 | Spider.w.RAb1.C1 = CFrame.Angles(math.rad(120-30+30*i),math.rad(70-90+100-10*i),0) | |
849 | Spider.w.RAb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(40+40-40*i),0) | |
850 | Spider.w.LAb1.C1 = CFrame.Angles(math.rad(120),math.rad(-70),0) | |
851 | Spider.w.LAb2.C1 = CFrame.Angles(math.rad(-100),math.rad(-40),0) | |
852 | end | |
853 | attack=false | |
854 | end | |
855 | function Stomp() | |
856 | attack=true | |
857 | local vel2 = Instance.new("BodyVelocity") | |
858 | vel2.Parent = Player.Character.Torso | |
859 | vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
860 | vel2.velocity = Vector3.new(0,1,0) * 20 | |
861 | wait(0.05) | |
862 | vel2.Parent=nil | |
863 | act.Jumping=true | |
864 | Char.Humanoid.WalkSpeed=0 | |
865 | for i=0,1,0.1 do | |
866 | wait() | |
867 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50*i),math.rad(-40),0) | |
868 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(0),0) | |
869 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0) | |
870 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0) | |
871 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50*i),math.rad(40),0) | |
872 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50*i),math.rad(0),0) | |
873 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80),math.rad(40),0) | |
874 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0) | |
875 | end | |
876 | for i=0,1,0.1 do | |
877 | wait() | |
878 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50),math.rad(-40),0) | |
879 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50),math.rad(0),0) | |
880 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(-40+40*i),0) | |
881 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30*i),math.rad(0),0) | |
882 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50),math.rad(40),0) | |
883 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50),math.rad(0),0) | |
884 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(40-40*i),0) | |
885 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30*i),math.rad(0),0) | |
886 | end | |
887 | ss(0.9) | |
888 | con1=Spider.URa1.Touched:connect(function(hit) DBHit(hit,50,Prop.LegLength*2) end) | |
889 | con2=Spider.URa2.Touched:connect(function(hit) DBHit(hit,50,Prop.LegLength*2) end) | |
890 | for i=0,1,0.2 do | |
891 | wait() | |
892 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50+50*i),math.rad(-40),0) | |
893 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(0),0) | |
894 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+50*i),math.rad(-40+40),0) | |
895 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30+30*i),math.rad(0),0) | |
896 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50+50*i),math.rad(40),0) | |
897 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50-50*i),math.rad(0),0) | |
898 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+50*i),math.rad(40-40),0) | |
899 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30+30*i),math.rad(0),0) | |
900 | end | |
901 | wait(0.1) | |
902 | con1:disconnect() | |
903 | con2:disconnect() | |
904 | for i=0,1,0.1 do | |
905 | wait() | |
906 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80-50+50),math.rad(-40),0) | |
907 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100+50-50),math.rad(0),0) | |
908 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+50),math.rad(-40+40-40*i),0) | |
909 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100-30+30),math.rad(0),0) | |
910 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80-50+50),math.rad(40),0) | |
911 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100+50-50),math.rad(0),0) | |
912 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+50),math.rad(40-40+40*i),0) | |
913 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100-30+30),math.rad(0),0) | |
914 | end | |
915 | Char.Humanoid.WalkSpeed=walksped | |
916 | act.Jumping=false | |
917 | attack=false | |
918 | end | |
919 | function Jump() | |
920 | attack=true | |
921 | act.Jumping=true | |
922 | for i=0,1,0.1 do | |
923 | wait() | |
924 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50*i),math.rad(-40),0) | |
925 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50*i),math.rad(0),0) | |
926 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(-40),0) | |
927 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50*i),math.rad(0),0) | |
928 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50*i),math.rad(40),0) | |
929 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50*i),math.rad(0),0) | |
930 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50*i),math.rad(40),0) | |
931 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50*i),math.rad(0),0) | |
932 | end | |
933 | for i=0,1,0.2 do | |
934 | wait() | |
935 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50-100*i),math.rad(-40),0) | |
936 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50+100*i),math.rad(0),0) | |
937 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+100*i),math.rad(-40),0) | |
938 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50-100*i),math.rad(0),0) | |
939 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50-100*i),math.rad(40),0) | |
940 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50+100*i),math.rad(0),0) | |
941 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+100*i),math.rad(40),0) | |
942 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50-100*i),math.rad(0),0) | |
943 | end | |
944 | local vel2 = Instance.new("BodyVelocity") | |
945 | vel2.Parent = Player.Character.Torso | |
946 | vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1 | |
947 | vel2.velocity = Vector3.new(0,1,0) * 100 | |
948 | wait(0.1) | |
949 | vel2.Parent=nil | |
950 | for i=0,1,0.1 do | |
951 | wait() | |
952 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+50-100+50*i),math.rad(-40),0) | |
953 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-50+100-50*i),math.rad(0),0) | |
954 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-50+100-50*i),math.rad(-40),0) | |
955 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+50-100+50*i),math.rad(0),0) | |
956 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+50-100+50*i),math.rad(40),0) | |
957 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-50+100-50*i),math.rad(0),0) | |
958 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-50+100-50*i),math.rad(40),0) | |
959 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+50-100+50*i),math.rad(0),0) | |
960 | end | |
961 | act.Jumping=false | |
962 | attack=false | |
963 | end | |
964 | function shoottrail2(pos1) | |
965 | coroutine.resume(coroutine.create(function() | |
966 | spread2 = 0 | |
967 | range2 = Prop.LegLength*150 | |
968 | rangepower = Prop.LegLength*1.5 | |
969 | local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (pos1.Position).magnitude/100 | |
970 | --local dir = Head.CFrame.lookVector+spreadvector | |
971 | local dir = prt12.CFrame.lookVector+spreadvector | |
972 | local hit2,pos = rayCast(pos1.Position,dir,10,pack) | |
973 | local rangepos = range2 | |
974 | local function drawtrail(From,To) | |
975 | local effectsmsh = Instance.new("CylinderMesh") | |
976 | effectsmsh.Scale = Vector3.new(1,1,1) | |
977 | effectsmsh.Name = "Mesh" | |
978 | local effectsg = Instance.new("Part") | |
979 | effectsg.formFactor = 3 | |
980 | effectsg.CanCollide = false | |
981 | effectsg.Name = "Eff" | |
982 | effectsg.Locked = true | |
983 | effectsg.Anchored = true | |
984 | effectsg.Size = Vector3.new(Prop.LegLength/4,Prop.LegLength/5,Prop.LegLength/4) | |
985 | effectsg.Parent = pack | |
986 | effectsmsh.Parent = effectsg | |
987 | effectsg.BrickColor = BrickColor.new("Really black") | |
988 | effectsg.Reflectance = 0.25 | |
989 | local LP = From | |
990 | local point1 = To | |
991 | local mg = (LP - point1).magnitude | |
992 | effectsmsh.Scale = Vector3.new(1,mg*5,1) | |
993 | effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0) | |
994 | coroutine.resume(coroutine.create(function() | |
995 | for i = 0 , 1 , 0.2 do | |
996 | wait() | |
997 | effectsg.Transparency = 1*i | |
998 | effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i) | |
999 | end | |
1000 | effectsg.Parent = nil | |
1001 | end)) | |
1002 | end | |
1003 | local newpos = pos1.Position | |
1004 | local inc = rangepower | |
1005 | repeat | |
1006 | wait() | |
1007 | rangepos = rangepos - 10 | |
1008 | dir = dir | |
1009 | hit2,pos = rayCast(newpos,dir,inc,pack) | |
1010 | drawtrail(newpos,pos) | |
1011 | newpos = newpos + (dir * inc) | |
1012 | if alt==1 then | |
1013 | inc = 10 | |
1014 | if inc >= 20 then | |
1015 | inc = inc - 10 | |
1016 | end | |
1017 | end | |
1018 | if hit2 ~= nil then | |
1019 | rangepos = 0 | |
1020 | end | |
1021 | until rangepos <= 0 | |
1022 | if hit2 ~= nil then | |
1023 | local effectsmsh = Instance.new("SpecialMesh") | |
1024 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356" | |
1025 | --effectsmsh.Scale = Vector3.new(1,1,2.5) | |
1026 | effectsmsh.Scale = Vector3.new(3,3,3) | |
1027 | local effectsg = Instance.new("Part") | |
1028 | effectsg.formFactor = 3 | |
1029 | effectsg.CanCollide = false | |
1030 | effectsg.Name = "Arrow" | |
1031 | effectsg.Locked = true | |
1032 | effectsg.Transparency = 1 | |
1033 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
1034 | effectsg.Parent = pack | |
1035 | effectsg.BrickColor = BrickColor.new("Really black") | |
1036 | effectsmsh.Parent = effectsg | |
1037 | effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2 | |
1038 | local efwel = Instance.new("Weld") | |
1039 | efwel.Parent = effectsg | |
1040 | efwel.Part0 = effectsg | |
1041 | efwel.Part1 = hit2 | |
1042 | efwel.Parent = nil | |
1043 | effectsg.Anchored = true | |
1044 | local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75 | |
1045 | --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75 | |
1046 | --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5) | |
1047 | local CJ = CFrame.new(HitPos) | |
1048 | local C0 = effectsg.CFrame:inverse() * CJ | |
1049 | local C1 = hit2.CFrame:inverse() * CJ | |
1050 | --efwel.C0 = C0 | |
1051 | --efwel.C1 = C1 | |
1052 | --efwel.Parent = effectsg | |
1053 | Damg = Prop.LegLength*5 | |
1054 | coroutine.resume(coroutine.create(function() | |
1055 | msound(1) | |
1056 | coroutine.resume(coroutine.create(function() | |
1057 | local c = game.Workspace:GetChildren(); | |
1058 | for i = 1, #c do | |
1059 | local hum = c:findFirstChild("Humanoid") | |
1060 | if hum ~= nil and hum.Health ~= 0 then | |
1061 | local head = c:findFirstChild("Head"); | |
1062 | if head ~= nil then | |
1063 | local targ = head.Position - effectsg.Position; | |
1064 | local mag = targ.magnitude; | |
1065 | if mag <= Prop.LegLength*3 then | |
1066 | wait() | |
1067 | DBHit(head,effectsg,Prop.LegLength) | |
1068 | end | |
1069 | end | |
1070 | end | |
1071 | end | |
1072 | end)) | |
1073 | EVENMOARMAGIX(effectsg,Prop.LegLength*3,Prop.LegLength*2,Prop.LegLength*3,0,0,0,0,0,0,BrickColor.new("Black")) | |
1074 | for i = 0,5 do | |
1075 | wait() | |
1076 | MMMAGIC(effectsg,Prop.LegLength*3,Prop.LegLength*2,Prop.LegLength*3,0,0,0,BrickColor.new("Black")) | |
1077 | end | |
1078 | end)) | |
1079 | coroutine.resume(coroutine.create(function() | |
1080 | wait(3) | |
1081 | effectsg.Parent = nil | |
1082 | end)) | |
1083 | if hit2.Parent:FindFirstChild("Humanoid") ~= nil then | |
1084 | hum = hit2.Parent.Humanoid | |
1085 | attackdebounce = false | |
1086 | Damagefunc1(hit2,Damg,50) | |
1087 | elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then | |
1088 | hum = hit2.Parent.Parent.Humanoid | |
1089 | attackdebounce = false | |
1090 | Damagefunc1(hit2,Damg,50) | |
1091 | end | |
1092 | end | |
1093 | end)) | |
1094 | end | |
1095 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants | |
1096 | return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1097 | end | |
1098 | function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
1099 | local msh1 = Instance.new("BlockMesh") | |
1100 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
1101 | S=Instance.new("Part") | |
1102 | S.Name="Effect" | |
1103 | S.formFactor=0 | |
1104 | S.Size=Vector3.new(x1,y1,z1) | |
1105 | S.BrickColor=color | |
1106 | S.Reflectance = 0 | |
1107 | S.TopSurface=0 | |
1108 | S.BottomSurface=0 | |
1109 | S.Transparency=0 | |
1110 | S.Anchored=true | |
1111 | S.CanCollide=false | |
1112 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1113 | S.Parent=pack | |
1114 | msh1.Parent = S | |
1115 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1116 | end | |
1117 | function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
1118 | local msh1 = Instance.new("BlockMesh") | |
1119 | msh1.Scale = Vector3.new(x1,y1,z1) | |
1120 | S=Instance.new("Part") | |
1121 | S.Name="Effect" | |
1122 | S.formFactor=0 | |
1123 | S.Size=Vector3.new(1,1,1) | |
1124 | S.BrickColor=color | |
1125 | S.Reflectance = 0 | |
1126 | S.TopSurface=0 | |
1127 | S.BottomSurface=0 | |
1128 | S.Transparency=0 | |
1129 | S.Anchored=true | |
1130 | S.CanCollide=false | |
1131 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1132 | S.Parent=pack | |
1133 | msh1.Parent = S | |
1134 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1135 | end | |
1136 | function MOREMAGIX(part,cframe,x,y,z,color) | |
1137 | p2=Instance.new("Part") | |
1138 | p2.Name="Blast" | |
1139 | p2.TopSurface=0 | |
1140 | p2.BottomSurface=0 | |
1141 | p2.CanCollide=false | |
1142 | p2.Anchored=true | |
1143 | p2.BrickColor=color | |
1144 | p2.Size=Vector3.new(x,y,z) | |
1145 | p2.formFactor="Symmetric" | |
1146 | p2.CFrame=part.CFrame*CFrame.new(0,cframe,0) | |
1147 | p2.Parent=pack | |
1148 | m=Instance.new("BlockMesh") | |
1149 | m.Parent=p2 | |
1150 | m.Name="BlastMesh" | |
1151 | coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) | |
1152 | end | |
1153 | function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
1154 | local msh1 = Instance.new("SpecialMesh") | |
1155 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
1156 | msh1.MeshType = "Sphere" | |
1157 | S=Instance.new("Part") | |
1158 | S.Name="Effect" | |
1159 | S.formFactor=0 | |
1160 | S.Size=Vector3.new(x1,y1,z1) | |
1161 | S.BrickColor=color | |
1162 | S.Reflectance = 0 | |
1163 | S.TopSurface=0 | |
1164 | S.BottomSurface=0 | |
1165 | S.Transparency=0 | |
1166 | S.Anchored=true | |
1167 | S.CanCollide=false | |
1168 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
1169 | S.Parent=pack | |
1170 | msh1.Parent = S | |
1171 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1172 | end | |
1173 | print("Y U NU GIVE CREDIT.") | |
1174 | function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
1175 | local msh1 = Instance.new("SpecialMesh") | |
1176 | msh1.Scale = Vector3.new(x1,y1,z1) | |
1177 | msh1.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1178 | S=Instance.new("Part") | |
1179 | S.Name="Effect" | |
1180 | S.formFactor=0 | |
1181 | S.Size=Vector3.new(1,1,1) | |
1182 | S.BrickColor=color | |
1183 | S.Reflectance = 0 | |
1184 | S.TopSurface=0 | |
1185 | S.BottomSurface=0 | |
1186 | S.Transparency=0 | |
1187 | S.Anchored=true | |
1188 | S.CanCollide=false | |
1189 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
1190 | S.Parent=pack | |
1191 | msh1.Parent = S | |
1192 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1193 | end | |
1194 | function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color) | |
1195 | local msh1 = Instance.new("SpecialMesh") | |
1196 | msh1.Scale = Vector3.new(x1,y1,z1) | |
1197 | msh1.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
1198 | S=Instance.new("Part") | |
1199 | S.Name="Effect" | |
1200 | S.formFactor=0 | |
1201 | S.Size=Vector3.new(1,1,1) | |
1202 | S.BrickColor=color | |
1203 | S.Reflectance = 0 | |
1204 | S.TopSurface=0 | |
1205 | S.BottomSurface=0 | |
1206 | S.Transparency=0 | |
1207 | S.Anchored=true | |
1208 | S.CanCollide=false | |
1209 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3) | |
1210 | S.Parent=pack | |
1211 | msh1.Parent = S | |
1212 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.15,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1213 | end | |
1214 | function DerpMagic(part,x1,y1,z1,x2,y2,z2,color) | |
1215 | local msh1 = Instance.new("BlockMesh") | |
1216 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
1217 | S=Instance.new("Part") | |
1218 | S.Name="Effect" | |
1219 | S.formFactor=0 | |
1220 | S.Size=Vector3.new(x1,y1,z1) | |
1221 | S.BrickColor=color | |
1222 | S.Reflectance = 0 | |
1223 | S.TopSurface=0 | |
1224 | S.BottomSurface=0 | |
1225 | S.Transparency=0 | |
1226 | S.Anchored=true | |
1227 | S.CanCollide=false | |
1228 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1229 | S.Parent=pack | |
1230 | msh1.Parent = S | |
1231 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1232 | end | |
1233 | function ss(pitch) | |
1234 | local SlashSound = Instance.new("Sound") | |
1235 | --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
1236 | SlashSound.SoundId = "http://roblox.com/asset/?id=10209645" | |
1237 | SlashSound.Parent = workspace | |
1238 | SlashSound.Volume = .7 | |
1239 | SlashSound.Pitch = pitch | |
1240 | SlashSound.PlayOnRemove = true | |
1241 | coroutine.resume(coroutine.create(function() | |
1242 | wait(0) | |
1243 | SlashSound.Parent = nil | |
1244 | end)) | |
1245 | end | |
1246 | function equipsound(pitch) | |
1247 | local SlashSound = Instance.new("Sound") | |
1248 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
1249 | SlashSound.Parent = workspace | |
1250 | SlashSound.Volume = .5 | |
1251 | SlashSound.Pitch = pitch | |
1252 | SlashSound.PlayOnRemove = true | |
1253 | coroutine.resume(coroutine.create(function() | |
1254 | wait(0) | |
1255 | SlashSound.Parent = nil | |
1256 | end)) | |
1257 | end | |
1258 | function magicsound(pitch) | |
1259 | local SlashSound = Instance.new("Sound") | |
1260 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511" | |
1261 | SlashSound.Parent = workspace | |
1262 | SlashSound.Volume = .5 | |
1263 | SlashSound.Pitch = pitch | |
1264 | SlashSound.PlayOnRemove = true | |
1265 | coroutine.resume(coroutine.create(function() | |
1266 | wait(0) | |
1267 | SlashSound.Parent = nil | |
1268 | end)) | |
1269 | end | |
1270 | function critsound(pitch) | |
1271 | local SlashSound = Instance.new("Sound") | |
1272 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263" | |
1273 | SlashSound.Parent = workspace | |
1274 | SlashSound.Volume = .7 | |
1275 | SlashSound.Pitch = pitch | |
1276 | SlashSound.PlayOnRemove = true | |
1277 | coroutine.resume(coroutine.create(function() | |
1278 | wait(0) | |
1279 | SlashSound.Parent = nil | |
1280 | end)) | |
1281 | end | |
1282 | function spikesound(pitch) | |
1283 | local SlashSound = Instance.new("Sound") | |
1284 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=3264793" | |
1285 | SlashSound.Parent = workspace | |
1286 | SlashSound.Volume = .7 | |
1287 | SlashSound.Pitch = pitch | |
1288 | SlashSound.PlayOnRemove = true | |
1289 | coroutine.resume(coroutine.create(function() | |
1290 | wait(0) | |
1291 | SlashSound.Parent = nil | |
1292 | end)) | |
1293 | end | |
1294 | function msound(pitch) | |
1295 | local SlashSound = Instance.new("Sound") | |
1296 | SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148" | |
1297 | SlashSound.Parent = workspace | |
1298 | SlashSound.Volume = .7 | |
1299 | SlashSound.Pitch = pitch | |
1300 | SlashSound.PlayOnRemove = true | |
1301 | coroutine.resume(coroutine.create(function() | |
1302 | wait(0) | |
1303 | SlashSound.Parent = nil | |
1304 | end)) | |
1305 | end | |
1306 | function lasersound(pitch) | |
1307 | local SlashSound = Instance.new("Sound") | |
1308 | SlashSound.SoundId = "rbxasset://sounds/Launching rocket.wav" | |
1309 | SlashSound.Parent = workspace | |
1310 | SlashSound.Volume = .5 | |
1311 | SlashSound.Pitch = pitch | |
1312 | SlashSound.PlayOnRemove = true | |
1313 | coroutine.resume(coroutine.create(function() | |
1314 | wait(0) | |
1315 | SlashSound.Parent = nil | |
1316 | end)) | |
1317 | end | |
1318 | function omnomnom(pitch) | |
1319 | local SlashSound = Instance.new("Sound") | |
1320 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=12544690" | |
1321 | SlashSound.Parent = workspace | |
1322 | SlashSound.Volume = .5 | |
1323 | SlashSound.Pitch = pitch | |
1324 | SlashSound.PlayOnRemove = true | |
1325 | coroutine.resume(coroutine.create(function() | |
1326 | wait(0) | |
1327 | SlashSound.Parent = nil | |
1328 | end)) | |
1329 | end | |
1330 | function msound(pitch) | |
1331 | local SlashSound = Instance.new("Sound") | |
1332 | SlashSound.SoundId = "http://www.roblox.com/asset?id=2101148" | |
1333 | SlashSound.Parent = workspace | |
1334 | SlashSound.Volume = .7 | |
1335 | SlashSound.Pitch = pitch | |
1336 | SlashSound.PlayOnRemove = true | |
1337 | coroutine.resume(coroutine.create(function() | |
1338 | wait(0) | |
1339 | SlashSound.Parent = nil | |
1340 | end)) | |
1341 | end | |
1342 | function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color) | |
1343 | local msh1 = Instance.new("BlockMesh") | |
1344 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
1345 | S=Instance.new("Part") | |
1346 | S.Name="Effect" | |
1347 | S.formFactor=0 | |
1348 | S.Size=Vector3.new(x1,y1,z1) | |
1349 | S.BrickColor=color | |
1350 | S.Reflectance = 0 | |
1351 | S.TopSurface=0 | |
1352 | S.BottomSurface=0 | |
1353 | S.Transparency=0 | |
1354 | S.Anchored=true | |
1355 | S.CanCollide=false | |
1356 | S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1357 | S.Parent=workspace | |
1358 | msh1.Parent = S | |
1359 | coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame) | |
1360 | end | |
1361 | attackdebounce = false | |
1362 | Damagefunc1=function(hit,Damage,Knockback) | |
1363 | if hit.Parent==nil then | |
1364 | return | |
1365 | end | |
1366 | CPlayer=Bin | |
1367 | h=hit.Parent:FindFirstChild("Humanoid") | |
1368 | if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1369 | if attackdebounce == false then | |
1370 | critsound(2) | |
1371 | attackdebounce = true | |
1372 | coroutine.resume(coroutine.create(function() | |
1373 | wait(0.1) | |
1374 | attackdebounce = false | |
1375 | end)) | |
1376 | Damage=Damage | |
1377 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1378 | return | |
1379 | end]] | |
1380 | c=Instance.new("ObjectValue") | |
1381 | c.Name="creator" | |
1382 | c.Value=game.Players.LocalPlayer | |
1383 | c.Parent=h | |
1384 | game:GetService("Debris"):AddItem(c,.5) | |
1385 | -- print(c.Value) | |
1386 | if math.random(0,99)+math.random()<=5 then | |
1387 | CRIT=true | |
1388 | Damage=Damage*150 | |
1389 | --[[ Knockback=Knockback*2 | |
1390 | r=Instance.new("BodyAngularVelocity") | |
1391 | r.P=3000 | |
1392 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
1393 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
1394 | r.Parent=hit.Parent.Torso]] | |
1395 | --critsound(2) | |
1396 | end | |
1397 | Damage=Damage+math.random(50,100) | |
1398 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20)) | |
1399 | h:TakeDamage(Damage) | |
1400 | showDamage(hit.Parent,Damage,50) | |
1401 | vp=Instance.new("BodyVelocity") | |
1402 | vp.P=500 | |
1403 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1404 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1405 | vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05 | |
1406 | if Knockback>0 then | |
1407 | vp.Parent=hit.Parent.Torso | |
1408 | end | |
1409 | game:GetService("Debris"):AddItem(vp,.25) | |
1410 | --[[ r=Instance.new("BodyAngularVelocity") | |
1411 | r.P=3000 | |
1412 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
1413 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
1414 | r.Parent=hit.Parent.Torso]] | |
1415 | game:GetService("Debris"):AddItem(r,.5) | |
1416 | c=Instance.new("ObjectValue") | |
1417 | c.Name="creator" | |
1418 | c.Value=Player | |
1419 | c.Parent=h | |
1420 | game:GetService("Debris"):AddItem(c,.5) | |
1421 | CRIT=false | |
1422 | hitDeb=true | |
1423 | AttackPos=6 | |
1424 | end | |
1425 | end | |
1426 | end | |
1427 | Damagefunc2=function(hit,Damage,Knockback) | |
1428 | if hit.Parent==nil then | |
1429 | return | |
1430 | end | |
1431 | CPlayer=Bin | |
1432 | h=hit.Parent:FindFirstChild("Humanoid") | |
1433 | if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1434 | if attackdebounce == false then | |
1435 | critsound(1) | |
1436 | attackdebounce = true | |
1437 | coroutine.resume(coroutine.create(function() | |
1438 | wait(0.1) | |
1439 | attackdebounce = false | |
1440 | end)) | |
1441 | Damage=Damage | |
1442 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1443 | return | |
1444 | end]] | |
1445 | c=Instance.new("ObjectValue") | |
1446 | c.Name="creator" | |
1447 | c.Value=game.Players.LocalPlayer | |
1448 | c.Parent=h | |
1449 | game:GetService("Debris"):AddItem(c,.5) | |
1450 | -- print(c.Value) | |
1451 | if math.random(0,99)+math.random()<=5 then | |
1452 | CRIT=true | |
1453 | Damage=Damage*100 | |
1454 | --[[ Knockback=Knockback*2 | |
1455 | r=Instance.new("BodyAngularVelocity") | |
1456 | r.P=3000 | |
1457 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
1458 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
1459 | r.Parent=hit.Parent.Torso]] | |
1460 | --critsound(2) | |
1461 | end | |
1462 | Damage=Damage+math.random(50,100) | |
1463 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20)) | |
1464 | h:TakeDamage(Damage) | |
1465 | showDamage(hit.Parent,Damage,50) | |
1466 | vp=Instance.new("BodyVelocity") | |
1467 | vp.P=500 | |
1468 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1469 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1470 | vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05 | |
1471 | rl=Instance.new("BodyAngularVelocity") | |
1472 | rl.P=3000 | |
1473 | rl.maxTorque=Vector3.new(5000,5000,5000)*500000000 | |
1474 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1475 | rl.Parent=t | |
1476 | game:GetService("Debris"):AddItem(rl,.2) | |
1477 | vl=Instance.new("BodyVelocity") | |
1478 | vl.P=4500 | |
1479 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1480 | vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,10,0) | |
1481 | vl.Parent=t | |
1482 | game:GetService("Debris"):AddItem(vl,.2) | |
1483 | if Knockback>0 then | |
1484 | vp.Parent=hit.Parent.Torso | |
1485 | end | |
1486 | game:GetService("Debris"):AddItem(vp,.25) | |
1487 | --[[ r=Instance.new("BodyAngularVelocity") | |
1488 | r.P=3000 | |
1489 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
1490 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
1491 | r.Parent=hit.Parent.Torso]] | |
1492 | game:GetService("Debris"):AddItem(r,.5) | |
1493 | c=Instance.new("ObjectValue") | |
1494 | c.Name="creator" | |
1495 | c.Value=Player | |
1496 | c.Parent=h | |
1497 | game:GetService("Debris"):AddItem(c,.5) | |
1498 | CRIT=false | |
1499 | hitDeb=true | |
1500 | AttackPos=6 | |
1501 | end | |
1502 | end | |
1503 | end | |
1504 | slashdamage1=function(hit,Damage,Knockback) | |
1505 | if hit.Parent==nil then | |
1506 | return | |
1507 | end | |
1508 | CPlayer=Bin | |
1509 | h=hit.Parent:FindFirstChild("Humanoid") | |
1510 | if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1511 | if attackdebounce == false then | |
1512 | attackdebounce = true | |
1513 | coroutine.resume(coroutine.create(function() | |
1514 | wait(0.1) | |
1515 | attackdebounce = false | |
1516 | end)) | |
1517 | Damage=Damage | |
1518 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1519 | return | |
1520 | end]] | |
1521 | c=Instance.new("ObjectValue") | |
1522 | c.Name="creator" | |
1523 | c.Value=game.Players.LocalPlayer | |
1524 | c.Parent=h | |
1525 | game:GetService("Debris"):AddItem(c,.5) | |
1526 | -- print(c.Value) | |
1527 | if math.random(0,99)+math.random()<=5 then | |
1528 | Damage=Damage*50 | |
1529 | --[[ Knockback=Knockback*2 | |
1530 | r=Instance.new("BodyAngularVelocity") | |
1531 | r.P=3000 | |
1532 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
1533 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
1534 | r.Parent=hit.Parent.Torso]] | |
1535 | --critsound(2) | |
1536 | end | |
1537 | Damage=Damage+math.random(65,90) | |
1538 | -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/20)) | |
1539 | h:TakeDamage(Damage) | |
1540 | showDamage(hit.Parent,Damage,50) | |
1541 | vp=Instance.new("BodyVelocity") | |
1542 | vp.P=500 | |
1543 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1544 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1545 | vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05 | |
1546 | if Knockback>0 then | |
1547 | vp.Parent=hit.Parent.Torso | |
1548 | end | |
1549 | game:GetService("Debris"):AddItem(vp,.25) | |
1550 | --[[ r=Instance.new("BodyAngularVelocity") | |
1551 | r.P=3000 | |
1552 | r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000 | |
1553 | r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
1554 | r.Parent=hit.Parent.Torso]] | |
1555 | game:GetService("Debris"):AddItem(r,.5) | |
1556 | c=Instance.new("ObjectValue") | |
1557 | c.Name="creator" | |
1558 | c.Value=Player | |
1559 | c.Parent=h | |
1560 | game:GetService("Debris"):AddItem(c,.5) | |
1561 | CRIT=false | |
1562 | hitDeb=true | |
1563 | AttackPos=6 | |
1564 | end | |
1565 | end | |
1566 | end | |
1567 | DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function | |
1568 | if hit.Parent==nil then | |
1569 | return | |
1570 | end | |
1571 | h=hit.Parent:FindFirstChild("Humanoid") | |
1572 | if h==nil then | |
1573 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
1574 | end | |
1575 | t=hit.Parent:FindFirstChild("Torso") | |
1576 | if h~=nil and t~=nil then | |
1577 | --[[ if h.Parent==Character then | |
1578 | return | |
1579 | end]] | |
1580 | critsound(1.5) | |
1581 | Damage=Dmg+math.random(20,100) | |
1582 | h:TakeDamage(Damage) | |
1583 | c=Instance.new("ObjectValue") | |
1584 | c.Name="creator" | |
1585 | c.Value=game.Players.LocalPlayer | |
1586 | c.Parent=h | |
1587 | game:GetService("Debris"):AddItem(c,.5) | |
1588 | showDamage(hit.Parent,Damage,59) | |
1589 | vl=Instance.new("BodyVelocity") | |
1590 | vl.P=4500 | |
1591 | vl.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1592 | vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,10,0) | |
1593 | vl.Parent=t | |
1594 | game:GetService("Debris"):AddItem(vl,.2) | |
1595 | rl=Instance.new("BodyAngularVelocity") | |
1596 | rl.P=3000 | |
1597 | rl.maxTorque=Vector3.new(5000,5000,5000)*500000000 | |
1598 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1599 | rl.Parent=t | |
1600 | game:GetService("Debris"):AddItem(rl,.2) | |
1601 | else | |
1602 | if hit.CanCollide==false then | |
1603 | return | |
1604 | end | |
1605 | MagicCom:disconnect() | |
1606 | -- DBExplode(DB) | |
1607 | CRIT=false | |
1608 | end | |
1609 | end | |
1610 | showDamage=function(Char,Dealt,du) | |
1611 | m=Instance.new("Model") | |
1612 | m.Name=tostring(Dealt) | |
1613 | h=Instance.new("Humanoid") | |
1614 | h.Health=math.huge | |
1615 | h.MaxHealth=math.huge | |
1616 | h.Parent=m | |
1617 | c=Instance.new("Part") | |
1618 | c.Transparency=0 | |
1619 | c.BrickColor=BrickColor:Red() | |
1620 | c.Name="Head" | |
1621 | c.TopSurface=0 | |
1622 | c.BottomSurface=0 | |
1623 | c.formFactor="Plate" | |
1624 | c.Size=Vector3.new(1,.4,1) | |
1625 | ms=Instance.new("CylinderMesh") | |
1626 | ms.Bevel=.1 | |
1627 | ms.Scale=Vector3.new(.8,.8,.8) | |
1628 | ms.Parent=c | |
1629 | c.Reflectance=0 | |
1630 | Instance.new("BodyGyro").Parent=c | |
1631 | c.Parent=m | |
1632 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1633 | f=Instance.new("BodyPosition") | |
1634 | f.P=2000 | |
1635 | f.D=100 | |
1636 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1637 | f.position=c.Position+Vector3.new(0,3,0) | |
1638 | f.Parent=c | |
1639 | game:GetService("Debris"):AddItem(m,.5+du) | |
1640 | c.CanCollide=false | |
1641 | m.Parent=workspace | |
1642 | c.CanCollide=false | |
1643 | end | |
1644 | Anims.Walking = function() | |
1645 | derpcon1=Spider.LRa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
1646 | derpcon2=Spider.LLa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
1647 | derpcon3=Spider.URa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
1648 | derpcon4=Spider.ULa2.Touched:connect(function(hit) Damagefunc1(hit,Prop.LegLength,5) end) | |
1649 | for i=0,1,difficulty do | |
1650 | if act.Jumping ~= true then | |
1651 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(-40-(40*i)),0) | |
1652 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0) | |
1653 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(-40-(40*i)),0) | |
1654 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0) | |
1655 | wait() | |
1656 | end | |
1657 | end | |
1658 | coroutine.resume(coroutine.create(function() | |
1659 | for i=0,1,difficulty do | |
1660 | if act.Jumping ~= true then | |
1661 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(40+(40*i)),0) | |
1662 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0) | |
1663 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(40+(40*i)),0) | |
1664 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0) | |
1665 | wait() | |
1666 | end | |
1667 | end | |
1668 | for i=1,0,-difficulty do | |
1669 | if act.Jumping ~= true then | |
1670 | Spider.w.LLb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(40+(40*i)),0) | |
1671 | Spider.w.LLb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0) | |
1672 | Spider.w.URb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(40+(40*i)),0) | |
1673 | Spider.w.URb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0) | |
1674 | wait() | |
1675 | end | |
1676 | end | |
1677 | end)) | |
1678 | for i=1,0,-difficulty do | |
1679 | if act.Jumping ~= true then | |
1680 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80+(20*i)),math.rad(-40-(40*i)),0) | |
1681 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100-(20*i)),math.rad(0),0) | |
1682 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80-(20*i)),math.rad(-40-(40*i)),0) | |
1683 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100+(20*i)),math.rad(0),0) | |
1684 | wait() | |
1685 | end | |
1686 | end | |
1687 | derpcon1:disconnect() | |
1688 | derpcon2:disconnect() | |
1689 | derpcon3:disconnect() | |
1690 | derpcon4:disconnect() | |
1691 | if act.Jumping ~= true then | |
1692 | Spider.w.LRb1.C1 = CFrame.Angles(math.rad(-80),math.rad(-40),0) | |
1693 | Spider.w.LRb2.C1 = CFrame.Angles(math.rad(-100),math.rad(0),0) | |
1694 | Spider.w.ULb1.C1 = CFrame.Angles(math.rad(80),math.rad(-40),0) | |
1695 | Spider.w.ULb2.C1 = CFrame.Angles(math.rad(100),math.rad(0),0) | |
1696 | end | |
1697 | end | |
1698 | --[[while true do | |
1699 | wait() | |
1700 | if act.Walking == true then return end | |
1701 | if Torso.Velocity.magnitude >= 19 then | |
1702 | act.Walking = true | |
1703 | Anims.Walking() | |
1704 | act.Walking = false | |
1705 | end | |
1706 | end ]] | |
1707 | t = it("Tool") | |
1708 | t.Equipped:connect(function(mouse) t:Remove() | |
1709 | Mouse = mouse | |
1710 | mouse.KeyDown:connect(function(k) act.keydown = true | |
1711 | pcall(function() act.key[k:lower()] = true end) | |
1712 | local kk = k:lower() | |
1713 | if kk == "w" or kk == "a" or kk == "s" or kk == "d" then | |
1714 | if act.Walking == true then return end | |
1715 | while act.key["w"] == true or act.key["a"] == true or act.key["s"] == true or act.key["d"] == true do | |
1716 | act.Walking = true | |
1717 | Anims.Walking() | |
1718 | wait() | |
1719 | end | |
1720 | act.Walking = false | |
1721 | end | |
1722 | if kk == "q" then | |
1723 | if roflcopter==false then | |
1724 | roflcopter=true | |
1725 | RoflCopter() | |
1726 | elseif roflcopter==true then | |
1727 | roflcopter=false | |
1728 | end | |
1729 | --[[if roflcopter==false then | |
1730 | roflcopter=true | |
1731 | Anim() | |
1732 | elseif roflcopter==true then | |
1733 | roflcopter=false | |
1734 | end]] | |
1735 | end | |
1736 | if kk == "e" then | |
1737 | bodypos.position=bodypos.position+Vector3.new(0,10,0) | |
1738 | end | |
1739 | if kk == "r" then | |
1740 | bodypos.position=bodypos.position-Vector3.new(0,10,0) | |
1741 | end | |
1742 | if attack == true then return end | |
1743 | if kk == "f" then | |
1744 | Shoot() | |
1745 | end | |
1746 | if kk == "g" then | |
1747 | Shoot2() | |
1748 | end | |
1749 | if kk == "h" then | |
1750 | Shoot3() | |
1751 | end | |
1752 | if kk == "j" then | |
1753 | Shoot4() | |
1754 | end | |
1755 | if kk == "z" then | |
1756 | Attack() | |
1757 | end | |
1758 | if kk == "x" then | |
1759 | DualAttack() | |
1760 | end | |
1761 | if kk == "c" then | |
1762 | MegaBonk() | |
1763 | end | |
1764 | if kk == "v" then | |
1765 | Stomp() | |
1766 | end | |
1767 | if kk == " " then | |
1768 | Jump() | |
1769 | end | |
1770 | end) | |
1771 | mouse.KeyUp:connect(function(k) act.keydown = false | |
1772 | pcall(function() act.key[k:lower()] = false end) | |
1773 | end) | |
1774 | end) | |
1775 | wait(0.1) | |
1776 | t.Parent = Char |