SHOW:
|
|
- or go back to the newest paste.
1 | - | --[[ Declarations ]]-- |
1 | + | --]] |
2 | - | --Credits to whoever made the script, I only made edits. Edit list below: |
2 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
3 | - | --Can use attacks instead of it clicking. (z, x, c) |
3 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
4 | - | --Kill others keybind (r) |
4 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
5 | - | --Jump yourself (f) (Some scripts on sb get you stuck) |
5 | + | local RealPlayer = Player |
6 | - | --Set walkspeed, jump height, gravity, and ambient. (Q = dark, E = bright) |
6 | + | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end |
7 | - | --^^ Dark = better jump height, gravity, and dark, bright = opposite. |
7 | + | |
8 | - | --Might make more, deleted my earlier edit, the spike attack (c, drew players toward me) |
8 | + | |
9 | local mouse = a:GetMouse() | |
10 | wait(0.05) | |
11 | game.Workspace[a.Name].Head.face:Destroy() | |
12 | game.Workspace[a.Name].Humanoid.HealthDisplayType = "AlwaysOff" | |
13 | game.Workspace[a.Name].Humanoid.HealthDisplayDistance = "0" | |
14 | game.Workspace[a.Name].Humanoid.DisplayDistanceType = "None" | |
15 | ||
16 | mouse.KeyDown:connect(function(key) | |
17 | if key == "t" then | |
18 | print(mouse.Target.Name) | |
19 | print(mouse.Target.Parent.Name) | |
20 | print(mouse.Target.Parent.Parent.Name) | |
21 | end | |
22 | end) | |
23 | ||
24 | mouse.KeyDown:connect(function(key) | |
25 | if key == "g" then | |
26 | if mouse.Target.Name == "Base" then | |
27 | else | |
28 | mouse.Target:Destroy() | |
29 | end | |
30 | end | |
31 | end) | |
32 | ||
33 | ||
34 | mouse.KeyDown:connect(function(key) | |
35 | if key == "q" then | |
36 | local p = game.Workspace[a.Name] | |
37 | for i,v in pairs(p:GetChildren()) do | |
38 | if v:IsA("Part") then | |
39 | v.Transparency = 1 | |
40 | p.Cloak.Transparency = 1 | |
41 | p.Head.BillboardGui.Enabled = false | |
42 | game.Lighting.OutdoorAmbient = Color3.new(0, 0, 0) | |
43 | game.Lighting.Brightness = 0 | |
44 | game.Lighting.Ambient = Color3.new(0, 0, 0) | |
45 | p.Humanoid.WalkSpeed = 100 | |
46 | p.Humanoid.JumpPower = 75 | |
47 | game.Workspace.Gravity = 80 | |
48 | ||
49 | end | |
50 | end | |
51 | ||
52 | end | |
53 | end) | |
54 | ||
55 | mouse.KeyDown:connect(function(key) | |
56 | if key == "e" then | |
57 | local p = game.Workspace[a.Name] | |
58 | for i,v in pairs(p:GetChildren()) do | |
59 | if v:IsA("Part") then | |
60 | v.Transparency = 0 | |
61 | p.Cloak.Transparency = 0 | |
62 | p.Reference.Transparency = 1 | |
63 | p.HumanoidRootPart.Transparency = 1 | |
64 | p.Head.BillboardGui.Enabled = true | |
65 | game.Lighting.OutdoorAmbient = Color3.new(127, 127, 127) | |
66 | game.Lighting.Brightness = 1 | |
67 | game.Lighting.Ambient = Color3.new(0, 0, 0) | |
68 | p.Humanoid.WalkSpeed = 21 | |
69 | p.Humanoid.JumpPower = 50 | |
70 | game.Workspace.Gravity = 100 | |
71 | end | |
72 | end | |
73 | ||
74 | end | |
75 | end) | |
76 | ||
77 | mouse.KeyDown:connect(function(key) | |
78 | if key == "r" then | |
79 | for i,v in pairs(game.Players:GetChildren()) do | |
80 | if v.Name == a.Name then | |
81 | else | |
82 | if v:IsA("Player") then | |
83 | ||
84 | game.Workspace[v.Name].Humanoid.Health = 0 | |
85 | end | |
86 | end | |
87 | end | |
88 | end | |
89 | end) | |
90 | ||
91 | looop = false | |
92 | ||
93 | mouse.KeyDown:connect(function(key) | |
94 | if key == "y" then | |
95 | looop = true | |
96 | while wait() do | |
97 | if looop == true then | |
98 | game.Workspace[a.Name].Humanoid.Sit = true | |
99 | wait(0.1) | |
100 | else | |
101 | ||
102 | end | |
103 | end | |
104 | end | |
105 | end) | |
106 | ||
107 | ||
108 | mouse.KeyDown:connect(function(key) | |
109 | if key == "h" then | |
110 | looop = false | |
111 | end | |
112 | end) | |
113 | ||
114 | mouse.KeyDown:connect(function(key) | |
115 | if key == "n" then | |
116 | mouse.Target.Anchored = true | |
117 | end | |
118 | end) | |
119 | ||
120 | mouse.KeyDown:connect(function(key) | |
121 | if key == "j" then | |
122 | mouse.Target.CanCollide = true | |
123 | end | |
124 | end) | |
125 | ||
126 | mouse.KeyDown:connect(function(key) | |
127 | if key == "u" then | |
128 | mouse.Target.CanCollide = false | |
129 | end | |
130 | end) | |
131 | ||
132 | ||
133 | mouse.KeyDown:connect(function(key) | |
134 | if key == "m" then | |
135 | mouse.Target.Anchored = false | |
136 | end | |
137 | end) | |
138 | ||
139 | mouse.KeyDown:connect(function(key) | |
140 | if key == "v" then | |
141 | for i,v in pairs(game.Players:GetChildren()) do | |
142 | if v:IsA("Player") then | |
143 | if v.Name == a.Name then | |
144 | else | |
145 | game.Workspace[v.Name].Humanoid.WalkToPoint = game.Workspace[a.Name].Torso.Position | |
146 | end | |
147 | end | |
148 | end | |
149 | end | |
150 | end) | |
151 | ||
152 | ||
153 | ||
154 | ||
155 | mouse.KeyDown:connect(function(key) | |
156 | if key == "f" then | |
157 | game.Workspace[a.Name].Humanoid.Jump = true | |
158 | ||
159 | end | |
160 | end) | |
161 | ||
162 | mouse.KeyDown:connect(function(key) | |
163 | if key == "b" then | |
164 | game.Workspace[a.Name].Torso.CFrame = mouse.Hit | |
165 | end | |
166 | end) | |
167 | ||
168 | ||
169 | wait(.0000000000000000000001) | |
170 | local Player = game:GetService("Players").LocalPlayer | |
171 | local Character = Player.Character | |
172 | local Head = Character.Head | |
173 | local Torso = Character.Torso | |
174 | local Right_Arm = Character["Right Arm"] | |
175 | local Right_Leg = Character["Right Leg"] | |
176 | local Left_Arm = Character["Left Arm"] | |
177 | local Left_Leg = Character["Left Leg"] | |
178 | local Humanoid = Character.Humanoid | |
179 | local Animation = "Idle" | |
180 | local Mouse = Player:GetMouse() | |
181 | local LeftShoulder = Torso["Left Shoulder"] | |
182 | local Left_Hip = Torso["Left Hip"] | |
183 | local RightShoulder = Torso["Right Shoulder"] | |
184 | local Right_Hip = Torso["Right Hip"] | |
185 | local Root = Character.HumanoidRootPart | |
186 | local RootJoint = Root.RootJoint | |
187 | local Attacking = false | |
188 | local CanAttack = true | |
189 | local Anim = "Idle" | |
190 | local Combo = 1 | |
191 | local Blocking = false | |
192 | local MaxDestruction = 1000 | |
193 | local Destruction = 0 | |
194 | local MaxBlock = 100 | |
195 | local Effects = {} | |
196 | local Color = "Bright yellow" | |
197 | local Invert = false | |
198 | local Idle = 0 | |
199 | local Equipped = false | |
200 | local Running = false | |
201 | local Unseathed = false | |
202 | local Shard = "None" | |
203 | ||
204 | Humanoid.MaxHealth = math.huge | |
205 | Humanoid.Health = math.huge | |
206 | ||
207 | ||
208 | ||
209 | local NewGuiPart1 = Instance.new("ScreenGui") | |
210 | NewGuiPart1.Parent = game.Players.LocalPlayer.PlayerGui | |
211 | NewGuiPart1.Name = "Savior" | |
212 | ------- | |
213 | local NewGuiPart2 = Instance.new("Frame") | |
214 | NewGuiPart2.Active = true | |
215 | NewGuiPart2.BackgroundColor3 = Color3.new(0.760784, 0.760784, 0) | |
216 | NewGuiPart2.BorderColor3 = Color3.new(1, 1, 1) | |
217 | NewGuiPart2.Size = UDim2.new(0, 350, 0, 300) | |
218 | NewGuiPart2.Draggable = true | |
219 | NewGuiPart2.Parent = NewGuiPart1 | |
220 | ------- | |
221 | local NewGuiPart3 = Instance.new("TextLabel") | |
222 | NewGuiPart3.BackgroundTransparency = 1 | |
223 | NewGuiPart3.Position = UDim2.new(0.200000003, 0, 0, 0) | |
224 | NewGuiPart3.Size = UDim2.new(0, 200, 0, 50) | |
225 | NewGuiPart3.Font = Enum.Font.Highway | |
226 | NewGuiPart3.FontSize = Enum.FontSize.Size14 | |
227 | NewGuiPart3.Text = "Superior Power List" | |
228 | NewGuiPart3.TextColor3 = Color3.new(0.333333, 0, 1) | |
229 | NewGuiPart3.TextStrokeColor3 = Color3.new(1, 1, 1) | |
230 | NewGuiPart3.Parent = NewGuiPart2 | |
231 | ------- | |
232 | local NewGuiPart4 = Instance.new("TextLabel") | |
233 | NewGuiPart4.BackgroundTransparency = 1 | |
234 | NewGuiPart4.Position = UDim2.new(0, 0, 0.200000003, 0) | |
235 | NewGuiPart4.Size = UDim2.new(0, 200, 0, 50) | |
236 | NewGuiPart4.Font = Enum.Font.Highway | |
237 | NewGuiPart4.FontSize = Enum.FontSize.Size14 | |
238 | NewGuiPart4.Text = "Q = Night Mode E = Day mode" | |
239 | NewGuiPart4.TextColor3 = Color3.new(0.333333, 0, 1) | |
240 | NewGuiPart4.TextStrokeColor3 = Color3.new(1, 1, 1) | |
241 | NewGuiPart4.TextWrapped = true | |
242 | NewGuiPart4.Parent = NewGuiPart2 | |
243 | ------- | |
244 | local NewGuiPart5 = Instance.new("TextLabel") | |
245 | NewGuiPart5.BackgroundTransparency = 1 | |
246 | NewGuiPart5.Position = UDim2.new(0, 0, 0.5, 0) | |
247 | NewGuiPart5.Size = UDim2.new(0, 200, 0, 50) | |
248 | NewGuiPart5.Font = Enum.Font.Highway | |
249 | NewGuiPart5.FontSize = Enum.FontSize.Size14 | |
250 | NewGuiPart5.Text = "B = Relay G = Eradicate part" | |
251 | NewGuiPart5.TextColor3 = Color3.new(0.333333, 0, 1) | |
252 | NewGuiPart5.TextStrokeColor3 = Color3.new(1, 1, 1) | |
253 | NewGuiPart5.TextWrapped = true | |
254 | NewGuiPart5.Parent = NewGuiPart2 | |
255 | ------- | |
256 | local NewGuiPart6 = Instance.new("TextLabel") | |
257 | NewGuiPart6.BackgroundTransparency = 1 | |
258 | NewGuiPart6.Position = UDim2.new(0, 0, 0.349999994, 0) | |
259 | NewGuiPart6.Size = UDim2.new(0, 200, 0, 50) | |
260 | NewGuiPart6.Font = Enum.Font.Highway | |
261 | NewGuiPart6.FontSize = Enum.FontSize.Size14 | |
262 | NewGuiPart6.Text = "T = Part identity R = Eradicate others" | |
263 | NewGuiPart6.TextColor3 = Color3.new(0.333333, 0, 1) | |
264 | NewGuiPart6.TextStrokeColor3 = Color3.new(1, 1, 1) | |
265 | NewGuiPart6.TextWrapped = true | |
266 | NewGuiPart6.Parent = NewGuiPart2 | |
267 | ------- | |
268 | local NewGuiPart7 = Instance.new("TextLabel") | |
269 | NewGuiPart7.BackgroundTransparency = 1 | |
270 | NewGuiPart7.Position = UDim2.new(0.300000012, 0, 0.200000003, 0) | |
271 | NewGuiPart7.Size = UDim2.new(0, 200, 0, 50) | |
272 | NewGuiPart7.Font = Enum.Font.Highway | |
273 | NewGuiPart7.FontSize = Enum.FontSize.Size14 | |
274 | NewGuiPart7.Text = " V = Followers demise F = Jump" | |
275 | NewGuiPart7.TextColor3 = Color3.new(0.333333, 0, 1) | |
276 | NewGuiPart7.TextStrokeColor3 = Color3.new(1, 1, 1) | |
277 | NewGuiPart7.TextWrapped = true | |
278 | NewGuiPart7.Parent = NewGuiPart2 | |
279 | ------- | |
280 | local NewGuiPart8 = Instance.new("TextLabel") | |
281 | NewGuiPart8.BackgroundTransparency = 1 | |
282 | NewGuiPart8.Position = UDim2.new(0.330000013, 0, 0.349999994, 0) | |
283 | NewGuiPart8.Size = UDim2.new(0, 200, 0, 50) | |
284 | NewGuiPart8.Font = Enum.Font.Highway | |
285 | NewGuiPart8.FontSize = Enum.FontSize.Size14 | |
286 | NewGuiPart8.Text = "Y = True jump H = Mortal jump" | |
287 | NewGuiPart8.TextColor3 = Color3.new(0.333333, 0, 1) | |
288 | NewGuiPart8.TextStrokeColor3 = Color3.new(1, 1, 1) | |
289 | NewGuiPart8.TextWrapped = true | |
290 | NewGuiPart8.Parent = NewGuiPart2 | |
291 | ------- | |
292 | local NewGuiPart9 = Instance.new("TextLabel") | |
293 | NewGuiPart9.BackgroundTransparency = 1 | |
294 | NewGuiPart9.Position = UDim2.new(0.330000013, 0, 0.5, 0) | |
295 | NewGuiPart9.Size = UDim2.new(0, 200, 0, 50) | |
296 | NewGuiPart9.Font = Enum.Font.Highway | |
297 | NewGuiPart9.FontSize = Enum.FontSize.Size14 | |
298 | NewGuiPart9.Text = "N = Anchor M = Unanchor " | |
299 | NewGuiPart9.TextColor3 = Color3.new(0.333333, 0, 1) | |
300 | NewGuiPart9.TextStrokeColor3 = Color3.new(1, 1, 1) | |
301 | NewGuiPart9.TextWrapped = true | |
302 | NewGuiPart9.Parent = NewGuiPart2 | |
303 | ------- | |
304 | local NewGuiPart10 = Instance.new("TextLabel") | |
305 | NewGuiPart10.BackgroundTransparency = 1 | |
306 | NewGuiPart10.Position = UDim2.new(0, 0, 0.649999976, 0) | |
307 | NewGuiPart10.Size = UDim2.new(0, 200, 0, 50) | |
308 | NewGuiPart10.Font = Enum.Font.Highway | |
309 | NewGuiPart10.FontSize = Enum.FontSize.Size14 | |
310 | NewGuiPart10.Text = "J = Real brick U = False brick" | |
311 | NewGuiPart10.TextColor3 = Color3.new(0.333333, 0, 1) | |
312 | NewGuiPart10.TextStrokeColor3 = Color3.new(1, 1, 1) | |
313 | NewGuiPart10.TextWrapped = true | |
314 | NewGuiPart10.Parent = NewGuiPart2 | |
315 | ------- | |
316 | local NewGuiPart11 = Instance.new("TextLabel") | |
317 | NewGuiPart11.BackgroundTransparency = 1 | |
318 | NewGuiPart11.Position = UDim2.new(0.349999994, 0, 0.649999976, 0) | |
319 | NewGuiPart11.Size = UDim2.new(0, 200, 0, 50) | |
320 | NewGuiPart11.Font = Enum.Font.Highway | |
321 | NewGuiPart11.FontSize = Enum.FontSize.Size14 | |
322 | NewGuiPart11.Text = "Z = Superior Punch X = Ground Smash C = Spikes of Retribution" | |
323 | NewGuiPart11.TextColor3 = Color3.new(0.333333, 0, 1) | |
324 | NewGuiPart11.TextStrokeColor3 = Color3.new(1, 1, 1) | |
325 | NewGuiPart11.TextWrapped = true | |
326 | NewGuiPart11.Parent = NewGuiPart2 | |
327 | ||
328 | ||
329 | local WorldEaterTheme = Instance.new("Sound",Character) | |
330 | WorldEaterTheme.Name = "WorldEaterTheme" | |
331 | WorldEaterTheme.Looped = true | |
332 | WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=698734353" | |
333 | WorldEaterTheme:Play() | |
334 | WorldEaterTheme.Volume = 3 | |
335 | ||
336 | Left_Shoulder = Instance.new("Weld", Torso) | |
337 | Left_Shoulder.Part0 = Torso | |
338 | Left_Shoulder.Part1 = Left_Arm | |
339 | Left_Shoulder.Name = "Left Shoulder" | |
340 | Left_Shoulder.C0 = CFrame.new(-1.5,0,0) | |
341 | ||
342 | Right_Shoulder = Instance.new("Weld", Torso) | |
343 | Right_Shoulder.Part0 = Torso | |
344 | Right_Shoulder.Part1 = Right_Arm | |
345 | Right_Shoulder.Name = "Right Shoulder" | |
346 | Right_Shoulder.C0 = CFrame.new(1.5,0,0) | |
347 | ||
348 | LeftShoulder.Parent = nil | |
349 | RightShoulder.Parent = nil | |
350 | Humanoid.WalkSpeed = 10 | |
351 | ||
352 | local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14) | |
353 | Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
354 | Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
355 | Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
356 | Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
357 | ||
358 | ||
359 | Movemment = 1 | |
360 | Walk = 0 | |
361 | ||
362 | Animator = Humanoid.Animator | |
363 | --Animate = Character.Animate | |
364 | ||
365 | Animator.Parent = nil | |
366 | --Animate.Parent = nil | |
367 | ||
368 | local Services = { | |
369 | ||
370 | SoundService = game:GetService("SoundService"); | |
371 | Players = game:GetService("Players"); | |
372 | Debris = game:GetService("Debris"); | |
373 | Workspace = game:GetService("Workspace"); | |
374 | Lighting = game:GetService("Lighting"); | |
375 | HttpService = game:GetService("HttpService"); | |
376 | InsertService = game:GetService("InsertService"); | |
377 | ||
378 | } | |
379 | local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui) | |
380 | ManaBarGUI.Name = "ManaBarGUI" | |
381 | ||
382 | local ManaBarP1 = Instance.new("Frame", ManaBarGUI) | |
383 | ManaBarP1.Name = "ManaBarPart1" | |
384 | ManaBarP1.Size = UDim2.new(0,300,0,20) | |
385 | ManaBarP1.Position = UDim2.new(0,350,0.1,0) | |
386 | ManaBarP1.BackgroundColor3 = BrickColor.Yellow().Color | |
387 | ||
388 | local ManaBarP2 = Instance.new("Frame", ManaBarP1) | |
389 | ManaBarP2.Name = "ManaBarPart2" | |
390 | ManaBarP2.Size = UDim2.new(0,300,0,20) | |
391 | ManaBarP2.Position = UDim2.new(0,0,0,0) | |
392 | ManaBarP2.BackgroundColor3 = BrickColor.new("White").Color | |
393 | ||
394 | local ManaBarText = Instance.new("TextLabel", ManaBarP1) | |
395 | ManaBarText.Name = "ManaBarText" | |
396 | ManaBarText.Size = UDim2.new(0,300,0,20) | |
397 | ManaBarText.Position = UDim2.new(0,0,-1.5,0) | |
398 | ManaBarText.TextScaled = true | |
399 | ManaBarText.Text = "<{[ Retribution ]}> 0 <{[ Retribution ]}>" | |
400 | ManaBarText.BackgroundTransparency = 1 | |
401 | ManaBarText.TextStrokeTransparency = 0 | |
402 | ManaBarText.TextStrokeColor3 = Color3.new(255, 255, 255) | |
403 | ManaBarText.TextColor3 = Color3.new(255, 255, 0) | |
404 | ManaBarText.Font = "Garamond" | |
405 | local WorldEaterGui = Instance.new("BillboardGui", Head) | |
406 | WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0) | |
407 | WorldEaterGui.Adornee = Head | |
408 | WorldEaterGui.AlwaysOnTop = true | |
409 | WorldEaterGui.Enabled = true | |
410 | WorldEaterGui.Size = UDim2.new(0, 200,0, 50) | |
411 | ||
412 | local WorldEaterText = Instance.new("TextLabel", WorldEaterGui) | |
413 | WorldEaterText.BackgroundTransparency = 1 | |
414 | WorldEaterText.Font = "Garamond" | |
415 | WorldEaterText.Size = UDim2.new(0, 200,0, 50) | |
416 | WorldEaterText.TextStrokeColor3 = BrickColor.Yellow().Color | |
417 | WorldEaterText.TextStrokeTransparency = 0 | |
418 | WorldEaterText.TextColor3 = BrickColor.White().Color | |
419 | WorldEaterText.TextScaled = true | |
420 | WorldEaterText.Text = "The Sa".."vior" | |
421 | ||
422 | --------[[ Mesh Ids ]]-------- | |
423 | ||
424 | SpikeMeshId = 1033714 | |
425 | SpikeBallId = 9982590 | |
426 | StarMeshId = 45428961 | |
427 | CrystalMeshId = 9756362 | |
428 | ||
429 | --[[ Essential Functions ]]-- | |
430 | function NoOutlines(Part) | |
431 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
432 | end | |
433 | ||
434 | ||
435 | local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape) | |
436 | ||
437 | local Part = Instance.new("Part", Parent) | |
438 | Part.Name = Name | |
439 | Part.BrickColor = BrickColor.new(Color) | |
440 | Part.Size = Size | |
441 | Part.Material = Material | |
442 | Part.Transparency = Transparency | |
443 | Part.Shape = Shape | |
444 | Part.CanCollide = false | |
445 | NoOutlines(Part) | |
446 | ||
447 | return Part | |
448 | ||
449 | end | |
450 | ||
451 | local CreateMesh = function(Parent, Scale, Shape) | |
452 | ||
453 | ||
454 | local Mesh = Instance.new("BlockMesh", Parent) | |
455 | Mesh.Scale = Scale | |
456 | ||
457 | return Mesh | |
458 | ||
459 | end | |
460 | ||
461 | local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency) | |
462 | ||
463 | local WedgePart = Instance.new("WedgePart", Parent) | |
464 | WedgePart.Name = Name | |
465 | WedgePart.BrickColor = BrickColor.new(Color) | |
466 | WedgePart.Size = Size | |
467 | WedgePart.Material = Material | |
468 | WedgePart.Transparency = Transparency | |
469 | WedgePart.CanCollide = false | |
470 | NoOutlines(WedgePart) | |
471 | ||
472 | return WedgePart | |
473 | ||
474 | end | |
475 | ||
476 | local CreateWeld = function(Parent, Cframe, P1 , P0) | |
477 | ||
478 | local Weld = Instance.new("Weld", Parent) | |
479 | Weld.Part0 = P0 | |
480 | Weld.Part1 = P1 | |
481 | Weld.Name = P0.Name .. "To" .. P1.Name | |
482 | Weld.C0 = Cframe | |
483 | ||
484 | return Weld | |
485 | ||
486 | end | |
487 | ||
488 | local CreateVelocity = function(Parent,Velocity,Force) | |
489 | ||
490 | local BodyVelocity = Instance.new("BodyVelocity", Parent) | |
491 | BodyVelocity.Velocity = Velocity | |
492 | BodyVelocity.MaxForce = Force | |
493 | ||
494 | ||
495 | ||
496 | return BodyVelocity | |
497 | ||
498 | end | |
499 | ||
500 | ||
501 | local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale) | |
502 | ||
503 | ||
504 | local Part = Instance.new("Part", Parent) | |
505 | Part.Name = Name | |
506 | Part.BrickColor = BrickColor.new(Color) | |
507 | Part.Size = Size | |
508 | Part.Material = Material | |
509 | Part.Transparency = Transparency | |
510 | Part.CanCollide = false | |
511 | NoOutlines(Part) | |
512 | ||
513 | local Mesh = Instance.new("SpecialMesh", Part) | |
514 | Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId | |
515 | Mesh.Scale = Scale | |
516 | ||
517 | return Mesh and Part | |
518 | ||
519 | end | |
520 | ||
521 | local MakeSFX = function(Parent, Id, Volume, Pitch, Type) | |
522 | ||
523 | local SFX = Instance.new("Sound", Parent) | |
524 | SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id | |
525 | SFX.Name = "SFX" | |
526 | SFX:Play() | |
527 | SFX.Volume = Volume | |
528 | SFX.Pitch = Pitch | |
529 | SFX.PlayOnRemove = true | |
530 | SFX:Remove() | |
531 | ||
532 | if Type == "Echo" then | |
533 | ||
534 | Instance.new("EchoSoundEffect", SFX) | |
535 | ||
536 | end | |
537 | ||
538 | end | |
539 | ||
540 | local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale) | |
541 | ||
542 | ||
543 | local Part = Instance.new("Part", Parent) | |
544 | Part.Name = Name | |
545 | Part.BrickColor = BrickColor.new(Color) | |
546 | Part.Size = Size | |
547 | Part.Material = Material | |
548 | Part.Transparency = Transparency | |
549 | Part.CanCollide = false | |
550 | NoOutlines(Part) | |
551 | ||
552 | local Mesh = Instance.new("SpecialMesh", Part) | |
553 | Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId | |
554 | Mesh.Scale = Scale | |
555 | ||
556 | return Mesh and Part | |
557 | ||
558 | end | |
559 | ||
560 | CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency) | |
561 | ||
562 | local Part = Instance.new("Part", Parent) | |
563 | Part.Transparency = Transparency | |
564 | Part.Name = "CircleEffect" | |
565 | Part.Size = Vector3.new() | |
566 | Part.Anchored = true | |
567 | Part.CanCollide = false | |
568 | Part.Position = Position | |
569 | Part.BrickColor = BrickColor.new(Brickcolor) | |
570 | Part.Material = Material | |
571 | NoOutlines(Part) | |
572 | ||
573 | local Mesh = Instance.new("SpecialMesh", Part) | |
574 | Mesh.MeshType = "Sphere" | |
575 | Mesh.Scale = Vector3.new(DSX, DSY, DSZ) | |
576 | ||
577 | Services.Debris:AddItem(Part, Time) | |
578 | ||
579 | ||
580 | table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ}) | |
581 | ||
582 | ||
583 | end | |
584 | ||
585 | BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency) | |
586 | ||
587 | local Part = Instance.new("Part", Parent) | |
588 | Part.Transparency = Transparency | |
589 | Part.Name = "BlockEffect" | |
590 | Part.Size = Vector3.new() | |
591 | Part.Anchored = true | |
592 | Part.Position = Position | |
593 | Part.CanCollide = false | |
594 | Part.BrickColor = BrickColor.new(Brickcolor) | |
595 | Part.Material = Material | |
596 | NoOutlines(Part) | |
597 | ||
598 | local Mesh = Instance.new("BlockMesh", Part) | |
599 | Mesh.Scale = Vector3.new(DSX, DSY, DSZ) | |
600 | ||
601 | Services.Debris:AddItem(Part, Time) | |
602 | ||
603 | table.insert(Effects, {Part, "Block", Time, SX, SY, SZ}) | |
604 | ||
605 | ||
606 | end | |
607 | ||
608 | --[[ Damage function ]]-- | |
609 | ||
610 | ||
611 | function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max) | |
612 | ||
613 | local HitHumanoid = Hit.Parent.Humanoid | |
614 | ||
615 | ||
616 | local Damage = math.random(Min, Max) | |
617 | ||
618 | ||
619 | coroutine.resume(coroutine.create(function() | |
620 | HitHumanoid:TakeDamage(Damage) | |
621 | end)) | |
622 | ||
623 | if Type == "Shrink" then | |
624 | MakeSFX(Hit.Parent.Torso, 209527235, 1, 1) | |
625 | for i,v in pairs(Hit.Parent:children()) do | |
626 | if v:IsA("Part") then | |
627 | coroutine.resume(coroutine.create(function() | |
628 | for i = 1,100 do | |
629 | wait() | |
630 | v.Size = v.Size - Vector3.new(0.05,0.05,0.05) | |
631 | v.Transparency = v.Transparency + 0.05 | |
632 | ||
633 | end | |
634 | end)) | |
635 | end | |
636 | end | |
637 | ||
638 | end | |
639 | ||
640 | ||
641 | ||
642 | ||
643 | ||
644 | ||
645 | if Type == "Normal" then | |
646 | ||
647 | local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) | |
648 | Services.Debris:AddItem(Push, 0) | |
649 | DamageLabel(Hit.Parent, Damage, Hit) | |
650 | ||
651 | elseif Type == "Ranged" then | |
652 | local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) | |
653 | Services.Debris:AddItem(Push, 0) | |
654 | DamageLabel(Hit.Parent, Damage, Hit) | |
655 | ||
656 | elseif Type == "Impale" then | |
657 | ||
658 | local Spike = CreateSpike(Services.Workspace, "D e a t h", "Institutional white", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1)) | |
659 | Spike.Anchored = true | |
660 | Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50)) | |
661 | Spike.Position = Hit.Parent.Torso.Position | |
662 | ||
663 | ||
664 | Services.Debris:AddItem(Spike, 30) | |
665 | ||
666 | Hit.Parent:BreakJoints() | |
667 | Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0) | |
668 | Hit.Parent.Torso.Anchored = true | |
669 | ||
670 | MakeSFX(Spike, 306247724, 1,1) | |
671 | MakeSFX(Hit.Parent.Torso, 209527175, 10,1) | |
672 | elseif Type == "Knockdown" then | |
673 | ||
674 | ||
675 | local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) | |
676 | DamageLabel(Hit.Parent, Damage, Hit) | |
677 | Services.Debris:AddItem(Push, 0.3) | |
678 | ||
679 | coroutine.resume(coroutine.create(function() | |
680 | ||
681 | HitHumanoid.PlatformStand = true | |
682 | wait(1) | |
683 | HitHumanoid.PlatformStand = false | |
684 | ||
685 | ||
686 | end)) | |
687 | end | |
688 | ||
689 | if HitSFX == "Penetration" then | |
690 | ||
691 | MakeSFX(Hit, 199149269, 1 , 1) | |
692 | ||
693 | elseif HitSFX == "Punch" then | |
694 | ||
695 | MakeSFX(Hit, 278062209, 1 , 1) | |
696 | ||
697 | ||
698 | ||
699 | ||
700 | end | |
701 | end | |
702 | ||
703 | function DamageLabel(HitCharacter, DamageDealt, Hit) | |
704 | ||
705 | local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block") | |
706 | DamageShowingPart.Position = HitCharacter.Head.Position | |
707 | ||
708 | local DamageGui = Instance.new("BillboardGui", DamageShowingPart) | |
709 | DamageGui.Name = "Damage" | |
710 | DamageGui.AlwaysOnTop = true | |
711 | DamageGui.Size = UDim2.new(5, 0, 5, 0) | |
712 | ||
713 | local DamageNumber = Instance.new("TextLabel", DamageGui) | |
714 | DamageNumber.Size = UDim2.new(1,0,1,0) | |
715 | if Hit.Parent:FindFirstChild("Head") then | |
716 | DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color | |
717 | DamageNumber.TextColor3 = Hit.BrickColor.Color | |
718 | end | |
719 | DamageNumber.TextStrokeTransparency = 0 | |
720 | DamageNumber.BackgroundTransparency = 1 | |
721 | DamageNumber.Font = "SourceSansBold" | |
722 | DamageNumber.TextScaled = true | |
723 | DamageNumber.Text = DamageDealt | |
724 | ||
725 | local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart) | |
726 | BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
727 | BodyVelocity.Velocity = Vector3.new(0,2,0) | |
728 | ||
729 | Services.Debris:AddItem(DamageShowingPart, 3) | |
730 | ||
731 | ||
732 | end | |
733 | ||
734 | function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback) | |
735 | for _,WorkspaceChildren in pairs(workspace:children()) do | |
736 | ||
737 | local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid") | |
738 | ||
739 | if HitHumanoid ~= nil then | |
740 | local Hit = WorkspaceChildren:findFirstChild("Torso") | |
741 | ||
742 | if Hit ~= nil then | |
743 | ||
744 | local Target = Hit.Position - Part.Position | |
745 | ||
746 | local Magnitude = Target.magnitude | |
747 | ||
748 | if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then | |
749 | ||
750 | local HitBlock = Hit.Parent:FindFirstChild("Block") | |
751 | ||
752 | if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then | |
753 | ||
754 | local HitBlock2 = Hit.Parent.Block.BlockDurability | |
755 | ||
756 | if HitBlock2.Value > 15 then | |
757 | ||
758 | local HitN = math.random(1,5) | |
759 | ||
760 | HitBlock2.Value = HitBlock2.Value - 15 | |
761 | ||
762 | ||
763 | if HitN == 1 then | |
764 | MakeSFX(Hit ,199148971, 0.5, 1) | |
765 | end | |
766 | ||
767 | if HitN == 2 then | |
768 | MakeSFX(Hit ,199149025, 0.5, 1) | |
769 | end | |
770 | ||
771 | if HitN == 3 then | |
772 | MakeSFX(Hit ,199149072, 0.5, 1) | |
773 | end | |
774 | ||
775 | if HitN == 4 then | |
776 | MakeSFX(Hit ,199149109, 0.5, 1) | |
777 | end | |
778 | ||
779 | if HitN == 5 then | |
780 | MakeSFX(Hit ,199149119, 0.5, 1) | |
781 | end | |
782 | return | |
783 | end | |
784 | end | |
785 | ||
786 | DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max) | |
787 | ||
788 | ||
789 | ||
790 | end | |
791 | end | |
792 | end | |
793 | end | |
794 | end | |
795 | ||
796 | ||
797 | ||
798 | local Cloak = Instance.new("Part", Character) | |
799 | Cloak.Name = "Cloak" | |
800 | Cloak.CanCollide = false | |
801 | Cloak.BrickColor = BrickColor.new("Institutional white") | |
802 | ||
803 | ||
804 | ||
805 | ||
806 | local CloakMesh = Instance.new("SpecialMesh", Cloak) | |
807 | CloakMesh.MeshId = "http://www.roblox.com/asset?id=87249889" | |
808 | CloakMesh.TextureId = "http://www.roblox.com/asset?id=134518907" | |
809 | ||
810 | local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter") | |
811 | ||
812 | for i,v in pairs(Character:children()) do | |
813 | if v:IsA("Accessory") then | |
814 | v:Remove() | |
815 | elseif v:IsA("Shirt") then | |
816 | v:Remove() | |
817 | elseif v:IsA("Pants") then | |
818 | v:Remove() | |
819 | elseif v:IsA("BodyColors") then | |
820 | ||
821 | Head.BrickColor =BrickColor.new("Institutional white") | |
822 | Torso.BrickColor = BrickColor.new("Institutional white") | |
823 | Right_Arm.BrickColor = BrickColor.new("Institutional white") | |
824 | Right_Leg.BrickColor = BrickColor.new("Institutional white") | |
825 | Left_Arm.BrickColor = BrickColor.new("Institutional white") | |
826 | Left_Leg.BrickColor = BrickColor.new("Institutional white") | |
827 | ||
828 | v.HeadColor = BrickColor.new("Institutional white") | |
829 | v.TorsoColor = BrickColor.new("Institutional white") | |
830 | v.RightArmColor = BrickColor.new("Institutional white") | |
831 | v.LeftArmColor = BrickColor.new("Institutional white") | |
832 | v.RightLegColor = BrickColor.new("Institutional white") | |
833 | v.LeftLegColor = BrickColor.new("Institutional white") | |
834 | ||
835 | end | |
836 | end | |
837 | ||
838 | ||
839 | ||
840 | --[[ CLerp Declarations ]]-- | |
841 | ||
842 | function clerp(a,b,t) | |
843 | local qa = {QuaternionFromCFrame(a)} | |
844 | local qb = {QuaternionFromCFrame(b)} | |
845 | local ax, ay, az = a.x, a.y, a.z | |
846 | local bx, by, bz = b.x, b.y, b.z | |
847 | local _t = 1-t | |
848 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
849 | end | |
850 | ||
851 | function QuaternionFromCFrame(cf) -- dis one | |
852 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
853 | local trace = m00 + m11 + m22 | |
854 | if trace > 0 then | |
855 | local s = math.sqrt(1 + trace) | |
856 | local recip = 0.5/s | |
857 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
858 | else | |
859 | local i = 0 | |
860 | if m11 > m00 then | |
861 | i = 1 | |
862 | end | |
863 | if m22 > (i == 0 and m00 or m11) then | |
864 | i = 2 | |
865 | end | |
866 | if i == 0 then | |
867 | local s = math.sqrt(m00-m11-m22+1) | |
868 | local recip = 0.5/s | |
869 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
870 | elseif i == 1 then | |
871 | local s = math.sqrt(m11-m22-m00+1) | |
872 | local recip = 0.5/s | |
873 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
874 | elseif i == 2 then | |
875 | local s = math.sqrt(m22-m00-m11+1) | |
876 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
877 | end | |
878 | end | |
879 | end | |
880 | ||
881 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
882 | local xs, ys, zs = x + x, y + y, z + z | |
883 | local wx, wy, wz = w*xs, w*ys, w*zs | |
884 | local xx = x*xs | |
885 | local xy = x*ys | |
886 | local xz = x*zs | |
887 | local yy = y*ys | |
888 | local yz = y*zs | |
889 | local zz = z*zs | |
890 | 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)) | |
891 | end | |
892 | ||
893 | function QuaternionSlerp(a, b, t) | |
894 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
895 | local startInterp, finishInterp; | |
896 | if cosTheta >= 0.0001 then | |
897 | if (1 - cosTheta) > 0.0001 then | |
898 | local theta = math.acos(cosTheta) | |
899 | local invSinTheta = 1/math.sin(theta) | |
900 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
901 | finishInterp = math.sin(t*theta)*invSinTheta | |
902 | else | |
903 | startInterp = 1-t | |
904 | finishInterp = t | |
905 | end | |
906 | else | |
907 | if (1+cosTheta) > 0.0001 then | |
908 | local theta = math.acos(-cosTheta) | |
909 | local invSinTheta = 1/math.sin(theta) | |
910 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
911 | finishInterp = math.sin(t*theta)*invSinTheta | |
912 | else | |
913 | startInterp = t-1 | |
914 | finishInterp = t | |
915 | end | |
916 | end | |
917 | 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 | |
918 | end | |
919 | ||
920 | function RayCast(Pos, Dir, Max, Ignore) | |
921 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
922 | end | |
923 | ||
924 | ||
925 | function Bars() | |
926 | ||
927 | --[[ Mana Bar ]]-- | |
928 | if Destruction ~= MaxDestruction then | |
929 | ||
930 | Destruction = Destruction + 1 | |
931 | ||
932 | end | |
933 | ||
934 | if Destruction >= MaxDestruction then | |
935 | ||
936 | Destruction = Destruction | |
937 | ||
938 | end | |
939 | ||
940 | ||
941 | ManaBarText.Text = "<{[ Retribution ]}> <|"..Destruction.."|> <{[ Retribution ]}>" | |
942 | ||
943 | ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20) | |
944 | ||
945 | end | |
946 | local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") | |
947 | local EyeReferenceWeld = CreateWeld(EyeReference, CFrame.new(0.15,-0.1,-0.7), EyeReference, Head) | |
948 | ||
949 | coroutine.resume(coroutine.create(function() | |
950 | ||
951 | while wait(3) do | |
952 | ||
953 | ||
954 | CircleEffect(EyeReference.Position, Services.Workspace, 1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5) | |
955 | ||
956 | ||
957 | end | |
958 | ||
959 | end)) | |
960 | --[[ Attacks ]]-- | |
961 | ||
962 | function Attack1() | |
963 | Attacking = true | |
964 | MakeSFX(EyeReference, 341336274, 1,1) | |
965 | wait(0.3) | |
966 | local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") | |
967 | local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root) | |
968 | ||
969 | local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") | |
970 | local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root) | |
971 | ||
972 | ||
973 | for i = 1,10 do | |
974 | ||
975 | wait() | |
976 | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5) | |
977 | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2) | |
978 | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3) | |
979 | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4) | |
980 | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3) | |
981 | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3) | |
982 | ||
983 | end | |
984 | ||
985 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Lime green", "Neon", 0.5) | |
986 | wait(0.5) | |
987 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Lime green", "Neon", 0.5) | |
988 | wait(0.5) | |
989 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Lime green", "Neon", 0.5) | |
990 | wait(0.5) | |
991 | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Lime green", "Neon", 0.5) | |
992 | wait(0.5) | |
993 | MakeSFX(Reference, 306247724, 1,1) | |
994 | CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Lime green", "Neon", 0.5) | |
995 | ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5) | |
996 | Attacking = false | |
997 | end | |
998 | ||
999 | function Attack2() | |
1000 | ||
1001 | Attacking = true | |
1002 | Humanoid.WalkSpeed = 0 | |
1003 | Humanoid.JumpPower = 0 | |
1004 | ||
1005 | ||
1006 | for i = 1,25 do | |
1007 | wait() | |
1008 | ||
1009 | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2) | |
1010 | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3) | |
1011 | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3) | |
1012 | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3) | |
1013 | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2) | |
1014 | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2) | |
1015 | ||
1016 | end | |
1017 | ||
1018 | MakeSFX(Torso, 142070127, 1, 1) | |
1019 | ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15) | |
1020 | local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character) | |
1021 | if Hit ~= nil then | |
1022 | local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") | |
1023 | Reference.Anchored = true | |
1024 | Reference.CFrame = CFrame.new(Position) | |
1025 | ||
1026 | CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Institutional white", "Neon", 0.5) | |
1027 | ||
1028 | game:GetService("Debris"):AddItem(Reference,0.1) | |
1029 | for i=1,50 do | |
1030 | ||
1031 | local Ground = CreatePart(Services.Workspace, "Ground", Hit.BrickColor.Color, Vector3.new(math.random(1,3), math.random(1,3), math.random(1,3)), Hit.Material, 0, "Block") | |
1032 | Ground.Anchored = true | |
1033 | Ground.CanCollide = true | |
1034 | Ground.CFrame = CFrame.new(Position) * CFrame.new(math.random(-30,30), 0, math.random(-30,30)) * CFrame.Angles(math.random(-50,50),math.random(-50,50), math.random(-50,50)) | |
1035 | ||
1036 | game:GetService("Debris"):AddItem(Ground,10) | |
1037 | ||
1038 | end | |
1039 | end | |
1040 | ||
1041 | for i = 1,25 do | |
1042 | wait() | |
1043 | ||
1044 | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5) | |
1045 | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3) | |
1046 | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3) | |
1047 | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3) | |
1048 | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2) | |
1049 | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2) | |
1050 | ||
1051 | end | |
1052 | ||
1053 | Attacking = false | |
1054 | Humanoid.WalkSpeed = 16 | |
1055 | Humanoid.JumpPower = 50 | |
1056 | ||
1057 | ||
1058 | ||
1059 | end | |
1060 | ||
1061 | ||
1062 | function Attack3() | |
1063 | Humanoid.WalkSpeed = 0 | |
1064 | Humanoid.JumpPower = 0 | |
1065 | Attacking = true | |
1066 | wait(1) | |
1067 | MakeSFX(Torso, 341336274, 1, 1.2) | |
1068 | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Institutional white", "Neon", 0.5) | |
1069 | wait(1) | |
1070 | MakeSFX(Torso, 341336274, 1, 1.2) | |
1071 | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Institutional white", "Neon", 0.5) | |
1072 | wait(1) | |
1073 | MakeSFX(Torso, 341336274, 1, 1.2) | |
1074 | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Institutional white", "Neon", 0.5) | |
1075 | ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15) | |
1076 | Humanoid.WalkSpeed = 16 | |
1077 | Humanoid.JumpPower = 50 | |
1078 | Attacking = false | |
1079 | end | |
1080 | ||
1081 | mouse.KeyDown:connect(function(key) | |
1082 | if key == "z" then | |
1083 | Attack1() | |
1084 | ||
1085 | end | |
1086 | end) | |
1087 | ||
1088 | mouse.KeyDown:connect(function(key) | |
1089 | if key == "x" then | |
1090 | Attack2() | |
1091 | ||
1092 | end | |
1093 | end) | |
1094 | ||
1095 | mouse.KeyDown:connect(function(key) | |
1096 | if key == "c" then | |
1097 | Attack3() | |
1098 | ||
1099 | end | |
1100 | end) | |
1101 | ||
1102 | ||
1103 | --[[ CLerp Animations ]]-- | |
1104 | Change1 = 0 | |
1105 | Change2 = 0 | |
1106 | Change3 = 0 | |
1107 | Change4 = 0 | |
1108 | ||
1109 | while true do | |
1110 | wait() | |
1111 | ||
1112 | local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude | |
1113 | local Velderp = Root.Velocity.y | |
1114 | HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1115 | ||
1116 | Bars() | |
1117 | ||
1118 | ||
1119 | if Torvel < 1 and HitFloor ~= nil and Attacking == false then | |
1120 | Anim = "Idle" | |
1121 | ||
1122 | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) | |
1123 | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3) | |
1124 | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3) | |
1125 | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3) | |
1126 | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0) * CFrame.Angles(-0.1,0,0),0.2) | |
1127 | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0) * CFrame.Angles(-0.1,0,0),0.2) | |
1128 | ||
1129 | end | |
1130 | ||
1131 | ||
1132 | if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then | |
1133 | Anim = "Walking" | |
1134 | ||
1135 | if Invert == false then | |
1136 | Change1 = Change1 + 0.1 | |
1137 | ||
1138 | elseif Invert == true then | |
1139 | ||
1140 | Change1 = Change1 - 0.1 | |
1141 | ||
1142 | end | |
1143 | ||
1144 | if Change1 > 0.5 then | |
1145 | ||
1146 | Invert = true | |
1147 | ||
1148 | elseif Change1 < -0.5 then | |
1149 | ||
1150 | Invert = false | |
1151 | ||
1152 | end | |
1153 | ||
1154 | if Attacking == false then | |
1155 | ||
1156 | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) | |
1157 | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3) | |
1158 | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3) | |
1159 | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3) | |
1160 | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2) | |
1161 | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2) | |
1162 | ||
1163 | end | |
1164 | end | |
1165 | ||
1166 | if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then | |
1167 | Anim = "Jump" | |
1168 | ||
1169 | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) | |
1170 | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3) | |
1171 | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3) | |
1172 | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3) | |
1173 | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2) | |
1174 | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2) | |
1175 | ||
1176 | end | |
1177 | ||
1178 | if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then | |
1179 | Anim = "Fall" | |
1180 | ||
1181 | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) | |
1182 | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3) | |
1183 | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3) | |
1184 | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3) | |
1185 | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2) | |
1186 | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2) | |
1187 | ||
1188 | end | |
1189 | ||
1190 | ||
1191 | if #Effects > 0 then | |
1192 | for E = 1, #Effects do | |
1193 | if Effects[E]~=nil then | |
1194 | local Effect = Effects[E] | |
1195 | ||
1196 | if Effect ~= nil then | |
1197 | ||
1198 | local Part = Effect[1] | |
1199 | local Mode = Effect[2] | |
1200 | local Time = Effect[3] | |
1201 | local SizeX = Effect[4] | |
1202 | local SizeY = Effect[5] | |
1203 | local SizeZ = Effect[6] | |
1204 | ||
1205 | if Effect[1].Transparency <= 1 then | |
1206 | if Effect[2] == "Block" then | |
1207 | Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1208 | ||
1209 | Mesh = Effect[1]:FindFirstChild("Mesh") | |
1210 | if Mesh ~= nil then | |
1211 | Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6]) | |
1212 | end | |
1213 | ||
1214 | elseif Effect[2] == "Circle" then | |
1215 | ||
1216 | if Effect[1]:FindFirstChild("Mesh") ~= nil then | |
1217 | Mesh=Effect[1].Mesh | |
1218 | Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6]) | |
1219 | end | |
1220 | ||
1221 | Effect[1].Transparency = Effect[1].Transparency + 0.05 | |
1222 | ||
1223 | else | |
1224 | ||
1225 | Part.Parent=nil | |
1226 | ||
1227 | table.remove(Effects, E) | |
1228 | ||
1229 | end | |
1230 | end | |
1231 | end | |
1232 | end | |
1233 | end | |
1234 | end | |
1235 | end |