SHOW:
|
|
- or go back to the newest paste.
1 | - | -- This script has been converted to FE by iPxter |
1 | + | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
5 | + | print("FE Compatibility code V2 by Mokiros") |
6 | local RealPlayer = RealPlayer | |
7 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") |
7 | + | script.Parent = RealPlayer.Character |
8 | - | script.Parent = Player.Character |
8 | + | |
9 | --Fake event to make stuff like Mouse.KeyDown work | |
10 | - | --RemoteEvent for communicating |
10 | + | local Disconnect_Function = function(this) |
11 | - | local Event = Instance.new("RemoteEvent") |
11 | + | this[1].Functions[this[2]] = nil |
12 | - | Event.Name = "UserInput_Event" |
12 | + | end |
13 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
14 | - | --Fake event to make stuff like Mouse.KeyDown work |
14 | + | local FakeEvent_Metatable = {__index={ |
15 | - | local function fakeEvent() |
15 | + | Connect = function(this,f) |
16 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} |
16 | + | local i = tostring(math.random(0,10000)) |
17 | - | t.connect = t.Connect |
17 | + | while this.Functions[i] do |
18 | - | return t |
18 | + | i = tostring(math.random(0,10000)) |
19 | end | |
20 | this.Functions[i] = f | |
21 | - | --Creating fake input objects with fake variables |
21 | + | return setmetatable({this,i},Disconnect_Metatable) |
22 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} |
22 | + | end |
23 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
23 | + | }} |
24 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
24 | + | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect |
25 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
25 | + | local function fakeEvent() |
26 | - | end} |
26 | + | return setmetatable({Functions={}},FakeEvent_Metatable) |
27 | - | --Merged 2 functions into one by checking amount of arguments |
27 | + | end |
28 | - | CAS.UnbindAction = CAS.BindAction |
28 | + | |
29 | --Creating fake input objects with fake variables | |
30 | - | --This function will trigger the events that have been :Connect()'ed |
30 | + | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} |
31 | - | local function te(self,ev,...) |
31 | + | FakeMouse.keyUp = FakeMouse.KeyUp |
32 | - | local t = m[ev] |
32 | + | FakeMouse.keyDown = FakeMouse.KeyDown |
33 | - | if t and t._fakeEvent and t.Function then |
33 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
34 | - | t.Function(...) |
34 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
35 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
36 | end} | |
37 | - | m.TrigEvent = te |
37 | + | --Merged 2 functions into one by checking amount of arguments |
38 | - | UIS.TrigEvent = te |
38 | + | CAS.UnbindAction = CAS.BindAction |
39 | ||
40 | - | Event.OnServerEvent:Connect(function(plr,io) |
40 | + | --This function will trigger the events that have been :Connect()'ed |
41 | - | if plr~=Player then return end |
41 | + | local function TriggerEvent(self,ev,...) |
42 | - | if io.isMouse then |
42 | + | for _,f in pairs(self[ev].Functions) do |
43 | - | m.Target = io.Target |
43 | + | f(...) |
44 | - | m.Hit = io.Hit |
44 | + | end |
45 | end | |
46 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
46 | + | FakeMouse.TriggerEvent = TriggerEvent |
47 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
47 | + | UIS.TriggerEvent = TriggerEvent |
48 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
48 | + | |
49 | --Client communication | |
50 | - | for _,t in pairs(CAS.Actions) do |
50 | + | local Event = Instance.new("RemoteEvent") |
51 | - | for _,k in pairs(t.Keys) do |
51 | + | Event.Name = "UserInput_Event" |
52 | - | if k==io.KeyCode then |
52 | + | Event.OnServerEvent:Connect(function(plr,io) |
53 | - | t.Function(t.Name,io.UserInputState,io) |
53 | + | if plr~=RealPlayer then return end |
54 | - | end |
54 | + | FakeMouse.Target = io.Target |
55 | FakeMouse.Hit = io.Hit | |
56 | if not io.isMouse then | |
57 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
57 | + | local b = io.UserInputState == Enum.UserInputState.Begin |
58 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
58 | + | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
59 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
60 | - | end) |
60 | + | end |
61 | - | Event.Parent = NLS([==[ |
61 | + | if io.UserInputType == Enum.UserInputType.MouseButton2 then |
62 | - | local Player = game:GetService("Players").LocalPlayer |
62 | + | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") |
63 | - | local Event = script:WaitForChild("UserInput_Event") |
63 | + | end |
64 | for _,t in pairs(CAS.Actions) do | |
65 | - | local UIS = game:GetService("UserInputService") |
65 | + | for _,k in pairs(t.Keys) do |
66 | - | local input = function(io,a) |
66 | + | if k==io.KeyCode then |
67 | - | if a then return end |
67 | + | t.Function(t.Name,io.UserInputState,io) |
68 | - | --Since InputObject is a client-side instance, we create and pass table instead |
68 | + | end |
69 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) |
69 | + | end |
70 | end | |
71 | - | UIS.InputBegan:Connect(input) |
71 | + | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
72 | - | UIS.InputEnded:Connect(input) |
72 | + | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) |
73 | end | |
74 | - | local Mouse = Player:GetMouse() |
74 | + | end) |
75 | - | local h,t |
75 | + | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") |
76 | - | --Give the server mouse data 30 times every second, but only if the values changed |
76 | + | local Mouse = owner:GetMouse() |
77 | - | --If player is not moving their mouse, client won't fire events |
77 | + | local UIS = game:GetService("UserInputService") |
78 | - | while wait(1/30) do |
78 | + | local input = function(io,RobloxHandled) |
79 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
79 | + | if RobloxHandled then return end |
80 | - | h,t=Mouse.Hit,Mouse.Target |
80 | + | --Since InputObject is a client-side instance, we create and pass table instead |
81 | - | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
81 | + | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) |
82 | end | |
83 | - | end]==],Player.Character) |
83 | + | UIS.InputBegan:Connect(input) |
84 | - | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
84 | + | UIS.InputEnded:Connect(input) |
85 | local h,t | |
86 | --Give the server mouse data every second frame, but only if the values changed | |
87 | --If player is not moving their mouse, client won't fire events | |
88 | local HB = game:GetService("RunService").Heartbeat | |
89 | while true do | |
90 | if h~=Mouse.Hit or t~=Mouse.Target then | |
91 | h,t=Mouse.Hit,Mouse.Target | |
92 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
93 | end | |
94 | --Wait 2 frames | |
95 | for i=1,2 do | |
96 | HB:Wait() | |
97 | end | |
98 | - | warn("You're whitelisted, "..game:GetService("Players").plytalent.Name.." :)") |
98 | + | end]==],script) |
99 | ||
100 | - | local p = game:GetService("Players").plytalent |
100 | + | ----Sandboxed game object that allows the usage of client-side methods and services |
101 | --Real game object | |
102 | local RealGame = game | |
103 | ||
104 | --Metatable for fake service | |
105 | local FakeService_Metatable = { | |
106 | __index = function(self,k) | |
107 | local s = rawget(self,"_RealService") | |
108 | if s then | |
109 | return typeof(s[k])=="function" | |
110 | and function(_,...)return s[k](s,...)end or s[k] | |
111 | end | |
112 | end, | |
113 | __newindex = function(self,k,v) | |
114 | - | local rs = run.RenderStepped |
114 | + | local s = rawget(self,"_RealService") |
115 | if s then s[k]=v end | |
116 | end | |
117 | } | |
118 | - | --repeat wait() until p.CharacterAppearanceLoaded |
118 | + | local function FakeService(t,RealService) |
119 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
120 | return setmetatable(t,FakeService_Metatable) | |
121 | end | |
122 | ||
123 | --Fake game object | |
124 | local FakeGame = { | |
125 | GetService = function(self,s) | |
126 | return rawget(self,s) or RealGame:GetService(s) | |
127 | end, | |
128 | Players = FakeService({ | |
129 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
130 | },"Players"), | |
131 | UserInputService = FakeService(UIS,"UserInputService"), | |
132 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
133 | RunService = FakeService({ | |
134 | _btrs = {}, | |
135 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
136 | BindToRenderStep = function(self,name,_,fun) | |
137 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
138 | end, | |
139 | UnbindFromRenderStep = function(self,name) | |
140 | self._btrs[name]:Disconnect() | |
141 | end, | |
142 | },"RunService") | |
143 | } | |
144 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
145 | FakeGame.service = FakeGame.GetService | |
146 | FakeService(FakeGame,game) | |
147 | --Changing owner to fake player object to support owner:GetMouse() | |
148 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
149 | end | |
150 | ||
151 | print([[ | |
152 | ___________________________________ | |
153 | ||
154 | Kyutatsuki13's Stella the [T E C H N O . F A I R Y] script | |
155 | Build 0002 | |
156 | Mmmmmh character designed by Kyu... | |
157 | ||
158 | ___________________________________ | |
159 | ]]) | |
160 | ||
161 | ||
162 | warn("You're whitelisted, ".. owner.name .." :)") | |
163 | ||
164 | local p = owner | |
165 | local char = p.Character | |
166 | --local mouse = p:GetMouse() | |
167 | local larm = char:WaitForChild("Left Arm") | |
168 | local rarm = char:WaitForChild("Right Arm") | |
169 | local lleg = char:WaitForChild("Left Leg") | |
170 | local rleg = char:WaitForChild("Right Leg") | |
171 | local hed = char:WaitForChild("Head") | |
172 | local torso = char:WaitForChild("Torso") | |
173 | local root = char:WaitForChild("HumanoidRootPart") | |
174 | local hum = char:FindFirstChildOfClass("Humanoid") | |
175 | local debris = game:GetService("Debris") | |
176 | local input = game:GetService("UserInputService") | |
177 | local run = game:GetService("RunService") | |
178 | --local rs = run.RenderStepped | |
179 | local wingpose = "Idle" | |
180 | local DebrisModel = Instance.new("Model",char) | |
181 | DebrisModel.Name = "Debris" | |
182 | repeat wait() until p.CharacterAppearanceLoaded | |
183 | ||
184 | noidle = false | |
185 | shift = false | |
186 | control = false | |
187 | no_nosound_able = true | |
188 | ||
189 | ---------------------------------------------------------------------------- | |
190 | ||
191 | function rswait(value) | |
192 | if value ~= nil and value ~= 0 then | |
193 | for i=1,value do | |
194 | wait() | |
195 | end | |
196 | else | |
197 | wait() | |
198 | end | |
199 | end | |
200 | ||
201 | ---------------------------------------------------------------------------- | |
202 | ||
203 | local timeposition = 0 | |
204 | ||
205 | function music(id) | |
206 | if not torso:FindFirstChild("MusicRuin") then | |
207 | soundz = Instance.new("Sound",torso) | |
208 | end | |
209 | soundz.Volume = 10 | |
210 | soundz.Name = "MusicRuin" | |
211 | soundz.Looped = true | |
212 | soundz.PlaybackSpeed = 1 | |
213 | soundz.SoundId = "rbxassetid://"..id | |
214 | soundz:Stop() | |
215 | soundz:Play() | |
216 | if no_nosound_able == true then | |
217 | soundz.TimePosition = timeposition | |
218 | end | |
219 | end | |
220 | ||
221 | ---------------------------------------------------------------------------- | |
222 | ||
223 | function lerp(a, b, t) | |
224 | return a + (b - a)*t | |
225 | end | |
226 | ||
227 | ---------------------------------------------------------------------------- | |
228 | ||
229 | function Lerp(c1,c2,al) | |
230 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
231 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
232 | for i,v in pairs(com1) do | |
233 | com1[i] = v+(com2[i]-v)*al | |
234 | end | |
235 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
236 | end | |
237 | ||
238 | ---------------------------------------------------------------------------- | |
239 | ||
240 | function slerp(a, b, t) | |
241 | dot = a:Dot(b) | |
242 | if dot > 0.99999 or dot < -0.99999 then | |
243 | return t <= 0.5 and a or b | |
244 | else | |
245 | r = math.acos(dot) | |
246 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
247 | end | |
248 | end | |
249 | ||
250 | ---------------------------------------------------------------------------- | |
251 | ||
252 | function clerp(c1,c2,al) | |
253 | ||
254 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
255 | ||
256 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
257 | ||
258 | for i,v in pairs(com1) do | |
259 | ||
260 | com1[i] = lerp(v,com2[i],al) | |
261 | ||
262 | end | |
263 | ||
264 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
265 | ||
266 | end | |
267 | ||
268 | ---------------------------------------------------------------------------- | |
269 | ||
270 | function findAllNearestTorso(pos,dist) | |
271 | local list = workspace:children() | |
272 | local torso = {} | |
273 | local temp = nil | |
274 | local human = nil | |
275 | local temp2 = nil | |
276 | for x = 1, #list do | |
277 | temp2 = list[x] | |
278 | if (temp2.className == "Model") and (temp2 ~= char) then | |
279 | temp = temp2:findFirstChild("Torso") | |
280 | human = temp2:findFirstChildOfClass("Humanoid") | |
281 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
282 | if (temp.Position - pos).magnitude < dist then | |
283 | table.insert(torso,temp) | |
284 | dist = (temp.Position - pos).magnitude | |
285 | end | |
286 | end | |
287 | end | |
288 | end | |
289 | return torso | |
290 | end | |
291 | ||
292 | ---------------------------------------------------------------------------- | |
293 | ||
294 | function checkIfNotPlayer(model) | |
295 | if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then | |
296 | return true | |
297 | else | |
298 | return false | |
299 | end | |
300 | end | |
301 | ||
302 | ---------------------------------------------------------------------------- | |
303 | ||
304 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
305 | ||
306 | local wld = Instance.new("Weld", wp1) | |
307 | ||
308 | wld.Part0 = wp0 | |
309 | ||
310 | wld.Part1 = wp1 | |
311 | ||
312 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
313 | ||
314 | return wld | |
315 | ||
316 | end | |
317 | ||
318 | function weld(model) | |
319 | local parts,last = {} | |
320 | local function scan(parent) | |
321 | for _,v in pairs(parent:GetChildren()) do | |
322 | if (v:IsA("BasePart")) then | |
323 | if (last) then | |
324 | local w = Instance.new("Weld") | |
325 | w.Name = ("%s_Weld"):format(v.Name) | |
326 | w.Part0,w.Part1 = last,v | |
327 | w.C0 = last.CFrame:inverse() | |
328 | w.C1 = v.CFrame:inverse() | |
329 | w.Parent = last | |
330 | end | |
331 | last = v | |
332 | table.insert(parts,v) | |
333 | end | |
334 | scan(v) | |
335 | end | |
336 | end | |
337 | scan(model) | |
338 | for _,v in pairs(parts) do | |
339 | v.Anchored = false | |
340 | v.Locked = true | |
341 | v.Anchored = false | |
342 | v.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
343 | v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
344 | v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
345 | v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
346 | v.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
347 | v.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
348 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0) | |
349 | end | |
350 | end | |
351 | ||
352 | ---------------------------------------------------------------------------- | |
353 | ||
354 | function calculate(part,asd) | |
355 | local Head = hed | |
356 | local RightShoulder = asd | |
357 | local RightArm = part | |
358 | local MousePosition = mouse.Hit.p | |
359 | local ToMouse = (MousePosition - Head.Position).unit | |
360 | local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0))) | |
361 | local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0))) | |
362 | local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit | |
363 | local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
364 | local LateralAngle = math.acos(ToMouseRightArm:Dot(Look)) | |
365 | if tostring(LateralAngle) == "-1.#IND" then | |
366 | LateralAngle = 0 | |
367 | end | |
368 | local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm) | |
369 | if LateralAngle > (math.pi / 2) then | |
370 | LateralAngle = (math.pi / 2) | |
371 | local Torso = root | |
372 | local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p) | |
373 | if Point.Z > 0 then | |
374 | - | -- |
374 | + | |
375 | - | --local shaking = 0 |
375 | + | |
376 | - | --function shake(num) if num > shaking then shaking = num end end |
376 | + | |
377 | - | --game:GetService("RunService").RenderStepped:connect(function() |
377 | + | |
378 | - | --hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100) |
378 | + | |
379 | - | --if shaking > 0 then shaking = shaking - 1 else shaking = 0 end |
379 | + | |
380 | - | --end) |
380 | + | |
381 | if Cross.Y < 0 then | |
382 | - | plr = game:GetService("Players").plytalent |
382 | + | |
383 | end | |
384 | return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)) | |
385 | end | |
386 | ||
387 | ---------------------------------------------------------------------------- | |
388 | ||
389 | function sound(id,position,vol,pitch,start,finish) | |
390 | coroutine.resume(coroutine.create(function() | |
391 | ||
392 | local part = Instance.new("Part",workspace) | |
393 | part.Position = position | |
394 | part.Size = Vector3.new(0,0,0) | |
395 | part.CanCollide = false | |
396 | part.Transparency = 1 | |
397 | ||
398 | local sound = Instance.new("Sound",part) | |
399 | ||
400 | sound.SoundId = "rbxassetid://"..id | |
401 | ||
402 | repeat wait() until sound.IsLoaded | |
403 | ||
404 | if vol ~= nil then | |
405 | sound.Volume = vol | |
406 | end | |
407 | ||
408 | if pitch ~= nil then | |
409 | sound.PlaybackSpeed = pitch | |
410 | end | |
411 | ||
412 | if start ~= nil then | |
413 | sound.TimePosition = start | |
414 | end | |
415 | ||
416 | if finish ~= nil then | |
417 | debris:AddItem(part,finish-start) | |
418 | else | |
419 | debris:AddItem(part,sound.TimeLength) | |
420 | end | |
421 | ||
422 | sound:Play() | |
423 | ||
424 | return sound | |
425 | ||
426 | end)) | |
427 | - | --game:GetService("RunService").RenderStepped:connect(function() |
427 | + | |
428 | ||
429 | ---------------------------------------------------------------------------- | |
430 | ||
431 | function computeDirection(vec) | |
432 | local lenSquared = vec.magnitude * vec.magnitude | |
433 | local invSqrt = 1 / math.sqrt(lenSquared) | |
434 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
435 | end | |
436 | ||
437 | ---------------------------------------------------------------------------- | |
438 | ||
439 | local shaking = 0 | |
440 | function shake(num) if num > shaking then shaking = num end end | |
441 | while wait() do | |
442 | hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100) | |
443 | if shaking > 0 then shaking = shaking - 1 else shaking = 0 end | |
444 | end | |
445 | ||
446 | plr = game:GetService("Players").LocalPlayer | |
447 | DebrisModel = Instance.new("Model",plr.Character) | |
448 | DebrisModel.Name = "DebrisModel" | |
449 | ||
450 | function Effect(mesh,size,transparency,material,color,position,rotation,positionchange,sizechange,rotationchange,transparencychange,acceleration) | |
451 | ||
452 | local part = Instance.new("Part",DebrisModel) | |
453 | part.Anchored = true | |
454 | - | --end) |
454 | + | |
455 | part.Size = Vector3.new(1,1,1) | |
456 | part.Transparency = transparency | |
457 | part.Material = material | |
458 | part.Color = color | |
459 | part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z)) | |
460 | ||
461 | local partmesh = Instance.new("SpecialMesh",part) | |
462 | if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end | |
463 | partmesh.Scale = size | |
464 | ||
465 | local pvalue = Instance.new("Vector3Value",part) | |
466 | pvalue.Name = "Position" | |
467 | pvalue.Value = positionchange | |
468 | ||
469 | local svalue = Instance.new("Vector3Value",part) | |
470 | svalue.Name = "Size" | |
471 | svalue.Value = sizechange | |
472 | ||
473 | local rvalue = Instance.new("Vector3Value",part) | |
474 | rvalue.Name = "Rotation" | |
475 | rvalue.Value = rotationchange | |
476 | ||
477 | local tvalue = Instance.new("NumberValue",part) | |
478 | tvalue.Name = "Transparency" | |
479 | tvalue.Value = transparencychange | |
480 | ||
481 | local avalue = Instance.new("NumberValue",part) | |
482 | avalue.Name = "Acceleration" | |
483 | avalue.Value = acceleration | |
484 | ||
485 | part.Name = "EFFECT" | |
486 | ||
487 | return part | |
488 | ||
489 | end | |
490 | ||
491 | while wait() do | |
492 | coroutine.resume(coroutine.create(function() | |
493 | ||
494 | if not plr.Character:FindFirstChild("DebrisModel") then | |
495 | DebrisModel = Instance.new("Model",plr.Character) | |
496 | DebrisModel.Name = "DebrisModel" | |
497 | end | |
498 | ||
499 | for i,v in pairs(DebrisModel:GetChildren()) do | |
500 | if v:IsA("BasePart") and v.Name == "EFFECT" then | |
501 | local pvalue = v:FindFirstChild("Position").Value | |
502 | local svalue = v:FindFirstChild("Size").Value | |
503 | local rvalue = v:FindFirstChild("Rotation").Value | |
504 | local tvalue = v:FindFirstChild("Transparency").Value | |
505 | local avalue = v:FindFirstChild("Acceleration").Value | |
506 | local mesh = v:FindFirstChild("Mesh") | |
507 | mesh.Scale = mesh.Scale + svalue | |
508 | v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue) | |
509 | v.Transparency = v.Transparency + tvalue | |
510 | v.CFrame = CFrame.new(pvalue)*v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z)) | |
511 | if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then | |
512 | v:Destroy() | |
513 | end | |
514 | end | |
515 | end | |
516 | ||
517 | end)) | |
518 | end | |
519 | ||
520 | ---------------------------------------------------------------------------- | |
521 | skin_color = BrickColor.new("Light orange") | |
522 | p:ClearCharacterAppearance() | |
523 | hed:WaitForChild("face"):Destroy() | |
524 | ||
525 | ---------------------------------------------------------------------------- | |
526 | ||
527 | local size = 1 | |
528 | ||
529 | newWeld(torso, larm, -1.5, 0.5, 0) | |
530 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
531 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
532 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
533 | newWeld(torso, hed, 0, 1.5, 0) | |
534 | newWeld(torso, lleg, -0.5, -1, 0) | |
535 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
536 | newWeld(torso, rleg, 0.5, -1, 0) | |
537 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
538 | newWeld(root, torso, 0, -1, 0) | |
539 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
540 | ||
541 | emitters={} | |
542 | ||
543 | ---------------------------------------------------------------------------------------- | |
544 | ||
545 | Model0 = Instance.new("Model") | |
546 | Part1 = Instance.new("Part") | |
547 | Part2 = Instance.new("Part") | |
548 | Part3 = Instance.new("Part") | |
549 | Part4 = Instance.new("Part") | |
550 | Part5 = Instance.new("Part") | |
551 | SpecialMesh6 = Instance.new("SpecialMesh") | |
552 | Part7 = Instance.new("Part") | |
553 | SpecialMesh8 = Instance.new("SpecialMesh") | |
554 | Part9 = Instance.new("Part") | |
555 | Part10 = Instance.new("Part") | |
556 | Part11 = Instance.new("Part") | |
557 | Model0.Name = "3" | |
558 | Model0.Parent = char | |
559 | Part1.Parent = Model0 | |
560 | Part1.Material = Enum.Material.Neon | |
561 | Part1.Anchored = true | |
562 | Part1.CanCollide = false | |
563 | Part1.Size = Vector3.new(1.60000002, 0.400000006, 0.100000001) | |
564 | Part1.CFrame = CFrame.new(-22.6299973, 18, 15.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
565 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
566 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
567 | Part1.Position = Vector3.new(-22.6299973, 18, 15.5) | |
568 | Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
569 | Part2.Parent = Model0 | |
570 | Part2.Material = Enum.Material.Neon | |
571 | Part2.Anchored = true | |
572 | Part2.CanCollide = false | |
573 | Part2.Size = Vector3.new(1.62000012, 0.419999987, 0.0800000057) | |
574 | Part2.CFrame = CFrame.new(-22.6299973, 18, 15.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
575 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
576 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
577 | Part2.Position = Vector3.new(-22.6299973, 18, 15.5) | |
578 | Part2.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
579 | Part3.Parent = Model0 | |
580 | Part3.Material = Enum.Material.Neon | |
581 | Part3.Anchored = true | |
582 | Part3.CanCollide = false | |
583 | Part3.Size = Vector3.new(1.10000002, 0.320000023, 0.0800000057) | |
584 | Part3.CFrame = CFrame.new(-23.9799976, 17.9500008, 15.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
585 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
586 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
587 | Part3.Position = Vector3.new(-23.9799976, 17.9500008, 15.5) | |
588 | Part3.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
589 | Part4.Parent = Model0 | |
590 | Part4.Material = Enum.Material.Neon | |
591 | Part4.Rotation = Vector3.new(-180, 0, -18.4300003) | |
592 | Part4.Anchored = true | |
593 | Part4.CanCollide = false | |
594 | Part4.Size = Vector3.new(0.316227764, 0.284604996, 0.100000001) | |
595 | Part4.CFrame = CFrame.new(-23.5349979, 18.0149994, 15.5, 0.948683262, 0.316227764, 0, 0.316227764, -0.948683262, 0, 0, 0, -1) | |
596 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
597 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
598 | Part4.Position = Vector3.new(-23.5349979, 18.0149994, 15.5) | |
599 | Part4.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
600 | Part5.Parent = Model0 | |
601 | Part5.Material = Enum.Material.Neon | |
602 | Part5.Rotation = Vector3.new(-180, 90, 0) | |
603 | Part5.Anchored = true | |
604 | Part5.CanCollide = false | |
605 | Part5.Size = Vector3.new(0.0799999461, 0.320000023, 1.05000007) | |
606 | Part5.CFrame = CFrame.new(-25.0549965, 17.9500008, 15.5, -4.37113883e-08, 0, 1, -8.74227766e-08, -0.99999994, -3.82137093e-15, 1, -8.74227695e-08, 4.37113883e-08) | |
607 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
608 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
609 | Part5.Position = Vector3.new(-25.0549965, 17.9500008, 15.5) | |
610 | Part5.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
611 | SpecialMesh6.Parent = Part5 | |
612 | SpecialMesh6.MeshType = Enum.MeshType.Wedge | |
613 | Part7.Parent = Model0 | |
614 | Part7.Material = Enum.Material.Neon | |
615 | Part7.Rotation = Vector3.new(-180, 90, 0) | |
616 | Part7.Anchored = true | |
617 | Part7.CanCollide = false | |
618 | Part7.Size = Vector3.new(0.0999999419, 0.300000012, 1) | |
619 | Part7.CFrame = CFrame.new(-25.0299969, 17.9500008, 15.5, -4.37113883e-08, 0, 1, -8.74227766e-08, -0.99999994, -3.82137093e-15, 1, -8.74227695e-08, 4.37113883e-08) | |
620 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
621 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
622 | Part7.Position = Vector3.new(-25.0299969, 17.9500008, 15.5) | |
623 | Part7.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
624 | SpecialMesh8.Parent = Part7 | |
625 | SpecialMesh8.MeshType = Enum.MeshType.Wedge | |
626 | Part9.Parent = Model0 | |
627 | Part9.Material = Enum.Material.Neon | |
628 | Part9.Anchored = true | |
629 | Part9.CanCollide = false | |
630 | Part9.Size = Vector3.new(1.10000002, 0.300000012, 0.100000001) | |
631 | Part9.CFrame = CFrame.new(-23.9799976, 17.9500008, 15.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
632 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
633 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
634 | Part9.Position = Vector3.new(-23.9799976, 17.9500008, 15.5) | |
635 | Part9.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
636 | Part10.Name = "asd" | |
637 | Part10.Parent = Model0 | |
638 | Part10.Material = Enum.Material.Neon | |
639 | Part10.Transparency = 1 | |
640 | Part10.Anchored = true | |
641 | Part10.CanCollide = false | |
642 | Part10.Size = Vector3.new(0.400000006, 0.400000006, 0.120000005) | |
643 | Part10.CFrame = CFrame.new(-22.0299969, 18, 15.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
644 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
645 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
646 | Part10.Position = Vector3.new(-22.0299969, 18, 15.5) | |
647 | Part10.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
648 | Part11.Parent = Model0 | |
649 | Part11.Material = Enum.Material.Neon | |
650 | Part11.Rotation = Vector3.new(-180, 0, -18.4300003) | |
651 | Part11.Anchored = true | |
652 | Part11.CanCollide = false | |
653 | Part11.Size = Vector3.new(0.316227764, 0.304604977, 0.0800000057) | |
654 | Part11.CFrame = CFrame.new(-23.5349979, 18.0149994, 15.5, 0.948683262, 0.316227764, 0, 0.316227764, -0.948683262, 0, 0, 0, -1) | |
655 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
656 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
657 | Part11.Position = Vector3.new(-23.5349979, 18.0149994, 15.5) | |
658 | Part11.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
659 | weld(Model0) | |
660 | Model1 = Model0:Clone() | |
661 | Model1.Parent = char | |
662 | l1=newWeld(torso,Model0.asd,-0.8,0.8,0.5) | |
663 | r1=newWeld(torso,Model1.asd,0.8,0.8,0.5) | |
664 | Model1.asd.Weld.C1 = CFrame.Angles(0,math.rad(180),0) | |
665 | ||
666 | Model0 = Instance.new("Model") | |
667 | Part1 = Instance.new("Part") | |
668 | Part2 = Instance.new("Part") | |
669 | SpecialMesh3 = Instance.new("SpecialMesh") | |
670 | Part4 = Instance.new("Part") | |
671 | Part5 = Instance.new("Part") | |
672 | SpecialMesh6 = Instance.new("SpecialMesh") | |
673 | Part7 = Instance.new("Part") | |
674 | Part8 = Instance.new("Part") | |
675 | Part9 = Instance.new("Part") | |
676 | Part10 = Instance.new("Part") | |
677 | Part11 = Instance.new("Part") | |
678 | Model0.Name = "2" | |
679 | Model0.Parent = char | |
680 | Part1.Parent = Model0 | |
681 | Part1.Material = Enum.Material.Neon | |
682 | Part1.Rotation = Vector3.new(-180, 0, -18.4300003) | |
683 | Part1.Anchored = true | |
684 | Part1.CanCollide = false | |
685 | Part1.Size = Vector3.new(0.252982229, 0.227684006, 0.0800000057) | |
686 | Part1.CFrame = CFrame.new(-23.567997, 16.0119991, 15.75, 0.948683262, 0.316227764, 0, 0.316227764, -0.948683262, 0, 0, 0, -1) | |
687 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
688 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
689 | Part1.Position = Vector3.new(-23.567997, 16.0119991, 15.75) | |
690 | Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
691 | Part2.Parent = Model0 | |
692 | Part2.Material = Enum.Material.Neon | |
693 | Part2.Rotation = Vector3.new(-180, 90, 0) | |
694 | Part2.Anchored = true | |
695 | Part2.CanCollide = false | |
696 | Part2.Size = Vector3.new(0.0799999535, 0.24000001, 0.800000012) | |
697 | Part2.CFrame = CFrame.new(-24.7639961, 15.960001, 15.75, -4.37113883e-08, 0, 1, -8.74227766e-08, -0.99999994, -3.82137093e-15, 1, -8.74227695e-08, 4.37113883e-08) | |
698 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
699 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
700 | Part2.Position = Vector3.new(-24.7639961, 15.960001, 15.75) | |
701 | Part2.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
702 | SpecialMesh3.Parent = Part2 | |
703 | SpecialMesh3.MeshType = Enum.MeshType.Wedge | |
704 | Part4.Parent = Model0 | |
705 | Part4.Material = Enum.Material.Neon | |
706 | Part4.Anchored = true | |
707 | Part4.CanCollide = false | |
708 | Part4.Size = Vector3.new(1.29600012, 0.335999995, 0.064000003) | |
709 | Part4.CFrame = CFrame.new(-22.843998, 16, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
710 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
711 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
712 | Part4.Position = Vector3.new(-22.843998, 16, 15.75) | |
713 | Part4.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
714 | Part5.Parent = Model0 | |
715 | Part5.Material = Enum.Material.Neon | |
716 | Part5.Rotation = Vector3.new(-180, 90, 0) | |
717 | Part5.Anchored = true | |
718 | Part5.CanCollide = false | |
719 | Part5.Size = Vector3.new(0.0639999583, 0.256000012, 0.840000093) | |
720 | Part5.CFrame = CFrame.new(-24.7839966, 15.960001, 15.75, -4.37113883e-08, 0, 1, -8.74227766e-08, -0.99999994, -3.82137093e-15, 1, -8.74227695e-08, 4.37113883e-08) | |
721 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
722 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
723 | Part5.Position = Vector3.new(-24.7839966, 15.960001, 15.75) | |
724 | Part5.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
725 | SpecialMesh6.Parent = Part5 | |
726 | SpecialMesh6.MeshType = Enum.MeshType.Wedge | |
727 | Part7.Parent = Model0 | |
728 | Part7.Material = Enum.Material.Neon | |
729 | Part7.Anchored = true | |
730 | Part7.CanCollide = false | |
731 | Part7.Size = Vector3.new(0.880000055, 0.256000012, 0.064000003) | |
732 | Part7.CFrame = CFrame.new(-23.9239979, 15.960001, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
733 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
734 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
735 | Part7.Position = Vector3.new(-23.9239979, 15.960001, 15.75) | |
736 | Part7.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
737 | Part8.Parent = Model0 | |
738 | Part8.Material = Enum.Material.Neon | |
739 | Part8.Rotation = Vector3.new(-180, 0, -18.4300003) | |
740 | Part8.Anchored = true | |
741 | Part8.CanCollide = false | |
742 | Part8.Size = Vector3.new(0.252982229, 0.243683979, 0.064000003) | |
743 | Part8.CFrame = CFrame.new(-23.567997, 16.0119991, 15.75, 0.948683262, 0.316227764, 0, 0.316227764, -0.948683262, 0, 0, 0, -1) | |
744 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
745 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
746 | Part8.Position = Vector3.new(-23.567997, 16.0119991, 15.75) | |
747 | Part8.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
748 | Part9.Parent = Model0 | |
749 | Part9.Material = Enum.Material.Neon | |
750 | Part9.Anchored = true | |
751 | Part9.CanCollide = false | |
752 | Part9.Size = Vector3.new(0.880000055, 0.24000001, 0.0800000057) | |
753 | Part9.CFrame = CFrame.new(-23.9239979, 15.960001, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
754 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
755 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
756 | Part9.Position = Vector3.new(-23.9239979, 15.960001, 15.75) | |
757 | Part9.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
758 | Part10.Parent = Model0 | |
759 | Part10.Material = Enum.Material.Neon | |
760 | Part10.Anchored = true | |
761 | Part10.CanCollide = false | |
762 | Part10.Size = Vector3.new(1.28000009, 0.320000023, 0.0800000057) | |
763 | Part10.CFrame = CFrame.new(-22.843998, 16, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
764 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
765 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
766 | Part10.Position = Vector3.new(-22.843998, 16, 15.75) | |
767 | Part10.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
768 | Part11.Name = "asd" | |
769 | Part11.Parent = Model0 | |
770 | Part11.Material = Enum.Material.Neon | |
771 | Part11.Transparency = 1 | |
772 | Part11.Anchored = true | |
773 | Part11.CanCollide = false | |
774 | Part11.Size = Vector3.new(0.320000023, 0.320000023, 0.0960000083) | |
775 | Part11.CFrame = CFrame.new(-22.3639965, 16, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
776 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
777 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
778 | Part11.Position = Vector3.new(-22.3639965, 16, 15.75) | |
779 | Part11.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
780 | weld(Model0) | |
781 | Model1 = Model0:Clone() | |
782 | Model1.Parent = char | |
783 | l2=newWeld(torso,Model0.asd,-0.8,0.6,0.5) | |
784 | r2=newWeld(torso,Model1.asd,0.8,0.6,0.5) | |
785 | Model1.asd.Weld.C1 = CFrame.Angles(0,math.rad(180),0) | |
786 | ||
787 | Model0 = Instance.new("Model") | |
788 | Part1 = Instance.new("Part") | |
789 | Part2 = Instance.new("Part") | |
790 | Part3 = Instance.new("Part") | |
791 | Part4 = Instance.new("Part") | |
792 | SpecialMesh5 = Instance.new("SpecialMesh") | |
793 | Part6 = Instance.new("Part") | |
794 | Part7 = Instance.new("Part") | |
795 | Part8 = Instance.new("Part") | |
796 | SpecialMesh9 = Instance.new("SpecialMesh") | |
797 | Part10 = Instance.new("Part") | |
798 | Part11 = Instance.new("Part") | |
799 | Model0.Name = "1" | |
800 | Model0.Parent = char | |
801 | Part1.Parent = Model0 | |
802 | Part1.Material = Enum.Material.Neon | |
803 | Part1.Anchored = true | |
804 | Part1.CanCollide = false | |
805 | Part1.Size = Vector3.new(0.704000056, 0.192000017, 0.064000003) | |
806 | Part1.CFrame = CFrame.new(-23.8791981, 13.9680004, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
807 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
808 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
809 | Part1.Position = Vector3.new(-23.8791981, 13.9680004, 15.75) | |
810 | Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
811 | Part2.Parent = Model0 | |
812 | Part2.Material = Enum.Material.Neon | |
813 | Part2.Rotation = Vector3.new(-180, 0, -18.4300003) | |
814 | Part2.Anchored = true | |
815 | Part2.CanCollide = false | |
816 | Part2.Size = Vector3.new(0.202385783, 0.194947183, 0.0512000024) | |
817 | Part2.CFrame = CFrame.new(-23.5943966, 14.0095997, 15.75, 0.948683262, 0.316227764, 0, 0.316227764, -0.948683262, 0, 0, 0, -1) | |
818 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
819 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
820 | Part2.Position = Vector3.new(-23.5943966, 14.0095997, 15.75) | |
821 | Part2.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
822 | Part3.Parent = Model0 | |
823 | Part3.Material = Enum.Material.Neon | |
824 | Part3.Rotation = Vector3.new(-180, 0, -18.4300003) | |
825 | Part3.Anchored = true | |
826 | Part3.CanCollide = false | |
827 | Part3.Size = Vector3.new(0.202385783, 0.182147205, 0.064000003) | |
828 | Part3.CFrame = CFrame.new(-23.5943966, 14.0095997, 15.75, 0.948683262, 0.316227764, 0, 0.316227764, -0.948683262, 0, 0, 0, -1) | |
829 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
830 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
831 | Part3.Position = Vector3.new(-23.5943966, 14.0095997, 15.75) | |
832 | Part3.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
833 | Part4.Parent = Model0 | |
834 | Part4.Material = Enum.Material.Neon | |
835 | Part4.Rotation = Vector3.new(-180, 90, 0) | |
836 | Part4.Anchored = true | |
837 | Part4.CanCollide = false | |
838 | Part4.Size = Vector3.new(0.0639999658, 0.192000017, 0.640000045) | |
839 | Part4.CFrame = CFrame.new(-24.5511971, 13.9680004, 15.75, -4.37113883e-08, 0, 1, -8.74227766e-08, -0.99999994, -3.82137093e-15, 1, -8.74227695e-08, 4.37113883e-08) | |
840 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
841 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
842 | Part4.Position = Vector3.new(-24.5511971, 13.9680004, 15.75) | |
843 | Part4.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
844 | SpecialMesh5.Parent = Part4 | |
845 | SpecialMesh5.MeshType = Enum.MeshType.Wedge | |
846 | Part6.Parent = Model0 | |
847 | Part6.Material = Enum.Material.Neon | |
848 | Part6.Anchored = true | |
849 | Part6.CanCollide = false | |
850 | Part6.Size = Vector3.new(1.03680015, 0.26879999, 0.0512000024) | |
851 | Part6.CFrame = CFrame.new(-23.0151978, 14, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
852 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
853 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
854 | Part6.Position = Vector3.new(-23.0151978, 14, 15.75) | |
855 | Part6.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
856 | Part7.Name = "asd" | |
857 | Part7.Parent = Model0 | |
858 | Part7.Material = Enum.Material.Neon | |
859 | Part7.Transparency = 1 | |
860 | Part7.Anchored = true | |
861 | Part7.CanCollide = false | |
862 | Part7.Size = Vector3.new(0.256000012, 0.256000012, 0.0768000111) | |
863 | Part7.CFrame = CFrame.new(-22.631197, 14, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
864 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
865 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
866 | Part7.Position = Vector3.new(-22.631197, 14, 15.75) | |
867 | Part7.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
868 | Part8.Parent = Model0 | |
869 | Part8.Material = Enum.Material.Neon | |
870 | Part8.Rotation = Vector3.new(-180, 90, 0) | |
871 | Part8.Anchored = true | |
872 | Part8.CanCollide = false | |
873 | Part8.Size = Vector3.new(0.0511999689, 0.20480001, 0.67200011) | |
874 | Part8.CFrame = CFrame.new(-24.5671959, 13.9680004, 15.75, -4.37113883e-08, 0, 1, -8.74227766e-08, -0.99999994, -3.82137093e-15, 1, -8.74227695e-08, 4.37113883e-08) | |
875 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
876 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
877 | Part8.Position = Vector3.new(-24.5671959, 13.9680004, 15.75) | |
878 | Part8.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
879 | SpecialMesh9.Parent = Part8 | |
880 | SpecialMesh9.MeshType = Enum.MeshType.Wedge | |
881 | Part10.Parent = Model0 | |
882 | Part10.Material = Enum.Material.Neon | |
883 | Part10.Anchored = true | |
884 | Part10.CanCollide = false | |
885 | Part10.Size = Vector3.new(1.02400005, 0.256000012, 0.064000003) | |
886 | Part10.CFrame = CFrame.new(-23.0151978, 14, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
887 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
888 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
889 | Part10.Position = Vector3.new(-23.0151978, 14, 15.75) | |
890 | Part10.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
891 | Part11.Parent = Model0 | |
892 | Part11.Material = Enum.Material.Neon | |
893 | Part11.Anchored = true | |
894 | Part11.CanCollide = false | |
895 | Part11.Size = Vector3.new(0.704000056, 0.20480001, 0.0512000024) | |
896 | Part11.CFrame = CFrame.new(-23.8791981, 13.9680004, 15.75, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
897 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
898 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
899 | Part11.Position = Vector3.new(-23.8791981, 13.9680004, 15.75) | |
900 | Part11.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
901 | weld(Model0) | |
902 | Model1 = Model0:Clone() | |
903 | Model1.Parent = char | |
904 | l3=newWeld(torso,Model0.asd,-0.8,0.4,0.5) | |
905 | r3=newWeld(torso,Model1.asd,0.8,0.4,0.5) | |
906 | Model1.asd.Weld.C1 = CFrame.Angles(0,math.rad(180),0) | |
907 | ||
908 | Model0 = Instance.new("Model") | |
909 | Part1 = Instance.new("Part") | |
910 | SpecialMesh2 = Instance.new("SpecialMesh") | |
911 | Part3 = Instance.new("Part") | |
912 | Part4 = Instance.new("Part") | |
913 | SpecialMesh5 = Instance.new("SpecialMesh") | |
914 | Part6 = Instance.new("Part") | |
915 | SpecialMesh7 = Instance.new("SpecialMesh") | |
916 | Part8 = Instance.new("Part") | |
917 | SpecialMesh9 = Instance.new("SpecialMesh") | |
918 | Part10 = Instance.new("Part") | |
919 | Part11 = Instance.new("Part") | |
920 | SpecialMesh12 = Instance.new("SpecialMesh") | |
921 | Model0.Parent = char | |
922 | Part1.Parent = Model0 | |
923 | Part1.Rotation = Vector3.new(0, 90, 0) | |
924 | Part1.Anchored = true | |
925 | Part1.CanCollide = false | |
926 | Part1.Size = Vector3.new(0.42840001, 0.894600034, 1.18440008) | |
927 | Part1.CFrame = CFrame.new(-40.6850014, 7.97090054, 29, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08) | |
928 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
929 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
930 | Part1.Position = Vector3.new(-40.6850014, 7.97090054, 29) | |
931 | Part1.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
932 | SpecialMesh2.Parent = Part1 | |
933 | SpecialMesh2.MeshType = Enum.MeshType.Cylinder | |
934 | Part3.Parent = Model0 | |
935 | Part3.Rotation = Vector3.new(0, 90, 0) | |
936 | Part3.Anchored = true | |
937 | Part3.CanCollide = false | |
938 | Part3.Size = Vector3.new(0.42840001, 0.447300076, 1.52460003) | |
939 | Part3.CFrame = CFrame.new(-41, 7.74725056, 29, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08) | |
940 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
941 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
942 | Part3.Position = Vector3.new(-41, 7.74725056, 29) | |
943 | Part3.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
944 | Part4.Parent = Model0 | |
945 | Part4.Rotation = Vector3.new(0, 90, 0) | |
946 | Part4.Anchored = true | |
947 | Part4.CanCollide = false | |
948 | Part4.Size = Vector3.new(0.42840001, 0.894600034, 1.18440008) | |
949 | Part4.CFrame = CFrame.new(-41.3149986, 7.97090054, 29, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08) | |
950 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
951 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
952 | Part4.Position = Vector3.new(-41.3149986, 7.97090054, 29) | |
953 | Part4.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
954 | SpecialMesh5.Parent = Part4 | |
955 | SpecialMesh5.MeshType = Enum.MeshType.Cylinder | |
956 | Part6.Parent = Model0 | |
957 | Part6.Anchored = true | |
958 | Part6.CanCollide = false | |
959 | Part6.Size = Vector3.new(1.71360004, 0.504000008, 0.504000008) | |
960 | Part6.CFrame = CFrame.new(-41, 7.61180019, 29, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
961 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
962 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
963 | Part6.Position = Vector3.new(-41, 7.61180019, 29) | |
964 | Part6.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
965 | SpecialMesh7.Parent = Part6 | |
966 | SpecialMesh7.MeshType = Enum.MeshType.Cylinder | |
967 | Part8.Name = "asd" | |
968 | Part8.Parent = Model0 | |
969 | Part8.Transparency = 1 | |
970 | Part8.Anchored = true | |
971 | Part8.CanCollide = false | |
972 | Part8.Size = Vector3.new(2.51999998, 1.25999999, 1.25999999) | |
973 | Part8.CFrame = CFrame.new(-41, 7.61180019, 29, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
974 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
975 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
976 | Part8.Position = Vector3.new(-41, 7.61180019, 29) | |
977 | SpecialMesh9.Parent = Part8 | |
978 | SpecialMesh9.Scale = Vector3.new(1.25, 1.25, 1.25) | |
979 | SpecialMesh9.Scale = Vector3.new(1.25, 1.25, 1.25) | |
980 | Part10.Parent = Model0 | |
981 | Part10.Rotation = Vector3.new(0, 90, 0) | |
982 | Part10.Anchored = true | |
983 | Part10.CanCollide = false | |
984 | Part10.Size = Vector3.new(0.42840001, 0.894600153, 0.630000055) | |
985 | Part10.CFrame = CFrame.new(-41, 7.97089958, 29, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08) | |
986 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
987 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
988 | Part10.Position = Vector3.new(-41, 7.97089958, 29) | |
989 | Part10.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
990 | Part11.Parent = Model0 | |
991 | Part11.Material = Enum.Material.Neon | |
992 | Part11.Anchored = true | |
993 | Part11.CanCollide = false | |
994 | Part11.Size = Vector3.new(1.73879993, 0.453599989, 0.453599989) | |
995 | Part11.CFrame = CFrame.new(-41, 7.61180019, 29, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
996 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
997 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
998 | Part11.Position = Vector3.new(-41, 7.61180019, 29) | |
999 | Part11.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1000 | SpecialMesh12.Parent = Part11 | |
1001 | SpecialMesh12.MeshType = Enum.MeshType.Cylinder | |
1002 | weld(Model0) | |
1003 | newWeld(hed,Model0.asd,0,0.15,0) | |
1004 | ||
1005 | Model0 = Instance.new("Model") | |
1006 | Part1 = Instance.new("Part") | |
1007 | Part2 = Instance.new("Part") | |
1008 | Part3 = Instance.new("Part") | |
1009 | Part4 = Instance.new("Part") | |
1010 | Model0.Parent = char | |
1011 | Part1.Parent = Model0 | |
1012 | Part1.Anchored = true | |
1013 | Part1.CanCollide = false | |
1014 | Part1.Size = Vector3.new(1.01999998, 1.20000005, 1.01999998) | |
1015 | Part1.CFrame = CFrame.new(-126, 27.1849995, 11, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1016 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
1017 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
1018 | Part1.Position = Vector3.new(-126, 27.1849995, 11) | |
1019 | Part1.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1020 | Part2.Name = "asd" | |
1021 | Part2.Parent = Model0 | |
1022 | Part2.Transparency = 1 | |
1023 | Part2.Anchored = true | |
1024 | Part2.CanCollide = false | |
1025 | Part2.Size = Vector3.new(1, 2, 1) | |
1026 | Part2.CFrame = CFrame.new(-126, 27.5949993, 11, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1027 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
1028 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
1029 | Part2.Position = Vector3.new(-126, 27.5949993, 11) | |
1030 | Part3.Parent = Model0 | |
1031 | Part3.Anchored = true | |
1032 | Part3.CanCollide = false | |
1033 | Part3.Size = Vector3.new(1.01999998, 0.0799999833, 0.289999962) | |
1034 | Part3.CFrame = CFrame.new(-126, 26.5450001, 10.6350002, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1035 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
1036 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
1037 | Part3.Position = Vector3.new(-126, 26.5450001, 10.6350002) | |
1038 | Part3.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1039 | Part4.Parent = Model0 | |
1040 | Part4.Anchored = true | |
1041 | Part4.CanCollide = false | |
1042 | Part4.Size = Vector3.new(1.01999998, 0.0799999833, 0.590000033) | |
1043 | Part4.CFrame = CFrame.new(-126, 26.5450001, 11.2150002, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1044 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
1045 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
1046 | Part4.Position = Vector3.new(-126, 26.5450001, 11.2150002) | |
1047 | Part4.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1048 | weld(Model0) | |
1049 | Model1 = Model0:Clone() | |
1050 | Model1.Parent = char | |
1051 | newWeld(lleg,Model0.asd,0,0,0) | |
1052 | newWeld(rleg,Model1.asd,0,0,0) | |
1053 | Model0.asd.Weld.C1 = CFrame.Angles(0,math.rad(180),0) | |
1054 | Model1.asd.Weld.C1 = CFrame.Angles(0,math.rad(180),0) | |
1055 | ||
1056 | Model0 = Instance.new("Model") | |
1057 | WedgePart1 = Instance.new("WedgePart") | |
1058 | WedgePart2 = Instance.new("WedgePart") | |
1059 | WedgePart3 = Instance.new("WedgePart") | |
1060 | WedgePart4 = Instance.new("WedgePart") | |
1061 | WedgePart5 = Instance.new("WedgePart") | |
1062 | WedgePart6 = Instance.new("WedgePart") | |
1063 | WedgePart7 = Instance.new("WedgePart") | |
1064 | Part8 = Instance.new("Part") | |
1065 | WedgePart9 = Instance.new("WedgePart") | |
1066 | WedgePart10 = Instance.new("WedgePart") | |
1067 | Part11 = Instance.new("Part") | |
1068 | Part12 = Instance.new("Part") | |
1069 | WedgePart13 = Instance.new("WedgePart") | |
1070 | Model0.Parent = char | |
1071 | WedgePart1.Name = "Part" | |
1072 | WedgePart1.Parent = Model0 | |
1073 | WedgePart1.Material = Enum.Material.Neon | |
1074 | WedgePart1.Rotation = Vector3.new(-108, 0, -180) | |
1075 | WedgePart1.Anchored = true | |
1076 | WedgePart1.CanCollide = false | |
1077 | WedgePart1.FormFactor = Enum.FormFactor.Custom | |
1078 | WedgePart1.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1079 | WedgePart1.CFrame = CFrame.new(-96.4881439, 27.3141098, 11.1037397, -1, 1.92567839e-07, -1.35075409e-08, 4.66602721e-08, 0.309017152, 0.951056719, 1.87316914e-07, 0.951056778, -0.309017181) | |
1080 | WedgePart1.BottomSurface = Enum.SurfaceType.Smooth | |
1081 | WedgePart1.Position = Vector3.new(-96.4881439, 27.3141098, 11.1037397) | |
1082 | WedgePart1.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1083 | WedgePart2.Name = "Part" | |
1084 | WedgePart2.Parent = Model0 | |
1085 | WedgePart2.Material = Enum.Material.Neon | |
1086 | WedgePart2.Rotation = Vector3.new(-144, 0, 0) | |
1087 | WedgePart2.Anchored = true | |
1088 | WedgePart2.CanCollide = false | |
1089 | WedgePart2.FormFactor = Enum.FormFactor.Custom | |
1090 | WedgePart2.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1091 | WedgePart2.CFrame = CFrame.new(-96.4881439, 27.2292633, 10.9869566, 1, 1.25302876e-07, -3.53632679e-08, 1.22158227e-07, -0.809017241, 0.587785363, 4.50418014e-08, -0.587785423, -0.809017301) | |
1092 | WedgePart2.BottomSurface = Enum.SurfaceType.Smooth | |
1093 | WedgePart2.Position = Vector3.new(-96.4881439, 27.2292633, 10.9869566) | |
1094 | WedgePart2.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1095 | WedgePart3.Name = "Part" | |
1096 | WedgePart3.Parent = Model0 | |
1097 | WedgePart3.Material = Enum.Material.Neon | |
1098 | WedgePart3.Rotation = Vector3.new(144, 0, 0) | |
1099 | WedgePart3.Anchored = true | |
1100 | WedgePart3.CanCollide = false | |
1101 | WedgePart3.FormFactor = Enum.FormFactor.Custom | |
1102 | WedgePart3.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1103 | WedgePart3.CFrame = CFrame.new(-96.4881439, 27.2702789, 11.0894966, 1, 1.76688729e-07, -3.53633034e-08, 1.22158212e-07, -0.809017181, -0.587785423, -1.32464464e-07, 0.587785482, -0.809017241) | |
1104 | WedgePart3.BottomSurface = Enum.SurfaceType.Smooth | |
1105 | WedgePart3.Position = Vector3.new(-96.4881439, 27.2702789, 11.0894966) | |
1106 | WedgePart3.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1107 | WedgePart4.Name = "Part" | |
1108 | WedgePart4.Parent = Model0 | |
1109 | WedgePart4.Material = Enum.Material.Neon | |
1110 | WedgePart4.Anchored = true | |
1111 | WedgePart4.CanCollide = false | |
1112 | WedgePart4.FormFactor = Enum.FormFactor.Custom | |
1113 | WedgePart4.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1114 | WedgePart4.CFrame = CFrame.new(-96.4881439, 27.4075661, 10.9751081, 1, 1.61467536e-14, 4.37114345e-08, 8.69356246e-15, 1.00000024, 0, -4.37113421e-08, -7.05797007e-22, 1.00000036) | |
1115 | WedgePart4.BottomSurface = Enum.SurfaceType.Smooth | |
1116 | WedgePart4.Position = Vector3.new(-96.4881439, 27.4075661, 10.9751081) | |
1117 | WedgePart4.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1118 | WedgePart5.Name = "Part" | |
1119 | WedgePart5.Parent = Model0 | |
1120 | WedgePart5.Material = Enum.Material.Neon | |
1121 | WedgePart5.Rotation = Vector3.new(-180, 0, -180) | |
1122 | WedgePart5.Anchored = true | |
1123 | WedgePart5.CanCollide = false | |
1124 | WedgePart5.FormFactor = Enum.FormFactor.Custom | |
1125 | WedgePart5.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1126 | WedgePart5.CFrame = CFrame.new(-96.4881439, 27.4075661, 11.0448904, -1, 1.61467536e-14, -4.37114345e-08, -8.69356246e-15, 1.00000024, 0, 4.37113421e-08, -7.05797007e-22, -1.00000036) | |
1127 | WedgePart5.BottomSurface = Enum.SurfaceType.Smooth | |
1128 | WedgePart5.Position = Vector3.new(-96.4881439, 27.4075661, 11.0448904) | |
1129 | WedgePart5.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1130 | WedgePart6.Name = "Part" | |
1131 | WedgePart6.Parent = Model0 | |
1132 | WedgePart6.Material = Enum.Material.Neon | |
1133 | WedgePart6.Rotation = Vector3.new(72, 0, 0) | |
1134 | WedgePart6.Anchored = true | |
1135 | WedgePart6.CanCollide = false | |
1136 | WedgePart6.FormFactor = Enum.FormFactor.Custom | |
1137 | WedgePart6.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1138 | WedgePart6.CFrame = CFrame.new(-96.4881439, 27.380476, 11.0821753, 1, 1.92567839e-07, 1.35075409e-08, -4.66602721e-08, 0.309017152, -0.951056719, -1.87316914e-07, 0.951056778, 0.309017181) | |
1139 | WedgePart6.BottomSurface = Enum.SurfaceType.Smooth | |
1140 | WedgePart6.Position = Vector3.new(-96.4881439, 27.380476, 11.0821753) | |
1141 | WedgePart6.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1142 | WedgePart7.Name = "Part" | |
1143 | WedgePart7.Parent = Model0 | |
1144 | WedgePart7.Material = Enum.Material.Neon | |
1145 | WedgePart7.Rotation = Vector3.new(-72, 0, 0) | |
1146 | WedgePart7.Anchored = true | |
1147 | WedgePart7.CanCollide = false | |
1148 | WedgePart7.FormFactor = Enum.FormFactor.Custom | |
1149 | WedgePart7.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1150 | WedgePart7.CFrame = CFrame.new(-96.4881439, 27.3141098, 10.9162607, 1, 4.58507792e-08, 1.35075773e-08, -2.70151279e-08, 0.309017092, 0.951056719, 3.94326847e-08, -0.951056778, 0.309017122) | |
1151 | WedgePart7.BottomSurface = Enum.SurfaceType.Smooth | |
1152 | WedgePart7.Position = Vector3.new(-96.4881439, 27.3141098, 10.9162607) | |
1153 | WedgePart7.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1154 | Part8.Parent = Model0 | |
1155 | Part8.Anchored = true | |
1156 | Part8.CanCollide = false | |
1157 | Part8.Size = Vector3.new(0.539999962, 0.149999961, 1.01999998) | |
1158 | Part8.CFrame = CFrame.new(-96.2506638, 27.0200005, 11, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1159 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
1160 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
1161 | Part8.Position = Vector3.new(-96.2506638, 27.0200005, 11) | |
1162 | Part8.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
1163 | WedgePart9.Name = "Part" | |
1164 | WedgePart9.Parent = Model0 | |
1165 | WedgePart9.Material = Enum.Material.Neon | |
1166 | WedgePart9.Rotation = Vector3.new(-36, 0, -180) | |
1167 | WedgePart9.Anchored = true | |
1168 | WedgePart9.CanCollide = false | |
1169 | WedgePart9.FormFactor = Enum.FormFactor.Custom | |
1170 | WedgePart9.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1171 | WedgePart9.CFrame = CFrame.new(-96.4881439, 27.2292633, 11.0330429, -1, 1.76688729e-07, 3.53633034e-08, -1.22158212e-07, -0.809017181, 0.587785423, 1.32464464e-07, 0.587785482, 0.809017241) | |
1172 | WedgePart9.BottomSurface = Enum.SurfaceType.Smooth | |
1173 | WedgePart9.Position = Vector3.new(-96.4881439, 27.2292633, 11.0330429) | |
1174 | WedgePart9.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1175 | WedgePart10.Name = "Part" | |
1176 | WedgePart10.Parent = Model0 | |
1177 | WedgePart10.Material = Enum.Material.Neon | |
1178 | WedgePart10.Rotation = Vector3.new(108, 0, -180) | |
1179 | WedgePart10.Anchored = true | |
1180 | WedgePart10.CanCollide = false | |
1181 | WedgePart10.FormFactor = Enum.FormFactor.Custom | |
1182 | WedgePart10.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1183 | WedgePart10.CFrame = CFrame.new(-96.4881439, 27.380476, 10.9378242, -1, 4.58507792e-08, -1.35075773e-08, 2.70151279e-08, 0.309017092, -0.951056719, -3.94326847e-08, -0.951056778, -0.309017122) | |
1184 | WedgePart10.BottomSurface = Enum.SurfaceType.Smooth | |
1185 | WedgePart10.Position = Vector3.new(-96.4881439, 27.380476, 10.9378242) | |
1186 | WedgePart10.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1187 | Part11.Parent = Model0 | |
1188 | Part11.Anchored = true | |
1189 | Part11.CanCollide = false | |
1190 | Part11.Size = Vector3.new(1.01999998, 0.440000027, 1.01999998) | |
1191 | Part11.CFrame = CFrame.new(-96.0106659, 27.3150005, 11, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1192 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
1193 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
1194 | Part11.Position = Vector3.new(-96.0106659, 27.3150005, 11) | |
1195 | Part11.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
1196 | Part12.Name = "asd" | |
1197 | Part12.Parent = Model0 | |
1198 | Part12.Transparency = 1 | |
1199 | Part12.Anchored = true | |
1200 | Part12.CanCollide = false | |
1201 | Part12.Size = Vector3.new(1, 2, 1) | |
1202 | Part12.CFrame = CFrame.new(-96.0106659, 27.9549999, 11, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1203 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
1204 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
1205 | Part12.Position = Vector3.new(-96.0106659, 27.9549999, 11) | |
1206 | WedgePart13.Name = "Part" | |
1207 | WedgePart13.Parent = Model0 | |
1208 | WedgePart13.Material = Enum.Material.Neon | |
1209 | WedgePart13.Rotation = Vector3.new(36, 0, -180) | |
1210 | WedgePart13.Anchored = true | |
1211 | WedgePart13.CanCollide = false | |
1212 | WedgePart13.FormFactor = Enum.FormFactor.Custom | |
1213 | WedgePart13.Size = Vector3.new(0.069781214, 0.174453035, 0.069781214) | |
1214 | WedgePart13.CFrame = CFrame.new(-96.4881439, 27.2702789, 10.9305029, -1, 1.25302876e-07, 3.53632679e-08, -1.22158227e-07, -0.809017241, -0.587785363, -4.50418014e-08, -0.587785423, 0.809017301) | |
1215 | WedgePart13.BottomSurface = Enum.SurfaceType.Smooth | |
1216 | WedgePart13.Position = Vector3.new(-96.4881439, 27.2702789, 10.9305029) | |
1217 | WedgePart13.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1218 | weld(Model0) | |
1219 | Model1 = Model0:Clone() | |
1220 | Model1.Parent = char | |
1221 | newWeld(larm,Model0.asd,0,0,0) | |
1222 | newWeld(rarm,Model1.asd,0,0,0) | |
1223 | Model1.asd.Weld.C1 = CFrame.Angles(0,math.rad(180),0) | |
1224 | ||
1225 | Model0 = Instance.new("Model") | |
1226 | Part1 = Instance.new("Part") | |
1227 | SpecialMesh2 = Instance.new("SpecialMesh") | |
1228 | Part3 = Instance.new("Part") | |
1229 | Part4 = Instance.new("Part") | |
1230 | SpecialMesh5 = Instance.new("SpecialMesh") | |
1231 | Part6 = Instance.new("Part") | |
1232 | SpecialMesh7 = Instance.new("SpecialMesh") | |
1233 | Part8 = Instance.new("Part") | |
1234 | SpecialMesh9 = Instance.new("SpecialMesh") | |
1235 | Part10 = Instance.new("Part") | |
1236 | SpecialMesh11 = Instance.new("SpecialMesh") | |
1237 | Part12 = Instance.new("Part") | |
1238 | SpecialMesh13 = Instance.new("SpecialMesh") | |
1239 | Part14 = Instance.new("Part") | |
1240 | Part15 = Instance.new("Part") | |
1241 | Part16 = Instance.new("Part") | |
1242 | Part17 = Instance.new("Part") | |
1243 | Part18 = Instance.new("Part") | |
1244 | SpecialMesh19 = Instance.new("SpecialMesh") | |
1245 | Part20 = Instance.new("Part") | |
1246 | SpecialMesh21 = Instance.new("SpecialMesh") | |
1247 | Part22 = Instance.new("Part") | |
1248 | Model0.Parent = char | |
1249 | Part1.Parent = Model0 | |
1250 | Part1.Rotation = Vector3.new(-90, 0, 90) | |
1251 | Part1.Anchored = true | |
1252 | Part1.CanCollide = false | |
1253 | Part1.Size = Vector3.new(0.0500000007, 0.170000002, 0.349999964) | |
1254 | Part1.CFrame = CFrame.new(-62.0849991, 28.1099987, 10.312499, 1.71961681e-14, -0.99999994, -3.93402502e-07, -4.37113883e-08, -3.93402445e-07, 1, -0.99999994, 0, -4.37113847e-08) | |
1255 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
1256 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
1257 | Part1.Position = Vector3.new(-62.0849991, 28.1099987, 10.312499) | |
1258 | Part1.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1259 | SpecialMesh2.Parent = Part1 | |
1260 | SpecialMesh2.MeshType = Enum.MeshType.Wedge | |
1261 | Part3.Parent = Model0 | |
1262 | Part3.Anchored = true | |
1263 | Part3.CanCollide = false | |
1264 | Part3.Size = Vector3.new(2.02000022, 1.16000009, 1.01999998) | |
1265 | Part3.CFrame = CFrame.new(-62, 28.414999, 10.8424988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1266 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
1267 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
1268 | Part3.Position = Vector3.new(-62, 28.414999, 10.8424988) | |
1269 | Part3.Color = Color3.new(0.129412, 0.329412, 0.72549) | |
1270 | Part4.Parent = Model0 | |
1271 | Part4.Rotation = Vector3.new(-90, 0, -90) | |
1272 | Part4.Anchored = true | |
1273 | Part4.CanCollide = false | |
1274 | Part4.Size = Vector3.new(0.0500000007, 0.140000015, 0.159999996) | |
1275 | Part4.CFrame = CFrame.new(-61.9300003, 28.8049984, 10.312499, 8.74227837e-08, 0.99999994, -1.31134158e-07, -4.37113741e-08, 1.31134158e-07, 1, 0.99999994, -8.74227695e-08, 4.37113812e-08) | |
1276 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
1277 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
1278 | Part4.Position = Vector3.new(-61.9300003, 28.8049984, 10.312499) | |
1279 | Part4.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1280 | SpecialMesh5.Parent = Part4 | |
1281 | SpecialMesh5.MeshType = Enum.MeshType.Wedge | |
1282 | Part6.Parent = Model0 | |
1283 | Part6.Rotation = Vector3.new(-90, 0, -90) | |
1284 | Part6.Anchored = true | |
1285 | Part6.CanCollide = false | |
1286 | Part6.Size = Vector3.new(0.0500000007, 0.170000002, 0.349999964) | |
1287 | Part6.CFrame = CFrame.new(-61.9150009, 28.1099987, 10.312499, 8.74227979e-08, 0.99999994, -3.05979711e-07, -4.37113599e-08, 3.05979682e-07, 1, 0.99999994, -8.74227695e-08, 4.37113812e-08) | |
1288 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
1289 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
1290 | Part6.Position = Vector3.new(-61.9150009, 28.1099987, 10.312499) | |
1291 | Part6.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1292 | SpecialMesh7.Parent = Part6 | |
1293 | SpecialMesh7.MeshType = Enum.MeshType.Wedge | |
1294 | Part8.Parent = Model0 | |
1295 | Part8.Rotation = Vector3.new(90, 0, 90) | |
1296 | Part8.Anchored = true | |
1297 | Part8.CanCollide = false | |
1298 | Part8.Size = Vector3.new(0.0500000007, 0.170000002, 0.639999986) | |
1299 | Part8.CFrame = CFrame.new(-62.0849991, 28.6049995, 10.312499, -8.74227908e-08, -0.99999994, 2.18556934e-07, 4.3711367e-08, -2.1855692e-07, -1, 0.99999994, -8.74227695e-08, 4.37113812e-08) | |
1300 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
1301 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
1302 | Part8.Position = Vector3.new(-62.0849991, 28.6049995, 10.312499) | |
1303 | Part8.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1304 | SpecialMesh9.Parent = Part8 | |
1305 | SpecialMesh9.MeshType = Enum.MeshType.Wedge | |
1306 | Part10.Parent = Model0 | |
1307 | Part10.Rotation = Vector3.new(90, 0, -90) | |
1308 | Part10.Anchored = true | |
1309 | Part10.CanCollide = false | |
1310 | Part10.Size = Vector3.new(0.0500000007, 0.140000015, 0.119999997) | |
1311 | Part10.CFrame = CFrame.new(-61.9300003, 28.9449997, 10.312499, -5.73205661e-15, 0.99999994, 1.31134158e-07, 4.37113883e-08, 1.31134158e-07, -1, -0.99999994, 0, -4.37113847e-08) | |
1312 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
1313 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
1314 | Part10.Position = Vector3.new(-61.9300003, 28.9449997, 10.312499) | |
1315 | Part10.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1316 | SpecialMesh11.Parent = Part10 | |
1317 | SpecialMesh11.MeshType = Enum.MeshType.Wedge | |
1318 | Part12.Parent = Model0 | |
1319 | Part12.Rotation = Vector3.new(90, 0, 90) | |
1320 | Part12.Anchored = true | |
1321 | Part12.CanCollide = false | |
1322 | Part12.Size = Vector3.new(0.0500000007, 0.140000015, 0.119999997) | |
1323 | Part12.CFrame = CFrame.new(-62.0699997, 28.9449997, 10.312499, -8.74227766e-08, -0.99999994, 4.37113847e-08, 4.37113812e-08, -4.37113847e-08, -1, 0.99999994, -8.74227695e-08, 4.37113812e-08) | |
1324 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
1325 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
1326 | Part12.Position = Vector3.new(-62.0699997, 28.9449997, 10.312499) | |
1327 | Part12.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1328 | SpecialMesh13.Parent = Part12 | |
1329 | SpecialMesh13.MeshType = Enum.MeshType.Wedge | |
1330 | Part14.Parent = Model0 | |
1331 | Part14.Anchored = true | |
1332 | Part14.CanCollide = false | |
1333 | Part14.Size = Vector3.new(0.700000226, 0.860000074, 0.550000012) | |
1334 | Part14.CFrame = CFrame.new(-61.3300018, 28.6349983, 10.5874987, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1335 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
1336 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
1337 | Part14.Position = Vector3.new(-61.3300018, 28.6349983, 10.5874987) | |
1338 | Part14.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1339 | Part15.Parent = Model0 | |
1340 | Part15.Anchored = true | |
1341 | Part15.CanCollide = false | |
1342 | Part15.Size = Vector3.new(2.0400002, 0.860000074, 0.49999997) | |
1343 | Part15.CFrame = CFrame.new(-62, 28.6349983, 11.1124992, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1344 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
1345 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
1346 | Part15.Position = Vector3.new(-62, 28.6349983, 11.1124992) | |
1347 | Part15.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1348 | Part16.Name = "asd" | |
1349 | Part16.Parent = Model0 | |
1350 | Part16.Transparency = 1 | |
1351 | Part16.Anchored = true | |
1352 | Part16.CanCollide = false | |
1353 | Part16.Size = Vector3.new(2, 2, 1) | |
1354 | Part16.CFrame = CFrame.new(-62, 28.0450001, 10.8424988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1355 | Part16.BottomSurface = Enum.SurfaceType.Smooth | |
1356 | Part16.TopSurface = Enum.SurfaceType.Smooth | |
1357 | Part16.Position = Vector3.new(-62, 28.0450001, 10.8424988) | |
1358 | Part17.Parent = Model0 | |
1359 | Part17.Anchored = true | |
1360 | Part17.CanCollide = false | |
1361 | Part17.Size = Vector3.new(2.02000022, 0.390000075, 1.01999998) | |
1362 | Part17.CFrame = CFrame.new(-62, 27.2299995, 10.8424988, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1363 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
1364 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
1365 | Part17.Position = Vector3.new(-62, 27.2299995, 10.8424988) | |
1366 | Part17.Color = Color3.new(0.129412, 0.329412, 0.72549) | |
1367 | Part18.Parent = Model0 | |
1368 | Part18.Rotation = Vector3.new(90, 0, -90) | |
1369 | Part18.Anchored = true | |
1370 | Part18.CanCollide = false | |
1371 | Part18.Size = Vector3.new(0.0500000007, 0.170000002, 0.639999986) | |
1372 | Part18.CFrame = CFrame.new(-61.9150009, 28.6049995, 10.312499, -1.33747976e-14, 0.99999994, 3.05979711e-07, 4.37113883e-08, 3.05979682e-07, -1, -0.99999994, 0, -4.37113847e-08) | |
1373 | Part18.BottomSurface = Enum.SurfaceType.Smooth | |
1374 | Part18.TopSurface = Enum.SurfaceType.Smooth | |
1375 | Part18.Position = Vector3.new(-61.9150009, 28.6049995, 10.312499) | |
1376 | Part18.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1377 | SpecialMesh19.Parent = Part18 | |
1378 | SpecialMesh19.MeshType = Enum.MeshType.Wedge | |
1379 | Part20.Parent = Model0 | |
1380 | Part20.Rotation = Vector3.new(-90, 0, 90) | |
1381 | Part20.Anchored = true | |
1382 | Part20.CanCollide = false | |
1383 | Part20.Size = Vector3.new(0.0500000007, 0.140000015, 0.159999996) | |
1384 | Part20.CFrame = CFrame.new(-62.0699997, 28.8049984, 10.312499, 9.55342711e-15, -0.99999994, -2.18556934e-07, -4.37113883e-08, -2.1855692e-07, 1, -0.99999994, 0, -4.37113847e-08) | |
1385 | Part20.BottomSurface = Enum.SurfaceType.Smooth | |
1386 | Part20.TopSurface = Enum.SurfaceType.Smooth | |
1387 | Part20.Position = Vector3.new(-62.0699997, 28.8049984, 10.312499) | |
1388 | Part20.Color = Color3.new(0.0156863, 0.686275, 0.92549) | |
1389 | SpecialMesh21.Parent = Part20 | |
1390 | SpecialMesh21.MeshType = Enum.MeshType.Wedge | |
1391 | Part22.Parent = Model0 | |
1392 | Part22.Anchored = true | |
1393 | Part22.CanCollide = false | |
1394 | Part22.Size = Vector3.new(0.700000226, 0.860000074, 0.550000012) | |
1395 | Part22.CFrame = CFrame.new(-62.6699982, 28.6349983, 10.5874987, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1396 | Part22.BottomSurface = Enum.SurfaceType.Smooth | |
1397 | Part22.TopSurface = Enum.SurfaceType.Smooth | |
1398 | Part22.Position = Vector3.new(-62.6699982, 28.6349983, 10.5874987) | |
1399 | Part22.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
1400 | weld(Model0) | |
1401 | - | v.Parent:FindFirstChildOfClass("Humanoid").Health = 0 |
1401 | + | |
1402 | ||
1403 | hair = Instance.new("Part",hed) | |
1404 | hair.Color = Color3.fromRGB(0, 100, 255) | |
1405 | hairm = Instance.new("SpecialMesh",hair) | |
1406 | hairm.MeshId = "rbxassetid://433031789" | |
1407 | hairm.Scale = Vector3.new(0.7,0.65,0.65) | |
1408 | hweld = newWeld(hed,hair,0,0,0) | |
1409 | hweld.C0 = CFrame.new(0.075,0.2,0)*CFrame.Angles(math.rad(0),math.rad(180),0) | |
1410 | ||
1411 | hair = Instance.new("Part",hed) | |
1412 | hair.Color = Color3.fromRGB(0, 100, 255) | |
1413 | hairm = Instance.new("SpecialMesh",hair) | |
1414 | hairm.MeshId = "rbxassetid://1389466576" | |
1415 | hairm.Scale = Vector3.new(0.035,0.035,0.03) | |
1416 | hweld = newWeld(hed,hair,0,0,0) | |
1417 | hweld.C0 = CFrame.new(0,-0.1,0.2)*CFrame.Angles(math.rad(0),math.rad(0),0) | |
1418 | ||
1419 | local jumped = false | |
1420 | ||
1421 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) | |
1422 | local magz = (Part0 - Part1).magnitude | |
1423 | local curpos = Part0 | |
1424 | local trz = {-Offset,Offset} | |
1425 | for i=1,Times do | |
1426 | local li = Instance.new("Part", DebrisModel) | |
1427 | li.TopSurface =0 | |
1428 | li.Material = Enum.Material.Neon | |
1429 | li.BottomSurface = 0 | |
1430 | li.Anchored = true | |
1431 | li.Locked = true | |
1432 | li.Transparency = Trans or 0.4 | |
1433 | li.Color = Color | |
1434 | li.formFactor = "Custom" | |
1435 | - | for i=1,10 do wait() |
1435 | + | |
1436 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
1437 | local lim = Instance.new("BlockMesh",li) | |
1438 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
1439 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
1440 | if Times == i then | |
1441 | local magz2 = (curpos - Part1).magnitude | |
1442 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
1443 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
1444 | else | |
1445 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
1446 | end | |
1447 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
1448 | li.Name = "LIGHTNING" | |
1449 | end | |
1450 | end | |
1451 | local woosh = false | |
1452 | local debounce = false | |
1453 | mouse.KeyDown:connect(function(key) | |
1454 | if key == "e" and debounce == false then | |
1455 | debounce = true | |
1456 | noidle = true | |
1457 | sound(1202656211,root.Position,10,math.random(300,350)/100) | |
1458 | local tempattach=Instance.new("Attachment",root) | |
1459 | tempattach.Position = Vector3.new(0,0,-20) | |
1460 | - | v.Parent:FindFirstChildOfClass("Humanoid").Health = 0 |
1460 | + | |
1461 | local temppos = root.Position | |
1462 | root.CFrame = CFrame.new(tempattach.WorldPosition)*CFrame.Angles(0,math.rad(root.Orientation.Y),0) | |
1463 | root.Velocity = Vector3.new() | |
1464 | for i,v in pairs(findAllNearestTorso(root.Position,30)) do | |
1465 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/75) | |
1466 | end | |
1467 | Lightning(root.Position+Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)),temppos+Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)), math.random(2,4), 2, Color3.fromHSV(0.5+math.random(0,1000)/10000,math.random(500,1000)/1000,1), .5, .56) | |
1468 | woosh = true | |
1469 | hed.Weld.C0 = CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0) | |
1470 | hed.Weld.C1 = CFrame.Angles(math.rad(-20),0,0) | |
1471 | larm.Weld.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(-5)) | |
1472 | rarm.Weld.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(5)) | |
1473 | torso.Weld.C0 = CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(-40),math.rad(0), math.rad(0)) | |
1474 | lleg.Weld.C0 = CFrame.new(-0.5,-0.6,-1)*CFrame.Angles(math.rad(-70),math.rad(0),math.rad(-1)) | |
1475 | rleg.Weld.C0 = CFrame.new(0.5,-0.95,0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(1)) | |
1476 | end | |
1477 | noidle = false | |
1478 | debounce = false | |
1479 | end | |
1480 | end) | |
1481 | ||
1482 | mouse.KeyDown:connect(function(key) | |
1483 | if key == "r" and debounce == false then | |
1484 | debounce = true | |
1485 | noidle = true | |
1486 | local bg = Instance.new("BodyGyro",root) | |
1487 | bg.Name = "lolnochara" | |
1488 | bg.P = 10000 | |
1489 | bg.D = 100 | |
1490 | bg.MaxTorque = Vector3.new(10000,10000,10000) | |
1491 | if jumped == false then | |
1492 | root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1493 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1494 | else | |
1495 | root.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1496 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1497 | end | |
1498 | local spd = 0.4 | |
1499 | for i=1,10 do wait() | |
1500 | if jumped == false then | |
1501 | bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z)) | |
1502 | else | |
1503 | bg.CFrame = CFrame.new(root.Position,mouse.Hit.p) | |
1504 | end | |
1505 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1506 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), spd) | |
1507 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1508 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), spd) | |
1509 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.5, 0) *CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), spd) | |
1510 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.2,-1)*CFrame.Angles(math.rad(-50),math.rad(-10),math.rad(-1)), spd) | |
1511 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(6)), spd) | |
1512 | - | v.Parent:FindFirstChildOfClass("Humanoid").Health = 0 |
1512 | + | |
1513 | ||
1514 | sound(1202656211,root.Position,10,math.random(90,110)/100) | |
1515 | ||
1516 | local Position = rarm.Position-rarm.CFrame.upVector | |
1517 | local Target = mouse.Hit.p | |
1518 | local direction = Target - Position | |
1519 | local direction = computeDirection(direction) | |
1520 | local ray = Ray.new(Position, (Target-Position).unit*1048) | |
1521 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
1522 | ||
1523 | for i,v in pairs(findAllNearestTorso(endPoint,30)) do | |
1524 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(10,12)) | |
1525 | end | |
1526 | ||
1527 | local Part0 = Effect(Enum.MeshType.Sphere,Vector3.new(2,(Position-endPoint).magnitude,2),0,Enum.Material.Neon,Color3.fromHSV(0,0,1),root.Position,Vector3.new(90,0,0),Vector3.new(),Vector3.new(-0.1,0,-0.1),Vector3.new(),0,-0.005) | |
1528 | local pos = Position + (direction * (Part0.Mesh.Scale.Y/2)) | |
1529 | Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0) | |
1530 | ||
1531 | for i=1,4 do | |
1532 | Lightning(rarm.Position-rarm.CFrame.upVector,endPoint, math.random(5,6), 2, Color3.fromHSV(0.5+math.random(0,1000)/10000,math.random(500,1000)/1000,1), .5, .56) | |
1533 | end | |
1534 | ||
1535 | if part then | |
1536 | sound(821439273,endPoint,10,math.random(90,110)/100) | |
1537 | for i=1,5 do | |
1538 | Effect(Enum.MeshType.Sphere,Vector3.new(1,1,1)*math.random(4,10),0,Enum.Material.Neon,Color3.fromHSV(0.5+math.random(0,1000)/10000,math.random(500,1000)/1000,1),endPoint+Vector3.new(math.random(-2,2)*5,math.random(-2,2)*5,math.random(-2,2)*5),Vector3.new(),Vector3.new(),Vector3.new(1,1,1),Vector3.new(),0.04,-0.002) | |
1539 | end | |
1540 | end | |
1541 | ||
1542 | bg:Destroy() | |
1543 | local spd = 0.5 | |
1544 | for i=1,5 do wait() | |
1545 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1546 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), spd) | |
1547 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1548 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(160),math.rad(0),math.rad(50)), spd) | |
1549 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.5, 0) *CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), spd) | |
1550 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.2,-1)*CFrame.Angles(math.rad(-50),math.rad(-10),math.rad(-1)), spd) | |
1551 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(6)), spd) | |
1552 | end | |
1553 | noidle = false | |
1554 | debounce = false | |
1555 | end | |
1556 | end) | |
1557 | ||
1558 | mouse.KeyDown:connect(function(key) | |
1559 | if key == "q" and debounce == false then | |
1560 | debounce = true | |
1561 | noidle = true | |
1562 | local mousepos = mouse.Hit.p | |
1563 | if (mousepos-root.Position).magnitude <= 150 then | |
1564 | sound(1202657035,mousepos,10,math.random(150,170)/100) | |
1565 | local spd = 0.4 | |
1566 | for i=1,10 do wait() | |
1567 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1568 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), spd) | |
1569 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd) | |
1570 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(170),math.rad(0),math.rad(50)), spd) | |
1571 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.5, 0) *CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), spd) | |
1572 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.2,-1)*CFrame.Angles(math.rad(-50),math.rad(-10),math.rad(-1)), spd) | |
1573 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(6)), spd) | |
1574 | end | |
1575 | for i,v in pairs(findAllNearestTorso(mousepos,15)) do | |
1576 | v.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(v.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/math.random(5,6)) | |
1577 | end | |
1578 | local tempcolor = Color3.fromHSV(0.5+math.random(0,1000)/10000,0.5,1) | |
1579 | coroutine.resume(coroutine.create(function() | |
1580 | for i=1,2 do wait() wait() wait() wait() wait() wait() wait() wait() | |
1581 | Effect(Enum.MeshType.Sphere,Vector3.new(10,10,10)*5,0.999,Enum.Material.Neon,tempcolor,mousepos,Vector3.new(),Vector3.new(),Vector3.new(-0.3,-0.3,-0.3),Vector3.new(),-0.005,-0.05) | |
1582 | end | |
1583 | end)) | |
1584 | Effect(Enum.MeshType.Sphere,Vector3.new(5,5,5),0,Enum.Material.Neon,tempcolor,mousepos,Vector3.new(),Vector3.new(),Vector3.new(2,2,2),Vector3.new(),0.03,0) | |
1585 | Effect(Enum.MeshType.Sphere,Vector3.new(20,20,20),0,Enum.Material.Neon,tempcolor,mousepos,Vector3.new(),Vector3.new(),Vector3.new(-0.4,30,-0.4),Vector3.new(),0,0) | |
1586 | end | |
1587 | noidle = false | |
1588 | debounce = false | |
1589 | end | |
1590 | end) | |
1591 | ||
1592 | music(1032975381) | |
1593 | ||
1594 | --[[for i,v in pairs(char:GetChildren()) do | |
1595 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then | |
1596 | local emitter = Instance.new("ParticleEmitter",v) | |
1597 | emitter.LightEmission = 1 | |
1598 | emitter.Transparency = NumberSequence.new(0.95,1) | |
1599 | emitter.Size = NumberSequence.new(0.5) | |
1600 | emitter.SpreadAngle = Vector2.new(360,360) | |
1601 | emitter.Speed = NumberRange.new(1) | |
1602 | emitter.Lifetime = NumberRange.new(0.75) | |
1603 | emitter.Texture = "rbxassetid://744949545" | |
1604 | emitter.Rate = 20 | |
1605 | emitter.Color = ColorSequence.new(Color3.new(0,1,1)) | |
1606 | emitter.LockedToPart = true | |
1607 | table.insert(emitters,emitter) | |
1608 | end | |
1609 | end]] | |
1610 | ||
1611 | velocityYFall=0 | |
1612 | velocityYFall2=0 | |
1613 | velocityYFall3=0 | |
1614 | velocityYFall4=0 | |
1615 | neckrotY=0 | |
1616 | neckrotY2=0 | |
1617 | torsorotY=0 | |
1618 | torsorotY2=0 | |
1619 | torsoY=0 | |
1620 | torsoY2=0 | |
1621 | colored = 0 | |
1622 | sine = 0 | |
1623 | change=0.4 | |
1624 | movement=5 | |
1625 | timeranim=0 | |
1626 | running = false | |
1627 | glitched = false | |
1628 | backup = hed.Weld.C1 | |
1629 | glitchedC1 = hed.Weld.C1 | |
1630 | glitchedenabled = false | |
1631 | ||
1632 | mouse.KeyDown:connect(function(key) | |
1633 | key = string.lower(key) | |
1634 | if string.byte(key) == 48 then | |
1635 | running = true | |
1636 | local keyup = mouse.KeyUp:connect(function(key) | |
1637 | if string.byte(key) == 48 then | |
1638 | running = false | |
1639 | end | |
1640 | end) | |
1641 | repeat wait() until running == false | |
1642 | keyup:disconnect() | |
1643 | end | |
1644 | end) | |
1645 | ||
1646 | icolor=1 | |
1647 | imode=false | |
1648 | ||
1649 | didjump = false | |
1650 | jumppower = 0 | |
1651 | freeze = false | |
1652 | debounceimpact = false | |
1653 | ||
1654 | function jumpimpact() | |
1655 | if debounceimpact == false then | |
1656 | debounceimpact = true | |
1657 | if jumppower < -150 then jumppower = -150 end | |
1658 | shake(-jumppower/5) | |
1659 | for i=1,-jumppower/20 do wait() | |
1660 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05) | |
1661 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (jumppower/20)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.05) | |
1662 | end | |
1663 | debounceimpact = false | |
1664 | end | |
1665 | end | |
1666 | ||
1667 | while wait() do | |
1668 | ||
1669 | for i,v in pairs(DebrisModel:GetChildren()) do | |
1670 | if v.Name == "LIGHTNING" then | |
1671 | local vm = v:FindFirstChildOfClass("BlockMesh") | |
1672 | vm.Scale = vm.Scale - Vector3.new(0.1,0.1,0) | |
1673 | if vm.Scale.X <= 0 then | |
1674 | v:Destroy() | |
1675 | end | |
1676 | end | |
1677 | end | |
1678 | ||
1679 | if icolor > 1 then | |
1680 | imode = false | |
1681 | elseif icolor < 0 then | |
1682 | imode = true | |
1683 | end | |
1684 | ||
1685 | if imode == true then | |
1686 | icolor = icolor + 0.01 | |
1687 | else | |
1688 | icolor = icolor - 0.01 | |
1689 | end | |
1690 | ||
1691 | for i,v in pairs(emitters) do | |
1692 | v.Acceleration = root.CFrame.upVector*(666/200) | |
1693 | end | |
1694 | ||
1695 | if p.Character.Parent == nil then | |
1696 | local model = Instance.new("Model") | |
1697 | model.Name = p.Name | |
1698 | p.Character = model | |
1699 | for i,v in pairs(char:GetChildren()) do | |
1700 | v.Parent = p.Character | |
1701 | end | |
1702 | end | |
1703 | ||
1704 | char = p.Character | |
1705 | if p.Character.Parent ~= workspace then | |
1706 | p.Character.Parent = workspace | |
1707 | end | |
1708 | for i,v in pairs(char:GetChildren()) do | |
1709 | if v:IsA("Accoutrement") then | |
1710 | if v.Handle:FindFirstChild("Mesh") then | |
1711 | v.Handle:FindFirstChild("Mesh").Offset = Vector3.new() | |
1712 | v.Handle.Transparency = 0 | |
1713 | end | |
1714 | elseif v:IsA("BasePart") then | |
1715 | v.Anchored = false | |
1716 | if v:FindFirstChildOfClass("BodyPosition") then | |
1717 | v:FindFirstChildOfClass("BodyPosition"):Destroy() | |
1718 | end | |
1719 | if v:FindFirstChildOfClass("BodyVelocity") then | |
1720 | v:FindFirstChildOfClass("BodyVelocity"):Destroy() | |
1721 | end | |
1722 | if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then | |
1723 | v:FindFirstChildOfClass("BodyGyro"):Destroy() | |
1724 | end | |
1725 | if v:FindFirstChild("Mesh") then | |
1726 | v:FindFirstChild("Mesh").Offset = Vector3.new() | |
1727 | end | |
1728 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then | |
1729 | local force = Instance.new("Part",DebrisModel) | |
1730 | force.Name = v.Name.."FORCEFIELD" | |
1731 | if v ~= hed then | |
1732 | force.Size = v.Size+(Vector3.new(1,1,1)*0.2) | |
1733 | else | |
1734 | force.Size = (Vector3.new(1,1,1)*v.Size.Y)+(Vector3.new(1,1,1)*0.2) | |
1735 | end | |
1736 | force.CanCollide = false | |
1737 | force.Transparency = 1 | |
1738 | force.Color = Color3.new(0,1,1) | |
1739 | force.Material = Enum.Material.Neon | |
1740 | newWeld(v,force,0,0,0) | |
1741 | else | |
1742 | if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then | |
1743 | newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0) | |
1744 | end | |
1745 | end | |
1746 | if v.Name ~= "HumanoidRootPart" then | |
1747 | v.Transparency = 0 | |
1748 | else | |
1749 | v.Transparency = 1 | |
1750 | end | |
1751 | end | |
1752 | end | |
1753 | ||
1754 | if freeze == false then | |
1755 | if running == false then | |
1756 | hum.WalkSpeed = 12 | |
1757 | change=0.4 | |
1758 | movement=5 | |
1759 | else | |
1760 | hum.WalkSpeed = (666/10) | |
1761 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 then | |
1762 | change=1 | |
1763 | else | |
1764 | change=0.4 | |
1765 | end | |
1766 | movement=15 | |
1767 | end | |
1768 | else | |
1769 | hum.WalkSpeed = 1 | |
1770 | change=0.4 | |
1771 | movement=5 | |
1772 | end | |
1773 | ||
1774 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then | |
1775 | velocityYFall = root.Velocity.Y/1.5 | |
1776 | else | |
1777 | if -root.Velocity.Y/1.5 < -5 then | |
1778 | velocityYFall = 5 | |
1779 | elseif -root.Velocity.Y/1.5 > 150 then | |
1780 | velocityYFall = -150 | |
1781 | end | |
1782 | end | |
1783 | ||
1784 | if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then | |
1785 | velocityYFall2 = root.Velocity.Y/180 | |
1786 | else | |
1787 | if -root.Velocity.Y/180 < 0 then | |
1788 | velocityYFall2 = 0 | |
1789 | elseif -root.Velocity.Y/180 > 1.2 then | |
1790 | velocityYFall2 = -1.2 | |
1791 | end | |
1792 | end | |
1793 | ||
1794 | if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then | |
1795 | velocityYFall3 = root.Velocity.Y/1.5 | |
1796 | else | |
1797 | if -root.Velocity.Y/1.5 < -5 then | |
1798 | velocityYFall3 = 5 | |
1799 | elseif -root.Velocity.Y/1.5 > 50 then | |
1800 | velocityYFall3 = -50 | |
1801 | end | |
1802 | end | |
1803 | ||
1804 | if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then | |
1805 | velocityYFall4 = root.Velocity.Y/1.5 | |
1806 | else | |
1807 | if -root.Velocity.Y/180 < -5 then | |
1808 | velocityYFall4 = 5 | |
1809 | elseif -root.Velocity.Y/180 > 50 then | |
1810 | velocityYFall4 = -50 | |
1811 | end | |
1812 | end | |
1813 | ||
1814 | if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then | |
1815 | neckrotY = root.RotVelocity.Y/6 | |
1816 | else | |
1817 | if root.RotVelocity.Y/6 < -1 then | |
1818 | neckrotY = -1 | |
1819 | elseif root.RotVelocity.Y/6 > 1 then | |
1820 | neckrotY = 1 | |
1821 | end | |
1822 | end | |
1823 | ||
1824 | if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then | |
1825 | neckrotY2 = root.RotVelocity.Y/8 | |
1826 | else | |
1827 | if root.RotVelocity.Y/8 < -0.6 then | |
1828 | neckrotY2 = -0.6 | |
1829 | elseif root.RotVelocity.Y/8 > 0.6 then | |
1830 | neckrotY2 = 0.6 | |
1831 | end | |
1832 | end | |
1833 | ||
1834 | if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then | |
1835 | torsorotY = root.RotVelocity.Y/6 | |
1836 | else | |
1837 | if root.RotVelocity.Y/6 < -0.2 then | |
1838 | torsorotY = -0.2 | |
1839 | elseif root.RotVelocity.Y/6 > 0.2 then | |
1840 | torsorotY = 0.2 | |
1841 | end | |
1842 | end | |
1843 | ||
1844 | if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then | |
1845 | torsorotY2 = root.RotVelocity.Y/8 | |
1846 | else | |
1847 | if root.RotVelocity.Y/8 < -0.2 then | |
1848 | torsorotY2 = -0.2 | |
1849 | elseif root.RotVelocity.Y/8 > 0.2 then | |
1850 | torsorotY2 = 0.2 | |
1851 | end | |
1852 | end | |
1853 | ||
1854 | torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20 | |
1855 | torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36 | |
1856 | ||
1857 | local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4, 0)) | |
1858 | local part1, endPoint = workspace:FindPartOnRay(ray1, char) | |
1859 | ||
1860 | local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4, 0)) | |
1861 | local part2, endPoint = workspace:FindPartOnRay(ray2, char) | |
1862 | ||
1863 | local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4, 0)) | |
1864 | local part3, endPoint = workspace:FindPartOnRay(ray3, char) | |
1865 | ||
1866 | local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4, 0)) | |
1867 | local part4, endPoint = workspace:FindPartOnRay(ray4, char) | |
1868 | ||
1869 | local ray5 = Ray.new(root.Position+Vector3.new(size,0,size/2),Vector3.new(0, -4, 0)) | |
1870 | local part5, endPoint = workspace:FindPartOnRay(ray5, char) | |
1871 | ||
1872 | local ray6 = Ray.new(root.Position-Vector3.new(size,0,size/2),Vector3.new(0, -4, 0)) | |
1873 | local part6, endPoint = workspace:FindPartOnRay(ray6, char) | |
1874 | ||
1875 | local ray7 = Ray.new(root.Position+Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0)) | |
1876 | local part7, endPoint = workspace:FindPartOnRay(ray7, char) | |
1877 | ||
1878 | local ray8 = Ray.new(root.Position-Vector3.new(size,0,-size/2),Vector3.new(0, -4, 0)) | |
1879 | local part8, endPoint = workspace:FindPartOnRay(ray8, char) | |
1880 | ||
1881 | local ray = Ray.new(root.Position,Vector3.new(0, -6, 0)) | |
1882 | local part, endPoint = workspace:FindPartOnRay(ray, char) | |
1883 | ||
1884 | - | hum.MaxHealth = math.huge |
1884 | + | |
1885 | ||
1886 | local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0)) | |
1887 | local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char) | |
1888 | ||
1889 | local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75, 0)) | |
1890 | local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char) | |
1891 | ||
1892 | if hum.Health > 0 and noidle == false then | |
1893 | if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then | |
1894 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4) | |
1895 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-20),0,0), 0.1) | |
1896 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-40-20*math.cos(sine/15)),math.rad(0+5*math.sin(sine/15)),math.rad(-5-5*math.sin(sine/15))), 0.2) | |
1897 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-40-20*math.cos(sine/15)),math.rad(0-5*math.sin(sine/15)),math.rad(5+5*math.sin(sine/15))), 0.2) | |
1898 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.5-0.5*math.sin(sine/15), 0) * CFrame.Angles(math.rad(-40),math.rad(0), math.rad(0)), 0.1) | |
1899 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.6,-1)*CFrame.Angles(math.rad(-70-20*math.cos(sine/15)),math.rad(0-5*math.sin(sine/15)),math.rad(-1)), 0.2) | |
1900 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0)*CFrame.Angles(math.rad(-30-20*math.cos(sine/15)),math.rad(0+5*math.sin(sine/15)),math.rad(1)), 0.2) | |
1901 | elseif jumped == true then | |
1902 | didjump = true | |
1903 | jumppower = root.Velocity.Y | |
1904 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4) | |
1905 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1) | |
1906 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(velocityYFall)), 0.2) | |
1907 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(-velocityYFall)), 0.2) | |
1908 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(velocityYFall3/10),math.rad(0), math.rad(0)), 0.1) | |
1909 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0)*CFrame.Angles(math.rad(-35),math.rad(0),math.rad(-2)), 0.2) | |
1910 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0,-0.8)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(2)), 0.2) | |
1911 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5 then | |
1912 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),0, 0), 0.4) | |
1913 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.sin(sine/16)+0.15,0.05*math.cos(sine/32),0.01*math.cos(sine/32)), 0.1) | |
1914 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-(0.1)*math.cos(sine/16)/3,-0.05-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(-5-5*math.sin(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2) | |
1915 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-(0.1)*math.cos(sine/16)/3,-0.05-0.1*math.cos(sine/16))*CFrame.Angles(math.rad(170+4*math.cos(sine/16)),math.rad(5+5*math.sin(sine/16)),math.rad(-20-2*math.cos(sine/16))), 0.2) | |
1916 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (-0.5-(0.1)*math.cos(sine/16)-hum.HipHeight)+0.5*math.sin(sine/15), -0.1*math.cos(sine/16)) * CFrame.Angles(math.rad(-2-4*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1) | |
1917 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.2+(0.1)*math.cos(sine/16),-1)*CFrame.Angles(math.rad(-50+2*math.cos(sine/16)),math.rad(-10+2*math.cos(sine/16)),math.rad(-1+1*math.cos(sine/32))), 0.2) | |
1918 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95+(0.1)*math.cos(sine/16),0)*CFrame.Angles(math.rad(10+2*math.cos(sine/16)),math.rad(10-2*math.cos(sine/16)),math.rad(1+1*math.cos(sine/32))), 0.2) | |
1919 | end | |
1920 | end | |
1921 | l1.C0 = CFrame.new(-0.8,0.8,0.5)*CFrame.Angles(0,0.2,-0.1+0.6*math.cos(sine/15)) | |
1922 | r1.C0 = CFrame.new(0.8,0.8,0.5)*CFrame.Angles(0,-0.2,0.1-0.6*math.cos(sine/15)) | |
1923 | ||
1924 | l2.C0 = CFrame.new(-0.8,0.4,0.5)*CFrame.Angles(0,0.4,0.5*math.cos(sine/15)) | |
1925 | r2.C0 = CFrame.new(0.8,0.4,0.5)*CFrame.Angles(0,-0.4,-0.5*math.cos(sine/15)) | |
1926 | ||
1927 | l3.C0 = CFrame.new(-0.8,0,0.5)*CFrame.Angles(0,0.6,0.1+0.5*math.cos(sine/15)) | |
1928 | r3.C0 = CFrame.new(0.8,0,0.5)*CFrame.Angles(0,-0.6,-0.1-0.5*math.cos(sine/15)) | |
1929 | if didjump == true and jumped == false and jumppower < 0 then | |
1930 | didjump = false | |
1931 | jumpimpact() | |
1932 | end | |
1933 | if math.sin(sine/15) < -0.5 and woosh == false and jumped == false then | |
1934 | Effect(559831844,Vector3.new(0.001,0.001,0.001),0,Enum.Material.Neon,Color3.fromHSV(0,0,1),endPoint,Vector3.new(90,0,0),Vector3.new(0,0.1,0),Vector3.new(0.05,0.05,0.05),Vector3.new(),0.01,-0.0005) | |
1935 | Effect(559831844,Vector3.new(0.001,0.001,1),0,Enum.Material.Neon,Color3.fromHSV(0,0,1),endPoint,Vector3.new(90,0,0),Vector3.new(0,0,0),Vector3.new(0.05,0.05,0),Vector3.new(),0.005,0) | |
1936 | woosh = true | |
1937 | elseif math.sin(sine/15) > -0.5 then | |
1938 | woosh = false | |
1939 | end | |
1940 | --timeposition = soundz.TimePosition | |
1941 | hed.BrickColor = skin_color | |
1942 | torso.BrickColor = skin_color | |
1943 | rarm.BrickColor = skin_color | |
1944 | larm.BrickColor = skin_color | |
1945 | rleg.BrickColor = skin_color | |
1946 | lleg.BrickColor = skin_color | |
1947 | sine = sine + change | |
1948 | hum.Health = math.huge | |
1949 | hum.MaxHealth = math.huge | |
1950 | end |