SHOW:
|
|
- or go back to the newest paste.
1 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
1 | + | -----------//GATTAI ZAMASU\\----------- |
2 | - | local Player,game,owner = owner,game |
2 | + | --[[Movelist |
3 | - | local RealPlayer = Player |
3 | + | E = Blades of Judgement |
4 | R = Holy light | |
5 | - | print("FE Compatibility code by Mokiros") |
5 | + | T = Taunt |
6 | - | local rp = RealPlayer |
6 | + | Y = Lightning of Absolution |
7 | - | script.Parent = rp.Character |
7 | + | U = Divine wrath/Holy wrath |
8 | - | |
8 | + | ---------]] |
9 | - | --RemoteEvent for communicating |
9 | + | |
10 | - | local Event = Instance.new("RemoteEvent") |
10 | + | --I'm starting my own youtube channel to showcase my private/best work, if you're interested, be sure to check it out! https://www.youtube.com/channel/UCN6i8M5gV1KgsGHLNQZGLgQ-- |
11 | - | Event.Name = "UserInput_Event" |
11 | + | --It currently has no content as of 1/20/19, but in the near future i'll post some videos & scripting tutorials for the newbs out there.-- |
12 | - | |
12 | + | --Also subscribe to this d00d: https://www.youtube.com/channel/UC2hsp8ie2iYsJGK-zRD0sPg-- |
13 | - | --Fake event to make stuff like Mouse.KeyDown work |
13 | + | --And no, you cannot have my privates, however, over time i'll release one of my privates for 1 hour only-- |
14 | - | local function fakeEvent() |
14 | + | --Also, check out my pastebin, it'll give you some handy information too-- |
15 | - | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} |
15 | + | --Enough frickin' around, enjoy the script lads-- |
16 | - | t.connect = t.Connect |
16 | + | |
17 | - | return t |
17 | + | |
18 | - | end |
18 | + | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} |
19 | - | |
19 | + | |
20 | - | --Creating fake input objects with fake variables |
20 | + | script.Parent = owner.Character |
21 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} |
21 | + | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" |
22 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
22 | + | local function NewFakeEvent() |
23 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
23 | + | local Bind = Instance.new("BindableEvent") |
24 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
24 | + | local Fake;Fake = {Connections = {}, |
25 | - | end} |
25 | + | fakeEvent=true; |
26 | - | --Merged 2 functions into one by checking amount of arguments |
26 | + | Connect=function(self,Func) |
27 | - | CAS.UnbindAction = CAS.BindAction |
27 | + | Bind.Event:connect(Func) |
28 | - | |
28 | + | self.Connections[Bind] = true |
29 | - | --This function will trigger the events that have been :Connect()'ed |
29 | + | return setmetatable({Connected = true},{ |
30 | - | local function te(self,ev,...) |
30 | + | __index = function (self,Index) |
31 | - | local t = m[ev] |
31 | + | if Index:lower() == "disconnect" then |
32 | - | if t and t._fakeEvent then |
32 | + | return function() Fake.Connections[Bind] = false;self.Connected = false end |
33 | - | for _,f in pairs(t.Functions) do |
33 | + | end |
34 | - | f(...) |
34 | + | return Fake[Index] |
35 | - | end |
35 | + | end; |
36 | - | end |
36 | + | __tostring = function() return "Connection" end; |
37 | - | end |
37 | + | }) |
38 | - | m.TrigEvent = te |
38 | + | end} |
39 | - | UIS.TrigEvent = te |
39 | + | Fake.connect = Fake.Connect;return Fake; |
40 | - | |
40 | + | end |
41 | - | Event.OnServerEvent:Connect(function(plr,io) |
41 | + | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} |
42 | - | if plr~=rp then return end |
42 | + | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} |
43 | - | m.Target = io.Target |
43 | + | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) |
44 | - | m.Hit = io.Hit |
44 | + | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil |
45 | - | if not io.isMouse then |
45 | + | end};ContextActionService.UnBindAction = ContextActionService.BindAction |
46 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
46 | + | local function TriggerEvent(self,Event,...) |
47 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
47 | + | local Trigger = Mouse[Event] |
48 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
48 | + | if Trigger and Trigger.fakeEvent and Trigger.Connections then |
49 | - | end |
49 | + | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end |
50 | - | for _,t in pairs(CAS.Actions) do |
50 | + | end |
51 | - | for _,k in pairs(t.Keys) do |
51 | + | end |
52 | - | if k==io.KeyCode then |
52 | + | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent |
53 | - | t.Function(t.Name,io.UserInputState,io) |
53 | + | Event.OnServerEvent:Connect(function(FiredBy,Input) |
54 | - | end |
54 | + | if FiredBy.Name ~= owner.Name then return end |
55 | - | end |
55 | + | if Input.MouseEvent then |
56 | - | end |
56 | + | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit |
57 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
57 | + | else |
58 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
58 | + | local Begin = Input.UserInputState == Enum.UserInputState.Begin |
59 | - | end |
59 | + | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end |
60 | - | end) |
60 | + | for _,Action in pairs(ContextActionService.Actions) do |
61 | - | Event.Parent = NLS([==[ |
61 | + | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end |
62 | - | local Player = game:GetService("Players").LocalPlayer |
62 | + | end |
63 | - | local Event = script:WaitForChild("UserInput_Event") |
63 | + | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) |
64 | - | |
64 | + | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) |
65 | - | local Mouse = Player:GetMouse() |
65 | + | end |
66 | - | local UIS = game:GetService("UserInputService") |
66 | + | end) |
67 | - | local input = function(io,a) |
67 | + | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService |
68 | - | if a then return end |
68 | + | Event.Parent = NLS([[ |
69 | - | --Since InputObject is a client-side instance, we create and pass table instead |
69 | + | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() |
70 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) |
70 | + | local Input = function(Input,gameProcessedEvent) |
71 | - | end |
71 | + | if gameProcessedEvent then return end |
72 | - | UIS.InputBegan:Connect(input) |
72 | + | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) |
73 | - | UIS.InputEnded:Connect(input) |
73 | + | end |
74 | - | |
74 | + | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) |
75 | - | local h,t |
75 | + | local Hit,Target |
76 | - | --Give the server mouse data 30 times every second, but only if the values changed |
76 | + | while wait(1/30) do |
77 | - | --If player is not moving their mouse, client won't fire events |
77 | + | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then |
78 | - | while wait(1/30) do |
78 | + | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) |
79 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
79 | + | end |
80 | - | h,t=Mouse.Hit,Mouse.Target |
80 | + | end |
81 | - | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
81 | + | ]],owner.Character) |
82 | - | end |
82 | + | |
83 | - | end]==],Player.Character) |
83 | + | RealGame = game;game = setmetatable({},{ |
84 | - | |
84 | + | __index = function (self,Index) |
85 | - | ----Sandboxed game object that allows the usage of client-side methods and services |
85 | + | local Sandbox = function (Thing) |
86 | - | --Real game object |
86 | + | if Thing:IsA("Player") then |
87 | - | local _rg = game |
87 | + | local RealPlayer = Thing |
88 | - | |
88 | + | return setmetatable({},{ |
89 | - | --Metatable for fake service |
89 | + | __index = function (self,Index) |
90 | - | local fsmt = { |
90 | + | local Type = type(RealPlayer[Index]) |
91 | - | __index = function(self,k) |
91 | + | if Type == "function" then |
92 | - | local s = rawget(self,"_RealService") |
92 | + | if Index:lower() == "getmouse" or Index:lower() == "mouse" then |
93 | - | if s then return s[k] end |
93 | + | return function (self)return InternalData["Mouse"] end |
94 | - | end, |
94 | + | end |
95 | - | __newindex = function(self,k,v) |
95 | + | return function (self,...)return RealPlayer[Index](RealPlayer,...) end |
96 | - | local s = rawget(self,"_RealService") |
96 | + | end |
97 | - | if s then s[k]=v end |
97 | + | return RealPlayer[Index] |
98 | - | end, |
98 | + | end; |
99 | - | __call = function(self,...) |
99 | + | __tostring = function(self) return RealPlayer.Name end |
100 | - | local s = rawget(self,"_RealService") |
100 | + | }) |
101 | - | if s then return s(...) end |
101 | + | end |
102 | - | end |
102 | + | end |
103 | - | } |
103 | + | if RealGame[Index] then |
104 | - | local function FakeService(t,RealService) |
104 | + | local Type = type(RealGame[Index]) |
105 | - | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService |
105 | + | if Type == "function" then |
106 | - | return setmetatable(t,fsmt) |
106 | + | if Index:lower() == "getservice" or Index:lower() == "service" then |
107 | - | end |
107 | + | return function (self,Service) |
108 | - | |
108 | + | local FakeServices = { |
109 | - | --Fake game object |
109 | + | ["players"] = function() |
110 | - | local g = { |
110 | + | return setmetatable({},{ |
111 | - | GetService = function(self,s) |
111 | + | __index = function (self2,Index2) |
112 | - | return self[s] |
112 | + | local RealService = RealGame:GetService(Service) |
113 | - | end, |
113 | + | local Type2 = type(Index2) |
114 | - | Players = FakeService({ |
114 | + | if Type2 == "function" then |
115 | - | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) |
115 | + | return function (self,...) return RealService[Index2](RealService,...)end |
116 | - | },"Players"), |
116 | + | else |
117 | - | UserInputService = FakeService(UIS,"UserInputService"), |
117 | + | if Index2:lower() == "localplayer" then return Sandbox(owner) end |
118 | - | ContextActionService = FakeService(CAS,"ContextActionService"), |
118 | + | return RealService[Index2] |
119 | - | } |
119 | + | end |
120 | - | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) |
120 | + | end; |
121 | - | g.service = g.GetService |
121 | + | __tostring = function(self) return RealGame:GetService(Service).Name end |
122 | - | |
122 | + | }) |
123 | - | g.RunService = FakeService({ |
123 | + | end; |
124 | - | RenderStepped = _rg:GetService("RunService").Heartbeat, |
124 | + | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; |
125 | - | BindToRenderStep = function(self,name,_,fun) |
125 | + | ["userinputservice"] = function() return InternalData["UserInputService"] end; |
126 | - | self._btrs[name] = self.Heartbeat:Connect(fun) |
126 | + | ["runservice"] = function() |
127 | - | end, |
127 | + | return setmetatable({},{ |
128 | - | UnbindFromRenderStep = function(self,name) |
128 | + | __index = function(self2,Index2) |
129 | - | self._btrs[name]:Disconnect() |
129 | + | local RealService = RealGame:GetService(Service) |
130 | - | end, |
130 | + | local Type2 = type(Index2) |
131 | - | },"RunService") |
131 | + | if Type2 == "function" then |
132 | - | |
132 | + | return function (self,...) return RealService[Index2](RealService,...) end |
133 | - | setmetatable(g,{ |
133 | + | else |
134 | - | __index=function(self,s) |
134 | + | local RunServices = { |
135 | - | return _rg:GetService(s) or typeof(_rg[s])=="function" |
135 | + | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; |
136 | - | and function(_,...)return _rg[s](_rg,...)end or _rg[s] |
136 | + | ["renderstepped"] = function() return RealService["Stepped"] end |
137 | - | end, |
137 | + | } |
138 | - | __newindex = fsmt.__newindex, |
138 | + | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end |
139 | - | __call = fsmt.__call |
139 | + | return RealService[Index2] |
140 | - | }) |
140 | + | end |
141 | - | --Changing owner to fake player object to support owner:GetMouse() |
141 | + | end |
142 | - | game,owner = g,g.Players.LocalPlayer |
142 | + | }) |
143 | end | |
144 | - | --//====================================================\\-- |
144 | + | } |
145 | - | --|| CREATED BY SHACKLUSTER |
145 | + | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end |
146 | - | --\\====================================================//-- |
146 | + | return RealGame:GetService(Service) |
147 | - | |
147 | + | end |
148 | - | wait(0.2) |
148 | + | end |
149 | - | |
149 | + | return function (self,...) return RealGame[Index](RealGame,...) end |
150 | - | Player = game:GetService("Players").LocalPlayer |
150 | + | else |
151 | - | PlayerGui = Player.PlayerGui |
151 | + | if game:GetService(Index) then return game:GetService(Index) end |
152 | - | Cam = workspace.CurrentCamera |
152 | + | return RealGame[Index] |
153 | - | Backpack = Player.Backpack |
153 | + | end |
154 | - | Character = Player.Character |
154 | + | end |
155 | - | Humanoid = Character.Humanoid |
155 | + | return nil |
156 | - | Mouse = Player:GetMouse() |
156 | + | end |
157 | - | RootPart = Character["HumanoidRootPart"] |
157 | + | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") |
158 | - | Torso = Character["Torso"] |
158 | + | |
159 | - | Head = Character["Head"] |
159 | + | Player=game:GetService("Players").LocalPlayer |
160 | - | RightArm = Character["Right Arm"] |
160 | + | Character=Player.Character |
161 | - | LeftArm = Character["Left Arm"] |
161 | + | Character.Humanoid.Name = "gattaizamasu" |
162 | - | RightLeg = Character["Right Leg"] |
162 | + | hum = Character.gattaizamasu |
163 | - | LeftLeg = Character["Left Leg"] |
163 | + | LeftArm=Character["Left Arm"] |
164 | - | RootJoint = RootPart["RootJoint"] |
164 | + | LeftLeg=Character["Left Leg"] |
165 | - | Neck = Torso["Neck"] |
165 | + | RightArm=Character["Right Arm"] |
166 | - | RightShoulder = Torso["Right Shoulder"] |
166 | + | RightLeg=Character["Right Leg"] |
167 | - | LeftShoulder = Torso["Left Shoulder"] |
167 | + | Root=Character["HumanoidRootPart"] |
168 | - | RightHip = Torso["Right Hip"] |
168 | + | Head=Character["Head"] |
169 | - | LeftHip = Torso["Left Hip"] |
169 | + | Torso=Character["Torso"] |
170 | - | Humanoid.MaxHealth = "inf" |
170 | + | Neck=Torso["Neck"] |
171 | - | Humanoid.Health = "inf" |
171 | + | attacking = false |
172 | - | IT = Instance.new |
172 | + | laughing = false |
173 | - | CF = CFrame.new |
173 | + | id = 2623171639 |
174 | - | VT = Vector3.new |
174 | + | taim = nil |
175 | - | RAD = math.rad |
175 | + | change = 0 |
176 | - | C3 = Color3.new |
176 | + | ws = 90 |
177 | - | UD2 = UDim2.new |
177 | + | hpheight = 5 |
178 | - | BRICKC = BrickColor.new |
178 | + | dedlaff = false |
179 | - | ANGLES = CFrame.Angles |
179 | + | appi = false |
180 | - | EULER = CFrame.fromEulerAnglesXYZ |
180 | + | tauntdebounce = false |
181 | - | COS = math.cos |
181 | + | allowlev = true |
182 | - | ACOS = math.acos |
182 | + | position = nil |
183 | - | SIN = math.sin |
183 | + | MseGuide = true |
184 | - | ASIN = math.asin |
184 | + | running = false |
185 | - | ABS = math.abs |
185 | + | levitate = false |
186 | - | MRANDOM = math.random |
186 | + | settime = 0 |
187 | - | FLOOR = math.floor |
187 | + | sine = 0 |
188 | - | |
188 | + | t = 0 |
189 | - | --//=================================\\ |
189 | + | dgs = 75 |
190 | - | --|| USEFUL VALUES |
190 | + | mouse = Player:GetMouse() |
191 | - | --\\=================================// |
191 | + | RunSrv = game:GetService("RunService") |
192 | - | |
192 | + | RenderStepped = game:GetService("RunService").RenderStepped |
193 | - | Animation_Speed = 3 |
193 | + | removeuseless = game:GetService("Debris") |
194 | - | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
194 | + | local soundtable = {2638719005,2638719700,2638743317,2638744272,2638751297,2638751506,2638769242,2638769810,2638770257,2638777924} |
195 | - | local Speed = 16 |
195 | + | local holywrathcolors = {"Really White","Bright White"} |
196 | - | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
196 | + | rdnm = #soundtable |
197 | - | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
197 | + | hwc = #holywrathcolors |
198 | - | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
198 | + | |
199 | - | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
199 | + | screenGui = Instance.new("ScreenGui") |
200 | - | local DAMAGEMULTIPLIER = 1 |
200 | + | screenGui.Parent = script.Parent |
201 | - | local ANIM = "Idle" |
201 | + | |
202 | - | local ATTACK = false |
202 | + | local HEADLERP = Instance.new("ManualWeld") |
203 | - | local EQUIPPED = false |
203 | + | HEADLERP.Parent = Head |
204 | - | local HOLD = false |
204 | + | HEADLERP.Part0 = Head |
205 | - | local COMBO = 1 |
205 | + | HEADLERP.Part1 = Head |
206 | - | local Rooted = false |
206 | + | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
207 | - | local SINE = 0 |
207 | + | |
208 | - | local KEYHOLD = false |
208 | + | local TORSOLERP = Instance.new("ManualWeld") |
209 | - | local CHANGE = 2 / Animation_Speed |
209 | + | TORSOLERP.Parent = Root |
210 | - | local WALKINGANIM = false |
210 | + | TORSOLERP.Part0 = Torso |
211 | - | local VALUE1 = false |
211 | + | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
212 | - | local VALUE2 = false |
212 | + | |
213 | - | local ROBLOXIDLEANIMATION = IT("Animation") |
213 | + | local ROOTLERP = Instance.new("ManualWeld") |
214 | - | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
214 | + | ROOTLERP.Parent = Root |
215 | - | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
215 | + | ROOTLERP.Part0 = Root |
216 | - | --ROBLOXIDLEANIMATION.Parent = Humanoid |
216 | + | ROOTLERP.Part1 = Torso |
217 | - | local WEAPONGUI = IT("ScreenGui", PlayerGui) |
217 | + | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
218 | - | WEAPONGUI.Name = "Weapon GUI" |
218 | + | |
219 | - | local Weapon = IT("Model") |
219 | + | local RIGHTARMLERP = Instance.new("ManualWeld") |
220 | - | Weapon.Name = "Adds" |
220 | + | RIGHTARMLERP.Parent = RightArm |
221 | - | local Effects = IT("Folder", Weapon) |
221 | + | RIGHTARMLERP.Part0 = RightArm |
222 | - | Effects.Name = "Effects" |
222 | + | RIGHTARMLERP.Part1 = Torso |
223 | - | local ANIMATOR = Humanoid.Animator |
223 | + | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
224 | - | local ANIMATE = Character.Animate |
224 | + | |
225 | - | local UNANCHOR = true |
225 | + | local LEFTARMLERP = Instance.new("ManualWeld") |
226 | - | |
226 | + | LEFTARMLERP.Parent = LeftArm |
227 | - | --//=================================\\ |
227 | + | LEFTARMLERP.Part0 = LeftArm |
228 | - | --\\=================================// |
228 | + | LEFTARMLERP.Part1 = Torso |
229 | - | |
229 | + | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
230 | - | |
230 | + | |
231 | - | --//=================================\\ |
231 | + | local RIGHTLEGLERP = Instance.new("ManualWeld") |
232 | - | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
232 | + | RIGHTLEGLERP.Parent = RightLeg |
233 | - | --\\=================================// |
233 | + | RIGHTLEGLERP.Part0 = RightLeg |
234 | - | |
234 | + | RIGHTLEGLERP.Part1 = Torso |
235 | - | ArtificialHB = Instance.new("BindableEvent", script) |
235 | + | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
236 | - | ArtificialHB.Name = "ArtificialHB" |
236 | + | |
237 | - | |
237 | + | local LEFTLEGLERP = Instance.new("ManualWeld") |
238 | - | script:WaitForChild("ArtificialHB") |
238 | + | LEFTLEGLERP.Parent = LeftLeg |
239 | - | |
239 | + | LEFTLEGLERP.Part0 = LeftLeg |
240 | - | frame = Frame_Speed |
240 | + | LEFTLEGLERP.Part1 = Torso |
241 | - | tf = 0 |
241 | + | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
242 | - | allowframeloss = false |
242 | + | |
243 | - | tossremainder = false |
243 | + | local function weldBetween(a, b) |
244 | - | lastframe = tick() |
244 | + | local weld = Instance.new("ManualWeld", a) |
245 | - | script.ArtificialHB:Fire() |
245 | + | weld.Part0 = a |
246 | - | |
246 | + | weld.Part1 = b |
247 | - | game:GetService("RunService").Heartbeat:connect(function(s, p) |
247 | + | weld.C0 = a.CFrame:inverse() * b.CFrame |
248 | - | tf = tf + s |
248 | + | return weld |
249 | - | if tf >= frame then |
249 | + | |
250 | - | if allowframeloss then |
250 | + | |
251 | - | script.ArtificialHB:Fire() |
251 | + | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) |
252 | - | lastframe = tick() |
252 | + | A = Instance.new("Attachment", PARENT) |
253 | - | else |
253 | + | A.Position = POSITION1 |
254 | - | for i = 1, math.floor(tf / frame) do |
254 | + | A.Name = "A" |
255 | - | script.ArtificialHB:Fire() |
255 | + | B = Instance.new("Attachment", PARENT) |
256 | - | end |
256 | + | B.Position = POSITION2 |
257 | - | lastframe = tick() |
257 | + | B.Name = "B" |
258 | - | end |
258 | + | tr1 = Instance.new("Trail", PARENT) |
259 | - | if tossremainder then |
259 | + | tr1.Attachment0 = A |
260 | - | tf = 0 |
260 | + | tr1.Attachment1 = B |
261 | - | else |
261 | + | tr1.Enabled = true |
262 | - | tf = tf - frame * math.floor(tf / frame) |
262 | + | tr1.Lifetime = LIFETIME |
263 | - | end |
263 | + | tr1.TextureMode = "Static" |
264 | - | end |
264 | + | tr1.LightInfluence = 0 |
265 | tr1.Color = COLOR | |
266 | - | |
266 | + | tr1.Transparency = NumberSequence.new(0, 1) |
267 | - | --//=================================\\ |
267 | + | |
268 | - | --\\=================================// |
268 | + | |
269 | - | |
269 | + | coroutine.wrap(function() |
270 | - | --//=================================\\ |
270 | + | while wait() do |
271 | - | --|| SOME FUNCTIONS |
271 | + | hum.WalkSpeed = ws |
272 | - | --\\=================================// |
272 | + | Head.face.Texture = "rbxassetid://404306534" |
273 | - | |
273 | + | LeftArm.BrickColor = BrickColor.new("White") |
274 | - | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
274 | + | RightArm.BrickColor = BrickColor.new("White") |
275 | - | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
275 | + | Head.BrickColor = BrickColor.new("White") |
276 | end | |
277 | - | |
277 | + | end)() |
278 | - | function PositiveAngle(NUMBER) |
278 | + | godmode = coroutine.wrap(function() |
279 | - | if NUMBER >= 0 then |
279 | + | for i,v in pairs(Character:GetChildren()) do |
280 | - | NUMBER = 0 |
280 | + | if v:IsA("BasePart") and v ~= Root then |
281 | - | end |
281 | + | v.Anchored = false |
282 | - | return NUMBER |
282 | + | |
283 | end | |
284 | - | |
284 | + | |
285 | - | function NegativeAngle(NUMBER) |
285 | + | hum.MaxHealth = math.huge |
286 | - | if NUMBER <= 0 then |
286 | + | wait(0.0000001) |
287 | - | NUMBER = 0 |
287 | + | hum.Health = math.huge |
288 | - | end |
288 | + | wait() |
289 | - | return NUMBER |
289 | + | |
290 | end) | |
291 | - | |
291 | + | godmode() |
292 | - | function Swait(NUMBER) |
292 | + | ff = Instance.new("ForceField", Character) |
293 | - | if NUMBER == 0 or NUMBER == nil then |
293 | + | ff.Visible = false |
294 | - | ArtificialHB.Event:wait() |
294 | + | |
295 | - | else |
295 | + | coroutine.wrap(function() |
296 | - | for i = 1, NUMBER do |
296 | + | for i,v in pairs(Character:GetChildren()) do |
297 | - | ArtificialHB.Event:wait() |
297 | + | if v.Name == "Animate" then v:Remove() |
298 | - | end |
298 | + | |
299 | - | end |
299 | + | |
300 | end)() | |
301 | - | |
301 | + | |
302 | - | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
302 | + | for _,n in pairs(Character:GetChildren()) do |
303 | - | local NEWMESH = IT(MESH) |
303 | + | if n:IsA("Accessory") then n:Remove() end |
304 | - | if MESH == "SpecialMesh" then |
304 | + | |
305 | - | NEWMESH.MeshType = MESHTYPE |
305 | + | for _,x in pairs(Character:GetChildren()) do |
306 | - | if MESHID ~= "nil" and MESHID ~= "" then |
306 | + | if x:IsA("Decal") then x:Remove() end |
307 | - | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
307 | + | |
308 | - | end |
308 | + | if Press=='u' then |
309 | - | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
309 | + | if debounce then return end |
310 | - | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
310 | + | debounce = true |
311 | - | end |
311 | + | attacking = true |
312 | - | end |
312 | + | g1 = Instance.new("BodyGyro", Root) |
313 | - | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
313 | + | g1.D = 175 |
314 | - | NEWMESH.Scale = SCALE |
314 | + | g1.P = 20000 |
315 | - | NEWMESH.Parent = PARENT |
315 | + | g1.MaxTorque = Vector3.new(0,9000000,0) |
316 | - | return NEWMESH |
316 | + | ws = 0 |
317 | local FACEMYDIVINEWRATH = Instance.new("Sound",Torso) | |
318 | - | |
318 | + | FACEMYDIVINEWRATH.SoundId = "rbxassetid://2638717446" |
319 | - | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
319 | + | FACEMYDIVINEWRATH.Volume = 10 |
320 | - | local NEWPART = IT("Part") |
320 | + | FACEMYDIVINEWRATH:Play() |
321 | - | NEWPART.formFactor = FORMFACTOR |
321 | + | removeuseless:AddItem(FACEMYDIVINEWRATH,5) |
322 | - | NEWPART.Reflectance = REFLECTANCE |
322 | + | for i = 1, 20 do |
323 | - | NEWPART.Transparency = TRANSPARENCY |
323 | + | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) |
324 | - | NEWPART.CanCollide = false |
324 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) |
325 | - | NEWPART.Locked = true |
325 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
326 | - | NEWPART.Anchored = true |
326 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
327 | - | if ANCHOR == false then |
327 | + | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) |
328 | - | NEWPART.Anchored = false |
328 | + | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(10),math.rad(0)),.3) |
329 | - | end |
329 | + | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.2, 1.5, .5) * CFrame.Angles(math.rad(-85 - 3 * math.sin(sine/12)), math.rad(40 + 5 * math.sin(sine/12)), math.rad(0)), 0.25) |
330 | - | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
330 | + | swait() |
331 | - | NEWPART.Name = NAME |
331 | + | |
332 | - | NEWPART.Size = SIZE |
332 | + | local holywrath = Instance.new("Part",RightArm) |
333 | - | NEWPART.Position = Torso.Position |
333 | + | SOUND(holywrath,2644268083,10,false,6) |
334 | - | NEWPART.Material = MATERIAL |
334 | + | holywrath.Size = Vector3.new(.1,.1,.1) |
335 | - | NEWPART:BreakJoints() |
335 | + | holywrath.CanCollide = false |
336 | - | NEWPART.Parent = PARENT |
336 | + | holywrath.Anchored = true |
337 | - | return NEWPART |
337 | + | holywrath.BrickColor = BrickColor.new("Bright red") |
338 | holywrath.Material = "Neon" | |
339 | - | |
339 | + | holywrath.Shape = "Ball" |
340 | - | local function weldBetween(a, b) |
340 | + | holywrath.CFrame = rightlocation.CFrame * CFrame.new(0,0,-2) |
341 | - | local weldd = Instance.new("ManualWeld") |
341 | + | local holywrathaura = Instance.new("Sound",holywrath) |
342 | - | weldd.Part0 = a |
342 | + | holywrathaura.SoundId = "rbxassetid://2643712818" |
343 | - | weldd.Part1 = b |
343 | + | holywrathaura.Looped = true |
344 | - | weldd.C0 = CFrame.new() |
344 | + | holywrathaura.Volume = 0 |
345 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
345 | + | holywrathaura:Play() |
346 | - | weldd.Parent = a |
346 | + | local holywrath2 = Instance.new("Part",RightArm) |
347 | - | return weldd |
347 | + | holywrath2.Size = Vector3.new(.3,.3,.3) |
348 | - | end |
348 | + | holywrath2.CanCollide = false |
349 | - | |
349 | + | holywrath2.Anchored = true |
350 | - | |
350 | + | holywrath2.Transparency = .7 |
351 | - | function QuaternionFromCFrame(cf) |
351 | + | holywrath2.BrickColor = BrickColor.new("Really red") |
352 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
352 | + | holywrath2.Material = "Neon" |
353 | - | local trace = m00 + m11 + m22 |
353 | + | holywrath2.Shape = "Ball" |
354 | - | if trace > 0 then |
354 | + | holywrath2.CFrame = rightlocation.CFrame * CFrame.new(0,0,-2) |
355 | - | local s = math.sqrt(1 + trace) |
355 | + | for i = 1, 30 do |
356 | - | local recip = 0.5 / s |
356 | + | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) |
357 | - | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
357 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) |
358 | - | else |
358 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
359 | - | local i = 0 |
359 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
360 | - | if m11 > m00 then |
360 | + | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) |
361 | - | i = 1 |
361 | + | coroutine.wrap(function() |
362 | - | end |
362 | + | hwc = holywrathcolors[math.random(1,#holywrathcolors)] |
363 | - | if m22 > (i == 0 and m00 or m11) then |
363 | + | local energyballs = Instance.new("Part",Torso) |
364 | - | i = 2 |
364 | + | energyballs.BrickColor = BrickColor.new(hwc) |
365 | - | end |
365 | + | energyballs.Anchored = true |
366 | - | if i == 0 then |
366 | + | energyballs.CanCollide = false |
367 | - | local s = math.sqrt(m00 - m11 - m22 + 1) |
367 | + | energyballs.CFrame = holywrath.CFrame * CFrame.new(math.random(-4,4),math.random(-4,4),math.random(-4,4)) |
368 | - | local recip = 0.5 / s |
368 | + | energyballs.Shape = "Ball" |
369 | - | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
369 | + | energyballs.Material = "Neon" |
370 | - | elseif i == 1 then |
370 | + | energyballs.Size = Vector3.new(.4,.4,.4) |
371 | - | local s = math.sqrt(m11 - m22 - m00 + 1) |
371 | + | for i = 1, 10 do |
372 | - | local recip = 0.5 / s |
372 | + | energyballs.CFrame = energyballs.CFrame:lerp(CFrame.new(holywrath.Position),.3) |
373 | - | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
373 | + | swait() |
374 | - | elseif i == 2 then |
374 | + | |
375 | - | local s = math.sqrt(m22 - m00 - m11 + 1) |
375 | + | energyballs:Remove() |
376 | - | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
376 | + | end)() |
377 | - | end |
377 | + | |
378 | - | end |
378 | + | for i = 1, 20 do |
379 | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) | |
380 | - | |
380 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) |
381 | - | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
381 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
382 | - | local xs, ys, zs = x + x, y + y, z + z |
382 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
383 | - | local wx, wy, wz = w * xs, w * ys, w * zs |
383 | + | holywrath2.CFrame = rightlocation.CFrame * CFrame.new(0,0,-2) |
384 | - | local xx = x * xs |
384 | + | holywrath2.Size = holywrath2.Size + Vector3.new(.1,.1,.1) |
385 | - | local xy = x * ys |
385 | + | holywrath.CFrame = rightlocation.CFrame * CFrame.new(0,0,-2) |
386 | - | local xz = x * zs |
386 | + | holywrath.Size = holywrath.Size + Vector3.new(.1,.1,.1) |
387 | - | local yy = y * ys |
387 | + | swait() |
388 | - | local yz = y * zs |
388 | + | |
389 | - | local zz = z * zs |
389 | + | for i = 1, 10 do |
390 | - | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
390 | + | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) |
391 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) | |
392 | - | |
392 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
393 | - | function QuaternionSlerp(a, b, t) |
393 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
394 | - | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
394 | + | holywrath2.CFrame = rightlocation.CFrame * CFrame.new(0,0,-2) |
395 | - | local startInterp, finishInterp; |
395 | + | holywrath.CFrame = rightlocation.CFrame * CFrame.new(0,0,-2) |
396 | - | if cosTheta >= 0.0001 then |
396 | + | swait() |
397 | - | if (1 - cosTheta) > 0.0001 then |
397 | + | |
398 | - | local theta = ACOS(cosTheta) |
398 | + | enbig = 0 |
399 | - | local invSinTheta = 1 / SIN(theta) |
399 | + | enbig2 = 0 |
400 | - | startInterp = SIN((1 - t) * theta) * invSinTheta |
400 | + | enbigger = .25 |
401 | - | finishInterp = SIN(t * theta) * invSinTheta |
401 | + | SOUND(holywrath,2644340882,10,false,6) |
402 | - | else |
402 | + | for i = 1, 60 do |
403 | - | startInterp = 1 - t |
403 | + | enbigger = enbigger + .02 |
404 | - | finishInterp = t |
404 | + | coroutine.wrap(function() |
405 | - | end |
405 | + | local sk = Instance.new("Part",Torso) |
406 | - | else |
406 | + | sk.CanCollide = false |
407 | - | if (1 + cosTheta) > 0.0001 then |
407 | + | sk.Anchored = true |
408 | - | local theta = ACOS(-cosTheta) |
408 | + | sk.BrickColor = BrickColor.new("White") |
409 | - | local invSinTheta = 1 / SIN(theta) |
409 | + | sk.Name = "sk" |
410 | - | startInterp = SIN((t - 1) * theta) * invSinTheta |
410 | + | sk.CFrame = holywrath.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
411 | - | finishInterp = SIN(t * theta) * invSinTheta |
411 | + | local skmesh = Instance.new("SpecialMesh",sk) |
412 | - | else |
412 | + | skmesh.MeshId = "rbxassetid://662586858" |
413 | - | startInterp = t - 1 |
413 | + | skmesh.Name = "wave" |
414 | - | finishInterp = t |
414 | + | skmesh.Scale = Vector3.new(.05,.005,.05) |
415 | - | end |
415 | + | for i = 1, 20 do |
416 | - | end |
416 | + | skmesh.Scale = skmesh.Scale + Vector3.new(enbigger,0,enbigger) |
417 | - | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp |
417 | + | sk.Transparency = sk.Transparency + .05 |
418 | swait() | |
419 | - | |
419 | + | |
420 | - | function Clerp(a, b, t) |
420 | + | sk:Remove() |
421 | - | local qa = {QuaternionFromCFrame(a)} |
421 | + | end)() |
422 | - | local qb = {QuaternionFromCFrame(b)} |
422 | + | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) |
423 | - | local ax, ay, az = a.x, a.y, a.z |
423 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) |
424 | - | local bx, by, bz = b.x, b.y, b.z |
424 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
425 | - | local _t = 1 - t |
425 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
426 | - | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
426 | + | holywrathaura.Volume = holywrathaura.Volume + .2 |
427 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) | |
428 | - | |
428 | + | enbig = enbig + 2 |
429 | - | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
429 | + | enbig2 = enbig2 + 1 |
430 | - | local frame = IT("Frame") |
430 | + | holywrath.Size = holywrath.Size + Vector3.new(4,4,4) |
431 | - | frame.BackgroundTransparency = TRANSPARENCY |
431 | + | holywrath2.Size = holywrath2.Size + Vector3.new(4,4,4) |
432 | - | frame.BorderSizePixel = BORDERSIZEPIXEL |
432 | + | holywrath2.CFrame = rightlocation.CFrame * CFrame.new(0,-5 - enbig,-5 - enbig2) |
433 | - | frame.Position = POSITION |
433 | + | holywrath.CFrame = rightlocation.CFrame * CFrame.new(0,-5 - enbig,-5 - enbig2) |
434 | - | frame.Size = SIZE |
434 | + | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)),.3) |
435 | - | frame.BackgroundColor3 = COLOR |
435 | + | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(1.22, 1.32, .4) * CFrame.Angles(math.rad(40 + 1 * math.sin(sine/5)), math.rad(3 + 1 * math.sin(sine/4)), math.rad(-160 - 2 * math.sin(sine/9))), 0.25) |
436 | - | frame.BorderColor3 = BORDERCOLOR |
436 | + | swait() |
437 | - | frame.Name = NAME |
437 | + | |
438 | - | frame.Parent = PARENT |
438 | + | for i = 1, 30 do |
439 | - | return frame |
439 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.98,-.15,.5) * CFrame.Angles(math.rad(-70 - 5 * math.sin(sine/12)),math.rad(40 - 5 * math.sin(sine/12)),math.rad(-20)),.25) |
440 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(25),math.rad(-50),math.rad(0)),.3) | |
441 | - | |
441 | + | swait() |
442 | - | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) |
442 | + | |
443 | - | local label = IT("TextLabel") |
443 | + | local hitboxwrath = Instance.new("Part",Torso) |
444 | - | label.BackgroundTransparency = 1 |
444 | + | hitboxwrath.Size = Vector3.new(1,1,1) |
445 | - | label.Size = UD2(1, 0, 1, 0) |
445 | + | hitboxwrath.CanCollide = false |
446 | - | label.Position = UD2(0, 0, 0, 0) |
446 | + | hitboxwrath.Transparency = 1 |
447 | - | label.TextColor3 = TEXTCOLOR |
447 | + | hitboxwrath.Anchored = false |
448 | - | label.TextStrokeTransparency = STROKETRANSPARENCY |
448 | + | hitboxwrath.Name = "hb" |
449 | - | label.TextTransparency = TRANSPARENCY |
449 | + | hitboxwrath.CFrame = holywrath.CFrame |
450 | - | label.FontSize = TEXTFONTSIZE |
450 | + | local bov = Instance.new("BodyVelocity",hitboxwrath) |
451 | - | label.Font = TEXTFONT |
451 | + | bov.maxForce = Vector3.new(99999,99999,99999) |
452 | - | label.BorderSizePixel = BORDERSIZEPIXEL |
452 | + | holywrath.CFrame = CFrame.new(holywrath.Position,mouse.Hit.p) |
453 | - | label.TextScaled = false |
453 | + | bov.velocity = holywrath.CFrame.lookVector*60 |
454 | - | label.Text = TEXT |
454 | + | local hitted = false |
455 | - | label.Name = NAME |
455 | + | local function explo() |
456 | - | label.Parent = PARENT |
456 | + | hitted = true |
457 | - | return label |
457 | + | hitboxwrath.Anchored = true |
458 | SOUND(hitboxwrath,2011915907,10,false,6) | |
459 | - | |
459 | + | shock = holywrath:Clone() shock.Parent = Torso |
460 | - | function NoOutlines(PART) |
460 | + | coroutine.wrap(function() |
461 | - | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
461 | + | for i = 1, 20 do |
462 | shock.Size = shock.Size + Vector3.new(5,5,5) | |
463 | - | |
463 | + | shock.Transparency = shock.Transparency + .05 |
464 | - | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) |
464 | + | swait() |
465 | - | local NEWWELD = IT(TYPE) |
465 | + | |
466 | - | NEWWELD.Part0 = PART0 |
466 | + | shock:Remove() |
467 | - | NEWWELD.Part1 = PART1 |
467 | + | end)() |
468 | - | NEWWELD.C0 = C0 |
468 | + | local taks = 0 |
469 | - | NEWWELD.C1 = C1 |
469 | + | local wavebigger = true |
470 | - | NEWWELD.Parent = PARENT |
470 | + | coroutine.wrap(function() |
471 | - | return NEWWELD |
471 | + | local deadlyring = Instance.new("Part", Torso) |
472 | deadlyring.Size = Vector3.new(5, 5, 5) | |
473 | - | |
473 | + | deadlyring.Transparency = .5 |
474 | - | local S = IT("Sound") |
474 | + | deadlyring.BrickColor = BrickColor.new("White") |
475 | - | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) |
475 | + | deadlyring.Anchored = true |
476 | - | local NEWSOUND = nil |
476 | + | deadlyring.CanCollide = false |
477 | - | coroutine.resume(coroutine.create(function() |
477 | + | deadlyring.CFrame = hitboxwrath.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))) |
478 | - | NEWSOUND = S:Clone() |
478 | + | local deadlyringh = Instance.new("SpecialMesh", deadlyring) |
479 | - | NEWSOUND.Parent = PARENT |
479 | + | deadlyringh.MeshId = "http://www.roblox.com/asset/?id=3270017" |
480 | - | NEWSOUND.Volume = VOLUME |
480 | + | deadlyringh.Scale = Vector3.new(330, 330, .1) |
481 | - | NEWSOUND.Pitch = PITCH |
481 | + | local deadlyring2 = Instance.new("Part", Torso) |
482 | - | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
482 | + | deadlyring2.Size = Vector3.new(5, 5, 5) |
483 | - | NEWSOUND:play() |
483 | + | deadlyring2.Transparency = .5 |
484 | - | if DOESLOOP == true then |
484 | + | deadlyring2.BrickColor = BrickColor.new("White") |
485 | - | NEWSOUND.Looped = true |
485 | + | deadlyring2.Anchored = true |
486 | - | else |
486 | + | deadlyring2.CanCollide = false |
487 | - | repeat wait(1) until NEWSOUND.Playing == false |
487 | + | deadlyring2.CFrame = hitboxwrath.CFrame * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180))) |
488 | - | NEWSOUND:remove() |
488 | + | local deadlyringh2 = Instance.new("SpecialMesh", deadlyring2) |
489 | - | end |
489 | + | deadlyringh2.MeshId = "http://www.roblox.com/asset/?id=3270017" |
490 | - | end)) |
490 | + | deadlyringh2.Scale = Vector3.new(360, 360, .1) |
491 | - | return NEWSOUND |
491 | + | while wavebigger do |
492 | Hit = damagealll(187,hitboxwrath.Position) | |
493 | - | |
493 | + | for _,v in pairs(Hit) do |
494 | - | function CFrameFromTopBack(at, top, back) |
494 | + | if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then |
495 | - | local right = top:Cross(back) |
495 | + | slachtoffer = v:FindFirstChildOfClass("Humanoid") |
496 | - | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) |
496 | + | slachtoffer:Destroy() |
497 | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) | |
498 | - | |
498 | + | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) |
499 | - | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
499 | + | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") |
500 | - | function WACKYEFFECT(Table) |
500 | + | vel.velocity = CFrame.new(hitboxwrath.Position,torso.Position).lookVector*330 |
501 | - | local TYPE = (Table.EffectType or "Sphere") |
501 | + | removeuseless:AddItem(vel,.1) |
502 | - | local SIZE = (Table.Size or VT(1,1,1)) |
502 | + | |
503 | - | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
503 | + | |
504 | - | local TRANSPARENCY = (Table.Transparency or 0) |
504 | + | deadlyring.CFrame = deadlyring.CFrame * CFrame.Angles(math.rad(0+7),math.rad(0-7),math.rad(0+7)) |
505 | - | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
505 | + | deadlyring2.CFrame = deadlyring2.CFrame * CFrame.Angles(math.rad(0-7),math.rad(0+7),math.rad(0-7)) |
506 | - | local CFRAME = (Table.CFrame or Torso.CFrame) |
506 | + | deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(2,2,0) |
507 | - | local MOVEDIRECTION = (Table.MoveToPos or nil) |
507 | + | deadlyringh.Scale = deadlyringh.Scale + Vector3.new(2,2,0) |
508 | - | local ROTATION1 = (Table.RotationX or 0) |
508 | + | holywrath2.Size = holywrath2.Size + Vector3.new(.25,.25,.25) |
509 | - | local ROTATION2 = (Table.RotationY or 0) |
509 | + | holywrath.Size = holywrath.Size + Vector3.new(.25,.25,.25) |
510 | - | local ROTATION3 = (Table.RotationZ or 0) |
510 | + | swait() |
511 | - | local MATERIAL = (Table.Material or "Neon") |
511 | + | |
512 | - | local COLOR = (Table.Color or C3(1,1,1)) |
512 | + | for i = 1, 50 do |
513 | - | local TIME = (Table.Time or 45) |
513 | + | holywrathaura.Volume = holywrathaura.Volume - .5 |
514 | - | local SOUNDID = (Table.SoundID or nil) |
514 | + | deadlyringh.Scale = deadlyringh.Scale + Vector3.new(5,5,0) |
515 | - | local SOUNDPITCH = (Table.SoundPitch or nil) |
515 | + | deadlyringh2.Scale = deadlyringh2.Scale + Vector3.new(5,5,0) |
516 | - | local SOUNDVOLUME = (Table.SoundVolume or nil) |
516 | + | deadlyring.Transparency = deadlyring.Transparency + .025 |
517 | - | coroutine.resume(coroutine.create(function() |
517 | + | deadlyring2.Transparency = deadlyring2.Transparency + .025 |
518 | - | local PLAYSSOUND = false |
518 | + | holywrath.Transparency = holywrath.Transparency + .025 |
519 | - | local SOUND = nil |
519 | + | holywrath2.Transparency = holywrath2.Transparency + .025 |
520 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
520 | + | swait() |
521 | - | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
521 | + | |
522 | - | PLAYSSOUND = true |
522 | + | holywrathaura:Remove() |
523 | - | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
523 | + | hitboxwrath:Remove() |
524 | - | end |
524 | + | holywrath:Remove() |
525 | - | EFFECT.Color = COLOR |
525 | + | holywrath2:Remove() |
526 | - | local MSH = nil |
526 | + | deadlyring:Remove() |
527 | - | if TYPE == "Sphere" then |
527 | + | deadlyring2:Remove() |
528 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
528 | + | end)() |
529 | - | elseif TYPE == "Block" then |
529 | + | for i = 1, 150 do |
530 | - | MSH = IT("BlockMesh",EFFECT) |
530 | + | taks = taks + .1 |
531 | - | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
531 | + | coroutine.wrap(function() |
532 | - | elseif TYPE == "Wave" then |
532 | + | local shockwave = Instance.new("Part", Torso) |
533 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
533 | + | shockwave.Size = Vector3.new(1,1,1) |
534 | - | elseif TYPE == "Ring" then |
534 | + | shockwave.CanCollide = false |
535 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
535 | + | shockwave.Anchored = true |
536 | - | elseif TYPE == "Slash" then |
536 | + | shockwave.Transparency = .5 |
537 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
537 | + | shockwave.BrickColor = BrickColor.new("White") |
538 | - | elseif TYPE == "Round Slash" then |
538 | + | shockwave.CFrame = CFrame.new(hitboxwrath.Position) |
539 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
539 | + | local shockwavemesh = Instance.new("SpecialMesh", shockwave) |
540 | - | elseif TYPE == "Swirl" then |
540 | + | shockwavemesh.Scale = Vector3.new(7,3,7) |
541 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
541 | + | shockwavemesh.MeshId = "rbxassetid://20329976" |
542 | - | elseif TYPE == "Skull" then |
542 | + | local shockwave2 = Instance.new("Part", Torso) |
543 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
543 | + | shockwave2.Size = Vector3.new(1,1,1) |
544 | - | elseif TYPE == "Crystal" then |
544 | + | shockwave2.CanCollide = false |
545 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
545 | + | shockwave2.Anchored = true |
546 | - | end |
546 | + | shockwave2.Transparency = .5 |
547 | - | if MSH ~= nil then |
547 | + | shockwave2.BrickColor = BrickColor.new("White") |
548 | - | local MOVESPEED = nil |
548 | + | shockwave2.CFrame = CFrame.new(hitboxwrath.Position) |
549 | - | if MOVEDIRECTION ~= nil then |
549 | + | local shockwavemesh2 = Instance.new("SpecialMesh", shockwave2) |
550 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
550 | + | shockwavemesh2.Scale = Vector3.new(5,3,5) |
551 | - | end |
551 | + | shockwavemesh2.MeshId = "rbxassetid://20329976" |
552 | - | local GROWTH = SIZE - ENDSIZE |
552 | + | for i = 1, 40 do |
553 | - | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
553 | + | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(math.rad(0),math.rad(0+15),0) |
554 | - | if TYPE == "Block" then |
554 | + | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(math.rad(0),math.rad(0-8),0) |
555 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
555 | + | shockwave.Transparency = shockwave.Transparency + 0.025 |
556 | - | else |
556 | + | shockwave2.Transparency = shockwave2.Transparency + 0.025 |
557 | - | EFFECT.CFrame = CFRAME |
557 | + | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(18 + taks,6 + taks/2,18 + taks) |
558 | - | end |
558 | + | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(18+taks,3 + taks/2,18+taks) |
559 | - | for LOOP = 1, TIME+1 do |
559 | + | swait() |
560 | - | Swait() |
560 | + | |
561 | - | MSH.Scale = MSH.Scale - GROWTH/TIME |
561 | + | shockwave:Remove() |
562 | - | if TYPE == "Wave" then |
562 | + | shockwave2:Remove() |
563 | - | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
563 | + | end)() |
564 | - | end |
564 | + | swait(0) |
565 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
565 | + | |
566 | - | if TYPE == "Block" then |
566 | + | wavebigger = false |
567 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
567 | + | |
568 | - | else |
568 | + | coroutine.wrap(function() |
569 | - | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
569 | + | local hitted = false |
570 | - | end |
570 | + | hitboxwrath.Touched:connect(function(hit) |
571 | - | if MOVEDIRECTION ~= nil then |
571 | + | if hit:IsA("Part") and hit.Parent ~= Character and hit.Name ~= "blad" and hit.Parent.Parent ~= Character then |
572 | - | local ORI = EFFECT.Orientation |
572 | + | if hitted then return end |
573 | - | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
573 | + | explo() |
574 | - | EFFECT.Orientation = ORI |
574 | + | |
575 | - | end |
575 | + | |
576 | - | end |
576 | + | |
577 | - | if PLAYSSOUND == false then |
577 | + | if hitted then break end |
578 | - | EFFECT:remove() |
578 | + | holywrath2.CFrame = hitboxwrath.CFrame |
579 | - | else |
579 | + | holywrath.CFrame = hitboxwrath.CFrame |
580 | - | repeat Swait() until SOUND.Playing == false |
580 | + | swait() |
581 | - | EFFECT:remove() |
581 | + | |
582 | - | end |
582 | + | end)() |
583 | - | else |
583 | + | coroutine.wrap(function() |
584 | - | if PLAYSSOUND == false then |
584 | + | for i = 1, 1100 do |
585 | - | EFFECT:remove() |
585 | + | if hitted then break end |
586 | - | else |
586 | + | swait() |
587 | - | repeat Swait() until SOUND.Playing == false |
587 | + | |
588 | - | EFFECT:remove() |
588 | + | if not hitted then |
589 | - | end |
589 | + | explo() |
590 | - | end |
590 | + | |
591 | - | end)) |
591 | + | end)() |
592 | for i = 1, 22 do | |
593 | - | |
593 | + | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) |
594 | - | function MakeForm(PART,TYPE) |
594 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) |
595 | - | if TYPE == "Cyl" then |
595 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
596 | - | local MSH = IT("CylinderMesh",PART) |
596 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
597 | - | elseif TYPE == "Ball" then |
597 | + | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.2) |
598 | - | local MSH = IT("SpecialMesh",PART) |
598 | + | RIGHTARMLERP.C1 = RIGHTARMLERP.C1:lerp(CFrame.new(.2,.2,.2) * CFrame.Angles(0,0,0),.2) |
599 | - | MSH.MeshType = "Sphere" |
599 | + | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 1.1, 0.4) * CFrame.Angles(math.rad(-75), math.rad(-15), math.rad(4)), 0.2) |
600 | - | elseif TYPE == "Wedge" then |
600 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) |
601 | - | local MSH = IT("SpecialMesh",PART) |
601 | + | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(-25),math.rad(50),math.rad(0)),.3) |
602 | - | MSH.MeshType = "Wedge" |
602 | + | swait() |
603 | - | end |
603 | + | |
604 | RIGHTARMLERP.C1 = CFrame.new(0,0,0) | |
605 | - | |
605 | + | removeuseless:AddItem(g1,.001) |
606 | - | Debris = game:GetService("Debris") |
606 | + | debounce = false |
607 | - | |
607 | + | attacking = false |
608 | - | function CastProperRay(StartPos, EndPos, Distance, Ignore) |
608 | + | ws = 90 |
609 | - | local DIRECTION = CF(StartPos,EndPos).lookVector |
609 | + | elseif Press=='y' then |
610 | - | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
610 | + | if debounce then return end |
611 | debounce = true | |
612 | - | |
612 | + | attacking = true |
613 | - | function CharacterFade(COLOR,TIMER) |
613 | + | local trev = true |
614 | - | coroutine.resume(coroutine.create(function() |
614 | + | change = .6 |
615 | - | local FADE = IT("Model",Effects) |
615 | + | coroutine.wrap(function() |
616 | - | for _, c in pairs(Character:GetChildren()) do |
616 | + | |
617 | - | if c.ClassName == "Part" and c ~= RootPart then |
617 | + | if trev == false then break end |
618 | - | local FADER = c:Clone() |
618 | + | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) |
619 | - | FADER.Color = COLOR |
619 | + | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(5 * math.sin(sine/12)),math.rad(-0 * math.sin(sine/12)),math.rad(0)),.2) |
620 | - | FADER.CFrame = c.CFrame |
620 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
621 | - | FADER.Parent = FADE |
621 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
622 | - | FADER.Anchored = true |
622 | + | swait() |
623 | - | FADER.Transparency = 0.25 |
623 | + | |
624 | - | FADER:BreakJoints() |
624 | + | end)() |
625 | - | FADER.Material = "Glass" |
625 | + | ws = 0 |
626 | - | FADER:ClearAllChildren() |
626 | + | local speech = Instance.new("Sound",Head) |
627 | - | if FADER.Name == "Head" then |
627 | + | speech.SoundId = "rbxassetid://2638520204" |
628 | - | FADER.Size = VT(1,1,1) |
628 | + | speech.Volume = 10 |
629 | - | end |
629 | + | speech:Play() |
630 | - | end |
630 | + | removeuseless:AddItem(speech,5) |
631 | - | end |
631 | + | coroutine.wrap(function() |
632 | - | local TRANS = 0.75/TIMER |
632 | + | for i = 1, 35 do |
633 | - | for i = 1, TIMER do |
633 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0.4, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(100)), 0.25) |
634 | - | Swait() |
634 | + | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-0.4, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-100)), 0.25) |
635 | - | for _, c in pairs(FADE:GetChildren()) do |
635 | + | swait() |
636 | - | if c.ClassName == "Part" then |
636 | + | |
637 | - | c.Transparency = c.Transparency + TRANS |
637 | + | end)() |
638 | - | end |
638 | + | coroutine.wrap(function() |
639 | - | end |
639 | + | local blwav = Instance.new("Part",Torso) |
640 | - | end |
640 | + | blwav.Size = Vector3.new(1,1,1) |
641 | - | FADE:remove() |
641 | + | blwav.Shape = "Ball" |
642 | - | end)) |
642 | + | blwav.BrickColor = BrickColor.new("Dark red") |
643 | blwav.CanCollide = false | |
644 | - | |
644 | + | blwav.CFrame = Root.CFrame |
645 | - | local PE=Instance.new("ParticleEmitter") |
645 | + | blwav.Anchored = true |
646 | - | PE.LightEmission=0.3 |
646 | + | blwav.Material = "Neon" |
647 | - | PE.Size=NumberSequence.new(0) |
647 | + | for i = 1, 50 do |
648 | - | PE.Transparency=NumberSequence.new(0,1) |
648 | + | blwav.Size = blwav.Size + Vector3.new(4,4,4) |
649 | - | PE.Rotation=NumberRange.new(0,360) |
649 | + | blwav.Transparency = blwav.Transparency + .05 |
650 | - | PE.LockedToPart = false |
650 | + | swait() |
651 | - | PE.Speed = NumberRange.new(0,0,0) |
651 | + | |
652 | - | PE.ZOffset = 0.3 |
652 | + | blwav:Remove() |
653 | - | PE.Rate = 999 |
653 | + | end)() |
654 | - | PE.VelocitySpread = 25 |
654 | + | eagle = Instance.new("Part", Torso) |
655 | - | PE.Name = "Particles" |
655 | + | eagle.Size = Vector3.new(1,1,1) |
656 | - | |
656 | + | eagle.CanCollide = false |
657 | - | function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed) |
657 | + | eagle.Anchored = false |
658 | - | local particle = nil |
658 | + | eagle.Material = "Neon" |
659 | - | coroutine.resume(coroutine.create(function(PART) |
659 | + | eagle.Transparency = .58 |
660 | - | particle = PE:Clone() |
660 | + | eagle.BrickColor = BrickColor.new("Dark Red") |
661 | - | Swait() |
661 | + | eagle.CFrame = CFrame.new(halo.Position) * CFrame.new(0,115,0) * CFrame.Angles(math.rad(90),0,0) |
662 | - | particle.Rate = 999 |
662 | + | local eaglemesh = Instance.new("SpecialMesh", eagle) |
663 | - | particle.Parent = art |
663 | + | eaglemesh.MeshId = "rbxassetid://120647529" |
664 | - | particle.Acceleration = accel |
664 | + | eaglemesh.Scale = Vector3.new(0,0,0) |
665 | - | if type == "Fire" then |
665 | + | eagleweld = weldBetween(eagle,Root) |
666 | - | local EyeSizes={ |
666 | + | eagleweld.C0 = CFrame.new(0,0,105) * CFrame.Angles(math.rad(-90),0,0) |
667 | - | NumberSequenceKeypoint.new(0,size,size/2), |
667 | + | local eagle2 = Instance.new("Part", Torso) |
668 | - | NumberSequenceKeypoint.new(1,size/4,size/8) |
668 | + | eagle2.Size = Vector3.new(1,1,1) |
669 | - | } |
669 | + | eagle2.CanCollide = false |
670 | - | particle.Size = NumberSequence.new(EyeSizes) |
670 | + | eagle2.Anchored = false |
671 | - | elseif type == "Smoke" then |
671 | + | eagle2.Material = "Neon" |
672 | - | local EyeSizes={ |
672 | + | eagle2.Transparency = .49 |
673 | - | NumberSequenceKeypoint.new(0,size/5,0), |
673 | + | eagle2.BrickColor = BrickColor.new("Pastel violet") |
674 | - | NumberSequenceKeypoint.new(1,size*2,0.5) |
674 | + | eagle2.CFrame = CFrame.new(halo.Position) * CFrame.new(0,115,0) * CFrame.Angles(math.rad(90),0,0) |
675 | - | } |
675 | + | local eaglemesh2 = Instance.new("SpecialMesh", eagle2) |
676 | - | particle.Size = NumberSequence.new(EyeSizes) |
676 | + | eaglemesh2.MeshId = "rbxassetid://120647529" |
677 | - | elseif type == "Solid" then |
677 | + | eaglemesh2.Scale = Vector3.new(0,0,0) |
678 | - | local EyeSizes={ |
678 | + | eagleweld2 = weldBetween(eagle2,Root) |
679 | - | NumberSequenceKeypoint.new(0,size,0), |
679 | + | eagleweld2.C0 = CFrame.new(0,0,105) * CFrame.Angles(math.rad(-90),0,0) |
680 | - | NumberSequenceKeypoint.new(1,size,0) |
680 | + | local eagle3 = Instance.new("Part", Torso) |
681 | - | } |
681 | + | eagle3.Size = Vector3.new(1,1,1) |
682 | - | particle.Size = NumberSequence.new(EyeSizes) |
682 | + | eagle3.CanCollide = false |
683 | - | end |
683 | + | eagle3.Anchored = false |
684 | - | particle.Lifetime=NumberRange.new(lifetime) |
684 | + | eagle3.Material = "Neon" |
685 | - | particle.Drag = drag |
685 | + | eagle3.Transparency = .65 |
686 | - | if locked == true then |
686 | + | eagle3.BrickColor = BrickColor.new("Mulberry") |
687 | - | particle.LockedToPart = true |
687 | + | eagle3.CFrame = CFrame.new(halo.Position) * CFrame.new(0,115,0) * CFrame.Angles(math.rad(90),0,0) |
688 | - | end |
688 | + | local eaglemesh3 = Instance.new("SpecialMesh", eagle3) |
689 | - | particle.Speed = NumberRange.new(speed*0.8,speed) |
689 | + | eaglemesh3.MeshId = "rbxassetid://120647529" |
690 | - | particle.Texture = "http://www.roblox.com/asset/?id=1179557490" |
690 | + | eaglemesh3.Scale = Vector3.new(0,0,0) |
691 | - | particle.Enabled = isenabledbydefault |
691 | + | eagleweld3 = weldBetween(eagle3,Root) |
692 | - | particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0)) |
692 | + | eagleweld3.C0 = CFrame.new(0,0,105) * CFrame.Angles(math.rad(-90),0,0) |
693 | - | end)) |
693 | + | circlelocation = Instance.new("Part",Torso) |
694 | - | return particle |
694 | + | circlelocation.Size = Vector3.new(1,1,1) |
695 | circlelocation.CFrame = Root.CFrame | |
696 | - | |
696 | + | circlelocation.Anchored = false |
697 | - | --//=================================\\ |
697 | + | circlelocation.Transparency = 1 |
698 | - | --|| RAGDOLL STUFF |
698 | + | circlelocation.CanCollide = false |
699 | - | --\\=================================// |
699 | + | circlelocationweld = weldBetween(circlelocation,Root) |
700 | - | |
700 | + | circlelocationweld.C0 = CFrame.new(0,-56,-15) |
701 | - | function recurse(root,callback,i) |
701 | + | lighttable = {} |
702 | - | i= i or 0 |
702 | + | val = 0 |
703 | - | for _,v in pairs(root:GetChildren()) do |
703 | + | for i = 1, 250 do |
704 | - | i = i + 1 |
704 | + | val = val + 5 |
705 | - | callback(i,v) |
705 | + | lightpart = Instance.new("Part",Torso) |
706 | - | |
706 | + | lightpart.Anchored = false |
707 | - | if #v:GetChildren() > 0 then |
707 | + | lightpart.CanCollide = false |
708 | - | i = recurse(v,callback,i) |
708 | + | lightpart.Size = Vector3.new(2,.5,2.35) |
709 | - | end |
709 | + | lightpart.Material = "Neon" |
710 | - | end |
710 | + | lightpart.Transparency = 1 |
711 | - | |
711 | + | lightpart.BrickColor = BrickColor.new("Gold") |
712 | - | return i |
712 | + | lightpartweld = weldBetween(lightpart,circlelocation) |
713 | lightpartweld.C0 = CFrame.new(25,0,0) * CFrame.Angles(0,math.rad(val),0) | |
714 | - | |
714 | + | table.insert(lighttable,lightpart) |
715 | - | function ragdollJoint(character, part0, part1, attachmentName, className, properties) |
715 | + | |
716 | - | attachmentName = attachmentName.."RigAttachment" |
716 | + | coroutine.wrap(function() |
717 | - | local constraint = Instance.new(className.."Constraint") |
717 | + | wait(0) |
718 | - | constraint.Attachment0 = part0:FindFirstChild(attachmentName) |
718 | + | for i = 1, 120 do |
719 | - | constraint.Attachment1 = part1:FindFirstChild(attachmentName) |
719 | + | for i,v in pairs(lighttable) do |
720 | - | constraint.Name = "RagdollConstraint"..part1.Name |
720 | + | v.Transparency = v.Transparency - .01 |
721 | - | |
721 | + | |
722 | - | for _,propertyData in next,properties or {} do |
722 | + | swait() |
723 | - | constraint[propertyData[1]] = propertyData[2] |
723 | + | |
724 | - | end |
724 | + | end)() |
725 | - | |
725 | + | introvog = true |
726 | - | constraint.Parent = character |
726 | + | coroutine.wrap(function() |
727 | for i = 1, 63 do | |
728 | - | |
728 | + | eaglemesh3.Scale = eaglemesh3.Scale + Vector3.new(0,1,1) |
729 | - | function getAttachment0(character, attachmentName) |
729 | + | swait() |
730 | - | for _,child in next,character:GetChildren() do |
730 | + | |
731 | - | local attachment = child:FindFirstChild(attachmentName) |
731 | + | for i = 1, 32 do |
732 | - | if attachment then |
732 | + | eaglemesh3.Scale = eaglemesh3.Scale + Vector3.new(2,0,0) |
733 | - | return attachment |
733 | + | swait() |
734 | - | end |
734 | + | |
735 | - | end |
735 | + | for i = 1, 50 do |
736 | hum.CameraOffset = Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
737 | - | |
737 | + | coroutine.wrap(function() |
738 | - | function ArtificialHitbox(Part) |
738 | + | local wshockwave = Instance.new("Part", Torso) |
739 | - | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) |
739 | + | wshockwave.Size = Vector3.new(1,1,1) |
740 | - | HITBOX.CanCollide = true |
740 | + | wshockwave.CanCollide = false |
741 | - | HITBOX.CFrame = Part.CFrame |
741 | + | wshockwave.Anchored = true |
742 | - | weldBetween(Part,HITBOX) |
742 | + | wshockwave.Transparency = .45 |
743 | wshockwave.BrickColor = BrickColor.new("White") | |
744 | - | |
744 | + | wshockwave.CFrame = CFrame.new(eagle.Position) * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
745 | - | function R15Ragdoll(character,KeepArms) |
745 | + | local wshockwavemesh = Instance.new("SpecialMesh", wshockwave) |
746 | - | character:BreakJoints() |
746 | + | wshockwavemesh.Scale = Vector3.new(1,.005,1) |
747 | - | coroutine.resume(coroutine.create(function() |
747 | + | wshockwavemesh.Name = "wswm" |
748 | - | recurse(character, function(_,v) |
748 | + | wshockwavemesh.MeshId = "rbxassetid://20329976" |
749 | - | if v:IsA("Attachment") then |
749 | + | removeuseless:AddItem(wshockwave,2) |
750 | - | v.Axis = Vector3.new(0, 1, 0) |
750 | + | for i = 1, 20 do |
751 | - | v.SecondaryAxis = Vector3.new(0, 0, 1) |
751 | + | wshockwavemesh.Scale = wshockwavemesh.Scale + Vector3.new(29.5,0,29.5) |
752 | - | v.Rotation = Vector3.new(0, 0, 0) |
752 | + | wshockwave.Transparency = wshockwave.Transparency + .05 |
753 | - | end |
753 | + | swait() |
754 | - | end) |
754 | + | |
755 | - | for _,child in next,character:GetChildren() do |
755 | + | wshockwave:Remove() |
756 | - | if child:IsA("Accoutrement") then |
756 | + | end)() |
757 | - | for _,part in next,child:GetChildren() do |
757 | + | coroutine.wrap(function() |
758 | - | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then |
758 | + | local sk = Instance.new("Part",Torso) |
759 | - | local attachment1 = part:FindFirstChildOfClass("Attachment") |
759 | + | sk.CanCollide = false |
760 | - | local attachment0 = getAttachment0(character,attachment1.Name) |
760 | + | sk.Anchored = true |
761 | - | if attachment0 and attachment1 then |
761 | + | sk.BrickColor = BrickColor.new("White") |
762 | - | local constraint = Instance.new("HingeConstraint") |
762 | + | sk.Name = "sk" |
763 | - | constraint.Attachment0 = attachment0 |
763 | + | sk.CFrame = eagle.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
764 | - | constraint.Attachment1 = attachment1 |
764 | + | local skmesh = Instance.new("SpecialMesh",sk) |
765 | - | constraint.LimitsEnabled = true |
765 | + | skmesh.MeshId = "rbxassetid://662586858" |
766 | - | constraint.UpperAngle = 0 |
766 | + | skmesh.Name = "wave" |
767 | - | constraint.LowerAngle = 0 |
767 | + | skmesh.Scale = Vector3.new(.05,.005,.05) |
768 | - | constraint.Parent = character |
768 | + | for i = 1, 20 do |
769 | - | end |
769 | + | skmesh.Scale = skmesh.Scale + Vector3.new(.25,0,.25) |
770 | - | ArtificialHitbox(part) |
770 | + | sk.Transparency = sk.Transparency + .05 |
771 | - | elseif part.Name == "HumanoidRootPart" then |
771 | + | swait() |
772 | - | part:remove() |
772 | + | |
773 | - | end |
773 | + | sk:Remove() |
774 | - | end |
774 | + | end)() |
775 | - | end |
775 | + | swait() |
776 | - | end |
776 | + | |
777 | - | |
777 | + | introvog = false |
778 | - | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { |
778 | + | hum.CameraOffset = Vector3.new(0,0,0) |
779 | - | {"LimitsEnabled",true}; |
779 | + | end)() |
780 | - | {"UpperAngle",5}; |
780 | + | coroutine.wrap(function() |
781 | - | }) |
781 | + | for i = 1, 54 do |
782 | - | if character:FindFirstChild("Head") then |
782 | + | eaglemesh2.Scale = eaglemesh2.Scale + Vector3.new(0,1,1) |
783 | - | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { |
783 | + | swait() |
784 | - | {"LimitsEnabled",true}; |
784 | + | |
785 | - | {"UpperAngle",15}; |
785 | + | local eaglesound = Instance.new("Sound",eagle) |
786 | - | }) |
786 | + | eaglesound.SoundId = "rbxassetid://923172614" |
787 | - | end |
787 | + | eaglesound.Volume = 10 |
788 | - | |
788 | + | eaglesound:Play() |
789 | - | local handProperties = { |
789 | + | removeuseless:AddItem(eaglesound,5) |
790 | - | {"LimitsEnabled", true}; |
790 | + | for i = 1, 27 do |
791 | - | {"UpperAngle",0}; |
791 | + | eaglemesh2.Scale = eaglemesh2.Scale + Vector3.new(2,0,0) |
792 | - | {"LowerAngle",0}; |
792 | + | swait() |
793 | - | } |
793 | + | |
794 | - | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) |
794 | + | end)() |
795 | - | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) |
795 | + | coroutine.wrap(function() |
796 | - | |
796 | + | for i = 1, 59 do |
797 | - | local shinProperties = { |
797 | + | eaglemesh.Scale = eaglemesh.Scale + Vector3.new(0,1,1) |
798 | - | {"LimitsEnabled", true}; |
798 | + | swait() |
799 | - | {"UpperAngle", 0}; |
799 | + | |
800 | - | {"LowerAngle", -75}; |
800 | + | for i = 1, 30 do |
801 | - | } |
801 | + | eaglemesh.Scale = eaglemesh.Scale + Vector3.new(2,0,0) |
802 | - | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) |
802 | + | swait() |
803 | - | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) |
803 | + | |
804 | - | |
804 | + | end)() |
805 | - | local footProperties = { |
805 | + | while wait() do |
806 | - | {"LimitsEnabled", true}; |
806 | + | if introvog == false then break end |
807 | - | {"UpperAngle", 15}; |
807 | + | |
808 | - | {"LowerAngle", -45}; |
808 | + | bleedattacking = true |
809 | - | } |
809 | + | g1 = Instance.new("BodyGyro", Root) |
810 | - | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) |
810 | + | g1.D = 175 |
811 | - | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) |
811 | + | g1.P = 20000 |
812 | - | if KeepArms == true then |
812 | + | g1.MaxTorque = Vector3.new(0,9000000,0) |
813 | - | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") |
813 | + | coroutine.wrap(function() |
814 | - | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") |
814 | + | while bleedattacking do |
815 | - | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") |
815 | + | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.155) |
816 | - | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") |
816 | + | swait() |
817 | - | end |
817 | + | |
818 | - | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") |
818 | + | removeuseless:AddItem(g1,.001) |
819 | - | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") |
819 | + | end)() |
820 | - | Debris:AddItem(character,5) |
820 | + | coroutine.wrap(function() |
821 | - | end)) |
821 | + | local lnt = Instance.new("Sound",eagle) |
822 | lnt.SoundId = "rbxassetid://224339201" | |
823 | - | |
823 | + | lnt.Volume = 10 |
824 | - | function Ragdoll(Character2,CharTorso,KeepArms) |
824 | + | lnt:Play() |
825 | - | coroutine.resume(coroutine.create(function() |
825 | + | removeuseless:AddItem(lnt,5) |
826 | - | Character2:BreakJoints() |
826 | + | wait(0) |
827 | - | local hum = Character2:findFirstChild("Humanoid") |
827 | + | local lnt2 = Instance.new("Sound",eagle) |
828 | - | hum:remove() |
828 | + | lnt2.SoundId = "rbxassetid://1539349118" |
829 | - | local function Scan(ch) |
829 | + | lnt2.Volume = 10 |
830 | - | local e |
830 | + | lnt2:Play() |
831 | - | for e = 1,#ch do |
831 | + | removeuseless:AddItem(lnt2,5) |
832 | - | Scan(ch[e]:GetChildren()) |
832 | + | end)() |
833 | - | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then |
833 | + | for i = 1, 10 do |
834 | - | ch[e]:remove() |
834 | + | local bladeofjustice = Instance.new("Part",Torso) |
835 | - | end |
835 | + | bladeofjustice.Anchored = true |
836 | - | end |
836 | + | bladeofjustice.CanCollide = false |
837 | - | end |
837 | + | bladeofjustice.Name = "blad" |
838 | - | local NEWHUM = IT("Humanoid") |
838 | + | bladeofjustice.Transparency = 1 |
839 | - | NEWHUM.Name = "Corpse" |
839 | + | bladeofjustice.Size = Vector3.new(2,2,2) |
840 | - | NEWHUM.Health = 0 |
840 | + | bladeofjustice.BrickColor = BrickColor.new("Dark Red") |
841 | - | NEWHUM.MaxHealth = 0 |
841 | + | bladeofjustice.Material = "Neon" |
842 | - | NEWHUM.PlatformStand = true |
842 | + | bladeofjustice.CFrame = eagle.CFrame * CFrame.new(math.random(-139,139),math.random(-39,39),math.random(-15,15)) |
843 | - | NEWHUM.Parent = Character2 |
843 | + | local bladeofjusticemesh = Instance.new("SpecialMesh",bladeofjustice) |
844 | - | NEWHUM.DisplayDistanceType = "None" |
844 | + | bladeofjusticemesh.MeshId = "rbxassetid://2624209310" |
845 | - | |
845 | + | bladeofjusticemesh.Scale = Vector3.new(10,10,10) |
846 | - | local ch = Character2:GetChildren() |
846 | + | local particlecolor = ColorSequence.new(Color3.new(255, 255, 255)) |
847 | - | local i |
847 | + | local blwav = Instance.new("Part",Torso) |
848 | - | for i = 1,#ch do |
848 | + | blwav.Size = Vector3.new(1,1,1) |
849 | - | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then |
849 | + | blwav.Shape = "Ball" |
850 | - | ch[i]:remove() |
850 | + | blwav.BrickColor = BrickColor.new("Dark Red") |
851 | - | end |
851 | + | blwav.CanCollide = false |
852 | - | end |
852 | + | blwav.CFrame = bladeofjustice.CFrame |
853 | - | |
853 | + | blwav.Anchored = true |
854 | - | local Torso2 = Character2.Torso |
854 | + | blwav.Material = "Neon" |
855 | - | local movevector = Vector3.new() |
855 | + | blwav.Size = blwav.Size + Vector3.new(4,4,4) |
856 | - | |
856 | + | blwav.Transparency = blwav.Transparency + .05 |
857 | - | if Torso2 then |
857 | + | coroutine.wrap(function() |
858 | - | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector |
858 | + | for i = 1, 5 do |
859 | - | local Head = Character2:FindFirstChild("Head") |
859 | + | local sk = Instance.new("Part",Torso) |
860 | - | if Head then |
860 | + | sk.CanCollide = false |
861 | - | local Neck = Instance.new("Weld") |
861 | + | sk.Anchored = true |
862 | - | Neck.Name = "Neck" |
862 | + | sk.BrickColor = BrickColor.new("White") |
863 | - | Neck.Part0 = Torso2 |
863 | + | sk.Name = "sk" |
864 | - | Neck.Part1 = Head |
864 | + | sk.CFrame = bladeofjustice.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
865 | - | Neck.C0 = CFrame.new(0, 1.5, 0) |
865 | + | local skmesh = Instance.new("SpecialMesh",sk) |
866 | - | Neck.C1 = CFrame.new() |
866 | + | skmesh.MeshId = "rbxassetid://662586858" |
867 | - | Neck.Parent = Torso2 |
867 | + | skmesh.Name = "wave" |
868 | - | |
868 | + | skmesh.Scale = Vector3.new(.05,.005,.05) |
869 | - | end |
869 | + | for i = 1, 20 do |
870 | - | local Limb = Character2:FindFirstChild("Right Arm") |
870 | + | skmesh.Scale = skmesh.Scale + Vector3.new(.05,0,.05) |
871 | - | if Limb and KeepArms == true then |
871 | + | sk.Transparency = sk.Transparency + .05 |
872 | - | |
872 | + | swait() |
873 | - | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) |
873 | + | |
874 | - | local Joint = Instance.new("Glue") |
874 | + | sk:Remove() |
875 | - | Joint.Name = "RightShoulder" |
875 | + | |
876 | - | Joint.Part0 = Torso2 |
876 | + | end)() |
877 | - | Joint.Part1 = Limb |
877 | + | coroutine.wrap(function() |
878 | - | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) |
878 | + | for i = 1, 20 do |
879 | - | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) |
879 | + | blwav.Size = blwav.Size + Vector3.new(10,10,10) |
880 | - | Joint.Parent = Torso2 |
880 | + | blwav.Transparency = blwav.Transparency + .05 |
881 | - | |
881 | + | bladeofjustice.Transparency = bladeofjustice.Transparency - .05 |
882 | - | local B = Instance.new("Part") |
882 | + | swait() |
883 | - | B.TopSurface = 0 |
883 | + | |
884 | - | B.BottomSurface = 0 |
884 | + | blwav:Remove() |
885 | - | B.formFactor = "Symmetric" |
885 | + | end)() |
886 | - | B.Size = Vector3.new(1, 1, 1) |
886 | + | local hitted = false |
887 | - | B.Transparency = 1 |
887 | + | coroutine.wrap(function() |
888 | - | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) |
888 | + | for i = 1, 300 do |
889 | - | B.Parent = Character2 |
889 | + | if hitted then break end |
890 | - | local W = Instance.new("Weld") |
890 | + | swait() |
891 | - | W.Part0 = Limb |
891 | + | |
892 | - | W.Part1 = B |
892 | + | if not hitted then |
893 | - | W.C0 = CFrame.new(0, -0.5, 0) |
893 | + | bladeofjustice:Remove() |
894 | - | W.Parent = Limb |
894 | + | |
895 | - | |
895 | + | end)() |
896 | - | end |
896 | + | bladeofjustice.Anchored = false |
897 | - | local Limb = Character2:FindFirstChild("Left Arm") |
897 | + | local bov = Instance.new("BodyVelocity",bladeofjustice) |
898 | - | if Limb and KeepArms == true then |
898 | + | bov.maxForce = Vector3.new(9999999,9999999,9999999) |
899 | - | |
899 | + | bladeofjustice.CFrame = CFrame.new(bladeofjustice.Position,mouse.Hit.p) |
900 | - | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) |
900 | + | bov.velocity = bladeofjustice.CFrame.lookVector*350 |
901 | - | local Joint = Instance.new("Glue") |
901 | + | bladeofjustice.Touched:connect(function(hit) |
902 | - | Joint.Name = "LeftShoulder" |
902 | + | if hit:IsA("Part") and hit.Parent ~= Character and hit.Name ~= "blad" and hit.Parent.Parent ~= Character then |
903 | - | Joint.Part0 = Torso2 |
903 | + | if hitted then return end |
904 | - | Joint.Part1 = Limb |
904 | + | hitted = true |
905 | - | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) |
905 | + | bov:Remove() |
906 | - | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) |
906 | + | bladeofjustice.Anchored = true |
907 | - | Joint.Parent = Torso2 |
907 | + | wait(0) |
908 | - | |
908 | + | removeuseless:AddItem(bladeofjustice,5) |
909 | - | local B = Instance.new("Part") |
909 | + | coroutine.wrap(function() |
910 | - | B.TopSurface = 0 |
910 | + | for i = 1, 20 do |
911 | - | B.BottomSurface = 0 |
911 | + | hum.CameraOffset = Vector3.new(math.random(-3,3),math.random(-3,3),math.random(-3,3)) |
912 | - | B.formFactor = "Symmetric" |
912 | + | swait() |
913 | - | B.Size = Vector3.new(1, 1, 1) |
913 | + | |
914 | - | B.Transparency = 1 |
914 | + | hum.CameraOffset = Vector3.new(0,0,0) |
915 | - | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) |
915 | + | end)() |
916 | - | B.Parent = Character2 |
916 | + | Hit = damagealll(144,bladeofjustice.Position) |
917 | - | local W = Instance.new("Weld") |
917 | + | for _,v in pairs(Hit) do |
918 | - | W.Part0 = Limb |
918 | + | if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then |
919 | - | W.Part1 = B |
919 | + | slachtoffer = v:FindFirstChildOfClass("Humanoid") |
920 | - | W.C0 = CFrame.new(0, -0.5, 0) |
920 | + | slachtoffer:Destroy() |
921 | - | W.Parent = Limb |
921 | + | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) |
922 | - | |
922 | + | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) |
923 | - | end |
923 | + | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") |
924 | - | local Limb = Character2:FindFirstChild("Right Leg") |
924 | + | vel.velocity = CFrame.new(bladeofjustice.Position,torso.Position).lookVector*330 |
925 | - | if Limb then |
925 | + | removeuseless:AddItem(vel,.1) |
926 | - | |
926 | + | |
927 | - | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) |
927 | + | |
928 | - | local Joint = Instance.new("Glue") |
928 | + | local soundbox = Instance.new("Part",Torso) |
929 | - | Joint.Name = "RightHip" |
929 | + | soundbox.CFrame = bladeofjustice.CFrame |
930 | - | Joint.Part0 = Torso2 |
930 | + | soundbox.Size = Vector3.new(1,1,1) |
931 | - | Joint.Part1 = Limb |
931 | + | soundbox.Anchored = true |
932 | - | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) |
932 | + | soundbox.CanCollide = false |
933 | - | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) |
933 | + | soundbox.Transparency = 1 |
934 | - | Joint.Parent = Torso2 |
934 | + | removeuseless:AddItem(soundbox,5) |
935 | - | |
935 | + | wabam = Instance.new("Sound",soundbox) |
936 | - | local B = Instance.new("Part") |
936 | + | wabam.SoundId = "rbxassetid://2444802791" |
937 | - | B.TopSurface = 0 |
937 | + | wabam.Volume = 8 |
938 | - | B.BottomSurface = 0 |
938 | + | wabam:Play() |
939 | - | B.formFactor = "Symmetric" |
939 | + | bladeofjustice.Transparency = 1 |
940 | - | B.Size = Vector3.new(1, 1, 1) |
940 | + | pobox = Instance.new("Part",Torso) |
941 | - | B.Transparency = 1 |
941 | + | pobox.Anchored = true |
942 | - | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) |
942 | + | pobox.CanCollide = false |
943 | - | B.Parent = Character2 |
943 | + | pobox.Size = Vector3.new(1,1,1) |
944 | - | local W = Instance.new("Weld") |
944 | + | pobox.CFrame = bladeofjustice.CFrame |
945 | - | W.Part0 = Limb |
945 | + | pobox.Transparency = 1 |
946 | - | W.Part1 = B |
946 | + | for i = 1, 4 do |
947 | - | W.C0 = CFrame.new(0, -0.5, 0) |
947 | + | coroutine.wrap(function() |
948 | - | W.Parent = Limb |
948 | + | local shockwave = Instance.new("Part", Torso) |
949 | - | |
949 | + | shockwave.Size = Vector3.new(1,1,1) |
950 | - | end |
950 | + | shockwave.CanCollide = false |
951 | - | local Limb = Character2:FindFirstChild("Left Leg") |
951 | + | shockwave.Anchored = true |
952 | - | if Limb then |
952 | + | shockwave.Transparency = .5 |
953 | - | |
953 | + | shockwave.BrickColor = BrickColor.new("White") |
954 | - | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) |
954 | + | shockwave.CFrame = CFrame.new(pobox.Position) |
955 | - | local Joint = Instance.new("Glue") |
955 | + | local shockwavemesh = Instance.new("SpecialMesh", shockwave) |
956 | - | Joint.Name = "LeftHip" |
956 | + | shockwavemesh.Scale = Vector3.new(7,3,7) |
957 | - | Joint.Part0 = Torso2 |
957 | + | shockwavemesh.MeshId = "rbxassetid://20329976" |
958 | - | Joint.Part1 = Limb |
958 | + | local shockwave2 = Instance.new("Part", Torso) |
959 | - | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) |
959 | + | shockwave2.Size = Vector3.new(1,1,1) |
960 | - | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) |
960 | + | shockwave2.CanCollide = false |
961 | - | Joint.Parent = Torso2 |
961 | + | shockwave2.Anchored = true |
962 | - | |
962 | + | shockwave2.Transparency = .5 |
963 | - | local B = Instance.new("Part") |
963 | + | shockwave2.BrickColor = BrickColor.new("White") |
964 | - | B.TopSurface = 0 |
964 | + | shockwave2.CFrame = CFrame.new(pobox.Position) |
965 | - | B.BottomSurface = 0 |
965 | + | local shockwavemesh2 = Instance.new("SpecialMesh", shockwave2) |
966 | - | B.formFactor = "Symmetric" |
966 | + | shockwavemesh2.Scale = Vector3.new(5,3,5) |
967 | - | B.Size = Vector3.new(1, 1, 1) |
967 | + | shockwavemesh2.MeshId = "rbxassetid://20329976" |
968 | - | B.Transparency = 1 |
968 | + | for i = 1, 40 do |
969 | - | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) |
969 | + | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(math.rad(0),math.rad(0+15),0) |
970 | - | B.Parent = Character2 |
970 | + | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(math.rad(0),math.rad(0-8),0) |
971 | - | local W = Instance.new("Weld") |
971 | + | shockwave.Transparency = shockwave.Transparency + 0.025 |
972 | - | W.Part0 = Limb |
972 | + | shockwave2.Transparency = shockwave2.Transparency + 0.025 |
973 | - | W.Part1 = B |
973 | + | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(18,6,18) |
974 | - | W.C0 = CFrame.new(0, -0.5, 0) |
974 | + | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(18,3,18) |
975 | - | W.Parent = Limb |
975 | + | swait() |
976 | - | |
976 | + | |
977 | - | end |
977 | + | pobox:Remove() |
978 | - | --[ |
978 | + | shockwave:Remove() |
979 | - | local Bar = Instance.new("Part") |
979 | + | shockwave2:Remove() |
980 | - | Bar.TopSurface = 0 |
980 | + | bladeofjustice:Remove() |
981 | - | Bar.BottomSurface = 0 |
981 | + | end)() |
982 | - | Bar.formFactor = "Symmetric" |
982 | + | coroutine.wrap(function() |
983 | - | Bar.Size = Vector3.new(1, 1, 1) |
983 | + | local sk = Instance.new("Part",Torso) |
984 | - | Bar.Transparency = 1 |
984 | + | sk.CanCollide = false |
985 | - | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) |
985 | + | sk.Anchored = true |
986 | - | Bar.Parent = Character2 |
986 | + | sk.BrickColor = BrickColor.new("White") |
987 | - | local Weld = Instance.new("Weld") |
987 | + | sk.Name = "sk" |
988 | - | Weld.Part0 = Torso2 |
988 | + | sk.CFrame = bladeofjustice.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
989 | - | Weld.Part1 = Bar |
989 | + | local skmesh = Instance.new("SpecialMesh",sk) |
990 | - | Weld.C0 = CFrame.new(0, 0.5, 0) |
990 | + | skmesh.MeshId = "rbxassetid://662586858" |
991 | - | Weld.Parent = Torso2 |
991 | + | skmesh.Name = "wave" |
992 | - | --]] |
992 | + | skmesh.Scale = Vector3.new(.06,.001,.06) |
993 | - | end |
993 | + | for i = 1, 20 do |
994 | - | Character2.Parent = workspace |
994 | + | skmesh.Scale = skmesh.Scale + Vector3.new(.13,0,.13) |
995 | - | Debris:AddItem(Character2,5) |
995 | + | sk.Transparency = sk.Transparency + .05 |
996 | - | |
996 | + | swait() |
997 | - | return Character2,Torso2 |
997 | + | |
998 | - | end)) |
998 | + | sk:Remove() |
999 | end)() | |
1000 | - | |
1000 | + | coroutine.wrap(function() |
1001 | - | --//=================================\\ |
1001 | + | local wshockwave = Instance.new("Part", Torso) |
1002 | - | --|| WEAPON CREATION |
1002 | + | wshockwave.Size = Vector3.new(1,1,1) |
1003 | - | --\\=================================// |
1003 | + | wshockwave.CanCollide = false |
1004 | - | |
1004 | + | wshockwave.Anchored = true |
1005 | - | local DUST = CreateParticles(RightArm,VT(0,0,0),5,2,"Smoke",false,false,5,0) |
1005 | + | wshockwave.Transparency = .45 |
1006 | - | DUST.ZOffset = 1 |
1006 | + | wshockwave.BrickColor = BrickColor.new("White") |
1007 | - | RightArm.Transparency = 1 |
1007 | + | wshockwave.CFrame = CFrame.new(bladeofjustice.Position) * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
1008 | - | local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false) |
1008 | + | local wshockwavemesh = Instance.new("SpecialMesh", wshockwave) |
1009 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1009 | + | wshockwavemesh.Scale = Vector3.new(10,.05,10) |
1010 | - | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false) |
1010 | + | wshockwavemesh.Name = "wswm" |
1011 | - | MakeForm(Sphere,"Ball") |
1011 | + | wshockwavemesh.MeshId = "rbxassetid://20329976" |
1012 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1012 | + | for i = 1, 20 do |
1013 | - | local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false) |
1013 | + | wshockwavemesh.Scale = wshockwavemesh.Scale + Vector3.new(30,0,30) |
1014 | - | MakeForm(LaserPart,"Ball") |
1014 | + | wshockwave.Transparency = wshockwave.Transparency + .05 |
1015 | - | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1015 | + | swait() |
1016 | - | local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.2),false) |
1016 | + | |
1017 | - | MakeForm(Bump,"Ball") |
1017 | + | wshockwave:Remove() |
1018 | - | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1018 | + | end)() |
1019 | - | local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false) |
1019 | + | coroutine.wrap(function() |
1020 | - | MakeForm(BottomLaser,"Cyl") |
1020 | + | local blwav = Instance.new("Part",Torso) |
1021 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1021 | + | blwav.Size = Vector3.new(1,1,1) |
1022 | - | local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) |
1022 | + | blwav.Shape = "Ball" |
1023 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1023 | + | blwav.BrickColor = BrickColor.new("Dark Red") |
1024 | - | local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) |
1024 | + | blwav.CanCollide = false |
1025 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0)) |
1025 | + | blwav.CFrame = bladeofjustice.CFrame |
1026 | - | local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) |
1026 | + | blwav.Anchored = true |
1027 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0)) |
1027 | + | blwav.Material = "Neon" |
1028 | - | local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) |
1028 | + | for i = 1, 20 do |
1029 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0)) |
1029 | + | blwav.Size = blwav.Size + Vector3.new(18,18,18) |
1030 | - | local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) |
1030 | + | blwav.Transparency = blwav.Transparency + .05 |
1031 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0)) |
1031 | + | swait() |
1032 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false) |
1032 | + | |
1033 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0)) |
1033 | + | blwav:Remove() |
1034 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false) |
1034 | + | end)() |
1035 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0)) |
1035 | + | swait() |
1036 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) |
1036 | + | |
1037 | - | MakeForm(Part,"Cyl") |
1037 | + | |
1038 | - | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1038 | + | |
1039 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) |
1039 | + | swait(0) |
1040 | - | MakeForm(Part,"Cyl") |
1040 | + | |
1041 | - | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) |
1041 | + | bleedattacking = false |
1042 | - | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false) |
1042 | + | eagleweld:Remove() |
1043 | - | MakeForm(Sphere,"Ball") |
1043 | + | eagleweld2:Remove() |
1044 | - | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1044 | + | eagleweld3:Remove() |
1045 | - | local BODY = {} |
1045 | + | eagle.Anchored = true |
1046 | - | for _, c in pairs(Character:GetDescendants()) do |
1046 | + | eagle2.Anchored = true |
1047 | - | if c:IsA("BasePart") then |
1047 | + | eagle3.Anchored = true |
1048 | - | table.insert(BODY, { |
1048 | + | coroutine.wrap(function() |
1049 | - | c, |
1049 | + | for i = 1, 30 do |
1050 | - | c.Parent, |
1050 | + | for i,v in pairs(lighttable) do |
1051 | - | c.Material, |
1051 | + | v.Transparency = v.Transparency + .05 |
1052 | - | c.Color |
1052 | + | |
1053 | - | }) |
1053 | + | swait() |
1054 | - | elseif c:IsA("JointInstance") then |
1054 | + | |
1055 | - | table.insert(BODY, { |
1055 | + | for i,v in pairs(lighttable) do |
1056 | - | c, |
1056 | + | v:Remove() |
1057 | - | c.Parent, |
1057 | + | |
1058 | - | nil, |
1058 | + | circlelocation:Remove() |
1059 | - | nil |
1059 | + | lighttable = {} |
1060 | - | }) |
1060 | + | end)() |
1061 | - | end |
1061 | + | for i = 1, 80 do |
1062 | - | end |
1062 | + | eagle.CFrame = eagle.CFrame * CFrame.new(0,0,-6) * CFrame.Angles(0,math.rad(0),math.rad(7)) |
1063 | - | for _, c in pairs(Weapon:GetChildren()) do |
1063 | + | eagle.Transparency = eagle.Transparency + .0125 |
1064 | - | if c.ClassName == "Part" then |
1064 | + | eagle2.CFrame = eagle2.CFrame * CFrame.new(0,0,-4) * CFrame.Angles(0,math.rad(0),math.rad(-7)) |
1065 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
1065 | + | eagle2.Transparency = eagle2.Transparency + .0125 |
1066 | - | end |
1066 | + | eagle3.CFrame = eagle3.CFrame * CFrame.new(0,0,-3) * CFrame.Angles(0,math.rad(0),math.rad(7)) |
1067 | eagle3.Transparency = eagle3.Transparency + .0125 | |
1068 | - | |
1068 | + | swait() |
1069 | - | |
1069 | + | |
1070 | - | for _, c in pairs(Character:GetDescendants()) do |
1070 | + | eagle:Remove() |
1071 | - | if c:IsA("BasePart") then |
1071 | + | eagle2:Remove() |
1072 | - | table.insert(BODY, { |
1072 | + | eagle3:Remove() |
1073 | - | c, |
1073 | + | ws = 90 |
1074 | - | c.Parent, |
1074 | + | trev = false |
1075 | - | c.Material, |
1075 | + | debounce = false |
1076 | - | c.Color |
1076 | + | attacking = false |
1077 | - | }) |
1077 | + | elseif Press=='r' then |
1078 | - | elseif c:IsA("JointInstance") then |
1078 | + | if debounce then return end |
1079 | - | table.insert(BODY, { |
1079 | + | debounce = true |
1080 | - | c, |
1080 | + | attacking = true |
1081 | - | c.Parent, |
1081 | + | ws = 8 |
1082 | - | nil, |
1082 | + | coroutine.wrap(function() |
1083 | - | nil |
1083 | + | g1 = Instance.new("BodyGyro", Root) |
1084 | - | }) |
1084 | + | g1.D = 175 |
1085 | - | end |
1085 | + | g1.P = 20000 |
1086 | g1.MaxTorque = Vector3.new(0,9000000,0) | |
1087 | - | |
1087 | + | for i = 1, 50 do |
1088 | - | for e = 1, #BODY do |
1088 | + | haloweld.C0 = haloweld.C0:lerp(CFrame.new(0,-4.5 + .5 * math.sin(sine/12),-2) * CFrame.Angles(math.rad(8 * math.sin(sine/12)),math.rad(11 * math.sin(sine/16)),0),.4) |
1089 | - | if BODY[e] ~= nil then |
1089 | + | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(5 * math.sin(sine/12)),math.rad(-0 * math.sin(sine/12)),math.rad(0)),.2) |
1090 | - | do |
1090 | + | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3,1.05 + .15 * math.sin(sine/12),.2) * CFrame.Angles(0,math.rad(-12),math.rad(40 + 6 * math.sin(sine/12))),.2) |
1091 | - | local STUFF = BODY[e] |
1091 | + | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.3 + .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9 - 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(-9 - 5 * math.sin(sine/12))),.2) |
1092 | - | local PART = STUFF[1] |
1092 | + | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.3 - .1 * math.sin(sine/12), 1.95, .15 - .1 * math.sin(sine/12)) * CFrame.Angles(math.rad(9- 5 * math.sin(sine/12)),math.rad(2 + 1 * math.sin(sine/12)),math.rad(9 + 5 * math.sin(sine/12))),.2) |
1093 | - | local PARENT = STUFF[2] |
1093 | + | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(math.rad(0),math.rad(20),math.rad(-140)),.3) |
1094 | - | local MATERIAL = STUFF[3] |
1094 | + | swait() |
1095 | - | local COLOR = STUFF[4] |
1095 | + | |
1096 | - | PART.AncestryChanged:Connect(function() |
1096 | + | removeuseless:AddItem(g1,.001) |
1097 | - | if PART.ClassName == "Part" then |
1097 | + | debounce = false |
1098 | - | PART.Material = MATERIAL |
1098 | + | attacking = false |
1099 | - | PART.Color = COLOR |
1099 | + | ws = 90 |
1100 | - | end |
1100 | + | end)() |
1101 | - | PART.Parent = PARENT |
1101 | + | local lightofdeath = Instance.new("Part",Torso) |
1102 | - | end) |
1102 | + | angelic = Instance.new("Sound",lightofdeath) |
1103 | - | end |
1103 | + | angelic.Pitch = 1 |
1104 | - | end |
1104 | + | angelic.Volume = 10 |
1105 | angelic.SoundId = "rbxassetid://1837929946" | |
1106 | - | function refit() |
1106 | + | angelic:Play() |
1107 | - | Weapon.Parent = Character |
1107 | + | lightofdeath.Size = Vector3.new(1000000,25,25) |
1108 | - | Character.Parent = workspace |
1108 | + | lightofdeath.CanCollide = false |
1109 | - | for e = 1, #BODY do |
1109 | + | lightofdeath.Material = "Neon" |
1110 | - | if BODY[e] ~= nil then |
1110 | + | lightofdeath.CFrame = CFrame.new(mouse.Hit.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90)) |
1111 | - | local STUFF = BODY[e] |
1111 | + | lightofdeath.Shape = "Cylinder" |
1112 | - | local PART = STUFF[1] |
1112 | + | lightofdeath.Transparency = 1 |
1113 | - | local PARENT = STUFF[2] |
1113 | + | lightofdeath.Anchored = true |
1114 | - | local MATERIAL = STUFF[3] |
1114 | + | local lightofdeath2 = Instance.new("Part",Torso) |
1115 | - | local COLOR = STUFF[4] |
1115 | + | lightofdeath2.Size = Vector3.new(1000000,50,50) |
1116 | - | if PART.Parent ~= PARENT then |
1116 | + | lightofdeath2.CanCollide = false |
1117 | - | Humanoid:remove() |
1117 | + | lightofdeath2.Material = "Neon" |
1118 | - | if PART.ClassName == "Part" then |
1118 | + | lightofdeath2.CFrame = CFrame.new(lightofdeath.Position) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90)) |
1119 | - | PART.Material = MATERIAL |
1119 | + | lightofdeath2.Shape = "Cylinder" |
1120 | - | PART.Color = COLOR |
1120 | + | lightofdeath2.Transparency = 1 |
1121 | - | end |
1121 | + | lightofdeath2.CanCollide = false |
1122 | - | PART.Parent = PARENT |
1122 | + | lightofdeath2.Anchored = true |
1123 | - | Humanoid = IT("Humanoid", Character) |
1123 | + | local pobox = Instance.new("Part",Torso) |
1124 | - | end |
1124 | + | pobox.Size = Vector3.new(1,1,1) |
1125 | - | end |
1125 | + | pobox.Transparency = 1 |
1126 | - | end |
1126 | + | pobox.Anchored = true |
1127 | pobox.CanCollide = false | |
1128 | - | |
1128 | + | pobox.CFrame = CFrame.new(mouse.Hit.p) |
1129 | - | |
1129 | + | coroutine.wrap(function() |
1130 | - | |
1130 | + | for i = 1, 20 do |
1131 | - | local SKILLTEXTCOLOR = C3(1,0,0) |
1131 | + | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,lightofdeath.Position),.4) |
1132 | - | local SKILLFONT = "SciFi" |
1132 | + | lightofdeath.Transparency = lightofdeath.Transparency - .025 |
1133 | - | local SKILLTEXTSIZE = 5 |
1133 | + | lightofdeath2.Transparency = lightofdeath2.Transparency - .0125 |
1134 | - | |
1134 | + | swait() |
1135 | - | Weapon.Parent = Character |
1135 | + | |
1136 | - | Humanoid.Died:connect(function() |
1136 | + | end)() |
1137 | - | refit() |
1137 | + | for i = 1, 100 do |
1138 | lightofdeath.Size = lightofdeath.Size - Vector3.new(0,.25,.25) | |
1139 | - | |
1139 | + | lightofdeath2.Size = lightofdeath2.Size - Vector3.new(0,.5,.5) |
1140 | - | |
1140 | + | swait() |
1141 | - | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") |
1141 | + | |
1142 | - | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") |
1142 | + | local soundbrick = Instance.new("Part",Torso) |
1143 | - | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") |
1143 | + | soundbrick.Anchored = true |
1144 | - | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") |
1144 | + | soundbrick.Size = Vector3.new(1,1,1) |
1145 | - | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") |
1145 | + | soundbrick.CanCollide = false |
1146 | - | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") |
1146 | + | soundbrick.Transparency = 1 |
1147 | - | |
1147 | + | soundbrick.CFrame = pobox.CFrame |
1148 | - | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") |
1148 | + | removeuseless:AddItem(soundbrick,10) |
1149 | - | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") |
1149 | + | local bam = Instance.new("Sound",soundbrick) |
1150 | - | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") |
1150 | + | bam.SoundId = "rbxassetid://1354014962" |
1151 | - | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") |
1151 | + | bam.Volume = 10 |
1152 | - | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") |
1152 | + | bam:Play() |
1153 | - | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") |
1153 | + | Hit = damagealll(44,pobox.Position) |
1154 | - | |
1154 | + | for _,v in pairs(Hit) do |
1155 | - | --//=================================\\ |
1155 | + | if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then |
1156 | - | --|| ATTACK FUNCTIONS AND STUFF |
1156 | + | slachtoffer = v:FindFirstChildOfClass("Humanoid") |
1157 | - | --\\=================================// |
1157 | + | slachtoffer:Destroy() |
1158 | - | |
1158 | + | vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")) |
1159 | - | function Warp() |
1159 | + | vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999) |
1160 | - | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character) |
1160 | + | torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") |
1161 | - | if HITFLOOR then |
1161 | + | vel.velocity = CFrame.new(pobox.Position,torso.Position).lookVector*225 |
1162 | - | CharacterFade(C3(0.5,0,0),50) |
1162 | + | removeuseless:AddItem(vel,.1) |
1163 | - | HITPOS = HITPOS + VT(0,3.5,0) |
1163 | + | |
1164 | - | local POS = RootPart.Position |
1164 | + | |
1165 | - | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) |
1165 | + | lightofdeath:Remove() |
1166 | - | CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false) |
1166 | + | lightofdeath2:Remove() |
1167 | - | end |
1167 | + | for i = 1, 3 do |
1168 | coroutine.wrap(function() | |
1169 | - | |
1169 | + | local shockwave = Instance.new("Part", Torso) |
1170 | - | function Dash() |
1170 | + | shockwave.Size = Vector3.new(1,1,1) |
1171 | - | ATTACK = true |
1171 | + | shockwave.CanCollide = false |
1172 | - | Rooted = true |
1172 | + | shockwave.Anchored = true |
1173 | - | local SOUND = CreateSound(1165167610, Torso, 1, 1, true) |
1173 | + | shockwave.Transparency = .5 |
1174 | - | local LOOP = 0 |
1174 | + | shockwave.BrickColor = BrickColor.new("White") |
1175 | - | repeat |
1175 | + | shockwave.CFrame = CFrame.new(pobox.Position) |
1176 | - | LOOP = LOOP + 1 |
1176 | + | local shockwavemesh = Instance.new("SpecialMesh", shockwave) |
1177 | - | Swait() |
1177 | + | shockwavemesh.Scale = Vector3.new(7,3,7) |
1178 | - | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, 5, workspace) |
1178 | + | shockwavemesh.MeshId = "rbxassetid://20329976" |
1179 | - | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 100, Character) |
1179 | + | local shockwave2 = Instance.new("Part", Torso) |
1180 | - | if HITFLOOR then |
1180 | + | shockwave2.Size = Vector3.new(1,1,1) |
1181 | - | CharacterFade(C3(0.5,0,0),35) |
1181 | + | shockwave2.CanCollide = false |
1182 | - | HITPOS = HITPOS + VT(0,3.5,0) |
1182 | + | shockwave2.Anchored = true |
1183 | - | local POS = RootPart.Position |
1183 | + | shockwave2.Transparency = .5 |
1184 | - | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) |
1184 | + | shockwave2.BrickColor = BrickColor.new("White") |
1185 | - | RootPart.Velocity = VT(0,0,0) |
1185 | + | shockwave2.CFrame = CFrame.new(pobox.Position) |
1186 | - | RootPart.RotVelocity = VT(0,0,0) |
1186 | + | local shockwavemesh2 = Instance.new("SpecialMesh", shockwave2) |
1187 | - | end |
1187 | + | shockwavemesh2.Scale = Vector3.new(5,3,5) |
1188 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(75), RAD(0), RAD(0)), 1 / Animation_Speed) |
1188 | + | shockwavemesh2.MeshId = "rbxassetid://20329976" |
1189 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) |
1189 | + | for i = 1, 40 do |
1190 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1190 | + | shockwave.CFrame = shockwave.CFrame * CFrame.Angles(math.rad(0),math.rad(0+15),0) |
1191 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1191 | + | shockwave2.CFrame = shockwave2.CFrame * CFrame.Angles(math.rad(0),math.rad(0-8),0) |
1192 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1192 | + | shockwave.Transparency = shockwave.Transparency + 0.025 |
1193 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1193 | + | shockwave2.Transparency = shockwave2.Transparency + 0.025 |
1194 | - | until KEYHOLD == false |
1194 | + | shockwavemesh2.Scale = shockwavemesh2.Scale + Vector3.new(9,1.5,9) |
1195 | - | coroutine.resume(coroutine.create(function() |
1195 | + | shockwavemesh.Scale = shockwavemesh.Scale + Vector3.new(9,1.5,9) |
1196 | - | for i = 1, 20 do |
1196 | + | swait() |
1197 | - | Swait() |
1197 | + | |
1198 | - | SOUND.Volume = SOUND.Volume - 1/20 |
1198 | + | shockwave:Remove() |
1199 | - | end |
1199 | + | shockwave2:Remove() |
1200 | - | SOUND:remove() |
1200 | + | end)() |
1201 | - | end)) |
1201 | + | coroutine.wrap(function() |
1202 | - | if LOOP > 50 then |
1202 | + | local sk = Instance.new("Part",Torso) |
1203 | - | CreateSound(772085046,Torso,5,MRANDOM(8,13)/10,false) |
1203 | + | sk.CanCollide = false |
1204 | - | for i = 1, 100 do |
1204 | + | sk.Anchored = true |
1205 | - | Swait() |
1205 | + | sk.BrickColor = BrickColor.new("White") |
1206 | - | RootPart.CFrame = RootPart.CFrame * CF(0,0,-(1-(i/100))/3) |
1206 | + | sk.Name = "sk" |
1207 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1207 | + | sk.CFrame = pobox.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
1208 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(LeftLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1208 | + | local skmesh = Instance.new("SpecialMesh",sk) |
1209 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1209 | + | skmesh.MeshId = "rbxassetid://662586858" |
1210 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1210 | + | skmesh.Name = "wave" |
1211 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1211 | + | skmesh.Scale = Vector3.new(.01,.001,.01) |
1212 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1212 | + | for i = 1, 20 do |
1213 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1213 | + | skmesh.Scale = skmesh.Scale + Vector3.new(.07,0,.07) |
1214 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1214 | + | sk.Transparency = sk.Transparency + .05 |
1215 | - | end |
1215 | + | swait() |
1216 | - | end |
1216 | + | |
1217 | - | ATTACK = false |
1217 | + | sk:Remove() |
1218 | - | Rooted = false |
1218 | + | end)() |
1219 | coroutine.wrap(function() | |
1220 | - | |
1220 | + | local wshockwave = Instance.new("Part", Torso) |
1221 | - | function LimbRip() |
1221 | + | wshockwave.Size = Vector3.new(1,1,1) |
1222 | - | ATTACK = true |
1222 | + | wshockwave.CanCollide = false |
1223 | - | Rooted = false |
1223 | + | wshockwave.Anchored = true |
1224 | - | local TARGET = nil |
1224 | + | wshockwave.Transparency = .45 |
1225 | - | local ROOT = nil |
1225 | + | wshockwave.BrickColor = BrickColor.new("White") |
1226 | - | local HUMAN = nil |
1226 | + | wshockwave.CFrame = CFrame.new(pobox.Position) * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180))) |
1227 | - | local DIST = 4 |
1227 | + | local wshockwavemesh = Instance.new("SpecialMesh", wshockwave) |
1228 | - | Speed = 12 |
1228 | + | wshockwavemesh.Scale = Vector3.new(.1,.005,.1) |
1229 | - | for i=0, 1, 0.1 / Animation_Speed do |
1229 | + | wshockwavemesh.Name = "wswm" |
1230 | - | Swait() |
1230 | + | wshockwavemesh.MeshId = "rbxassetid://20329976" |
1231 | - | local CHILDREN = workspace:GetDescendants() |
1231 | + | removeuseless:AddItem(wshockwave,2) |
1232 | - | for index, CHILD in pairs(CHILDREN) do |
1232 | + | for i = 1, 20 do |
1233 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1233 | + | wshockwavemesh.Scale = wshockwavemesh.Scale + Vector3.new(9.5,0,9.5) |
1234 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1234 | + | wshockwave.Transparency = wshockwave.Transparency + .05 |
1235 | - | if HUM then |
1235 | + | swait() |
1236 | - | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1236 | + | |
1237 | - | if TORSO and HUM.Health > 0 then |
1237 | + | wshockwave:Remove() |
1238 | - | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then |
1238 | + | end)() |
1239 | - | DIST = (TORSO.Position - RightArm.Position).Magnitude |
1239 | + | local boom = Instance.new("Part",Torso) |
1240 | - | ROOT = TORSO |
1240 | + | boom.Size = Vector3.new(6,6,6) |
1241 | - | HUMAN = HUM |
1241 | + | boom.Transparency = .1 |
1242 | - | TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1242 | + | boom.Shape = "Ball" |
1243 | - | end |
1243 | + | boom.BrickColor = BrickColor.new("White") |
1244 | - | end |
1244 | + | boom.CanCollide = false |
1245 | - | end |
1245 | + | boom.Anchored = true |
1246 | - | end |
1246 | + | boom.CFrame = CFrame.new(pobox.Position) |
1247 | - | end |
1247 | + | boom.Material = "Neon" |
1248 | - | if ROOT then |
1248 | + | coroutine.wrap(function() |
1249 | - | break |
1249 | + | for i = 1, 20 do |
1250 | - | end |
1250 | + | boom.Size = boom.Size + Vector3.new(7,7,7) |
1251 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) |
1251 | + | boom.Transparency = boom.Transparency + .05 |
1252 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) |
1252 | + | swait() |
1253 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1253 | + | |
1254 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1254 | + | boom:Remove() |
1255 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1255 | + | end)() |
1256 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1256 | + | swait() |
1257 | - | end |
1257 | + | |
1258 | - | Speed = 16 |
1258 | + | |
1259 | - | if ROOT then |
1259 | + | |
1260 | - | CreateSound(305685800,Torso,5,1.3,false) |
1260 | + | |
1261 | - | Rooted = true |
1261 | + | checks1 = coroutine.wrap(function() -------Checks |
1262 | - | local GORED = false |
1262 | + | |
1263 | - | coroutine.resume(coroutine.create(function() |
1263 | + | if Root.Velocity.Magnitude < 5 and running == false then |
1264 | - | repeat |
1264 | + | position = "Idle" |
1265 | - | Swait() |
1265 | + | elseif Root.Velocity.Magnitude > 5 and running == false then |
1266 | - | ROOT.Anchored = true |
1266 | + | position = "Walking" |
1267 | - | until GORED == true |
1267 | + | else |
1268 | - | ROOT.Anchored = false |
1268 | + | |
1269 | - | end)) |
1269 | + | wait() |
1270 | - | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.25) |
1270 | + | |
1271 | - | if TARGET.Name == "Torso" then |
1271 | + | |
1272 | - | local RARM = TARGET.Parent:FindFirstChild("Right Arm") |
1272 | + | checks1() |
1273 | - | local LARM = TARGET.Parent:FindFirstChild("Left Arm") |
1273 | + | |
1274 | - | if RARM and LARM then |
1274 | + | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
1275 | - | for i=0, 1, 0.1 / Animation_Speed do |
1275 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
1276 | - | Swait() |
1276 | + | |
1277 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1277 | + | |
1278 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
1278 | + | function ray2(StartPos, EndPos, Distance, Ignore) |
1279 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1279 | + | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector |
1280 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1280 | + | return ray(StartPos, DIRECTION, Distance, Ignore) |
1281 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1281 | + | |
1282 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1282 | + | |
1283 | - | end |
1283 | + | OrgnC0 = Neck.C0 |
1284 | - | for _, c in pairs(TARGET.Parent:GetDescendants()) do |
1284 | + | local movelimbs = coroutine.wrap(function() |
1285 | - | if c:IsA("JointInstance") then |
1285 | + | while RunSrv.RenderStepped:wait() do |
1286 | - | if c.Part1 == RARM or c.Part1 == LARM or c.Part0 == RARM or c.Part0 == LARM then |
1286 | + | TrsoLV = Torso.CFrame.lookVector |
1287 | - | c:remove() |
1287 | + | Dist = nil |
1288 | - | end |
1288 | + | Diff = nil |
1289 | - | end |
1289 | + | if not MseGuide then |
1290 | - | end |
1290 | + | print("Failed to recognize") |
1291 | - | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) |
1291 | + | else |
1292 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1292 | + | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) |
1293 | - | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1293 | + | Dist = (Head.CFrame.p-Point).magnitude |
1294 | - | for i=0, 1, 0.1 / Animation_Speed do |
1294 | + | Diff = Head.CFrame.Y-Point.Y |
1295 | - | Swait() |
1295 | + | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) |
1296 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1296 | + | Dist2 = (LeftArm.CFrame.p-Point).magnitude |
1297 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) |
1297 | + | Diff2 = LeftArm.CFrame.Y-Point.Y |
1298 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1298 | + | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) |
1299 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1299 | + | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) |
1300 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1300 | + | |
1301 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1301 | + | |
1302 | - | end |
1302 | + | |
1303 | - | for i=0, 1, 0.1 / Animation_Speed do |
1303 | + | movelimbs() |
1304 | - | Swait() |
1304 | + | immortal = {} |
1305 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) |
1305 | + | for i,v in pairs(Character:GetDescendants()) do |
1306 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) |
1306 | + | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then |
1307 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1307 | + | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then |
1308 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1308 | + | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
1309 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) |
1309 | + | end |
1310 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1310 | + | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency}) |
1311 | - | end |
1311 | + | elseif v:IsA("JointInstance") then |
1312 | - | for i=0, 0.1, 0.1 / Animation_Speed do |
1312 | + | table.insert(immortal,{v,v.Parent,nil,nil,nil}) |
1313 | - | Swait() |
1313 | + | end |
1314 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) |
1314 | + | end |