SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Script | |
| 2 | ||
| 3 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | local RealPlayer = Player | |
| 7 | 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
| |
| 8 | ||
| 9 | --[[ | |
| 10 | abyssal sword | |
| 11 | LOCALSCRIPT | |
| 12 | ||
| 13 | keys: | |
| 14 | - | me = game.Players.LocalPlayer |
| 14 | + | |
| 15 | c = smash | |
| 16 | - | local user = me.Character |
| 16 | + | |
| 17 | l = lightning | |
| 18 | click = slash | |
| 19 | - | tool.Name = "Abyssal Sword" |
| 19 | + | |
| 20 | ]] | |
| 21 | ||
| 22 | me = owner | |
| 23 | ||
| 24 | user = me.Character | |
| 25 | ||
| 26 | local tool = Instance.new("Tool", me.Backpack)
| |
| 27 | tool.Name = "AbbysalSword" | |
| 28 | ||
| 29 | local handle = Instance.new("Part", tool)
| |
| 30 | handle.formFactor = "Custom" | |
| 31 | handle.CanCollide = false | |
| 32 | handle.Name = "Handle" | |
| 33 | handle.TopSurface = "Smooth" | |
| 34 | handle.BottomSurface = "Smooth" | |
| 35 | handle.Size = Vector3.new(0.3, 1, 0.3) | |
| 36 | handle.Rotation = Vector3.new(90, 0, 0) | |
| 37 | ||
| 38 | handle.Touched:connect(function(h) | |
| 39 | if not h:IsDescendantOf(me.Character) then | |
| 40 | for _, a in pairs(h.Parent:GetChildren()) do | |
| 41 | if a:IsA("Humanoid") then
| |
| 42 | a.Health = a.Health - 20 | |
| 43 | end | |
| 44 | end | |
| 45 | end | |
| 46 | end) | |
| 47 | ||
| 48 | tool.GripPos = Vector3.new(0, 0, -2) | |
| 49 | tool.GripForward = Vector3.new(-1, 0, 0) | |
| 50 | tool.GripRight = Vector3.new(0, 1, 0) | |
| 51 | tool.GripUp = Vector3.new(0, 0, 1.5) | |
| 52 | ||
| 53 | local fp = Instance.new("Part", tool)
| |
| 54 | fp.FormFactor = "Custom" | |
| 55 | fp.Transparency = 1 | |
| 56 | fp.Size = Vector3.new(0.25, 0.25, 0.25) | |
| 57 | ||
| 58 | local fire = Instance.new("Fire", fp)
| |
| 59 | fire.Color = Color3.new(0, 0, 0) | |
| 60 | fire.SecondaryColor = Color3.new(255, 0, 0) | |
| 61 | fire.Size = 3 | |
| 62 | fire.Heat = 0 | |
| 63 | ||
| 64 | local derp = Instance.new("SpecialMesh", handle)
| |
| 65 | derp.MeshId = "http://www.roblox.com/asset/?id=61357428" | |
| 66 | derp.TextureId = "http://www.roblox.com/asset/?id=61357495 " | |
| 67 | derp.Scale = Vector3.new(2, 2, 2.5) | |
| 68 | ||
| 69 | dist = 1.5 | |
| 70 | defdist = 1.5 | |
| 71 | upos = 0 | |
| 72 | yrot = 90 | |
| 73 | mode = 1 | |
| 74 | fdist = 2 | |
| 75 | - | local keys = {}
|
| 75 | + | |
| 76 | ||
| 77 | RS = me.Character.Torso["Right Shoulder"] | |
| 78 | LS = me.Character.Torso["Left Shoulder"] | |
| 79 | ||
| 80 | RSAnim = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 81 | LSAnim = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, math.rad(-90), 0) | |
| 82 | ||
| 83 | keys = {}
| |
| 84 | ||
| 85 | coroutine.wrap(function() | |
| 86 | while true do | |
| 87 | for i = 1, 40 do | |
| 88 | dist = dist + 0.02 | |
| 89 | defdist = defdist + 0.02 | |
| 90 | wait() | |
| 91 | end | |
| 92 | ||
| 93 | for i = 1, 40 do | |
| 94 | dist = dist - 0.02 | |
| 95 | defdist = defdist - 0.02 | |
| 96 | wait() | |
| 97 | end | |
| 98 | end | |
| 99 | end)() | |
| 100 | ||
| 101 | for i = 1, 6 do | |
| 102 | local pr = Instance.new("Part", tool)
| |
| 103 | pr.FormFactor = "Custom" | |
| 104 | pr.TopSurface = "Smooth" | |
| 105 | pr.BottomSurface = "Smooth" | |
| 106 | pr.Name = "derpp" | |
| 107 | pr.Transparency = 0 | |
| 108 | pr.Anchored = true | |
| 109 | pr.CanCollide = false | |
| 110 | ||
| 111 | pr.Touched:connect(function(h) | |
| 112 | if not h:IsDescendantOf(me.Character) then | |
| 113 | if h.Parent:FindFirstChild("Humanoid") then
| |
| 114 | h.Parent.Humanoid:TakeDamage(10) | |
| 115 | end | |
| 116 | end | |
| 117 | end) | |
| 118 | if i == 1 or i == 3 or i == 5 then | |
| 119 | pr.BrickColor = BrickColor.new("Really black")
| |
| 120 | ||
| 121 | else | |
| 122 | pr.BrickColor = BrickColor.new("Dusty Rose")
| |
| 123 | end | |
| 124 | ||
| 125 | pr.CanCollide = false | |
| 126 | pr.Size = Vector3.new(0.5, 0.5, 0.5) | |
| 127 | coroutine.wrap(function() | |
| 128 | while true do | |
| 129 | for r = 1, 90 do | |
| 130 | if mode == 1 then | |
| 131 | pr.CFrame = fp.CFrame * CFrame.Angles(0, math.rad((r*4)+((360/6)*i)), math.rad((r*4)+((360/5)*i))) * CFrame.new(0, 0, dist) | |
| 132 | ||
| 133 | elseif mode == 2 then | |
| 134 | pr.CFrame = (fp.CFrame * CFrame.new(2, 0, 0)) * CFrame.Angles(math.rad((r*4)+((360/6)*i)), 0, math.rad((r*4)+((360/5)*i))) * CFrame.new(0, 0, dist) | |
| 135 | ||
| 136 | elseif mode == 3 then | |
| 137 | pr.CFrame = me.Character["EnergyBrick"].CFrame * CFrame.Angles(0, 0, math.rad((r*4)+((360/6)*i))) * CFrame.new(0, dist, 0) | |
| 138 | end | |
| 139 | wait() | |
| 140 | end | |
| 141 | end | |
| 142 | end)() | |
| 143 | end | |
| 144 | ||
| 145 | tool.Equipped:connect(function(m) | |
| 146 | local w = Instance.new("Weld", handle)
| |
| 147 | w.Part0 = handle | |
| 148 | w.Part1 = fp | |
| 149 | w.C0 = CFrame.new(0, 0, 0.75) | |
| 150 | ||
| 151 | m.Button1Down:connect(function() | |
| 152 | down = true | |
| 153 | wait() | |
| 154 | ||
| 155 | for i = 1,6 do | |
| 156 | me.Character.Torso["Right Shoulder"].C0 = me.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, math.rad(-i*4)) | |
| 157 | wait() | |
| 158 | end | |
| 159 | ||
| 160 | for i = 1, 6 do | |
| 161 | me.Character.Torso["Right Shoulder"].C0 = me.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, math.rad(i*4)) | |
| 162 | wait() | |
| 163 | end | |
| 164 | end) | |
| 165 | ||
| 166 | m.Button1Up:connect(function() | |
| 167 | down = false | |
| 168 | end) | |
| 169 | ||
| 170 | m.Button2Down:connect(function() | |
| 171 | mode = 2 | |
| 172 | fire.Size = 6 | |
| 173 | wait(0.5) | |
| 174 | for _, a in pairs(tool:GetChildren()) do | |
| 175 | if a.Name == "derpp" then | |
| 176 | coroutine.wrap(function() | |
| 177 | local ray = Ray.new(a.CFrame.p, (m.Hit.p-a.CFrame.p).unit*300) | |
| 178 | ||
| 179 | local hit, pos = game.Workspace:FindPartOnRay(ray, me.Character) | |
| 180 | ||
| 181 | local h = hit | |
| 182 | if h then | |
| 183 | for _, a in pairs(h.Parent:GetChildren()) do | |
| 184 | if a:IsA("Humanoid") then
| |
| 185 | a.Health = a.Health - 20 | |
| 186 | end | |
| 187 | end | |
| 188 | end | |
| 189 | ||
| 190 | local dis = (pos-a.CFrame.p).magnitude | |
| 191 | ||
| 192 | local beam = Instance.new("Part", user)
| |
| 193 | beam.TopSurface = "Smooth" | |
| 194 | beam.BottomSurface = "Smooth" | |
| 195 | beam.FormFactor = "Custom" | |
| 196 | beam.Size = Vector3.new(1, 1, dis) | |
| 197 | beam.Anchored = true | |
| 198 | beam.BrickColor = BrickColor.new("Really black")
| |
| 199 | beam.CanCollide = false | |
| 200 | beam.Transparency = 0.3 | |
| 201 | coroutine.wrap(function() | |
| 202 | for d = 1, 10 do | |
| 203 | beam.Size = beam.Size - Vector3.new(0.1, 0.1, 0) | |
| 204 | beam.CFrame = CFrame.new(pos, a.CFrame.p) * CFrame.new(0, 0, -dis/2) | |
| 205 | wait() | |
| 206 | end | |
| 207 | end)() | |
| 208 | wait(0.5) | |
| 209 | beam:Remove() | |
| 210 | - | m.Button2Up:connect(function(k) |
| 210 | + | |
| 211 | end | |
| 212 | end | |
| 213 | ||
| 214 | - | m.KeyDown:connect(function(key) |
| 214 | + | |
| 215 | - | if key:lower() == "e" then |
| 215 | + | |
| 216 | end) | |
| 217 | ||
| 218 | tool.Activated:connect(function(k) | |
| 219 | fire.Size = 3 | |
| 220 | end) | |
| 221 | ||
| 222 | function onKeyPress(inputObject, gameProcessedEvent) | |
| 223 | if inputObject.KeyCode == Enum.KeyCode.E then | |
| 224 | me.Character.Animate.Disabled = true | |
| 225 | wait(1) | |
| 226 | RS.C0 = RSAnim | |
| 227 | LS.C0 = LSAnim | |
| 228 | for _, a in pairs(tool:GetChildren()) do | |
| 229 | if a.Name ~= "derpp" then | |
| 230 | a.Transparency = 1 | |
| 231 | end | |
| 232 | end | |
| 233 | fire.Enabled = false | |
| 234 | ||
| 235 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(-90), 0) * CFrame.Angles(math.rad(30), 0, 0) | |
| 236 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(90), 0) * CFrame.Angles(math.rad(30), 0, 0) | |
| 237 | ||
| 238 | coroutine.wrap(function() | |
| 239 | for d = 1, 30 do | |
| 240 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(-90), 0) * CFrame.Angles(math.rad((30-(d))), 0, 0) | |
| 241 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(90), 0) * CFrame.Angles(math.rad(30-(d)), 0, 0) | |
| 242 | wait() | |
| 243 | end | |
| 244 | end)() | |
| 245 | ||
| 246 | local ball = Instance.new("Part", me.Character)
| |
| 247 | ball.Name = "EnergyBrick" | |
| 248 | ball.TopSurface = "Smooth" | |
| 249 | ball.BottomSurface = "Smooth" | |
| 250 | ball.CanCollide = false | |
| 251 | ball.Transparency = 0.4 | |
| 252 | ball.BrickColor = BrickColor.new("Really black")
| |
| 253 | ball.Anchored = true | |
| 254 | ball.Size = Vector3.new(1, 1, 1) | |
| 255 | ball.FormFactor = "Custom" | |
| 256 | ball.CFrame = me.Character.Torso.CFrame * CFrame.Angles(0, math.rad(180), 0) * CFrame.new(0, 0, fdist) | |
| 257 | ball.Touched:connect(function(h) | |
| 258 | if not h:IsDescendantOf(me.Character) then | |
| 259 | if h:IsA("Part") and not h.Name:lower():find("base") then
| |
| 260 | h:Destroy() | |
| 261 | end | |
| 262 | end | |
| 263 | end) | |
| 264 | local f = Instance.new("Fire", ball)
| |
| 265 | f.Size = 3 | |
| 266 | f.Color = Color3.new(0, 0, 0) | |
| 267 | f.SecondaryColor = Color3.new(0, 0, 255) | |
| 268 | wait() | |
| 269 | mode = 3 | |
| 270 | ||
| 271 | for d = 1, 40 do | |
| 272 | f.Size = f.Size + 0.25 | |
| 273 | fdist = fdist + 0.05 | |
| 274 | dist = dist + 0.05 | |
| 275 | updist = updist + 0.025 | |
| 276 | ball.Size = ball.Size + Vector3.new(0.1, 0.1, 0.1) | |
| 277 | ball.CFrame = me.Character.Torso.CFrame * CFrame.Angles(0, math.rad(180), 0) * CFrame.new(0, updist, fdist) | |
| 278 | wait() | |
| 279 | end | |
| 280 | ||
| 281 | local scf = me.Character.Torso.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
| 282 | me.Character.Animate.Disabled = false | |
| 283 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, math.rad(-90), 0) | |
| 284 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 285 | for _, a in pairs(tool:GetChildren()) do | |
| 286 | a.Transparency = 0 | |
| 287 | end | |
| 288 | fp.Transparency = 1 | |
| 289 | mode = 1 | |
| 290 | dist = defdist | |
| 291 | updist = 0 | |
| 292 | fire.Enabled = true | |
| 293 | for i = 1, 150 do | |
| 294 | ball.CFrame = scf * CFrame.new(0, 0, fdist+(i*2)) * CFrame.Angles(0, 0, math.rad(i*3)) | |
| 295 | local b2 = ball:Clone() | |
| 296 | b2.Fire:Destroy() | |
| 297 | b2.Parent = me.Character | |
| 298 | b2.CFrame = ball.CFrame * CFrame.Angles(0, 0, math.rad(i*3)) | |
| 299 | b2.Touched:connect(function(h) | |
| 300 | if not h:IsDescendantOf(me.Character) then | |
| 301 | if h:IsA("Part") and not h.Name:lower():find("base") then
| |
| 302 | h:Destroy() | |
| 303 | end | |
| 304 | end | |
| 305 | end) | |
| 306 | coroutine.wrap(function() | |
| 307 | wait(1) | |
| 308 | for i = 1, 20 do | |
| 309 | b2.Transparency = b2.Transparency + 0.05 | |
| 310 | wait() | |
| 311 | end | |
| 312 | - | elseif key:lower() == "f" then |
| 312 | + | |
| 313 | end)() | |
| 314 | wait() | |
| 315 | end | |
| 316 | ||
| 317 | ball:Destroy() | |
| 318 | fdist = 2 | |
| 319 | ||
| 320 | function onKeyPress(inputObject, gameProcessedEvent) | |
| 321 | if inputObject.KeyCode == Enum.KeyCode.R then | |
| 322 | me.Character.Animate.Disabled = true | |
| 323 | wait(1) | |
| 324 | RS.C0 = RSAnim | |
| 325 | LS.C0 = LSAnim | |
| 326 | for i = 1, 11 do | |
| 327 | LS.C0 = CFrame.new(-0.75, 0.5, -0.5) * CFrame.Angles(math.rad(i*8), math.rad(-90), 0) * CFrame.Angles(math.rad(i*2), 0, 0) | |
| 328 | RS.C0 = CFrame.new(0.75, 0.5, -0.5) * CFrame.Angles(math.rad(i*8), math.rad(90), 0) * CFrame.Angles(math.rad(i*2), 0, 0) | |
| 329 | wait() | |
| 330 | end | |
| 331 | ||
| 332 | local bp = Instance.new("BodyPosition", me.Character.Torso)
| |
| 333 | bp.maxForce = Vector3.new(0, 9999, 0) | |
| 334 | coroutine.wrap(function() | |
| 335 | for rs = 1, 10 do | |
| 336 | bp.position = me.Character.Head.Position + Vector3.new(0, 4, 0) | |
| 337 | wait() | |
| 338 | end | |
| 339 | end)() | |
| 340 | ||
| 341 | for an = 1, 30 do | |
| 342 | LS.C0 = CFrame.new(-0.75, 0.5, -0.5) * CFrame.Angles(math.rad(90+(an)), math.rad(-90), 0) * CFrame.Angles(math.rad(45), 0, 0) | |
| 343 | RS.C0 = CFrame.new(0.75, 0.5, -0.5) * CFrame.Angles(math.rad(90+(an)), math.rad(90), 0) * CFrame.Angles(math.rad(45), 0, 0) | |
| 344 | wait() | |
| 345 | end | |
| 346 | wait(0.5) | |
| 347 | bp:Remove() | |
| 348 | for an = 1, 7 do | |
| 349 | LS.C0 = CFrame.new(-0.75, 0.5, -0.5) * CFrame.Angles(math.rad(90-(an*9)), math.rad(-90), 0) * CFrame.Angles(math.rad(45), 0, 0) | |
| 350 | RS.C0 = CFrame.new(0.75, 0.5, -0.5) * CFrame.Angles(math.rad(90-(an*9)), math.rad(90), 0) * CFrame.Angles(math.rad(45), 0, 0) | |
| 351 | wait() | |
| 352 | end | |
| 353 | wait(0.25) | |
| 354 | local ex = Instance.new("Part", me.Character)
| |
| 355 | ex.Size = Vector3.new(1, 1, 1) | |
| 356 | ex.Transparency = 0.4 | |
| 357 | ex.BrickColor = BrickColor.new("Deep orange")
| |
| 358 | ||
| 359 | local msh = Instance.new("SpecialMesh", ex)
| |
| 360 | msh.MeshType = "FileMesh" | |
| 361 | msh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
| 362 | msh.Scale = Vector3.new(0.5, 0.5, 0.5) | |
| 363 | ||
| 364 | ex.Position = handle.Position | |
| 365 | ex.Anchored = true | |
| 366 | ||
| 367 | for i = 1, 20 do | |
| 368 | msh.Scale = msh.Scale + Vector3.new(3, 3, 3) | |
| 369 | for _, a in pairs(game.Players:GetChildren()) do | |
| 370 | if a.Name ~= me.Name and (a.Character.Torso.Position-ex.Position).magnitude <= i*2 then | |
| 371 | for _, b in pairs(a.Character:GetChildren()) do | |
| 372 | if b:IsA("Humanoid") then
| |
| 373 | b.Health = b.Health - 10 | |
| 374 | end | |
| 375 | end | |
| 376 | end | |
| 377 | end | |
| 378 | wait() | |
| 379 | end | |
| 380 | ||
| 381 | for i = 1, 12 do | |
| 382 | - | elseif key:lower() == "l" then |
| 382 | + | |
| 383 | wait() | |
| 384 | end | |
| 385 | ex:Remove() | |
| 386 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, math.rad(-90), 0) | |
| 387 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 388 | wait() | |
| 389 | me.Character.Animate.Disabled = false | |
| 390 | ||
| 391 | function onKeyPress(inputObject, gameProcessedEvent) | |
| 392 | if inputObject.KeyCode == Enum.KeyCode.L then | |
| 393 | me.Character.Animate.Disabled = true | |
| 394 | wait(1) | |
| 395 | RS.C0 = RSAnim | |
| 396 | LS.C0 = LSAnim | |
| 397 | for i = 1, 60 do | |
| 398 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(-90), 0) * CFrame.Angles(math.rad(-90), 0, -math.rad(i)) | |
| 399 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(90), 0) * CFrame.Angles(math.rad(-90), 0, math.rad(i)) | |
| 400 | wait() | |
| 401 | end | |
| 402 | ||
| 403 | local beam = Instance.new("Part", me.Character)
| |
| 404 | beam.Size = Vector3.new(5, 300, 5) | |
| 405 | beam.CanCollide = false | |
| 406 | beam.CFrame = me.Character.Torso.CFrame * CFrame.new(0, (300/2)-2, 0) | |
| 407 | beam.TopSurface = "Smooth" | |
| 408 | beam.BottomSurface = "Smooth" | |
| 409 | beam.BrickColor = BrickColor.new("New Yeller")
| |
| 410 | beam.Anchored = true | |
| 411 | beam.Transparency = 0.3 | |
| 412 | wait(0.4) | |
| 413 | for e = 1, 14 do | |
| 414 | beam.Transparency = beam.Transparency + 0.05 | |
| 415 | wait() | |
| 416 | end | |
| 417 | beam:Remove() | |
| 418 | local m = Instance.new("ForceField", me.Character)
| |
| 419 | for i = 1, 40 do | |
| 420 | d1 = math.random(-200, 200) | |
| 421 | d2 = math.random(-200, 200) | |
| 422 | local ltn = Instance.new("Part", game.Workspace)
| |
| 423 | ltn.Size = Vector3.new(3, 300, 3) | |
| 424 | ltn.CanCollide = false | |
| 425 | ltn.CFrame = CFrame.new(d1, 0, d2) * CFrame.new(0, 300/2, 0) | |
| 426 | ltn.TopSurface = "Smooth" | |
| 427 | ltn.BottomSurface = "Smooth" | |
| 428 | ltn.BrickColor = BrickColor.new("Deep blue")
| |
| 429 | ltn.Anchored = true | |
| 430 | ltn.Transparency = 0.3 | |
| 431 | local ex = Instance.new("Explosion")
| |
| 432 | ex.Position = Vector3.new(d1, 0.5, d2) | |
| 433 | ex.BlastRadius = 10 | |
| 434 | wait() | |
| 435 | ex.Parent = game.Workspace | |
| 436 | game.Lighting.Ambient = Color3.new(1, 1, 1) | |
| 437 | wait(0.125) | |
| 438 | ltn:Destroy() | |
| 439 | game.Lighting.Ambient = Color3.new(0.5, 0.5, 0.5) | |
| 440 | end | |
| 441 | m:Remove() | |
| 442 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, math.rad(-90), 0) | |
| 443 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 444 | wait() | |
| 445 | me.Character.Animate.Disabled = false | |
| 446 | ||
| 447 | elseif key:lower() == "c" then | |
| 448 | me.Character.Animate.Disabled = true | |
| 449 | wait(1) | |
| 450 | RS.C0 = RSAnim | |
| 451 | LS.C0 = LSAnim | |
| 452 | for _, a in pairs(tool:GetChildren()) do | |
| 453 | a.Transparency = 1 | |
| 454 | end | |
| 455 | fire.Enabled = false | |
| 456 | ||
| 457 | local s = Instance.new("Part", me.Character)
| |
| 458 | s.Transparency = 0 | |
| 459 | s.Name = "StrikeSword" | |
| 460 | ||
| 461 | local w = Instance.new("Weld", s)
| |
| 462 | w.Part0 = me.Character["Right Arm"] | |
| 463 | w.Part1 = s | |
| 464 | w.C0 = CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(180), 0, 0) | |
| 465 | ||
| 466 | local derpe = Instance.new("SpecialMesh", s)
| |
| 467 | derpe.MeshType = "FileMesh" | |
| 468 | derpe.MeshId = "http://www.roblox.com/asset/?id=61357428" | |
| 469 | derpe.TextureId = "http://www.roblox.com/asset/?id=61357495" | |
| 470 | derpe.Scale = Vector3.new(2, 2, 2.5) | |
| 471 | for i = 1, 35 do | |
| 472 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(20+(i*3)), math.rad(-90), 0) * CFrame.Angles(math.rad(i+20), 0, 0) | |
| 473 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(20+(i*3)), math.rad(90), 0) * CFrame.Angles(math.rad(i+20), 0, 0) | |
| 474 | wait() | |
| 475 | end | |
| 476 | ||
| 477 | wait(1) | |
| 478 | ||
| 479 | for i = 1, 30 do | |
| 480 | derpe.Scale = derpe.Scale + Vector3.new(0.2, 0.2, 0.2) | |
| 481 | w.C0 = CFrame.new(0, -1, -2-i/3) * CFrame.Angles(math.rad(180), 0, 0) | |
| 482 | wait() | |
| 483 | end | |
| 484 | ||
| 485 | wait(0.125) | |
| 486 | ||
| 487 | for i = 1, 17 do | |
| 488 | LS.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(math.rad(110-(i*6)), math.rad(-90), 0) | |
| 489 | RS.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(math.rad(110-(i*6)), math.rad(90), 0) | |
| 490 | wait() | |
| 491 | end | |
| 492 | wait(0.125) | |
| 493 | local ex = Instance.new("Part", me.Character)
| |
| 494 | ex.Size = Vector3.new(1, 1, 1) | |
| 495 | ex.Transparency = 0.4 | |
| 496 | ex.BrickColor = BrickColor.new("Deep orange")
| |
| 497 | ||
| 498 | local msh = Instance.new("SpecialMesh", ex)
| |
| 499 | msh.MeshType = "FileMesh" | |
| 500 | msh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
| 501 | msh.Scale = Vector3.new(0.5, 0.5, 0.5) | |
| 502 | ||
| 503 | ex.Position = s.Position | |
| 504 | ex.Anchored = true | |
| 505 | ||
| 506 | coroutine.wrap(function() | |
| 507 | s:Destroy() | |
| 508 | for _, a in pairs(tool:GetChildren()) do | |
| 509 | a.Transparency = 0 | |
| 510 | end | |
| 511 | fp.Transparency = 1 | |
| 512 | fire.Enabled = true | |
| 513 | me.Character.Animate.Disabled = false | |
| 514 | end)() | |
| 515 | ||
| 516 | for i = 1, 20 do | |
| 517 | msh.Scale = msh.Scale + Vector3.new(3, 3, 3) | |
| 518 | for _, a in pairs(game.Players:GetChildren()) do | |
| 519 | if a.Name ~= me.Name and (a.Character.Torso.Position-ex.Position).magnitude <= i*2 then | |
| 520 | for _, b in pairs(a.Character:GetChildren()) do | |
| 521 | if b:IsA("Humanoid") then
| |
| 522 | b.Health = b.Health - 10 | |
| 523 | end | |
| 524 | end | |
| 525 | end | |
| 526 | end | |
| 527 | wait() | |
| 528 | end | |
| 529 | ||
| 530 | for i = 1, 12 do | |
| 531 | ex.Transparency = ex.Transparency + 0.05 | |
| 532 | wait() | |
| 533 | end | |
| 534 | end | |
| 535 | end | |
| 536 | ||
| 537 | me.Character.Humanoid.Died:connect(function() | |
| 538 | local ex = Instance.new("Explosion")
| |
| 539 | ex.Position = handle.Position | |
| 540 | ex.BlastRadius = 100 | |
| 541 | ex.BlastPressure = 1e6 | |
| 542 | wait() | |
| 543 | ex.Parent = game.Workspace | |
| 544 | end) | |
| 545 | end | |
| 546 | ||
| 547 | game:GetService("UserInputService").InputBegan:connect(onKeyPress)
| |
| 548 | ||
| 549 | tool.Unequipped:connect(function() | |
| 550 | end) | |
| 551 | end | |
| 552 | end | |
| 553 | end | |
| 554 | end) |