SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | 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 --[[Made by PointCoded]]-- | |
6 | --[[Private Script, Do Not Leek!]]-- | |
7 | --[[==The Darkness Wielder==]]-- | |
8 | --[[Not finished]]-- | |
9 | ------------------------- | |
10 | local Music = false | |
11 | ------------------------- | |
12 | local Player = game:GetService("Players").LocalPlayer | |
13 | local Char = Player.Character | |
14 | local Torso = Char["Torso"] | |
15 | local Head = Char["Head"] | |
16 | local Larm = Char["Left Arm"] | |
17 | local Rarm = Char["Right Arm"] | |
18 | local Lleg = Char["Left Leg"] | |
19 | local Rleg = Char["Right Leg"] | |
20 | local Humanoid = Char["Humanoid"] | |
21 | local Neck = Torso["Neck"] | |
22 | local LS = Torso["Left Shoulder"] | |
23 | local LH = Torso["Left Hip"] | |
24 | local RS = Torso["Right Shoulder"] | |
25 | local RH = Torso["Right Hip"] | |
26 | local Mouse = Player:GetMouse() | |
27 | local root = Char.HumanoidRootPart | |
28 | local cam = workspace.CurrentCamera | |
29 | local HealLimit = 5 | |
30 | ---------------------------------- | |
31 | ------------------------- | |
32 | --[[Made by PointCoded]]-- | |
33 | --[[Private Script, Do Not Leek!]]-- | |
34 | --[[==The Darkness Wielder ==]]-- | |
35 | --[[Not finished]]-- | |
36 | ------------------------- | |
37 | local Ter = workspace.Terrain | |
38 | local Attacking = false | |
39 | local flySpeed = 10 | |
40 | local MAX_FLY_SPEED = 500 | |
41 | local canFly = false | |
42 | local flyToggled = false | |
43 | local keysDown = {} | |
44 | local rad = math.rad | |
45 | local Sound = Instance.new("Sound",Char) | |
46 | Sound.Volume = 0.3 | |
47 | Sound.Looped = false | |
48 | Sound:Play() | |
49 | local SoundIds = {"267979379","324976791","401059459"} | |
50 | ---------------------------------- | |
51 | local floatBP = Instance.new("BodyPosition") | |
52 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
53 | local flyBV = Instance.new("BodyVelocity") | |
54 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
55 | local turnBG = Instance.new("BodyGyro") | |
56 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
57 | it=Instance.new | |
58 | vt=Vector3.new | |
59 | cf=CFrame.new | |
60 | euler=CFrame.fromEulerAnglesXYZ | |
61 | angles=CFrame.Angles | |
62 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
63 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
64 | RW.Name="Right Shoulder" | |
65 | RW.Part0=Torso | |
66 | RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15) | |
67 | RW.C1=cf(0, 0.5, 0) | |
68 | RW.Part1=Rarm | |
69 | RW.Parent=Torso | |
70 | LW.Name="Left Shoulder" | |
71 | LW.Part0=Torso | |
72 | LW.C0=cf(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, -0.15) | |
73 | LW.C1=cf(0, 0.5, 0) | |
74 | LW.Part1=Larm | |
75 | LW.Parent=Torso | |
76 | function swait(num) | |
77 | if num==0 or num==nil then | |
78 | game:service'RunService'.Stepped:wait(0) | |
79 | else | |
80 | for i=0,num do | |
81 | game:service'RunService'.Stepped:wait(0) | |
82 | end | |
83 | end | |
84 | end | |
85 | ---------------------------------------------------- | |
86 | ------------------------- | |
87 | --[[Made by PointCoded]]-- | |
88 | --[[Private Script, Do Not Leek!]]-- | |
89 | --[[==The Darkness Wielder ==]]-- | |
90 | --[[Not finished]]-- | |
91 | ------------------------- | |
92 | --[[Morphing]]-- | |
93 | for i,v in pairs(Char:children()) do | |
94 | if v:IsA("Hat") or v:IsA("Pants") or v:IsA("Shirt") or v:IsA("CharacterMesh") then | |
95 | v:Destroy() | |
96 | end | |
97 | end | |
98 | local H = Instance.new("Hat",Char) | |
99 | local P = Instance.new("Part",H) | |
100 | local M = Instance.new("SpecialMesh",P) | |
101 | M.MeshId = "http://www.roblox.com/asset/?id=346578029" | |
102 | M.TextureId = "http://www.roblox.com/asset/?id=134207168" | |
103 | P.Locked = true | |
104 | H.AttachmentPos = Vector3.new(0, 0, 0) | |
105 | P.formFactor = 0 | |
106 | P.Size = Vector3.new(2,2,2) | |
107 | P.Position = Head.Position | |
108 | local cor = Instance.new("Part", Char.Hat) | |
109 | cor.Name = "Link" | |
110 | cor.Locked = true | |
111 | cor.BottomSurface = 0 | |
112 | cor.CanCollide = false | |
113 | cor.Size = Vector3.new(1, 9, 1) | |
114 | cor.Transparency = 1 | |
115 | cor.TopSurface = 0 | |
116 | corw = Instance.new("Weld", cor) | |
117 | corw.Part0 = Head | |
118 | corw.Part1 = cor | |
119 | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
120 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
121 | weld1 = Instance.new("Weld", Char.Hat) | |
122 | weld1.Part0 = cor | |
123 | weld1.Part1 = Char.Hat.Part | |
124 | weld1.C0 = CFrame.new(0, 0.56, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
125 | local S = Instance.new("Shirt",Char) | |
126 | S.ShirtTemplate = "http://www.roblox.com/asset/?id=151958439" | |
127 | local P = Instance.new("Pants",Char) | |
128 | P.PantsTemplate = "http://www.roblox.com/asset/?id=119143689" | |
129 | ||
130 | function clerp(a,b,t) | |
131 | local qa = {QuaternionFromCFrame(a)} | |
132 | local qb = {QuaternionFromCFrame(b)} | |
133 | local ax, ay, az = a.x, a.y, a.z | |
134 | local bx, by, bz = b.x, b.y, b.z | |
135 | local _t = 1-t | |
136 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
137 | end | |
138 | ||
139 | function QuaternionFromCFrame(cf) | |
140 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
141 | local trace = m00 + m11 + m22 | |
142 | if trace > 0 then | |
143 | local s = math.sqrt(1 + trace) | |
144 | local recip = 0.5/s | |
145 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
146 | else | |
147 | local i = 0 | |
148 | if m11 > m00 then | |
149 | i = 1 | |
150 | end | |
151 | if m22 > (i == 0 and m00 or m11) then | |
152 | i = 2 | |
153 | end | |
154 | if i == 0 then | |
155 | local s = math.sqrt(m00-m11-m22+1) | |
156 | local recip = 0.5/s | |
157 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
158 | elseif i == 1 then | |
159 | local s = math.sqrt(m11-m22-m00+1) | |
160 | local recip = 0.5/s | |
161 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
162 | elseif i == 2 then | |
163 | local s = math.sqrt(m22-m00-m11+1) | |
164 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
165 | end | |
166 | end | |
167 | end | |
168 | ||
169 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
170 | local xs, ys, zs = x + x, y + y, z + z | |
171 | local wx, wy, wz = w*xs, w*ys, w*zs | |
172 | local xx = x*xs | |
173 | local xy = x*ys | |
174 | local xz = x*zs | |
175 | local yy = y*ys | |
176 | local yz = y*zs | |
177 | local zz = z*zs | |
178 | 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)) | |
179 | end | |
180 | ||
181 | function QuaternionSlerp(a, b, t) | |
182 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
183 | local startInterp, finishInterp; | |
184 | if cosTheta >= 0.0001 then | |
185 | if (1 - cosTheta) > 0.0001 then | |
186 | local theta = math.acos(cosTheta) | |
187 | local invSinTheta = 1/math.sin(theta) | |
188 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
189 | finishInterp = math.sin(t*theta)*invSinTheta | |
190 | else | |
191 | startInterp = 1-t | |
192 | finishInterp = t | |
193 | end | |
194 | else | |
195 | if (1+cosTheta) > 0.0001 then | |
196 | local theta = math.acos(-cosTheta) | |
197 | local invSinTheta = 1/math.sin(theta) | |
198 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
199 | finishInterp = math.sin(t*theta)*invSinTheta | |
200 | else | |
201 | startInterp = t-1 | |
202 | finishInterp = t | |
203 | end | |
204 | end | |
205 | 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 | |
206 | end | |
207 | ------------------------------------------------------ | |
208 | function Particle(Part) | |
209 | local P = Instance.new("ParticleEmitter",Part) | |
210 | C = Color3.new(0,0,0) | |
211 | P.Color = ColorSequence.new(C,C) | |
212 | P.Lifetime = NumberRange.new(0.1,0.4) | |
213 | P.Size = NumberSequence.new(0.5) | |
214 | P.Speed = NumberRange.new(1) | |
215 | P.Acceleration = Vector3.new(0,-10,0) | |
216 | P.Texture = "http://www.roblox.com/asset/?id=341277531" | |
217 | end | |
218 | ------------------------- | |
219 | --[[Made by PointCoded]]-- | |
220 | --[[Private Script, Do Not Leek!]]-- | |
221 | --[[==The Darkness Wielder ==]]-- | |
222 | --[[Not finished]]-- | |
223 | ------------------------- | |
224 | function PT(Part,Time) | |
225 | local P = Instance.new("ParticleEmitter",Part) | |
226 | C = Color3.new(0,0,0) | |
227 | P.Color = ColorSequence.new(C,C) | |
228 | P.Lifetime = NumberRange.new(0.1,0.4) | |
229 | P.Size = NumberSequence.new(0.5) | |
230 | P.Speed = NumberRange.new(1) | |
231 | P.Acceleration = Vector3.new(0,-10,0) | |
232 | P.Texture = "http://www.roblox.com/asset/?id=341277531" | |
233 | game:GetService("Debris"):AddItem(P, Time) | |
234 | end | |
235 | function Heal () | |
236 | for i,Part in pairs(Char:GetChildren()) do | |
237 | if Part:IsA("Part") then | |
238 | Particle(Part) | |
239 | end | |
240 | end | |
241 | Humanoid.Health = Humanoid.MaxHealth | |
242 | end | |
243 | function SetupHeal () | |
244 | for i,Part in pairs(Char:GetChildren()) do | |
245 | if Part:IsA("Part") then | |
246 | Particle(Part) | |
247 | end | |
248 | end | |
249 | Humanoid.MaxHealth = 5000 | |
250 | Humanoid.WalkSpeed = 30 | |
251 | Humanoid.JumpPower = 100 | |
252 | Humanoid.Health = Humanoid.MaxHealth | |
253 | wait(5) | |
254 | for i,Part in pairs(Char:GetChildren()) do | |
255 | if Part:IsA("Part") then | |
256 | if Part:findFirstChild("ParticleEmitter") then | |
257 | Part.ParticleEmitter:remove() | |
258 | end | |
259 | end | |
260 | end | |
261 | end | |
262 | function Destroy(hit,Damage) | |
263 | if Damage == nil then Damage = 1 end | |
264 | if hit and hit.Parent and hit.Parent:IsA("Model") and hit.Parent ~= Player.Character and hit.Parent:findFirstChild("Hit") == nil then | |
265 | if hit.Parent:findFirstChild("Torso") then | |
266 | rl=Instance.new("BodyAngularVelocity") | |
267 | rl.P=3000 | |
268 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
269 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
270 | rl.Parent=hit | |
271 | local M = Instance.new("Model",hit.Parent) | |
272 | M.Name = "Hit" | |
273 | game:GetService("Debris"):AddItem(rl,.5) | |
274 | if hit.Parent:findFirstChild("Humanoid") then | |
275 | hit.Parent.Humanoid.MaxHealth = 100 | |
276 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - Damage | |
277 | end | |
278 | for i,Part in pairs(hit.Parent:GetChildren()) do | |
279 | if Part:IsA("Part") then | |
280 | Part.BrickColor = BrickColor.new("Black") | |
281 | PT(Part,2) | |
282 | end | |
283 | end | |
284 | swait() | |
285 | M:remove() | |
286 | end | |
287 | end | |
288 | end | |
289 | function BeamHit(hit) | |
290 | if hit and hit.Parent and hit.Parent:IsA("Model") and hit.Parent ~= Player.Character and hit.Parent:findFirstChild("Hit") == nil then | |
291 | if hit.Parent:findFirstChild("Torso") then | |
292 | rl=Instance.new("BodyAngularVelocity") | |
293 | rl.P=3000 | |
294 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
295 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
296 | rl.Parent=hit | |
297 | local M = Instance.new("Model",hit.Parent) | |
298 | M.Name = "Hit" | |
299 | game:GetService("Debris"):AddItem(rl,1) | |
300 | if hit.Parent:findFirstChild("Humanoid") then | |
301 | hit.Parent.Humanoid.MaxHealth = 100 | |
302 | hit.Parent.Humanoid.PlatformStand = true | |
303 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5 | |
304 | end | |
305 | for i,Part in pairs(hit.Parent:GetChildren()) do | |
306 | if Part:IsA("Part") then | |
307 | PT(Part,2) | |
308 | end | |
309 | end | |
310 | end | |
311 | end | |
312 | end | |
313 | ------------------------- | |
314 | --[[Made by PointCoded]]-- | |
315 | --[[Private Script, Do Not Leek!]]-- | |
316 | --[[==The Darkness Wielder ==]]-- | |
317 | --[[Not finished]]-- | |
318 | ------------------------- | |
319 | function Blast () | |
320 | Attacking = true | |
321 | for i=0,1,0.1 do | |
322 | swait() | |
323 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(0)),.3) | |
324 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(0)),.3) | |
325 | end | |
326 | for i=0,1,0.1 do | |
327 | swait() | |
328 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(50)),.5) | |
329 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(-50)),.5) | |
330 | end | |
331 | swait(1) | |
332 | ypcall(function() | |
333 | local Ball = Instance.new("Part",Char) | |
334 | Ball.Shape = 0 | |
335 | Ball.CFrame = Torso.CFrame -- Starting Place | |
336 | Ball.Transparency = 0.1 | |
337 | Ball.BrickColor = BrickColor.new("Black") | |
338 | Ball.Reflectance = 0.1 | |
339 | Ball.Material = "Neon" | |
340 | Ball.Anchored = true | |
341 | Ball.CanCollide = false | |
342 | Ball.Size = Vector3.new(3,3,3) | |
343 | Ball.Locked = true | |
344 | Ball.Touched:connect(Destroy) | |
345 | local HB = Instance.new("Part",Char) | |
346 | HB.Name = "Ball Hitbox" | |
347 | HB.Transparency = 1 | |
348 | HB.Anchored = true | |
349 | HB.CanCollide = false | |
350 | HB.Shape = 0 | |
351 | HB.Size = Vector3.new(6,6,6) | |
352 | HB.Locked = true | |
353 | z = Instance.new("Sound",HB) | |
354 | z.SoundId = "rbxassetid://237035051" | |
355 | z.Volume = 1 | |
356 | z.Pitch = .9 | |
357 | z:Play() | |
358 | for i = 0, 260, 8 do | |
359 | wait() | |
360 | Ball.Touched:connect(Destroy) | |
361 | HB.Touched:connect(Destroy) | |
362 | Ball.CFrame = Ball.CFrame * CFrame.new(0, 0, -4.2 -(i/18)) * CFrame.Angles(0, 0, math.rad(0))-- Make The Ball Go Forward | |
363 | HB.CFrame = Ball.CFrame | |
364 | HB.Touched:connect(Destroy) | |
365 | Ball.Touched:connect(Destroy) | |
366 | end | |
367 | swait() | |
368 | Ball:remove() | |
369 | z:Stop() | |
370 | HB:remove() | |
371 | swait(1) | |
372 | for i=0,1,0.1 do | |
373 | swait() | |
374 | RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15) | |
375 | LW.C0=cf(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, -0.15) | |
376 | end | |
377 | Attacking = false | |
378 | end) | |
379 | end | |
380 | Mouse.KeyDown:connect(function(key) | |
381 | keysDown[key] = true | |
382 | key = key:lower() | |
383 | if Attacking == false then | |
384 | if key == "q" then | |
385 | Blast() | |
386 | elseif key == "g" then | |
387 | Puddle() | |
388 | elseif key == "r" then | |
389 | Beam() | |
390 | elseif key == "y" then | |
391 | NuclearBlast() | |
392 | end | |
393 | end | |
394 | if key == "e" then | |
395 | ypcall(function() | |
396 | flyToggled = not flyToggled | |
397 | if not flyToggled then | |
398 | floatBP.Parent = nil | |
399 | flyBV.Parent = nil | |
400 | turnBG.Parent = nil | |
401 | Humanoid.PlatformStand = false | |
402 | end | |
403 | end) | |
404 | elseif key == "t" then | |
405 | Boost() | |
406 | end | |
407 | end) | |
408 | function NuclearBlast() | |
409 | ||
410 | end | |
411 | ------------------------- | |
412 | --[[Made by PointCoded]]-- | |
413 | --[[Private Script, Do Not Leek!]]-- | |
414 | --[[==The Darkness Wielder ==]]-- | |
415 | --[[Not finished]]-- | |
416 | ------------------------- | |
417 | function Boost() | |
418 | Attacking = true | |
419 | for i=0,1,0.1 do | |
420 | swait() | |
421 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,100,100),.3) | |
422 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(5,-100,-100),.3) | |
423 | end | |
424 | Head.Velocity=Torso.CFrame.lookVector*300 | |
425 | RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15) | |
426 | LW.C0=cf(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, -0.15) | |
427 | Attacking = false | |
428 | end | |
429 | function Beam() | |
430 | Attacking = true | |
431 | for i=0,1,0.1 do | |
432 | swait() | |
433 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,100,-10),.3) | |
434 | end | |
435 | swait(2) | |
436 | for i=0,1,0.1 do | |
437 | swait() | |
438 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,250,-10),.3) | |
439 | end | |
440 | for i=0,1,0.1 do | |
441 | swait() | |
442 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,5,-10),.3) | |
443 | end | |
444 | for i=0,1,0.1 do | |
445 | swait() | |
446 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,5,10),.3) | |
447 | end | |
448 | local P = Instance.new("Part",Torso) | |
449 | P.Name = "Circle" | |
450 | P.Size = Vector3.new(0.5,0.5,0.5) | |
451 | P.Shape = 0 | |
452 | P.TopSurface = "Smooth" | |
453 | P.BottomSurface = "Smooth" | |
454 | P.CFrame = Rarm.CFrame | |
455 | P.CanCollide = false | |
456 | P.Anchored = true | |
457 | P.Transparency = 0.4 | |
458 | P.BrickColor = BrickColor.new("Black") | |
459 | P.Material = "Neon" | |
460 | for i=1,200 do | |
461 | P.CFrame = Rarm.CFrame | |
462 | swait() | |
463 | P.Size = Vector3.new(P.Size.X + 0.02,P.Size.Y + 0.02,P.Size.Z + 0.02) | |
464 | end | |
465 | P.Shape = 1 | |
466 | P.Size = Vector3.new(3.5,3.5,3.5) | |
467 | P.Touched:connect(Destroy,80) | |
468 | for i=1,350 do | |
469 | local ray = Ray.new(Rarm.CFrame.p, (Mouse.Hit.p - Rarm.CFrame.p).unit * 450) | |
470 | local part, position = workspace:FindPartOnRay(ray, Char, false, true) | |
471 | local distance = (Rarm.CFrame.p - position).magnitude | |
472 | P.Size = Vector3.new(P.Size.X, P.Size.Y, distance) | |
473 | P.Touched:connect(BeamHit) | |
474 | P.CFrame = CFrame.new(Rarm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
475 | P.Touched:connect(BeamHit) | |
476 | swait() | |
477 | if part then | |
478 | if part.Parent then | |
479 | local humanoid = part.Parent:FindFirstChild("Humanoid") | |
480 | if not humanoid and part.Parent.Parent then | |
481 | humanoid = part.Parent.Parent:FindFirstChild("Humanoid") | |
482 | end | |
483 | if humanoid then | |
484 | if humanoid.Parent:findFirstChild("Torso") then | |
485 | rl=Instance.new("BodyAngularVelocity") | |
486 | rl.P=3000 | |
487 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
488 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
489 | rl.Parent = humanoid.Parent.Torso | |
490 | game:GetService("Debris"):AddItem(rl,.5) | |
491 | humanoid.MaxHealth = 100 | |
492 | humanoid.Health = humanoid.Health - 5 | |
493 | PT(humanoid.Parent.Torso,0.1) | |
494 | end | |
495 | end | |
496 | end | |
497 | end | |
498 | end | |
499 | for i=1,60 do | |
500 | P.Transparency = P.Transparency + 0.01 | |
501 | P.Touched:connect(BeamHit) | |
502 | swait() | |
503 | end | |
504 | P:remove() | |
505 | RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15) | |
506 | Attacking = false | |
507 | end | |
508 | Mouse.KeyUp:connect(function(key) | |
509 | keysDown[key] = nil | |
510 | end) | |
511 | function Puddle() | |
512 | Attacking = true | |
513 | local P = Instance.new("Part",Char) | |
514 | P.Size = Vector3.new(1,0.1,1) | |
515 | P.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 2.7,Torso.CFrame.Z) | |
516 | P.Anchored = true | |
517 | P.BrickColor = BrickColor.new("Black") | |
518 | Instance.new("CylinderMesh",P) | |
519 | P.Name = "Puddle" | |
520 | P.CanCollide = false | |
521 | P.Touched:connect(Destroy) | |
522 | for i=1,200 do | |
523 | swait(0.1) | |
524 | P.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 2.7,Torso.CFrame.Z) | |
525 | P.Touched:connect(Destroy) | |
526 | P.Size = Vector3.new(P.Size.X + 0.1,P.Size.Y,P.Size.Z + 0.1) | |
527 | P.Touched:connect(Destroy) | |
528 | P.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 2.7,Torso.CFrame.Z) | |
529 | end | |
530 | Attacking = false | |
531 | P:Remove() | |
532 | end | |
533 | ------------------------- | |
534 | --[[Made by PointCoded]]-- | |
535 | --[[Private Script, Do Not Leek!]]-- | |
536 | --[[==The Darkness Wielder ==]]-- | |
537 | --[[Not finished]]-- | |
538 | ------------------------- | |
539 | function Click() | |
540 | Attacking = true | |
541 | for i=0,1,0.1 do | |
542 | swait() | |
543 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,100,50),.2) | |
544 | end | |
545 | for i=0,1,0.1 do | |
546 | swait() | |
547 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,-100,-550),.2) | |
548 | end | |
549 | local ray = Ray.new(Rarm.CFrame.p, (Mouse.Hit.p - Rarm.CFrame.p).unit * 300) | |
550 | local part, position = workspace:FindPartOnRay(ray, Char, false, true) | |
551 | local beam = Instance.new("Part", workspace) | |
552 | beam.BrickColor = BrickColor.new("Really black") | |
553 | beam.FormFactor = "Custom" | |
554 | beam.Material = "Neon" | |
555 | beam.Touched:connect(Destroy) | |
556 | beam.Transparency = 0.25 | |
557 | beam.Anchored = true | |
558 | beam.Locked = true | |
559 | beam.CanCollide = false | |
560 | z = Instance.new("Sound",beam) | |
561 | z.SoundId = "rbxassetid://169380525" | |
562 | z.Pitch = 1.3 | |
563 | z.Volume = 1 | |
564 | local distance = (Rarm.CFrame.p - position).magnitude | |
565 | beam.Size = Vector3.new(0.3, 0.3, distance) | |
566 | beam.Touched:connect(Destroy) | |
567 | beam.CFrame = CFrame.new(Rarm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
568 | beam.Touched:connect(Destroy) | |
569 | game:GetService("Debris"):AddItem(beam, 0.2) | |
570 | if part then | |
571 | local humanoid = part.Parent:FindFirstChild("Humanoid") | |
572 | if not humanoid then | |
573 | humanoid = part.Parent.Parent:FindFirstChild("Humanoid") | |
574 | end | |
575 | if humanoid then | |
576 | if humanoid.Parent:findFirstChild("Torso") then | |
577 | rl=Instance.new("BodyAngularVelocity") | |
578 | rl.P=3000 | |
579 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
580 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
581 | rl.Parent = humanoid.Parent.Torso | |
582 | game:GetService("Debris"):AddItem(rl,.5) | |
583 | humanoid.MaxHealth = 100 | |
584 | humanoid.Health = humanoid.Health - 80 | |
585 | end | |
586 | end | |
587 | end | |
588 | beam.Touched:connect(Destroy) | |
589 | z:Play() | |
590 | Attacking = false | |
591 | end | |
592 | ------------------------- | |
593 | --[[Made by PointCoded]]-- | |
594 | --[[Private Script, Do Not Leek!]]-- | |
595 | --[[==The Darkness Wielder ==]]-- | |
596 | --[[Not finished]]-- | |
597 | ------------------------- | |
598 | function Click2() | |
599 | Attacking = true | |
600 | for i=0,1,0.1 do | |
601 | swait() | |
602 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(5,100,50),.2) | |
603 | end | |
604 | for i=0,1,0.1 do | |
605 | swait() | |
606 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(5,-100,-550),.2) | |
607 | end | |
608 | local ray = Ray.new(Larm.CFrame.p, (Mouse.Hit.p - Larm.CFrame.p).unit * 300) | |
609 | local part, position = workspace:FindPartOnRay(ray, Char, false, true) | |
610 | local beam = Instance.new("Part", workspace) | |
611 | beam.BrickColor = BrickColor.new("Really black") | |
612 | beam.FormFactor = "Custom" | |
613 | beam.Material = "Neon" | |
614 | beam.Transparency = 0.25 | |
615 | beam.Anchored = true | |
616 | beam.Locked = true | |
617 | z = Instance.new("Sound",beam) | |
618 | z.SoundId = "rbxassetid://169380525" | |
619 | z.Pitch = 1.3 | |
620 | z.Volume = 1 | |
621 | beam.CanCollide = false | |
622 | local distance = (Larm.CFrame.p - position).magnitude | |
623 | beam.Touched:connect(Destroy) | |
624 | beam.Size = Vector3.new(0.3, 0.3, distance) | |
625 | beam.CFrame = CFrame.new(Larm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
626 | beam.Touched:connect(Destroy) | |
627 | game:GetService("Debris"):AddItem(beam, 0.2) | |
628 | if part then | |
629 | local humanoid = part.Parent:FindFirstChild("Humanoid") | |
630 | if not humanoid then | |
631 | humanoid = part.Parent.Parent:FindFirstChild("Humanoid") | |
632 | end | |
633 | if humanoid then | |
634 | if humanoid.Parent:findFirstChild("Torso") then | |
635 | rl=Instance.new("BodyAngularVelocity") | |
636 | rl.P=3000 | |
637 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
638 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
639 | rl.Parent = humanoid.Parent.Torso | |
640 | game:GetService("Debris"):AddItem(rl,.5) | |
641 | humanoid.MaxHealth = 100 | |
642 | humanoid.Health = humanoid.Health - 80 | |
643 | end | |
644 | end | |
645 | end | |
646 | beam.Touched:connect(Destroy) | |
647 | z:Play() | |
648 | Attacking = false | |
649 | end | |
650 | Mouse.Button1Down:connect(function() | |
651 | if Attacking == false then | |
652 | Click2() | |
653 | end | |
654 | end) | |
655 | ------------------------- | |
656 | --[[Made by PointCoded]]-- | |
657 | --[[Private Script, Do Not Leek!]]-- | |
658 | --[[==The Darkness Wielder ==]]-- | |
659 | --[[Not finished]]-- | |
660 | ------------------------- | |
661 | local function updateFly() | |
662 | ypcall(function() | |
663 | if not flyToggled then return end | |
664 | ||
665 | lastForward = forward | |
666 | lastSide = side | |
667 | ||
668 | forward = 0 | |
669 | side = 0 | |
670 | ||
671 | if keysDown.w then | |
672 | forward = forward + 1 | |
673 | end | |
674 | if keysDown.s then | |
675 | forward = forward - 1 | |
676 | end | |
677 | if keysDown.a then | |
678 | side = side - 1 | |
679 | end | |
680 | if keysDown.d then | |
681 | side = side + 1 | |
682 | end | |
683 | ||
684 | canFly = (forward ~= 0 or side ~= 0) | |
685 | ||
686 | if canFly then | |
687 | stanceToggle = "Floating" | |
688 | turnBG.Parent = root | |
689 | floatBP.Parent = nil | |
690 | flyBV.Parent = root | |
691 | ||
692 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
693 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
694 | else | |
695 | floatBP.position = root.Position | |
696 | floatBP.Parent = root | |
697 | ||
698 | flySpeed = flySpeed - 1 | |
699 | if flySpeed < 0 then flySpeed = 0 end | |
700 | end | |
701 | ||
702 | local camCF = cam.CoordinateFrame | |
703 | local in_forward = canFly and forward or lastForward | |
704 | local in_side = canFly and side or lastSide | |
705 | ||
706 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
707 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
708 | ||
709 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
710 | 0) | |
711 | end) | |
712 | end | |
713 | ------------------------- | |
714 | --[[Made by PointCoded]]-- | |
715 | --[[Private Script, Do Not Leek!]]-- | |
716 | --[[==The Darkness Wielder ==]]-- | |
717 | --[[Not finished]]-- | |
718 | ------------------------- | |
719 | Mouse.Button2Down:connect(function() | |
720 | if Attacking == false then | |
721 | Click() | |
722 | end | |
723 | end) | |
724 | game:GetService("RunService").RenderStepped:connect(function() | |
725 | if Humanoid.Health ~= Humanoid.MaxHealth and HealLimit > 0 then | |
726 | HealLimit = HealLimit - 1 | |
727 | Heal() | |
728 | wait(2) | |
729 | for i,Part in pairs(Char:GetChildren()) do | |
730 | if Part:IsA("Part") then | |
731 | if Part:findFirstChild("ParticleEmitter") then | |
732 | Part.ParticleEmitter:remove() | |
733 | end | |
734 | end | |
735 | end | |
736 | end | |
737 | if flyToggled then | |
738 | Humanoid.PlatformStand = true | |
739 | end | |
740 | updateFly() | |
741 | if Sound.IsPlaying == false and Music == true then | |
742 | Soundid = SoundIds[math.random(1,#SoundIds)] | |
743 | Sound.SoundId = "http://www.roblox.com/asset/?id="..Soundid | |
744 | Sound:Play() | |
745 | end | |
746 | end) | |
747 | SetupHeal() | |
748 | ------------------------- | |
749 | --[[Made by PointCoded]]-- | |
750 | --[[Private Script, Do Not Leek!]]-- | |
751 | --[[==The Darkness Wielder ==]]-- | |
752 | --[[Not finished]]-- |