SHOW:
|
|
- or go back to the newest paste.
| 1 | - | warn'Mutant loaded' |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
|
| 2 | - | ---- thanks to genocider and psychopath sources, this would be another one |
| 2 | + | print("FE Compatibility: by WaverlyCole & Mokiros")
|
| 3 | - | ---- LockOnTargetNoWhiteListKThx |
| 3 | + | InternalData = {}
|
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | if Index == "PlrObj" then | |
| 88 | return RealPlayer | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end | |
| 92 | end; | |
| 93 | __tostring = function(self) | |
| 94 | return RealPlayer.Name | |
| 95 | end | |
| 96 | }) | |
| 97 | end | |
| 98 | end | |
| 99 | if RealGame[Index] then | |
| 100 | local Type = type(RealGame[Index]) | |
| 101 | if Type == "function" then | |
| 102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 103 | return function (self,Service) | |
| 104 | if Service:lower() == "players" then | |
| 105 | return setmetatable({},{
| |
| 106 | __index = function (self2,Index2) | |
| 107 | local RealService = RealGame:GetService(Service) | |
| 108 | local Type2 = type(Index2) | |
| 109 | if Type2 == "function" then | |
| 110 | return function (self,...) | |
| 111 | return RealService[Index2](RealService,...) | |
| 112 | end | |
| 113 | else | |
| 114 | if Index2:lower() == "localplayer" then | |
| 115 | return Sandbox(owner) | |
| 116 | end | |
| 117 | return RealService[Index2] | |
| 118 | end | |
| 119 | end; | |
| 120 | __tostring = function(self) | |
| 121 | return RealGame:GetService(Service).Name | |
| 122 | end | |
| 123 | }) | |
| 124 | elseif Service:lower() == "contextactionservice" then | |
| 125 | return InternalData["ContextActionService"] | |
| 126 | elseif Service:lower() == "contextactionservice" then | |
| 127 | return InternalData["UserInputService"] | |
| 128 | elseif Service:lower() == "runservice" then | |
| 129 | return setmetatable({},{
| |
| 130 | __index = function(self2,Index2) | |
| 131 | local RealService = RealGame:GetService(Service) | |
| 132 | local Type2 = type(Index2) | |
| 133 | if Type2 == "function" then | |
| 134 | return function (self,...) | |
| 135 | return RealService[Index2](RealService,...) | |
| 136 | end | |
| 137 | else | |
| 138 | if Index2:lower() == "bindtorenderstep" then | |
| 139 | return function (self,Name,Priority,Function) | |
| 140 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 141 | end | |
| 142 | end | |
| 143 | if Index2:lower() == "renderstepped" then | |
| 144 | return RealService["Stepped"] | |
| 145 | end | |
| 146 | return RealService[Index2] | |
| 147 | end | |
| 148 | end | |
| 149 | }) | |
| 150 | else | |
| 151 | return RealGame:GetService(Service) | |
| 152 | end | |
| 153 | end | |
| 154 | end | |
| 155 | return function (self,...) | |
| 156 | return RealGame[Index](RealGame,...) | |
| 157 | end | |
| 158 | else | |
| 159 | if game:GetService(Index) then | |
| 160 | return game:GetService(Index) | |
| 161 | end | |
| 162 | return RealGame[Index] | |
| 163 | end | |
| 164 | else | |
| 165 | return nil | |
| 166 | end | |
| 167 | end | |
| 168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 169 | print("Complete! Running...")
| |
| 170 | ||
| 171 | plr = game.Players.LocalPlayer | |
| 172 | char = plr.Character | |
| 173 | hum = char.Humanoid | |
| 174 | local cam = game.Workspace.CurrentCamera | |
| 175 | t = char.Torso | |
| 176 | h = char.Head | |
| 177 | ra = char["Right Arm"] | |
| 178 | la = char["Left Arm"] | |
| 179 | rl = char["Right Leg"] | |
| 180 | ll = char["Left Leg"] | |
| 181 | tors = char.Torso | |
| 182 | lleg = char["Left Leg"] | |
| 183 | root = char.HumanoidRootPart | |
| 184 | hed = char.Head | |
| 185 | rleg = char["Right Leg"] | |
| 186 | rarm = char["Right Arm"] | |
| 187 | larm = char["Left Arm"] | |
| 188 | vt = Vector3.new | |
| 189 | bc = BrickColor.new | |
| 190 | br = BrickColor.random | |
| 191 | it = Instance.new | |
| 192 | cf = CFrame.new | |
| 193 | local targetted = nil | |
| 194 | local killcount = 0 | |
| 195 | local requirekillA = 15 | |
| 196 | local requirekillX = 50 | |
| 197 | local maxA = 15 | |
| 198 | local maxX = 50 | |
| 199 | if plr.Name == "soins1" then | |
| 200 | maxX = 0 | |
| 201 | requirekillX = maxX | |
| 202 | end | |
| 203 | local unlockedA = true | |
| 204 | local unlockedX = true | |
| 205 | local LeftModeUnlocked = false | |
| 206 | ||
| 207 | kan = Instance.new("Sound",char)
| |
| 208 | kan.Volume = 6 | |
| 209 | kan.PlaybackSpeed = 0.4 | |
| 210 | kan.Pitch = 0.2 | |
| 211 | kan.SoundId = "rbxassetid://583415095" | |
| 212 | kan.Name = "kreepery" | |
| 213 | kan.Looped = true | |
| 214 | kan:Play() | |
| 215 | ||
| 216 | abss = Instance.new("BillboardGui",char)
| |
| 217 | abss.Size = UDim2.new(10,0,10,0) | |
| 218 | abss.Enabled = false | |
| 219 | imgl = Instance.new("ImageLabel",abss)
| |
| 220 | imgl.Position = UDim2.new(0,0,0,0) | |
| 221 | imgl.Size = UDim2.new(1,0,1,0) | |
| 222 | imgl.Image = "http://www.roblox.com/asset/?id=118777235" | |
| 223 | imgl.BackgroundTransparency = 1 | |
| 224 | imgl.ImageColor3 = Color3.new(0,0,0) | |
| 225 | imgl2 = Instance.new("ImageLabel",abss)
| |
| 226 | imgl2.Position = UDim2.new(-0.5,0,-0.5,0) | |
| 227 | imgl2.Size = UDim2.new(2,0,2,0) | |
| 228 | imgl2.Image = "http://www.roblox.com/asset/?id=135465292" | |
| 229 | imgl2.BackgroundTransparency = 1 | |
| 230 | imgl2.ImageColor3 = Color3.new(0,0,0) | |
| 231 | img2 = Instance.new("ImageLabel",abss)
| |
| 232 | img2.Position = UDim2.new(0,0,0,0) | |
| 233 | img2.Size = UDim2.new(1,0,1,0) | |
| 234 | img2.Image = "rbxassetid://118777235" | |
| 235 | img2.BackgroundTransparency = 1 | |
| 236 | img2.ImageColor3 = Color3.new(0,0,0) | |
| 237 | ||
| 238 | function CameraShake(Times, Power) | |
| 239 | coroutine.resume(coroutine.create(function() | |
| 240 | FV = Instance.new("BoolValue", Character)
| |
| 241 | FV.Name = "CameraShake" | |
| 242 | for ShakeNum=1,Times do | |
| 243 | swait() | |
| 244 | local ef=Power | |
| 245 | if ef>=1 then | |
| 246 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
| 247 | else | |
| 248 | ef=Power*10 | |
| 249 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
| 250 | end | |
| 251 | end | |
| 252 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 253 | FV:Destroy() | |
| 254 | end)) | |
| 255 | end | |
| 256 | ||
| 257 | CamShake=function(Part,Distan,Power,Times) | |
| 258 | local de=Part.Position | |
| 259 | for i,v in pairs(workspace:children()) do | |
| 260 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 261 | for _,c in pairs(v:children()) do | |
| 262 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
| 263 | local Noob=v.Humanoid | |
| 264 | if Noob~=nil then | |
| 265 | if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
| |
| 266 | --[[local ss=script.CamShake:clone() | |
| 267 | ss.Parent=Noob | |
| 268 | ss.Power.Value=Power | |
| 269 | ss.Times.Value=Times | |
| 270 | ss.Disabled=false]] | |
| 271 | CameraShake(Times, Power) | |
| 272 | end | |
| 273 | end | |
| 274 | end | |
| 275 | end | |
| 276 | end | |
| 277 | end | |
| 278 | end | |
| 279 | ||
| 280 | function chatfunc(text,color) | |
| 281 | local chat = coroutine.wrap(function() | |
| 282 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 283 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 284 | end | |
| 285 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 286 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 287 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 288 | naeeym2.Adornee = Character.Head | |
| 289 | naeeym2.Name = "TalkingBillBoard" | |
| 290 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 291 | tecks2.BackgroundTransparency = 1 | |
| 292 | tecks2.BorderSizePixel = 0 | |
| 293 | tecks2.Text = "" | |
| 294 | tecks2.Font = "SciFi" | |
| 295 | tecks2.TextSize = 30 | |
| 296 | tecks2.TextStrokeTransparency = 0 | |
| 297 | tecks2.TextColor3 = color | |
| 298 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 299 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 300 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 301 | tecks3.BackgroundTransparency = 1 | |
| 302 | tecks3.BorderSizePixel = 0 | |
| 303 | tecks3.Text = "" | |
| 304 | tecks3.Font = "SciFi" | |
| 305 | tecks3.TextSize = 30 | |
| 306 | tecks3.TextStrokeTransparency = 0 | |
| 307 | tecks3.TextColor3 = Color3.new(0,0,0) | |
| 308 | tecks3.TextStrokeColor3 = color | |
| 309 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 310 | coroutine.resume(coroutine.create(function() | |
| 311 | while true do | |
| 312 | swait(1) | |
| 313 | tecks2.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
| 314 | tecks3.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
| 315 | tecks2.Rotation = math.random(-15,15) | |
| 316 | tecks3.Rotation = math.random(-15,15) | |
| 317 | end | |
| 318 | end)) | |
| 319 | for i = 1,string.len(text),1 do | |
| 320 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
| |
| 321 | tecks2.Text = string.sub(text,1,i) | |
| 322 | tecks3.Text = string.sub(text,1,i) | |
| 323 | swait(1) | |
| 324 | end | |
| 325 | wait(1) | |
| 326 | local randomrot = math.random(1,2) | |
| 327 | if randomrot == 1 then | |
| 328 | for i = 1, 50 do | |
| 329 | swait() | |
| 330 | tecks2.Rotation = tecks2.Rotation - .75 | |
| 331 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 332 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 333 | tecks3.Rotation = tecks2.Rotation + .75 | |
| 334 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 335 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 336 | end | |
| 337 | elseif randomrot == 2 then | |
| 338 | for i = 1, 50 do | |
| 339 | swait() | |
| 340 | tecks2.Rotation = tecks2.Rotation + .75 | |
| 341 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 342 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 343 | tecks3.Rotation = tecks2.Rotation - .75 | |
| 344 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 345 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 346 | end | |
| 347 | end | |
| 348 | naeeym2:Destroy() | |
| 349 | end) | |
| 350 | chat() | |
| 351 | end | |
| 352 | ||
| 353 | ||
| 354 | local Create = LoadLibrary("RbxUtility").Create
| |
| 355 | ||
| 356 | CFuncs = {
| |
| 357 | ["Part"] = {
| |
| 358 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 359 | local Part = Create("Part"){
| |
| 360 | Parent = Parent, | |
| 361 | Reflectance = Reflectance, | |
| 362 | Transparency = Transparency, | |
| 363 | CanCollide = false, | |
| 364 | Locked = true, | |
| 365 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 366 | Name = Name, | |
| 367 | Size = Size, | |
| 368 | Material = Material, | |
| 369 | } | |
| 370 | RemoveOutlines(Part) | |
| 371 | return Part | |
| 372 | end; | |
| 373 | }; | |
| 374 | ||
| 375 | ["Mesh"] = {
| |
| 376 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 377 | local Msh = Create(Mesh){
| |
| 378 | Parent = Part, | |
| 379 | Offset = OffSet, | |
| 380 | Scale = Scale, | |
| 381 | } | |
| 382 | if Mesh == "SpecialMesh" then | |
| 383 | Msh.MeshType = MeshType | |
| 384 | Msh.MeshId = MeshId | |
| 385 | end | |
| 386 | return Msh | |
| 387 | end; | |
| 388 | }; | |
| 389 | ||
| 390 | ["Mesh"] = {
| |
| 391 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 392 | local Msh = Create(Mesh){
| |
| 393 | Parent = Part, | |
| 394 | Offset = OffSet, | |
| 395 | Scale = Scale, | |
| 396 | } | |
| 397 | if Mesh == "SpecialMesh" then | |
| 398 | Msh.MeshType = MeshType | |
| 399 | Msh.MeshId = MeshId | |
| 400 | end | |
| 401 | return Msh | |
| 402 | end; | |
| 403 | }; | |
| 404 | ||
| 405 | ["Weld"] = {
| |
| 406 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 407 | local Weld = Create("Weld"){
| |
| 408 | Parent = Parent, | |
| 409 | Part0 = Part0, | |
| 410 | Part1 = Part1, | |
| 411 | C0 = C0, | |
| 412 | C1 = C1, | |
| 413 | } | |
| 414 | return Weld | |
| 415 | end; | |
| 416 | }; | |
| 417 | ||
| 418 | ["Sound"] = {
| |
| 419 | Create = function(id, par, vol, pit) | |
| 420 | coroutine.resume(coroutine.create(function() | |
| 421 | local S = Create("Sound"){
| |
| 422 | Volume = vol, | |
| 423 | Pitch = pit or 1, | |
| 424 | SoundId = id, | |
| 425 | Parent = par or workspace, | |
| 426 | } | |
| 427 | wait() | |
| 428 | S:play() | |
| 429 | game:GetService("Debris"):AddItem(S, 10)
| |
| 430 | end)) | |
| 431 | end; | |
| 432 | }; | |
| 433 | ||
| 434 | ["LongSound"] = {
| |
| 435 | Create = function(id, par, vol, pit) | |
| 436 | coroutine.resume(coroutine.create(function() | |
| 437 | local S = Create("Sound"){
| |
| 438 | Volume = vol, | |
| 439 | Pitch = pit or 1, | |
| 440 | SoundId = id, | |
| 441 | Parent = par or workspace, | |
| 442 | } | |
| 443 | wait() | |
| 444 | S:play() | |
| 445 | game:GetService("Debris"):AddItem(S, 30)
| |
| 446 | end)) | |
| 447 | end; | |
| 448 | }; | |
| 449 | ||
| 450 | ["ParticleEmitter"] = {
| |
| 451 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 452 | local fp = Create("ParticleEmitter"){
| |
| 453 | Parent = Parent, | |
| 454 | Color = ColorSequence.new(Color1, Color2), | |
| 455 | LightEmission = LightEmission, | |
| 456 | Size = Size, | |
| 457 | Texture = Texture, | |
| 458 | Transparency = Transparency, | |
| 459 | ZOffset = ZOffset, | |
| 460 | Acceleration = Accel, | |
| 461 | Drag = Drag, | |
| 462 | LockedToPart = LockedToPart, | |
| 463 | VelocityInheritance = VelocityInheritance, | |
| 464 | EmissionDirection = EmissionDirection, | |
| 465 | Enabled = Enabled, | |
| 466 | Lifetime = LifeTime, | |
| 467 | Rate = Rate, | |
| 468 | Rotation = Rotation, | |
| 469 | RotSpeed = RotSpeed, | |
| 470 | Speed = Speed, | |
| 471 | VelocitySpread = VelocitySpread, | |
| 472 | } | |
| 473 | return fp | |
| 474 | end; | |
| 475 | }; | |
| 476 | ||
| 477 | CreateTemplate = {
| |
| 478 | ||
| 479 | }; | |
| 480 | } | |
| 481 | ||
| 482 | ||
| 483 | ||
| 484 | New = function(Object, Parent, Name, Data) | |
| 485 | local Object = Instance.new(Object) | |
| 486 | for Index, Value in pairs(Data or {}) do
| |
| 487 | Object[Index] = Value | |
| 488 | end | |
| 489 | Object.Parent = Parent | |
| 490 | Object.Name = Name | |
| 491 | return Object | |
| 492 | end | |
| 493 | local halocolor = BrickColor.new("Dark indigo")
| |
| 494 | local wepcolor = BrickColor.new("Really black")
| |
| 495 | local MutantParts = Instance.new("Model",char)
| |
| 496 | local MutantParts2 = Instance.new("Model",char)
| |
| 497 | ||
| 498 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
| 499 | local p = Instance.new("Part")
| |
| 500 | p.TopSurface = 0 | |
| 501 | p.BottomSurface = 0 | |
| 502 | p.Parent = parent | |
| 503 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 504 | p.Transparency = transparency | |
| 505 | p.Reflectance = reflectance | |
| 506 | p.CanCollide = false | |
| 507 | p.Locked = true | |
| 508 | p.BrickColor = brickcolor | |
| 509 | p.Material = material | |
| 510 | return p | |
| 511 | end | |
| 512 | ||
| 513 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
| 514 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 515 | mesh.MeshType = meshtype | |
| 516 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
| 517 | return mesh | |
| 518 | end | |
| 519 | ||
| 520 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
| 521 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 522 | mesh.MeshType = "FileMesh" | |
| 523 | mesh.MeshId = meshid | |
| 524 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 525 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 526 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 527 | return mesh | |
| 528 | end | |
| 529 | ||
| 530 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
| 531 | local weld = Instance.new("Weld")
| |
| 532 | weld.Parent = parent | |
| 533 | weld.Part0 = part0 | |
| 534 | weld.Part1 = part1 | |
| 535 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
| 536 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
| 537 | return weld | |
| 538 | end | |
| 539 | ||
| 540 | --larm.Name = "MutatedLeftArm" | |
| 541 | ||
| 542 | extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
| 543 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
| 544 | CreateWeld(extend,larm,extend,0,0.25,0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 545 | extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
| 546 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
| 547 | CreateWeld(extend,larm,extend,0.25,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 548 | extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
| 549 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
| 550 | CreateWeld(extend,larm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 551 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 552 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 553 | CreateWeld(extendblood,larm,extendblood,-0.15,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 554 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 555 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 556 | CreateWeld(extendblood,larm,extendblood,-0.275,0.2,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 557 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 558 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 559 | CreateWeld(extendblood,larm,extendblood,0.05,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 560 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 561 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 562 | CreateWeld(extendblood,larm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 563 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 564 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 565 | CreateWeld(extendblood,larm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 566 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 567 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 568 | CreateWeld(extendblood,larm,extendblood,0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 569 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 570 | CreateMesh(extendblood,"Brick",0.05,1.5,0.05) | |
| 571 | CreateWeld(extendblood,larm,extendblood,0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 572 | extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
| 573 | CreateMesh(extendsph,"Sphere",1.25,1.25,1.25) | |
| 574 | CreateWeld(extendsph,larm,extendsph,0.185,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 575 | extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
| 576 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
| 577 | CreateWeld(extendsph,larm,extendsph,0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 578 | extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
| 579 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
| 580 | CreateWeld(extendsph,larm,extendsph,-0.35,-0.5,-0.35,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 581 | extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
| |
| 582 | CreateMesh(extendcl,"Wedge",0.05,0.5,2) | |
| 583 | CreateWeld(extendcl,larm,extendcl,0,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 584 | extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
| |
| 585 | CreateMesh(extendcl,"Wedge",0.05,0.5,2) | |
| 586 | CreateWeld(extendcl,larm,extendcl,0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 587 | extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
| |
| 588 | CreateMesh(extendcl,"Wedge",0.05,0.5,2) | |
| 589 | CreateWeld(extendcl,larm,extendcl,-0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 590 | ||
| 591 | --- Secondary | |
| 592 | extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White"))
| |
| 593 | CreateMesh(extendcl,"Wedge",0.05,1,3) | |
| 594 | CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 595 | extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White"))
| |
| 596 | CreateMesh(extendcl,"Wedge",0.05,1,1) | |
| 597 | CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(-90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 598 | extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
| 599 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
| 600 | CreateWeld(extend,rarm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 601 | extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
| 602 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
| 603 | CreateWeld(extend,rarm,extend,0.275,-0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 604 | extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
| 605 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
| 606 | CreateWeld(extend,rarm,extend,-0.205,0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 607 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
| 608 | CreateMesh(extendsph,"Sphere",1.25,1.25,1.25) | |
| 609 | CreateWeld(extendsph,rarm,extendsph,0.125,0,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 610 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
| 611 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
| 612 | CreateWeld(extendsph,rarm,extendsph,-0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 613 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
| 614 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
| 615 | CreateWeld(extendsph,rarm,extendsph,0.315,-0.5,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 616 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
| 617 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
| 618 | CreateWeld(extendsph,rarm,extendsph,-0.235,0.45,-0.3,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 619 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 620 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 621 | CreateWeld(extendblood,rarm,extendblood,-0.15,0,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 622 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 623 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 624 | CreateWeld(extendblood,rarm,extendblood,-0.275,0.2,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 625 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 626 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 627 | CreateWeld(extendblood,rarm,extendblood,0.25,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 628 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 629 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 630 | CreateWeld(extendblood,rarm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 631 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 632 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 633 | CreateWeld(extendblood,rarm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 634 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 635 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
| 636 | CreateWeld(extendblood,rarm,extendblood,-0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 637 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
| |
| 638 | CreateMesh(extendblood,"Brick",0.05,1.5,0.05) | |
| 639 | CreateWeld(extendblood,rarm,extendblood,-0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 640 | ||
| 641 | for i, v in pairs(MutantParts:GetChildren()) do | |
| 642 | if v:IsA("Part") then
| |
| 643 | v.Transparency = 1 | |
| 644 | end | |
| 645 | end | |
| 646 | ||
| 647 | for i, v in pairs(MutantParts2:GetChildren()) do | |
| 648 | if v:IsA("Part") then
| |
| 649 | v.Transparency = 1 | |
| 650 | end | |
| 651 | end | |
| 652 | function RemoveOutlines(part) | |
| 653 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 654 | end | |
| 655 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 656 | local Part = Create("Part")({
| |
| 657 | Parent = Parent, | |
| 658 | Reflectance = Reflectance, | |
| 659 | Transparency = Transparency, | |
| 660 | CanCollide = false, | |
| 661 | Locked = true, | |
| 662 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 663 | Name = Name, | |
| 664 | Size = Size, | |
| 665 | Material = Material | |
| 666 | }) | |
| 667 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 668 | RemoveOutlines(Part) | |
| 669 | return Part | |
| 670 | end | |
| 671 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 672 | local Msh = Create(Mesh)({
| |
| 673 | Parent = Part, | |
| 674 | Offset = OffSet, | |
| 675 | Scale = Scale | |
| 676 | }) | |
| 677 | if Mesh == "SpecialMesh" then | |
| 678 | Msh.MeshType = MeshType | |
| 679 | Msh.MeshId = MeshId | |
| 680 | end | |
| 681 | return Msh | |
| 682 | end | |
| 683 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 684 | local Weld = Create("Weld")({
| |
| 685 | Parent = Parent, | |
| 686 | Part0 = Part0, | |
| 687 | Part1 = Part1, | |
| 688 | C0 = C0, | |
| 689 | C1 = C1 | |
| 690 | }) | |
| 691 | return Weld | |
| 692 | end | |
| 693 | ||
| 694 | local ff = Instance.new("ForceField",char)
| |
| 695 | ff.Visible = false | |
| 696 | ||
| 697 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
| 698 | local gui = it(GuiType) | |
| 699 | gui.Parent = parent | |
| 700 | gui.Text = text | |
| 701 | gui.BackgroundTransparency = backtrans | |
| 702 | gui.BackgroundColor3 = backcol | |
| 703 | gui.SizeConstraint = "RelativeXY" | |
| 704 | gui.TextXAlignment = "Center" | |
| 705 | gui.TextYAlignment = "Center" | |
| 706 | gui.Position = pos | |
| 707 | gui.Size = size | |
| 708 | gui.Font = "SourceSans" | |
| 709 | gui.FontSize = "Size14" | |
| 710 | gui.TextWrapped = false | |
| 711 | gui.TextStrokeTransparency = 0 | |
| 712 | gui.TextColor = BrickColor.new("White")
| |
| 713 | return gui | |
| 714 | end | |
| 715 | ---- GUI set | |
| 716 | local basgui = it("GuiMain")
| |
| 717 | basgui.Parent = plr.PlayerGui | |
| 718 | basgui.Name = "Killcounter GUI" | |
| 719 | local basframe = it("Frame")
| |
| 720 | basframe.Parent = basgui | |
| 721 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 722 | basframe.BackgroundTransparency = 1 | |
| 723 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
| 724 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
| 725 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
| 726 | ||
| 727 | local basframelist = it("Frame")
| |
| 728 | basframelist.Parent = basgui | |
| 729 | basframelist.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 730 | basframelist.BackgroundTransparency = 1 | |
| 731 | basframelist.BorderColor3 = Color3.new(17, 17, 17) | |
| 732 | basframelist.Size = UDim2.new(0.2, 0, 0.2, 0) | |
| 733 | basframelist.Position = UDim2.new(0.8, 0, 0.8, 0) | |
| 734 | ||
| 735 | local uhh = gui("TextLabel", basframe, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
| |
| 736 | uhh.ZIndex = 2 | |
| 737 | uhh.Font = "Arcade" | |
| 738 | uhh.TextStrokeColor3 = Color3.new(180,180,0) | |
| 739 | uhh.TextColor3 = Color3.new(0,0,0) | |
| 740 | uhh.BackgroundTransparency = 1 | |
| 741 | uhh.BorderSizePixel = 0.65 | |
| 742 | uhh.TextScaled = false | |
| 743 | uhh.TextXAlignment = "Left" | |
| 744 | uhh.Text = "Kills : 0" | |
| 745 | uhh.TextSize = 54 | |
| 746 | ||
| 747 | ||
| 748 | local uhh2 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.8, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
| |
| 749 | uhh2.ZIndex = 2 | |
| 750 | uhh2.Font = "Bodoni" | |
| 751 | uhh2.TextStrokeColor3 = Color3.new(1,0,0) | |
| 752 | uhh2.TextColor3 = Color3.new(0,0,0) | |
| 753 | uhh2.BackgroundTransparency = 1 | |
| 754 | uhh2.BorderSizePixel = 0.65 | |
| 755 | uhh2.TextScaled = false | |
| 756 | uhh2.TextXAlignment = "Left" | |
| 757 | uhh2.Text = "Required kills for second mutated arm: 15" | |
| 758 | uhh2.TextSize = 24 | |
| 759 | local uhh3 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, -0.1, 0), UDim2.new(0.95, 0, 0.15, 0))
| |
| 760 | uhh3.ZIndex = 2 | |
| 761 | uhh3.Font = "Bodoni" | |
| 762 | uhh3.TextStrokeColor3 = Color3.new(1,0,0) | |
| 763 | uhh3.TextColor3 = Color3.new(0,0,0) | |
| 764 | uhh3.BackgroundTransparency = 1 | |
| 765 | uhh3.BorderSizePixel = 0.65 | |
| 766 | uhh3.TextScaled = false | |
| 767 | uhh3.TextXAlignment = "Left" | |
| 768 | uhh3.Text = "Required kills for the end: 50" | |
| 769 | uhh3.TextSize = 24 | |
| 770 | ||
| 771 | ||
| 772 | Player=game:GetService("Players").LocalPlayer
| |
| 773 | Character=Player.Character | |
| 774 | local Mouse = Player:GetMouse() | |
| 775 | PlayerGui=Player.PlayerGui | |
| 776 | Backpack=Player.Backpack | |
| 777 | Torso=Character.Torso | |
| 778 | Head=Character.Head | |
| 779 | Humanoid=Character.Humanoid | |
| 780 | m=Instance.new('Model',Character)
| |
| 781 | LeftArm=Character["Left Arm"] | |
| 782 | LeftLeg=Character["Left Leg"] | |
| 783 | RightArm=Character["Right Arm"] | |
| 784 | RightLeg=Character["Right Leg"] | |
| 785 | LS=Torso["Left Shoulder"] | |
| 786 | LH=Torso["Left Hip"] | |
| 787 | RS=Torso["Right Shoulder"] | |
| 788 | RH=Torso["Right Hip"] | |
| 789 | Face = Head.face | |
| 790 | Neck=Torso.Neck | |
| 791 | it=Instance.new | |
| 792 | attacktype=1 | |
| 793 | vt=Vector3.new | |
| 794 | cf=CFrame.new | |
| 795 | euler=CFrame.fromEulerAnglesXYZ | |
| 796 | angles=CFrame.Angles | |
| 797 | cloaked=false | |
| 798 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 799 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 800 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 801 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 802 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 803 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 804 | RootPart=Character.HumanoidRootPart | |
| 805 | RootJoint=RootPart.RootJoint | |
| 806 | RootCF=euler(-1.57,0,3.14) | |
| 807 | attack = false | |
| 808 | attackdebounce = false | |
| 809 | deb=false | |
| 810 | equipped=true | |
| 811 | hand=false | |
| 812 | MMouse=nil | |
| 813 | combo=0 | |
| 814 | mana=0 | |
| 815 | trispeed=.2 | |
| 816 | attackmode='none' | |
| 817 | local idle=0 | |
| 818 | local Anim="Idle" | |
| 819 | local Effects={}
| |
| 820 | local gun=false | |
| 821 | local shoot=false | |
| 822 | local sine = 0 | |
| 823 | local change = 1 | |
| 824 | player=nil | |
| 825 | ||
| 826 | mouse=Player:GetMouse() | |
| 827 | --save shoulders | |
| 828 | RSH, LSH=nil, nil | |
| 829 | --welds | |
| 830 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 831 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 832 | LH=Torso["Left Hip"] | |
| 833 | RH=Torso["Right Hip"] | |
| 834 | TorsoColor=Torso.BrickColor | |
| 835 | function NoOutline(Part) | |
| 836 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 837 | end | |
| 838 | player=Player | |
| 839 | ch=Character | |
| 840 | RSH=ch.Torso["Right Shoulder"] | |
| 841 | LSH=ch.Torso["Left Shoulder"] | |
| 842 | -- | |
| 843 | RSH.Parent=nil | |
| 844 | LSH.Parent=nil | |
| 845 | -- | |
| 846 | RW.Name="Right Shoulder" | |
| 847 | RW.Part0=ch.Torso | |
| 848 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 849 | RW.C1=cf(0, 0.5, 0) | |
| 850 | RW.Part1=ch["Right Arm"] | |
| 851 | RW.Parent=ch.Torso | |
| 852 | -- | |
| 853 | LW.Name="Left Shoulder" | |
| 854 | LW.Part0=ch.Torso | |
| 855 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 856 | LW.C1=cf(0, 0.5, 0) | |
| 857 | LW.Part1=ch["Left Arm"] | |
| 858 | LW.Parent=ch.Torso | |
| 859 | ||
| 860 | local Stats=Instance.new("BoolValue")
| |
| 861 | Stats.Name="Stats" | |
| 862 | Stats.Parent=Character | |
| 863 | local Atk=Instance.new("NumberValue")
| |
| 864 | Atk.Name="Damage" | |
| 865 | Atk.Parent=Stats | |
| 866 | Atk.Value=1 | |
| 867 | local Def=Instance.new("NumberValue")
| |
| 868 | Def.Name="Defense" | |
| 869 | Def.Parent=Stats | |
| 870 | Def.Value=1 | |
| 871 | local Speed=Instance.new("NumberValue")
| |
| 872 | Speed.Name="Speed" | |
| 873 | Speed.Parent=Stats | |
| 874 | Speed.Value=1 | |
| 875 | local Mvmt=Instance.new("NumberValue")
| |
| 876 | Mvmt.Name="Movement" | |
| 877 | Mvmt.Parent=Stats | |
| 878 | Mvmt.Value=1 | |
| 879 | ||
| 880 | local donum=0 | |
| 881 | ||
| 882 | ||
| 883 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 884 | local fp=it("Part")
| |
| 885 | fp.formFactor=formfactor | |
| 886 | fp.Parent=parent | |
| 887 | fp.Reflectance=reflectance | |
| 888 | fp.Transparency=transparency | |
| 889 | fp.CanCollide=false | |
| 890 | fp.Locked=true | |
| 891 | fp.BrickColor=brickcolor | |
| 892 | fp.Name=name | |
| 893 | fp.Size=size | |
| 894 | fp.Position=Torso.Position | |
| 895 | NoOutline(fp) | |
| 896 | fp.Material="SmoothPlastic" | |
| 897 | fp:BreakJoints() | |
| 898 | return fp | |
| 899 | end | |
| 900 | ||
| 901 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 902 | local mesh=it(Mesh) | |
| 903 | mesh.Parent=part | |
| 904 | if Mesh=="SpecialMesh" then | |
| 905 | mesh.MeshType=meshtype | |
| 906 | if meshid~="nil" then | |
| 907 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 908 | end | |
| 909 | end | |
| 910 | mesh.Offset=offset | |
| 911 | mesh.Scale=scale | |
| 912 | return mesh | |
| 913 | end | |
| 914 | ||
| 915 | function weld(parent,part0,part1,c0) | |
| 916 | local weld=it("Weld")
| |
| 917 | weld.Parent=parent | |
| 918 | weld.Part0=part0 | |
| 919 | weld.Part1=part1 | |
| 920 | weld.C0=c0 | |
| 921 | return weld | |
| 922 | end | |
| 923 | ||
| 924 | local Color1=Torso.BrickColor | |
| 925 | ||
| 926 | local bodvel=Instance.new("BodyVelocity")
| |
| 927 | local bg=Instance.new("BodyGyro")
| |
| 928 | ||
| 929 | function swait(num) | |
| 930 | if num==0 or num==nil then | |
| 931 | game:service'RunService'.Stepped:wait(0) | |
| 932 | else | |
| 933 | for i=0,num do | |
| 934 | game:service'RunService'.Stepped:wait(0) | |
| 935 | end | |
| 936 | end | |
| 937 | end | |
| 938 | ||
| 939 | ||
| 940 | so = function(id,par,vol,pit) | |
| 941 | coroutine.resume(coroutine.create(function() | |
| 942 | local sou = Instance.new("Sound",par or workspace)
| |
| 943 | sou.Volume=vol | |
| 944 | sou.Pitch=pit or 1 | |
| 945 | sou.SoundId=id | |
| 946 | swait() | |
| 947 | sou:play() | |
| 948 | game:GetService("Debris"):AddItem(sou,6)
| |
| 949 | end)) | |
| 950 | end | |
| 951 | ||
| 952 | function clerp(a,b,t) | |
| 953 | local qa = {QuaternionFromCFrame(a)}
| |
| 954 | local qb = {QuaternionFromCFrame(b)}
| |
| 955 | local ax, ay, az = a.x, a.y, a.z | |
| 956 | local bx, by, bz = b.x, b.y, b.z | |
| 957 | local _t = 1-t | |
| 958 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 959 | end | |
| 960 | ||
| 961 | function QuaternionFromCFrame(cf) | |
| 962 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 963 | local trace = m00 + m11 + m22 | |
| 964 | if trace > 0 then | |
| 965 | local s = math.sqrt(1 + trace) | |
| 966 | local recip = 0.5/s | |
| 967 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 968 | else | |
| 969 | local i = 0 | |
| 970 | if m11 > m00 then | |
| 971 | i = 1 | |
| 972 | end | |
| 973 | if m22 > (i == 0 and m00 or m11) then | |
| 974 | i = 2 | |
| 975 | end | |
| 976 | if i == 0 then | |
| 977 | local s = math.sqrt(m00-m11-m22+1) | |
| 978 | local recip = 0.5/s | |
| 979 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 980 | elseif i == 1 then | |
| 981 | local s = math.sqrt(m11-m22-m00+1) | |
| 982 | local recip = 0.5/s | |
| 983 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 984 | elseif i == 2 then | |
| 985 | local s = math.sqrt(m22-m00-m11+1) | |
| 986 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 987 | end | |
| 988 | end | |
| 989 | end | |
| 990 | ||
| 991 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 992 | local xs, ys, zs = x + x, y + y, z + z | |
| 993 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 994 | local xx = x*xs | |
| 995 | local xy = x*ys | |
| 996 | local xz = x*zs | |
| 997 | local yy = y*ys | |
| 998 | local yz = y*zs | |
| 999 | local zz = z*zs | |
| 1000 | 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)) | |
| 1001 | end | |
| 1002 | ||
| 1003 | function QuaternionSlerp(a, b, t) | |
| 1004 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 1005 | local startInterp, finishInterp; | |
| 1006 | if cosTheta >= 0.0001 then | |
| 1007 | if (1 - cosTheta) > 0.0001 then | |
| 1008 | local theta = math.acos(cosTheta) | |
| 1009 | local invSinTheta = 1/math.sin(theta) | |
| 1010 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 1011 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1012 | else | |
| 1013 | startInterp = 1-t | |
| 1014 | finishInterp = t | |
| 1015 | end | |
| 1016 | else | |
| 1017 | if (1+cosTheta) > 0.0001 then | |
| 1018 | local theta = math.acos(-cosTheta) | |
| 1019 | local invSinTheta = 1/math.sin(theta) | |
| 1020 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 1021 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1022 | else | |
| 1023 | startInterp = t-1 | |
| 1024 | finishInterp = t | |
| 1025 | end | |
| 1026 | end | |
| 1027 | 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 | |
| 1028 | end | |
| 1029 | ||
| 1030 | local function CFrameFromTopBack(at, top, back) | |
| 1031 | local right = top:Cross(back) | |
| 1032 | return CFrame.new(at.x, at.y, at.z, | |
| 1033 | right.x, top.x, back.x, | |
| 1034 | right.y, top.y, back.y, | |
| 1035 | right.z, top.z, back.z) | |
| 1036 | end | |
| 1037 | ||
| 1038 | function Triangle(a, b, c) | |
| 1039 | local edg1 = (c-a):Dot((b-a).unit) | |
| 1040 | local edg2 = (a-b):Dot((c-b).unit) | |
| 1041 | local edg3 = (b-c):Dot((a-c).unit) | |
| 1042 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 1043 | a, b, c = a, b, c | |
| 1044 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 1045 | a, b, c = b, c, a | |
| 1046 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 1047 | a, b, c = c, a, b | |
| 1048 | else | |
| 1049 | assert(false, "unreachable") | |
| 1050 | end | |
| 1051 | ||
| 1052 | local len1 = (c-a):Dot((b-a).unit) | |
| 1053 | local len2 = (b-a).magnitude - len1 | |
| 1054 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 1055 | ||
| 1056 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 1057 | ||
| 1058 | local list = {}
| |
| 1059 | ||
| 1060 | if len1 > 0.01 then | |
| 1061 | local w1 = Instance.new('WedgePart', m)
| |
| 1062 | game:GetService("Debris"):AddItem(w1,5)
| |
| 1063 | w1.Material = "SmoothPlastic" | |
| 1064 | w1.FormFactor = 'Custom' | |
| 1065 | w1.BrickColor = BrickColor.new("Really red")
| |
| 1066 | w1.Transparency = 0 | |
| 1067 | w1.Reflectance = 0 | |
| 1068 | w1.Material = "SmoothPlastic" | |
| 1069 | w1.CanCollide = false | |
| 1070 | local l1 = Instance.new("PointLight",w1)
| |
| 1071 | l1.Color = Color3.new(170,0,0) | |
| 1072 | NoOutline(w1) | |
| 1073 | local sz = Vector3.new(0.2, width, len1) | |
| 1074 | w1.Size = sz | |
| 1075 | local sp = Instance.new("SpecialMesh",w1)
| |
| 1076 | sp.MeshType = "Wedge" | |
| 1077 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 1078 | w1:BreakJoints() | |
| 1079 | w1.Anchored = true | |
| 1080 | w1.Parent = workspace | |
| 1081 | w1.Transparency = 0.7 | |
| 1082 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 1083 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 1084 | table.insert(list,w1) | |
| 1085 | end | |
| 1086 | ||
| 1087 | if len2 > 0.01 then | |
| 1088 | local w2 = Instance.new('WedgePart', m)
| |
| 1089 | game:GetService("Debris"):AddItem(w2,5)
| |
| 1090 | w2.Material = "SmoothPlastic" | |
| 1091 | w2.FormFactor = 'Custom' | |
| 1092 | w2.BrickColor = BrickColor.new("Really red")
| |
| 1093 | w2.Transparency = 0 | |
| 1094 | w2.Reflectance = 0 | |
| 1095 | w2.Material = "SmoothPlastic" | |
| 1096 | w2.CanCollide = false | |
| 1097 | local l2 = Instance.new("PointLight",w2)
| |
| 1098 | l2.Color = Color3.new(170,0,0) | |
| 1099 | NoOutline(w2) | |
| 1100 | local sz = Vector3.new(0.2, width, len2) | |
| 1101 | w2.Size = sz | |
| 1102 | local sp = Instance.new("SpecialMesh",w2)
| |
| 1103 | sp.MeshType = "Wedge" | |
| 1104 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 1105 | w2:BreakJoints() | |
| 1106 | w2.Anchored = true | |
| 1107 | w2.Parent = workspace | |
| 1108 | w2.Transparency = 0.7 | |
| 1109 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 1110 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 1111 | table.insert(list,w2) | |
| 1112 | end | |
| 1113 | return unpack(list) | |
| 1114 | end | |
| 1115 | ||
| 1116 | ||
| 1117 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1118 | if hit.Parent == nil then | |
| 1119 | return | |
| 1120 | end | |
| 1121 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 1122 | for _, v in pairs(hit.Parent:children()) do | |
| 1123 | if v:IsA("Humanoid") then
| |
| 1124 | h = v | |
| 1125 | end | |
| 1126 | end | |
| 1127 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 1128 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1129 | return | |
| 1130 | end | |
| 1131 | local c = Create("ObjectValue")({
| |
| 1132 | Name = "creator", | |
| 1133 | Value = game:service("Players").LocalPlayer,
| |
| 1134 | Parent = h | |
| 1135 | }) | |
| 1136 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1137 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1138 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 1139 | end | |
| 1140 | local Damage = math.random(minim, maxim) | |
| 1141 | local blocked = false | |
| 1142 | local block = hit.Parent:findFirstChild("Block")
| |
| 1143 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1144 | blocked = true | |
| 1145 | block.Value = block.Value - 1 | |
| 1146 | print(block.Value) | |
| 1147 | end | |
| 1148 | if blocked == false then | |
| 1149 | HitHealth = h.Health | |
| 1150 | h.Health = h.Health - Damage | |
| 1151 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
| 1152 | print("gained kill")
| |
| 1153 | end | |
| 1154 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1155 | else | |
| 1156 | h.Health = h.Health - Damage / 2 | |
| 1157 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1158 | end | |
| 1159 | if Type == "Knockdown" then | |
| 1160 | local hum = hit.Parent.Humanoid | |
| 1161 | hum.PlatformStand = true | |
| 1162 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1163 | swait(1) | |
| 1164 | HHumanoid.PlatformStand = false | |
| 1165 | end), hum) | |
| 1166 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1167 | local bodvol = Create("BodyVelocity")({
| |
| 1168 | velocity = angle * knockback, | |
| 1169 | P = 5000, | |
| 1170 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1171 | Parent = hit | |
| 1172 | }) | |
| 1173 | local rl = Create("BodyAngularVelocity")({
| |
| 1174 | P = 3000, | |
| 1175 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1176 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1177 | Parent = hit | |
| 1178 | }) | |
| 1179 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 1180 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 1181 | elseif Type == "Normal" then | |
| 1182 | local vp = Create("BodyVelocity")({
| |
| 1183 | P = 500, | |
| 1184 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 1185 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 1186 | }) | |
| 1187 | if knockback > 0 then | |
| 1188 | vp.Parent = hit.Parent.Torso | |
| 1189 | end | |
| 1190 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1191 | elseif Type == "Up" then | |
| 1192 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1193 | velocity = Vector3.new(0, 20, 0), | |
| 1194 | P = 5000, | |
| 1195 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1196 | Parent = hit | |
| 1197 | }) | |
| 1198 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1199 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1200 | velocity = Vector3.new(0, 20, 0), | |
| 1201 | P = 5000, | |
| 1202 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1203 | Parent = hit | |
| 1204 | }) | |
| 1205 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1206 | elseif Type == "Leech" then | |
| 1207 | local hum = hit.Parent.Humanoid | |
| 1208 | if hum ~= nil then | |
| 1209 | for i = 0, 2 do | |
| 1210 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 1211 | end | |
| 1212 | Humanoid.Health = Humanoid.Health + 10 | |
| 1213 | end | |
| 1214 | elseif Type == "UpKnock" then | |
| 1215 | local hum = hit.Parent.Humanoid | |
| 1216 | hum.PlatformStand = true | |
| 1217 | if hum ~= nil then | |
| 1218 | hitr = true | |
| 1219 | end | |
| 1220 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1221 | swait(5) | |
| 1222 | HHumanoid.PlatformStand = false | |
| 1223 | hitr = false | |
| 1224 | end), hum) | |
| 1225 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1226 | velocity = Vector3.new(0, 20, 0), | |
| 1227 | P = 5000, | |
| 1228 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1229 | Parent = hit | |
| 1230 | }) | |
| 1231 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1232 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1233 | velocity = Vector3.new(0, 20, 0), | |
| 1234 | P = 5000, | |
| 1235 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1236 | Parent = hit | |
| 1237 | }) | |
| 1238 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1239 | elseif Type == "Snare" then | |
| 1240 | local bp = Create("BodyPosition")({
| |
| 1241 | P = 2000, | |
| 1242 | D = 100, | |
| 1243 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1244 | position = hit.Parent.Torso.Position, | |
| 1245 | Parent = hit.Parent.Torso | |
| 1246 | }) | |
| 1247 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1248 | elseif Type == "Slashnare" then | |
| 1249 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
| |
| 1250 | for i = 1, math.random(4, 5) do | |
| 1251 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 1252 | end | |
| 1253 | local bp = Create("BodyPosition")({
| |
| 1254 | P = 2000, | |
| 1255 | D = 100, | |
| 1256 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1257 | position = hit.Parent.Torso.Position, | |
| 1258 | Parent = hit.Parent.Torso | |
| 1259 | }) | |
| 1260 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1261 | elseif Type == "Spike" then | |
| 1262 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
| 1263 | local bp = Create("BodyPosition")({
| |
| 1264 | P = 2000, | |
| 1265 | D = 100, | |
| 1266 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1267 | position = hit.Parent.Torso.Position, | |
| 1268 | Parent = hit.Parent.Torso | |
| 1269 | }) | |
| 1270 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1271 | elseif Type == "Freeze" then | |
| 1272 | local BodPos = Create("BodyPosition")({
| |
| 1273 | P = 50000, | |
| 1274 | D = 1000, | |
| 1275 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1276 | position = hit.Parent.Torso.Position, | |
| 1277 | Parent = hit.Parent.Torso | |
| 1278 | }) | |
| 1279 | local BodGy = Create("BodyGyro")({
| |
| 1280 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 1281 | P = 20000, | |
| 1282 | Parent = hit.Parent.Torso, | |
| 1283 | cframe = hit.Parent.Torso.CFrame | |
| 1284 | }) | |
| 1285 | hit.Parent.Torso.Anchored = true | |
| 1286 | coroutine.resume(coroutine.create(function(Part) | |
| 1287 | swait(1.5) | |
| 1288 | Part.Anchored = false | |
| 1289 | end), hit.Parent.Torso) | |
| 1290 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1291 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1292 | end | |
| 1293 | local debounce = Create("BoolValue")({
| |
| 1294 | Name = "DebounceHit", | |
| 1295 | Parent = hit.Parent, | |
| 1296 | Value = true | |
| 1297 | }) | |
| 1298 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1299 | c = Instance.new("ObjectValue")
| |
| 1300 | c.Name = "creator" | |
| 1301 | c.Value = Player | |
| 1302 | c.Parent = h | |
| 1303 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1304 | end | |
| 1305 | end | |
| 1306 | function ShowDamage(Pos, Text, Time, Color) | |
| 1307 | local Rate = 0.03333333333333333 | |
| 1308 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 1309 | local Text = Text or "" | |
| 1310 | local Time = Time or 2 | |
| 1311 | local Color = Color or Color3.new(1, 0, 1) | |
| 1312 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1313 | EffectPart.Anchored = true | |
| 1314 | local BillboardGui = Create("BillboardGui")({
| |
| 1315 | Size = UDim2.new(3, 0, 3, 0), | |
| 1316 | Adornee = EffectPart, | |
| 1317 | Parent = EffectPart | |
| 1318 | }) | |
| 1319 | local TextLabel = Create("TextLabel")({
| |
| 1320 | BackgroundTransparency = 1, | |
| 1321 | Size = UDim2.new(1, 0, 1, 0), | |
| 1322 | Text = Text, | |
| 1323 | TextColor3 = Color, | |
| 1324 | TextScaled = true, | |
| 1325 | Font = Enum.Font.ArialBold, | |
| 1326 | Parent = BillboardGui | |
| 1327 | }) | |
| 1328 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 1329 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1330 | delay(0, function() | |
| 1331 | local Frames = Time / Rate | |
| 1332 | for Frame = 1, Frames do | |
| 1333 | wait(Rate) | |
| 1334 | local Percent = Frame / Frames | |
| 1335 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1336 | TextLabel.TextTransparency = Percent | |
| 1337 | end | |
| 1338 | if EffectPart and EffectPart.Parent then | |
| 1339 | EffectPart:Destroy() | |
| 1340 | end | |
| 1341 | end) | |
| 1342 | end | |
| 1343 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 1344 | for _, c in pairs(workspace:children()) do | |
| 1345 | local hum = c:findFirstChild("Humanoid")
| |
| 1346 | if hum ~= nil then | |
| 1347 | local head = c:findFirstChild("Torso")
| |
| 1348 | if head ~= nil then | |
| 1349 | local targ = head.Position - Part.Position | |
| 1350 | local mag = targ.magnitude | |
| 1351 | if magni >= mag and c.Name ~= Player.Name then | |
| 1352 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1353 | end | |
| 1354 | end | |
| 1355 | end | |
| 1356 | end | |
| 1357 | end | |
| 1358 | ||
| 1359 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
| 1360 | for _, c in pairs(workspace:children()) do | |
| 1361 | local hum = c:findFirstChild("Humanoid")
| |
| 1362 | if hum ~= nil then | |
| 1363 | local head = c:findFirstChild("Torso")
| |
| 1364 | if head ~= nil then | |
| 1365 | local targ = head.Position - Part.Position | |
| 1366 | local mag = targ.magnitude | |
| 1367 | if magni >= mag and c.Name ~= Player.Name then | |
| 1368 | MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
| |
| 1369 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1370 | end | |
| 1371 | end | |
| 1372 | end | |
| 1373 | end | |
| 1374 | end | |
| 1375 | ||
| 1376 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 1377 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1378 | end | |
| 1379 | ||
| 1380 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 1381 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1382 | prt.Anchored=true | |
| 1383 | prt.CFrame=cframe | |
| 1384 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 1385 | --http://www.roblox.com/asset/?id=4770560 | |
| 1386 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1387 | CF=prt.CFrame | |
| 1388 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 1389 | for i=0,1,0.2 do | |
| 1390 | wait() | |
| 1391 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 1392 | end | |
| 1393 | for i=0,1,delay do | |
| 1394 | wait() | |
| 1395 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
| 1396 | Mesh.Scale=Mesh.Scale | |
| 1397 | end | |
| 1398 | for i=0,1,0.1 do | |
| 1399 | wait() | |
| 1400 | Part.Transparency=i | |
| 1401 | end | |
| 1402 | Part.Parent=nil | |
| 1403 | end),prt,msh,CF) | |
| 1404 | end | |
| 1405 | ||
| 1406 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1407 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1408 | prt.Anchored=true | |
| 1409 | prt.Material = "Neon" | |
| 1410 | prt.CFrame=cframe | |
| 1411 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1412 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1413 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1414 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1415 | for i=0,1,delay do | |
| 1416 | swait() | |
| 1417 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1418 | Part.Transparency=i | |
| 1419 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1420 | end | |
| 1421 | Part.Parent=nil | |
| 1422 | end),prt,msh) | |
| 1423 | end | |
| 1424 | ||
| 1425 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1426 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1427 | prt.Anchored=true | |
| 1428 | prt.Material = "Neon" | |
| 1429 | prt.CFrame=cframe | |
| 1430 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1431 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1432 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1433 | local rtype = rottype | |
| 1434 | for i=0,1,delay do | |
| 1435 | swait() | |
| 1436 | if rtype == 1 then | |
| 1437 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1438 | elseif rtype == 2 then | |
| 1439 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1440 | end | |
| 1441 | Part.Transparency=i | |
| 1442 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1443 | end | |
| 1444 | Part.Parent=nil | |
| 1445 | end),prt,msh) | |
| 1446 | end | |
| 1447 | ||
| 1448 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1449 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1450 | prt.Anchored=true | |
| 1451 | prt.CFrame=cframe | |
| 1452 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1453 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1454 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1455 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1456 | for i=0,1,delay do | |
| 1457 | wait() | |
| 1458 | Part.Transparency=i | |
| 1459 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1460 | end | |
| 1461 | Part.Parent=nil | |
| 1462 | end),prt,msh) | |
| 1463 | end | |
| 1464 | ||
| 1465 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1466 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1467 | prt.Anchored=true | |
| 1468 | prt.Material = "Neon" | |
| 1469 | prt.CFrame=cframe | |
| 1470 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1471 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1472 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1473 | local rtype = rottype | |
| 1474 | for i=0,1,delay do | |
| 1475 | swait() | |
| 1476 | if rtype == 1 then | |
| 1477 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1478 | elseif rtype == 2 then | |
| 1479 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1480 | end | |
| 1481 | Part.Transparency=i | |
| 1482 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1483 | end | |
| 1484 | Part.Parent=nil | |
| 1485 | end),prt,msh) | |
| 1486 | end | |
| 1487 | ||
| 1488 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1489 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1490 | prt.Anchored=true | |
| 1491 | prt.Material = "Neon" | |
| 1492 | prt.CFrame=cframe | |
| 1493 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1494 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1495 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1496 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1497 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1498 | local rtype = rottype | |
| 1499 | for i=0,1,delay do | |
| 1500 | swait() | |
| 1501 | if rtype == 1 then | |
| 1502 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1503 | elseif rtype == 2 then | |
| 1504 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1505 | end | |
| 1506 | dec.Transparency=i | |
| 1507 | dec2.Transparency=i | |
| 1508 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1509 | end | |
| 1510 | Part.Parent=nil | |
| 1511 | end),prt,msh) | |
| 1512 | end | |
| 1513 | ||
| 1514 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1515 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1516 | prt.Anchored=true | |
| 1517 | prt.Material = "Neon" | |
| 1518 | prt.CFrame=cframe | |
| 1519 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1520 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1521 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1522 | local rtype = rottype | |
| 1523 | for i=0,1,delay do | |
| 1524 | swait() | |
| 1525 | if rtype == 1 then | |
| 1526 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1527 | elseif rtype == 2 then | |
| 1528 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1529 | end | |
| 1530 | prt.Transparency=i | |
| 1531 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1532 | end | |
| 1533 | Part.Parent=nil | |
| 1534 | end),prt,msh) | |
| 1535 | end | |
| 1536 | ||
| 1537 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
| 1538 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1539 | prt.Anchored=true | |
| 1540 | prt.Material = "Neon" | |
| 1541 | prt.CFrame=cframe | |
| 1542 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
| |
| 1543 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1544 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1545 | local rtype = rottype | |
| 1546 | for i=0,1,delay do | |
| 1547 | swait() | |
| 1548 | if rtype == 1 then | |
| 1549 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
| 1550 | elseif rtype == 2 then | |
| 1551 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
| 1552 | end | |
| 1553 | prt.Transparency=i | |
| 1554 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
| 1555 | end | |
| 1556 | Part.Parent=nil | |
| 1557 | end),prt,msh) | |
| 1558 | end | |
| 1559 | ||
| 1560 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
| 1561 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1562 | prt.Anchored=true | |
| 1563 | prt.Material = "Neon" | |
| 1564 | prt.CFrame=cframe | |
| 1565 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1566 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1567 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1568 | local rtype = rottype | |
| 1569 | for i=0,1,delay do | |
| 1570 | swait() | |
| 1571 | if rtype == 1 then | |
| 1572 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1573 | elseif rtype == 2 then | |
| 1574 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1575 | end | |
| 1576 | prt.Transparency=i | |
| 1577 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1578 | end | |
| 1579 | Part.Parent=nil | |
| 1580 | end),prt,msh) | |
| 1581 | end | |
| 1582 | ||
| 1583 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1584 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1585 | prt.Anchored=true | |
| 1586 | prt.Material = "Neon" | |
| 1587 | prt.CFrame=cframe | |
| 1588 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1589 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1590 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1591 | local rtype = rottype | |
| 1592 | for i=0,1,delay do | |
| 1593 | swait() | |
| 1594 | if rtype == 1 then | |
| 1595 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1596 | elseif rtype == 2 then | |
| 1597 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1598 | end | |
| 1599 | prt.Transparency=i | |
| 1600 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1601 | end | |
| 1602 | Part.Parent=nil | |
| 1603 | end),prt,msh) | |
| 1604 | end | |
| 1605 | ||
| 1606 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1607 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1608 | prt.Anchored=false | |
| 1609 | prt.CFrame=cframe | |
| 1610 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1611 | local wld=weld(prt,prt,Parent,cframe) | |
| 1612 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1613 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1614 | for i=0,1,delay do | |
| 1615 | wait() | |
| 1616 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
| 1617 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1618 | Part.Transparency=i | |
| 1619 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1620 | end | |
| 1621 | Part.Parent=nil | |
| 1622 | end),prt,msh,wld) | |
| 1623 | end | |
| 1624 | ||
| 1625 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1626 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1627 | prt.Anchored=false | |
| 1628 | prt.CFrame=cframe | |
| 1629 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1630 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
| 1631 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1632 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1633 | for i=0,1,delay do | |
| 1634 | wait() | |
| 1635 | Weld.C0=euler(i*20,0,0) | |
| 1636 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1637 | Part.Transparency=i | |
| 1638 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1639 | end | |
| 1640 | Part.Parent=nil | |
| 1641 | end),prt,msh,wld) | |
| 1642 | end | |
| 1643 | ||
| 1644 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1645 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1646 | prt.Anchored=true | |
| 1647 | prt.CFrame=cframe | |
| 1648 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1649 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1650 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1651 | for i=0,1,delay do | |
| 1652 | wait() | |
| 1653 | Part.CFrame=Part.CFrame | |
| 1654 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1655 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1656 | prt2.Anchored=true | |
| 1657 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1658 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
| |
| 1659 | game:GetService("Debris"):AddItem(prt2,2)
| |
| 1660 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1661 | for i=0,1,0.1 do | |
| 1662 | wait() | |
| 1663 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
| 1664 | end | |
| 1665 | Part.Parent=nil | |
| 1666 | end),prt2,msh2) | |
| 1667 | end | |
| 1668 | for i=0,1,delay*2 do | |
| 1669 | wait() | |
| 1670 | Part.CFrame=Part.CFrame | |
| 1671 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
| 1672 | end | |
| 1673 | Part.Parent=nil | |
| 1674 | end),prt,msh) | |
| 1675 | end | |
| 1676 | ||
| 1677 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1678 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1679 | prt.Anchored=true | |
| 1680 | prt.CFrame=cframe | |
| 1681 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1682 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1683 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1684 | for i=0,1,delay do | |
| 1685 | wait() | |
| 1686 | Part.CFrame=Part.CFrame | |
| 1687 | Part.Transparency=i | |
| 1688 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1689 | end | |
| 1690 | Part.Parent=nil | |
| 1691 | end),prt,msh) | |
| 1692 | end | |
| 1693 | ||
| 1694 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
| 1695 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1696 | prt.Anchored=true | |
| 1697 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1698 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1699 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1700 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
| 1701 | CF=Part.CFrame | |
| 1702 | Numbb=0 | |
| 1703 | randnumb=math.random()/10 | |
| 1704 | rand1=math.random()/10 | |
| 1705 | for i=0,1,rand1 do | |
| 1706 | wait() | |
| 1707 | CF=CF*cf(0,math.random()/2,0) | |
| 1708 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
| 1709 | Part.CFrame=CF*euler(Numbb,0,0) | |
| 1710 | Part.Transparency=i | |
| 1711 | Numbb=Numbb+randnumb | |
| 1712 | end | |
| 1713 | Part.Parent=nil | |
| 1714 | end),prt,CF,Numbb,randnumb) | |
| 1715 | end | |
| 1716 | ||
| 1717 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1718 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1719 | prt.Anchored=true | |
| 1720 | prt.CFrame=cframe | |
| 1721 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 1722 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1723 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1724 | for i=0,1,delay do | |
| 1725 | wait() | |
| 1726 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 1727 | Part.Transparency=i | |
| 1728 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1729 | end | |
| 1730 | Part.Parent=nil | |
| 1731 | end),prt,msh) | |
| 1732 | end | |
| 1733 | ||
| 1734 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1735 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1736 | prt.Anchored=true | |
| 1737 | prt.CFrame=cframe | |
| 1738 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 1739 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1740 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1741 | for i=0,1,delay do | |
| 1742 | wait() | |
| 1743 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
| 1744 | Part.Transparency=i | |
| 1745 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1746 | end | |
| 1747 | Part.Parent=nil | |
| 1748 | end),prt,msh) | |
| 1749 | end | |
| 1750 | ||
| 1751 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
| 1752 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1753 | prt.Anchored=true | |
| 1754 | prt.CFrame=cframe*cf(x,y,z) | |
| 1755 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
| |
| 1756 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1757 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
| 1758 | local num=math.random() | |
| 1759 | local num2=math.random(-3,2)+math.random() | |
| 1760 | local numm=0 | |
| 1761 | for i=0,1,delay*2 do | |
| 1762 | swait() | |
| 1763 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
| 1764 | Part.Transparency=i | |
| 1765 | numm=numm+0.01 | |
| 1766 | end | |
| 1767 | Part.Parent=nil | |
| 1768 | Mesh.Parent=nil | |
| 1769 | end),prt,msh,x,y,z) | |
| 1770 | end | |
| 1771 | ||
| 1772 | function dmgstart(dmg,what) | |
| 1773 | hitcon = what.Touched:connect(function(hit) | |
| 1774 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 1775 | if hum and not hum:IsDescendantOf(Character) then | |
| 1776 | hum:TakeDamage(dmg) | |
| 1777 | end | |
| 1778 | end) | |
| 1779 | end | |
| 1780 | ||
| 1781 | function dmgstop() | |
| 1782 | hitcon:disconnect() | |
| 1783 | end | |
| 1784 | ||
| 1785 | function Cloak() | |
| 1786 | Face.Parent=nil | |
| 1787 | cloaked=true | |
| 1788 | for _,v in pairs(Torso.Parent:children()) do | |
| 1789 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 1790 | coroutine.resume(coroutine.create(function() | |
| 1791 | for i=0,1,0.2 do | |
| 1792 | wait() | |
| 1793 | v.Transparency=i | |
| 1794 | end | |
| 1795 | v.Transparency=1 | |
| 1796 | end)) | |
| 1797 | end | |
| 1798 | if v.className=="Hat" then | |
| 1799 | hatp=v.Handle | |
| 1800 | coroutine.resume(coroutine.create(function(derp) | |
| 1801 | for i=0,1,0.2 do | |
| 1802 | wait() | |
| 1803 | derp.Transparency=i | |
| 1804 | end | |
| 1805 | derp.Transparency=1 | |
| 1806 | end),hatp) | |
| 1807 | end | |
| 1808 | end | |
| 1809 | for _,v in pairs(m:children()) do | |
| 1810 | if v.className=="Part" then | |
| 1811 | coroutine.resume(coroutine.create(function() | |
| 1812 | for i=0,1,0.2 do | |
| 1813 | wait() | |
| 1814 | v.Transparency=i | |
| 1815 | end | |
| 1816 | v.Transparency=1 | |
| 1817 | end)) | |
| 1818 | end | |
| 1819 | end | |
| 1820 | end | |
| 1821 | ||
| 1822 | function UnCloak() | |
| 1823 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
| |
| 1824 | Face.Parent=Head | |
| 1825 | cloaked=false | |
| 1826 | for _,v in pairs(Torso.Parent:children()) do | |
| 1827 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 1828 | coroutine.resume(coroutine.create(function() | |
| 1829 | for i=0,1,0.1 do | |
| 1830 | wait() | |
| 1831 | v.Transparency=v.Transparency-0.1 | |
| 1832 | end | |
| 1833 | v.Transparency=0 | |
| 1834 | end)) | |
| 1835 | end | |
| 1836 | if v.className=="Hat" then | |
| 1837 | hatp=v.Handle | |
| 1838 | coroutine.resume(coroutine.create(function(derp) | |
| 1839 | for i=0,1,0.1 do | |
| 1840 | wait() | |
| 1841 | derp.Transparency=derp.Transparency-0.1 | |
| 1842 | end | |
| 1843 | derp.Transparency=0 | |
| 1844 | end),hatp) | |
| 1845 | end | |
| 1846 | end | |
| 1847 | for _,v in pairs(m:children()) do | |
| 1848 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
| 1849 | coroutine.resume(coroutine.create(function() | |
| 1850 | for i=0,1,0.1 do | |
| 1851 | wait() | |
| 1852 | v.Transparency=v.Transparency-0.1 | |
| 1853 | end | |
| 1854 | v.Transparency=0 | |
| 1855 | end)) | |
| 1856 | v.Transparency=0 | |
| 1857 | end | |
| 1858 | end | |
| 1859 | end | |
| 1860 | ||
| 1861 | local origcolor = BrickColor.new("Dark indigo")
| |
| 1862 | ---- This section of explosions. | |
| 1863 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
| 1864 | local expart = Instance.new("Part",char)
| |
| 1865 | local expart2 = Instance.new("Part",char)
| |
| 1866 | local rin = Instance.new("Part",char)
| |
| 1867 | local rin2 = Instance.new("Part",char)
| |
| 1868 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 1869 | partMesh.MeshType = "Sphere" | |
| 1870 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 1871 | partMesh2.MeshType = "Sphere" | |
| 1872 | local partMesh3 = Instance.new("SpecialMesh",rin)
| |
| 1873 | partMesh3.MeshType = "Brick" | |
| 1874 | local partMesh4 = Instance.new("SpecialMesh",rin2)
| |
| 1875 | partMesh4.MeshType = "Brick" | |
| 1876 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
| |
| 1877 | partMesh.Scale = vt(rad,rad,rad) | |
| 1878 | expart.Size = vt(1,1,1) | |
| 1879 | expart.Transparency = 1 | |
| 1880 | expart.Anchored = true | |
| 1881 | expart.Material = "Neon" | |
| 1882 | expart.BrickColor = bc("White")
| |
| 1883 | expart.CFrame = par.CFrame | |
| 1884 | partMesh2.Scale = vt(rad,rad,rad) | |
| 1885 | expart2.Size = vt(1.15,1.15,1.15) | |
| 1886 | expart2.Transparency = 0.75 | |
| 1887 | expart2.Anchored = true | |
| 1888 | expart2.Material = "Glass" | |
| 1889 | expart2.BrickColor = par.BrickColor | |
| 1890 | expart2.CFrame = par.CFrame | |
| 1891 | rin.Size = vt(1.15,1.15,1.15) | |
| 1892 | rin.Transparency = 1 | |
| 1893 | rin.Anchored = true | |
| 1894 | rin.Material = "Neon" | |
| 1895 | rin.BrickColor = par.BrickColor | |
| 1896 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 1897 | rin2.Size = vt(1.15,1.15,1.15) | |
| 1898 | rin2.Transparency = 1 | |
| 1899 | rin2.Anchored = true | |
| 1900 | rin2.Material = "Neon" | |
| 1901 | rin2.BrickColor = par.BrickColor | |
| 1902 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 1903 | partMesh3.Scale = vt(0,1,0) | |
| 1904 | partMesh4.Scale = vt(0,1,0) | |
| 1905 | local dec2 = Instance.new("Decal", rin)
| |
| 1906 | dec2.Face = "Top" | |
| 1907 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 1908 | dec2.Parent = rin | |
| 1909 | local dec2b = dec2:Clone() | |
| 1910 | dec2b.Face = "Bottom" | |
| 1911 | dec2b.Parent = rin | |
| 1912 | ||
| 1913 | local dec2a = Instance.new("Decal", rin2)
| |
| 1914 | dec2a.Face = "Top" | |
| 1915 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 1916 | dec2a.Parent = rin2 | |
| 1917 | local dec2ab = dec2a:Clone() | |
| 1918 | dec2ab.Face = "Bottom" | |
| 1919 | dec2ab.Parent = rin2 | |
| 1920 | expart.CanCollide = false | |
| 1921 | expart2.CanCollide = false | |
| 1922 | rin.CanCollide = false | |
| 1923 | rin2.CanCollide = false | |
| 1924 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
| 1925 | local value = 1*rad/6.5 | |
| 1926 | for i = 0, 199 do | |
| 1927 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 1928 | expart.CFrame = expart.CFrame | |
| 1929 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 1930 | expart2.CFrame = expart.CFrame | |
| 1931 | value = value - 0.035*rad/30 | |
| 1932 | if value < 7.5 then | |
| 1933 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
| 1934 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
| 1935 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
| 1936 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
| 1937 | end | |
| 1938 | if value < 0 then | |
| 1939 | dec2.Transparency = dec2.Transparency + 0.025 | |
| 1940 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
| 1941 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
| 1942 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
| 1943 | expart.Transparency = expart.Transparency + 0.025 | |
| 1944 | expart2.Transparency = expart2.Transparency + 0.025 | |
| 1945 | rin.Transparency = rin.Transparency + 0.025 | |
| 1946 | rin2.Transparency = rin2.Transparency + 0.025 | |
| 1947 | end | |
| 1948 | swait() | |
| 1949 | end | |
| 1950 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 1951 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 1952 | game:GetService("Debris"):AddItem(rin, 1)
| |
| 1953 | game:GetService("Debris"):AddItem(rin2, 1)
| |
| 1954 | end | |
| 1955 | ||
| 1956 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
| 1957 | local expart = Instance.new("Part",char)
| |
| 1958 | local expart2 = Instance.new("Part",char)
| |
| 1959 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 1960 | partMesh.MeshType = "Sphere" | |
| 1961 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 1962 | partMesh2.MeshType = "Sphere" | |
| 1963 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
| |
| 1964 | partMesh.Scale = vt(rad,rad,rad) | |
| 1965 | expart.Size = vt(1,1,1) | |
| 1966 | expart.Transparency = 0 | |
| 1967 | expart.Anchored = true | |
| 1968 | expart.Material = "Neon" | |
| 1969 | expart.BrickColor = bc("White")
| |
| 1970 | expart.CFrame = par.CFrame | |
| 1971 | partMesh2.Scale = vt(rad,rad,rad) | |
| 1972 | expart2.Size = vt(1.15,1.15,1.15) | |
| 1973 | expart2.Transparency = 0.5 | |
| 1974 | expart2.Anchored = true | |
| 1975 | expart2.Material = "Neon" | |
| 1976 | expart2.BrickColor = par.BrickColor | |
| 1977 | expart2.CFrame = par.CFrame | |
| 1978 | expart.CanCollide = false | |
| 1979 | expart2.CanCollide = false | |
| 1980 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
| 1981 | local value = 1*rad/6.5 | |
| 1982 | for i = 0, 75 do | |
| 1983 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 1984 | expart.CFrame = expart.CFrame | |
| 1985 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 1986 | expart2.CFrame = expart.CFrame | |
| 1987 | value = value - 0.035*rad/5 | |
| 1988 | if value < 0 then | |
| 1989 | value = 0 | |
| 1990 | expart.Transparency = expart.Transparency + 0.05 | |
| 1991 | expart2.Transparency = expart2.Transparency + 0.05 | |
| 1992 | end | |
| 1993 | swait() | |
| 1994 | end | |
| 1995 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 1996 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 1997 | end | |
| 1998 | ||
| 1999 | function AreaDanger(rad,par,mindam,maxdam) | |
| 2000 | local expart = Instance.new("Part",char)
| |
| 2001 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 2002 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
| |
| 2003 | partMesh.MeshType = "Sphere" | |
| 2004 | partMesh.Scale = vt(rad,rad,rad) | |
| 2005 | expart.Size = vt(1,1,1) | |
| 2006 | expart.Transparency = 0.5 | |
| 2007 | expart.Anchored = true | |
| 2008 | expart.Material = "Neon" | |
| 2009 | expart.CanCollide = false | |
| 2010 | expart.BrickColor = par.BrickColor | |
| 2011 | expart.CFrame = par.CFrame | |
| 2012 | local value = 1*rad/5 | |
| 2013 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
| 2014 | for i = 0, 14 do | |
| 2015 | wait() | |
| 2016 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2017 | expart.CFrame = expart.CFrame | |
| 2018 | value = value - 0.035*rad | |
| 2019 | if value < 0 then | |
| 2020 | value = 0 | |
| 2021 | end | |
| 2022 | end | |
| 2023 | wait(0.25) | |
| 2024 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
| |
| 2025 | wait(0.5) | |
| 2026 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
| |
| 2027 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
| |
| 2028 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
| 2029 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
| 2030 | for i = 0, 14 do | |
| 2031 | wait() | |
| 2032 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2033 | expart.CFrame = expart.CFrame | |
| 2034 | value = value - 0.035*rad/2 | |
| 2035 | end | |
| 2036 | expart.Transparency = 1 | |
| 2037 | game:GetService("Debris"):AddItem(expart, 5)
| |
| 2038 | end | |
| 2039 | ||
| 2040 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
| 2041 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
| |
| 2042 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
| |
| 2043 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
| |
| 2044 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2045 | MagniDamageWithEffect(par, 25, 5,10, 0, "Normal") | |
| 2046 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
| 2047 | for i = 0, 24 do | |
| 2048 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
| 2049 | end | |
| 2050 | for i = 0, 24 do | |
| 2051 | local expart = Instance.new("Part",char)
| |
| 2052 | expart.Transparency = 1 | |
| 2053 | expart.Anchored = true | |
| 2054 | expart.CanCollide = false | |
| 2055 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
| 2056 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
| |
| 2057 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
| |
| 2058 | MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal") | |
| 2059 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
| 2060 | for i = 0, 9 do | |
| 2061 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
| 2062 | end | |
| 2063 | game:GetService("Debris"):AddItem(expart, 2)
| |
| 2064 | wait(0.1) | |
| 2065 | end | |
| 2066 | end | |
| 2067 | ||
| 2068 | function EXterPlosion(par) | |
| 2069 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
| |
| 2070 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
| |
| 2071 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
| |
| 2072 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2073 | MagniDamageWithEffect(par, 500, 80,99, 0, "Normal") | |
| 2074 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
| 2075 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
| 2076 | for i = 0, 24 do | |
| 2077 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
| 2078 | end | |
| 2079 | for i = 0, 24 do | |
| 2080 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
| 2081 | end | |
| 2082 | end | |
| 2083 | ---- | |
| 2084 | ||
| 2085 | local stackingpower = 1 | |
| 2086 | ||
| 2087 | function HellsCore() | |
| 2088 | attack = true | |
| 2089 | --[[for i = 0,1,0.1 do | |
| 2090 | swait() | |
| 2091 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3) | |
| 2092 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 2093 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
| 2094 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 2095 | end]]-- | |
| 2096 | ||
| 2097 | local rng = Instance.new("Part", char)
| |
| 2098 | CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
| |
| 2099 | rng.Anchored = true | |
| 2100 | rng.BrickColor = origcolor | |
| 2101 | rng.CanCollide = false | |
| 2102 | rng.FormFactor = 3 | |
| 2103 | rng.Name = "Ring" | |
| 2104 | rng.Material = "Neon" | |
| 2105 | rng.Size = Vector3.new(1, 1, 1) | |
| 2106 | rng.Transparency = 1 | |
| 2107 | rng.TopSurface = 0 | |
| 2108 | rng.BottomSurface = 0 | |
| 2109 | rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0) | |
| 2110 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2111 | rngm.MeshType = "Brick" | |
| 2112 | local dec = Instance.new("Decal",rng)
| |
| 2113 | dec.Texture = "http://www.roblox.com/asset/?id=401466968" | |
| 2114 | dec.Face = "Top" | |
| 2115 | local dec2 = dec:Clone() | |
| 2116 | dec2.Parent = rng | |
| 2117 | dec2.Face = "Bottom" | |
| 2118 | ||
| 2119 | local scaler2 = 1 | |
| 2120 | scaler2 = 1*3 | |
| 2121 | for i = 0,10,0.1 do | |
| 2122 | swait() | |
| 2123 | scaler2 = scaler2 - 0.01*3 | |
| 2124 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
| 2125 | end | |
| 2126 | wait(3) | |
| 2127 | for i = 0,10,0.1 do | |
| 2128 | swait() | |
| 2129 | scaler2 = scaler2 - 0.01*3 | |
| 2130 | dec.Transparency = dec.Transparency + 0.01 | |
| 2131 | dec2.Transparency = dec2.Transparency + 0.01 | |
| 2132 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
| 2133 | end | |
| 2134 | rng:Destroy() | |
| 2135 | attack = false | |
| 2136 | end | |
| 2137 | ||
| 2138 | ||
| 2139 | function FaceMouse() | |
| 2140 | Cam = workspace.CurrentCamera | |
| 2141 | return {
| |
| 2142 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 2143 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 2144 | } | |
| 2145 | end | |
| 2146 | ||
| 2147 | function FaceMouse2() | |
| 2148 | Cam = workspace.CurrentCamera | |
| 2149 | return {
| |
| 2150 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
| 2151 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 2152 | } | |
| 2153 | end | |
| 2154 | ||
| 2155 | ||
| 2156 | local HoldingZ = false | |
| 2157 | local HoldingX = false | |
| 2158 | local HoldingC = false | |
| 2159 | local HoldingV = false | |
| 2160 | local HoldingB = false | |
| 2161 | ||
| 2162 | ||
| 2163 | function RingEffect(pos,startsize,size,col) | |
| 2164 | local lb = Instance.new("Part")
| |
| 2165 | lb.Parent = char | |
| 2166 | lb.BrickColor = col | |
| 2167 | lb.CanCollide = false | |
| 2168 | lb.Material = "Neon" | |
| 2169 | lb.Anchored = true | |
| 2170 | lb.TopSurface = 0 | |
| 2171 | lb.BottomSurface = 0 | |
| 2172 | lb.Transparency = 1 | |
| 2173 | lb.Size = vt(1,1,1) | |
| 2174 | lb.CFrame = pos | |
| 2175 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 2176 | thingery.MeshType = "Brick" | |
| 2177 | thingery.Scale = vt(startsize,0.1,startsize) | |
| 2178 | local dec2 = Instance.new("Texture", lb)
| |
| 2179 | dec2.Face = "Top" | |
| 2180 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2181 | dec2.Color3 = lb.Color | |
| 2182 | dec2.Parent = lb | |
| 2183 | dec2.StudsPerTileU = startsize | |
| 2184 | dec2.StudsPerTileV = startsize | |
| 2185 | local dec2b = dec2:Clone() | |
| 2186 | dec2b.Face = "Bottom" | |
| 2187 | dec2b.Parent = lb | |
| 2188 | local randomrot = math.random(1,2) | |
| 2189 | coroutine.resume(coroutine.create(function() | |
| 2190 | for i = 0, 19 do | |
| 2191 | swait() | |
| 2192 | if randomrot == 1 then | |
| 2193 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0) | |
| 2194 | elseif randomrot == 2 then | |
| 2195 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0) | |
| 2196 | end | |
| 2197 | dec2.Transparency = dec2.Transparency + 0.05 | |
| 2198 | dec2b.Transparency = dec2b.Transparency + 0.05 | |
| 2199 | dec2.StudsPerTileU = dec2.StudsPerTileU + size | |
| 2200 | dec2.StudsPerTileV = dec2.StudsPerTileV + size | |
| 2201 | dec2b.StudsPerTileU = dec2b.StudsPerTileU + size | |
| 2202 | dec2b.StudsPerTileV = dec2b.StudsPerTileV + size | |
| 2203 | thingery.Scale = thingery.Scale + vt(size,0,size) | |
| 2204 | end | |
| 2205 | lb:Destroy() | |
| 2206 | end)) | |
| 2207 | end | |
| 2208 | ||
| 2209 | function SlowRingEffect(pos,startsize,size,col) | |
| 2210 | local lb = Instance.new("Part")
| |
| 2211 | lb.Parent = char | |
| 2212 | lb.BrickColor = col | |
| 2213 | lb.CanCollide = false | |
| 2214 | lb.Material = "Neon" | |
| 2215 | lb.Anchored = true | |
| 2216 | lb.TopSurface = 0 | |
| 2217 | lb.BottomSurface = 0 | |
| 2218 | lb.Transparency = 1 | |
| 2219 | lb.Size = vt(1,1,1) | |
| 2220 | lb.CFrame = pos | |
| 2221 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 2222 | thingery.MeshType = "Brick" | |
| 2223 | thingery.Scale = vt(startsize,0.1,startsize) | |
| 2224 | local dec2 = Instance.new("Decal", lb)
| |
| 2225 | dec2.Face = "Top" | |
| 2226 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2227 | dec2.Color3 = lb.Color | |
| 2228 | dec2.Parent = lb | |
| 2229 | local dec2b = dec2:Clone() | |
| 2230 | dec2b.Face = "Bottom" | |
| 2231 | dec2b.Parent = lb | |
| 2232 | local randomrot = math.random(1,2) | |
| 2233 | coroutine.resume(coroutine.create(function() | |
| 2234 | for i = 0, 49 do | |
| 2235 | swait() | |
| 2236 | if randomrot == 1 then | |
| 2237 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0) | |
| 2238 | elseif randomrot == 2 then | |
| 2239 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0) | |
| 2240 | end | |
| 2241 | dec2.Transparency = dec2.Transparency + 0.02 | |
| 2242 | dec2b.Transparency = dec2b.Transparency + 0.02 | |
| 2243 | thingery.Scale = thingery.Scale + vt(size,0,size) | |
| 2244 | end | |
| 2245 | lb:Destroy() | |
| 2246 | end)) | |
| 2247 | end | |
| 2248 | ||
| 2249 | ||
| 2250 | function groundringaa(pos) | |
| 2251 | local rng = Instance.new("Part", char)
| |
| 2252 | rng.Anchored = true | |
| 2253 | rng.BrickColor = origcolor | |
| 2254 | rng.CanCollide = false | |
| 2255 | rng.FormFactor = 3 | |
| 2256 | rng.Name = "Ring" | |
| 2257 | rng.Size = Vector3.new(1, 1, 1) | |
| 2258 | rng.Transparency = 1 | |
| 2259 | rng.TopSurface = 0 | |
| 2260 | rng.BottomSurface = 0 | |
| 2261 | rng.CFrame = pos | |
| 2262 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2263 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2264 | rngm.Scale = Vector3.new(100,100,5) | |
| 2265 | local scaler2 = -10/2 | |
| 2266 | coroutine.resume(coroutine.create(function() | |
| 2267 | for i = 0,10,0.1 do | |
| 2268 | swait() | |
| 2269 | scaler2 = scaler2 + 0.1/2 | |
| 2270 | rng.Transparency = rng.Transparency - 0.01 | |
| 2271 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0) | |
| 2272 | end | |
| 2273 | rng:Destroy() | |
| 2274 | end)) | |
| 2275 | end | |
| 2276 | ||
| 2277 | function groundringbb(pos) | |
| 2278 | local rng = Instance.new("Part", char)
| |
| 2279 | rng.Anchored = true | |
| 2280 | rng.BrickColor = origcolor | |
| 2281 | rng.CanCollide = false | |
| 2282 | rng.FormFactor = 3 | |
| 2283 | rng.Name = "Ring" | |
| 2284 | rng.Size = Vector3.new(1, 1, 1) | |
| 2285 | rng.Transparency = 0 | |
| 2286 | rng.TopSurface = 0 | |
| 2287 | rng.BottomSurface = 0 | |
| 2288 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
| 2289 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
| 2290 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2291 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2292 | rngm.Scale = Vector3.new(0,0,5) | |
| 2293 | local scaler2 = 10 | |
| 2294 | coroutine.resume(coroutine.create(function() | |
| 2295 | for i = 0,10*2,0.1 do | |
| 2296 | swait() | |
| 2297 | scaler2 = scaler2 - 0.1/2 | |
| 2298 | rng.Transparency = rng.Transparency + 0.005 | |
| 2299 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2) | |
| 2300 | end | |
| 2301 | rng:Destroy() | |
| 2302 | end)) | |
| 2303 | end | |
| 2304 | ||
| 2305 | function groundglowaa(pos) | |
| 2306 | local rng = Instance.new("Part", char)
| |
| 2307 | rng.Anchored = true | |
| 2308 | rng.BrickColor = origcolor | |
| 2309 | rng.CanCollide = false | |
| 2310 | rng.FormFactor = 3 | |
| 2311 | rng.Material = "Neon" | |
| 2312 | rng.Name = "Ring" | |
| 2313 | rng.Size = Vector3.new(1, 1, 1) | |
| 2314 | rng.Transparency = 0 | |
| 2315 | rng.TopSurface = 0 | |
| 2316 | rng.BottomSurface = 0 | |
| 2317 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
| 2318 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
| 2319 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2320 | rngm.MeshType = "Sphere" | |
| 2321 | rngm.Scale = Vector3.new(0,0,25) | |
| 2322 | local scaler2 = 10*2 | |
| 2323 | coroutine.resume(coroutine.create(function() | |
| 2324 | for i = 0,10*2,0.1 do | |
| 2325 | swait() | |
| 2326 | scaler2 = scaler2 - 0.1*2/2 | |
| 2327 | rng.Transparency = rng.Transparency + 0.005 | |
| 2328 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0) | |
| 2329 | end | |
| 2330 | rng:Destroy() | |
| 2331 | end)) | |
| 2332 | end | |
| 2333 | ||
| 2334 | function bemaa(pos) | |
| 2335 | local rng = Instance.new("Part", char)
| |
| 2336 | rng.Anchored = true | |
| 2337 | rng.BrickColor = origcolor | |
| 2338 | rng.CanCollide = false | |
| 2339 | rng.FormFactor = 3 | |
| 2340 | rng.Material = "Neon" | |
| 2341 | rng.Name = "Ring" | |
| 2342 | rng.Size = Vector3.new(1, 1, 1) | |
| 2343 | rng.Transparency = 0 | |
| 2344 | rng.TopSurface = 0 | |
| 2345 | rng.BottomSurface = 0 | |
| 2346 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
| 2347 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
| 2348 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2349 | rngm.MeshType = "Sphere" | |
| 2350 | rngm.Scale = Vector3.new(0,0,10000) | |
| 2351 | local scaler2 = 1 | |
| 2352 | coroutine.resume(coroutine.create(function() | |
| 2353 | for i = 0,99,0.1 do | |
| 2354 | swait() | |
| 2355 | scaler2 = scaler2 - 0.0025 | |
| 2356 | rng.Transparency = rng.Transparency + 0.0025 | |
| 2357 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0) | |
| 2358 | end | |
| 2359 | rng:Destroy() | |
| 2360 | end)) | |
| 2361 | end | |
| 2362 | ||
| 2363 | function bemaashake(pos) | |
| 2364 | local rng = Instance.new("Part", char)
| |
| 2365 | rng.Anchored = true | |
| 2366 | rng.BrickColor = origcolor | |
| 2367 | rng.CanCollide = false | |
| 2368 | rng.FormFactor = 3 | |
| 2369 | rng.Material = "Neon" | |
| 2370 | rng.Name = "Ring" | |
| 2371 | rng.Size = Vector3.new(1, 1, 1) | |
| 2372 | rng.Transparency = 0 | |
| 2373 | rng.TopSurface = 0 | |
| 2374 | rng.BottomSurface = 0 | |
| 2375 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
| 2376 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
| 2377 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2378 | rngm.MeshType = "Sphere" | |
| 2379 | local oof = Instance.new("Part",char)
| |
| 2380 | oof.Parent = rng | |
| 2381 | oof.CFrame = rng.CFrame | |
| 2382 | oof.CanCollide = false | |
| 2383 | oof.Anchored = true | |
| 2384 | oof.Transparency = 1 | |
| 2385 | rngm.Scale = Vector3.new(0,0,10000) | |
| 2386 | local scaler2 = 1*10 | |
| 2387 | coroutine.resume(coroutine.create(function() | |
| 2388 | for i = 0,99,0.1 do | |
| 2389 | swait() | |
| 2390 | scaler2 = scaler2 - 0.0025*10 | |
| 2391 | rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1)) | |
| 2392 | rng.Transparency = rng.Transparency + 0.0025 | |
| 2393 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0) | |
| 2394 | end | |
| 2395 | rng:Destroy() | |
| 2396 | end)) | |
| 2397 | end | |
| 2398 | ||
| 2399 | function groundringlarge(pos) | |
| 2400 | local rng = Instance.new("Part", char)
| |
| 2401 | rng.Anchored = true | |
| 2402 | rng.BrickColor = origcolor | |
| 2403 | rng.CanCollide = false | |
| 2404 | rng.FormFactor = 3 | |
| 2405 | rng.Name = "Ring" | |
| 2406 | rng.Size = Vector3.new(1, 1, 1) | |
| 2407 | rng.Transparency = 0 | |
| 2408 | rng.TopSurface = 0 | |
| 2409 | rng.BottomSurface = 0 | |
| 2410 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
| 2411 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
| 2412 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2413 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2414 | rngm.Scale = Vector3.new(0,0,5) | |
| 2415 | local scaler2 = 10*10 | |
| 2416 | coroutine.resume(coroutine.create(function() | |
| 2417 | for i = 0,10*2,0.1 do | |
| 2418 | swait() | |
| 2419 | scaler2 = scaler2 - 0.1*10/2 | |
| 2420 | rng.Transparency = rng.Transparency + 0.005 | |
| 2421 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2) | |
| 2422 | end | |
| 2423 | rng:Destroy() | |
| 2424 | end)) | |
| 2425 | end | |
| 2426 | ||
| 2427 | function sphere(bonuspeed,type,pos,scale,value,color) | |
| 2428 | local type = type | |
| 2429 | local rng = Instance.new("Part", char)
| |
| 2430 | rng.Anchored = true | |
| 2431 | rng.BrickColor = color | |
| 2432 | rng.CanCollide = false | |
| 2433 | rng.FormFactor = 3 | |
| 2434 | rng.Name = "Ring" | |
| 2435 | rng.Material = "Neon" | |
| 2436 | rng.Size = Vector3.new(1, 1, 1) | |
| 2437 | rng.Transparency = 0 | |
| 2438 | rng.TopSurface = 0 | |
| 2439 | rng.BottomSurface = 0 | |
| 2440 | rng.CFrame = pos | |
| 2441 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2442 | rngm.MeshType = "Sphere" | |
| 2443 | rngm.Scale = scale | |
| 2444 | local scaler2 = 1 | |
| 2445 | if type == "Add" then | |
| 2446 | scaler2 = 1*value | |
| 2447 | elseif type == "Divide" then | |
| 2448 | scaler2 = 1/value | |
| 2449 | end | |
| 2450 | coroutine.resume(coroutine.create(function() | |
| 2451 | for i = 0,10/bonuspeed,0.1 do | |
| 2452 | swait() | |
| 2453 | if type == "Add" then | |
| 2454 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2455 | elseif type == "Divide" then | |
| 2456 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2457 | end | |
| 2458 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2459 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 2460 | end | |
| 2461 | rng:Destroy() | |
| 2462 | end)) | |
| 2463 | end | |
| 2464 | Humanoid.Animator.Parent = nil | |
| 2465 | ||
| 2466 | function AppearMutatedLimbs() | |
| 2467 | hum.WalkSpeed = 0 | |
| 2468 | hum.MaxHealth = math.huge | |
| 2469 | attack = true | |
| 2470 | for i = 0,14,0.1 do | |
| 2471 | swait() | |
| 2472 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
| 2473 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
| 2474 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
| 2475 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1) | |
| 2476 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1) | |
| 2477 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1) | |
| 2478 | end | |
| 2479 | for i = 0,8,0.1 do | |
| 2480 | swait() | |
| 2481 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
| 2482 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
| 2483 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
| 2484 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(20)),.1) | |
| 2485 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1) | |
| 2486 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1) | |
| 2487 | end | |
| 2488 | for i = 0,2,0.1 do | |
| 2489 | swait() | |
| 2490 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2491 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2492 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
| 2493 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 2494 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
| 2495 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4) | |
| 2496 | end | |
| 2497 | for i, v in pairs(MutantParts:GetChildren()) do | |
| 2498 | if v:IsA("Part") then
| |
| 2499 | v.Transparency = 0 | |
| 2500 | end | |
| 2501 | end | |
| 2502 | local bld = Instance.new("ParticleEmitter",larm)
| |
| 2503 | bld.LightEmission = 0.1 | |
| 2504 | bld.Texture = "rbxassetid://284205403" | |
| 2505 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2506 | bld.Rate = 500 | |
| 2507 | bld.Lifetime = NumberRange.new(1) | |
| 2508 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2509 | bld.Acceleration = vt(0,-25,0) | |
| 2510 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2511 | bld.Speed = NumberRange.new(10,25) | |
| 2512 | bld.EmissionDirection = "Bottom" | |
| 2513 | bld.VelocitySpread = 100 | |
| 2514 | bld.Rotation = NumberRange.new(-500,500) | |
| 2515 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2516 | local bldef = Instance.new("ParticleEmitter",larm)
| |
| 2517 | bldef.LightEmission = 0.1 | |
| 2518 | bldef.Texture = "rbxassetid://284205403" | |
| 2519 | bldef.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2520 | bldef.Rate = 25 | |
| 2521 | bldef.Lifetime = NumberRange.new(1) | |
| 2522 | bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
| |
| 2523 | bldef.Acceleration = vt(0,-5,0) | |
| 2524 | bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2525 | bldef.Speed = NumberRange.new(0,0,0) | |
| 2526 | bldef.EmissionDirection = "Bottom" | |
| 2527 | bldef.VelocitySpread = 150 | |
| 2528 | bldef.Rotation = NumberRange.new(-500,500) | |
| 2529 | bldef.RotSpeed = NumberRange.new(-500,500) | |
| 2530 | game:GetService("Debris"):AddItem(bld,3)
| |
| 2531 | CFuncs["Sound"].Create("rbxassetid://429400881", larm, 2.5, 1)
| |
| 2532 | CFuncs["Sound"].Create("rbxassetid://206082327", larm, 0.75, 1)
| |
| 2533 | for i = 0,1,0.1 do | |
| 2534 | swait() | |
| 2535 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 2536 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 2537 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-60)),.8) | |
| 2538 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(60)),.8) | |
| 2539 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 2540 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.8) | |
| 2541 | end | |
| 2542 | bld.Enabled = false | |
| 2543 | attack = false | |
| 2544 | hum.WalkSpeed = 6 | |
| 2545 | end | |
| 2546 | ||
| 2547 | function AppearMutatedLimbs2() | |
| 2548 | hum.WalkSpeed = 0 | |
| 2549 | attack = true | |
| 2550 | LeftModeUnlocked = true | |
| 2551 | for i = 0,8,0.1 do | |
| 2552 | swait() | |
| 2553 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
| 2554 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
| 2555 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
| 2556 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.1) | |
| 2557 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.1) | |
| 2558 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1) | |
| 2559 | end | |
| 2560 | for i = 0,2,0.1 do | |
| 2561 | swait() | |
| 2562 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2563 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2564 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-90)),.4) | |
| 2565 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4) | |
| 2566 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(20 + 10 * math.cos(sine / 1))),.4) | |
| 2567 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.4) | |
| 2568 | end | |
| 2569 | for i, v in pairs(MutantParts2:GetChildren()) do | |
| 2570 | if v:IsA("Part") then
| |
| 2571 | v.Transparency = 0 | |
| 2572 | end | |
| 2573 | end | |
| 2574 | local bld = Instance.new("ParticleEmitter",rarm)
| |
| 2575 | bld.LightEmission = 0.1 | |
| 2576 | bld.Texture = "rbxassetid://284205403" | |
| 2577 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2578 | bld.Rate = 500 | |
| 2579 | bld.Lifetime = NumberRange.new(1) | |
| 2580 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2581 | bld.Acceleration = vt(0,-25,0) | |
| 2582 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2583 | bld.Speed = NumberRange.new(10,25) | |
| 2584 | bld.EmissionDirection = "Bottom" | |
| 2585 | bld.VelocitySpread = 100 | |
| 2586 | bld.Rotation = NumberRange.new(-500,500) | |
| 2587 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2588 | local bldef = Instance.new("ParticleEmitter",rarm)
| |
| 2589 | bldef.LightEmission = 0.1 | |
| 2590 | bldef.Texture = "rbxassetid://284205403" | |
| 2591 | bldef.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2592 | bldef.Rate = 25 | |
| 2593 | bldef.Lifetime = NumberRange.new(1) | |
| 2594 | bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
| |
| 2595 | bldef.Acceleration = vt(0,-5,0) | |
| 2596 | bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2597 | bldef.Speed = NumberRange.new(0,0,0) | |
| 2598 | bldef.EmissionDirection = "Bottom" | |
| 2599 | bldef.VelocitySpread = 150 | |
| 2600 | bldef.Rotation = NumberRange.new(-500,500) | |
| 2601 | bldef.RotSpeed = NumberRange.new(-500,500) | |
| 2602 | game:GetService("Debris"):AddItem(bld,3)
| |
| 2603 | CFuncs["Sound"].Create("rbxassetid://429400881", rarm, 2.5, 1)
| |
| 2604 | CFuncs["Sound"].Create("rbxassetid://206082327", rarm, 0.75, 1)
| |
| 2605 | for i = 0,1,0.1 do | |
| 2606 | swait() | |
| 2607 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.8) | |
| 2608 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.8) | |
| 2609 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.8) | |
| 2610 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.8) | |
| 2611 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.8) | |
| 2612 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.8) | |
| 2613 | end | |
| 2614 | bld.Enabled = false | |
| 2615 | attack = false | |
| 2616 | hum.WalkSpeed = 6 | |
| 2617 | end | |
| 2618 | ||
| 2619 | function TargetSelect(person) | |
| 2620 | local dd=coroutine.wrap(function() | |
| 2621 | if targetted ~= person then | |
| 2622 | targetted = person | |
| 2623 | img2.Size = UDim2.new(1,0,1,0) | |
| 2624 | img2.ImageTransparency = 0 | |
| 2625 | img2.Position = UDim2.new(0,0,0,0) | |
| 2626 | img2.ImageColor3 = Color3.new(0,0,0) | |
| 2627 | for i = 0, 2, 0.1 do | |
| 2628 | swait() | |
| 2629 | img2.Size = img2.Size + UDim2.new(.05,0,.05,0) | |
| 2630 | img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0) | |
| 2631 | img2.ImageTransparency = img2.ImageTransparency + 0.05 | |
| 2632 | end | |
| 2633 | end | |
| 2634 | end) | |
| 2635 | dd() | |
| 2636 | end | |
| 2637 | ||
| 2638 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 2639 | if SinglePlayer then | |
| 2640 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 2641 | end | |
| 2642 | local List = {}
| |
| 2643 | for i, v in pairs(workspace:GetChildren()) do | |
| 2644 | if v:IsA("Model") then
| |
| 2645 | if v:findFirstChild("Torso") then
| |
| 2646 | if v ~= Character then | |
| 2647 | if (v.Torso.Position - Position).magnitude <= Distance then | |
| 2648 | table.insert(List, v) | |
| 2649 | end | |
| 2650 | end | |
| 2651 | end | |
| 2652 | end | |
| 2653 | end | |
| 2654 | return List | |
| 2655 | end | |
| 2656 | ||
| 2657 | function LockOn() | |
| 2658 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2659 | TargetSelect(Mouse.Target.Parent) | |
| 2660 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
| |
| 2661 | elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
| |
| 2662 | TargetSelect(Mouse.Target.Parent) | |
| 2663 | if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
| |
| 2664 | targetted = nil | |
| 2665 | end | |
| 2666 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
| |
| 2667 | end | |
| 2668 | end | |
| 2669 | ||
| 2670 | function dmg(dude) | |
| 2671 | if dude.Name ~= Character then | |
| 2672 | local bgf = Instance.new("BodyGyro",dude.Head)
| |
| 2673 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
| 2674 | local val = Instance.new("BoolValue",dude)
| |
| 2675 | val.Name = "IsHit" | |
| 2676 | local ds = coroutine.wrap(function() | |
| 2677 | if dude.Name ~= "isaacsantamaria01" then | |
| 2678 | killcount = killcount + 1 | |
| 2679 | dude:WaitForChild("Torso"):BreakJoints()
| |
| 2680 | wait(0.5) | |
| 2681 | targetted = nil | |
| 2682 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
| |
| 2683 | coroutine.resume(coroutine.create(function() | |
| 2684 | for i, v in pairs(dude:GetChildren()) do | |
| 2685 | if v:IsA("Accessory") then
| |
| 2686 | v:Destroy() | |
| 2687 | end | |
| 2688 | if v:IsA("Humanoid") then
| |
| 2689 | v:Destroy() | |
| 2690 | end | |
| 2691 | if v:IsA("CharacterMesh") then
| |
| 2692 | v:Destroy() | |
| 2693 | end | |
| 2694 | if v:IsA("Model") then
| |
| 2695 | v:Destroy() | |
| 2696 | end | |
| 2697 | if v:IsA("Part") then
| |
| 2698 | for x, o in pairs(v:GetChildren()) do | |
| 2699 | if o:IsA("Decal") then
| |
| 2700 | o:Destroy() | |
| 2701 | end | |
| 2702 | end | |
| 2703 | coroutine.resume(coroutine.create(function() | |
| 2704 | v.Material = "Neon" | |
| 2705 | v.CanCollide = false | |
| 2706 | local bld = Instance.new("ParticleEmitter",v)
| |
| 2707 | bld.LightEmission = 1 | |
| 2708 | bld.Texture = "rbxassetid://284205403" | |
| 2709 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2710 | bld.Rate = 50 | |
| 2711 | bld.Lifetime = NumberRange.new(1) | |
| 2712 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2713 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2714 | bld.Speed = NumberRange.new(0,0,0) | |
| 2715 | bld.Rotation = NumberRange.new(-500,500) | |
| 2716 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2717 | local sbs = Instance.new("BodyPosition", v)
| |
| 2718 | sbs.P = 3000 | |
| 2719 | sbs.D = 1000 | |
| 2720 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 2721 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 2722 | v.Color = Color3.new(0,0,0) | |
| 2723 | end)) | |
| 2724 | coroutine.resume(coroutine.create(function() | |
| 2725 | for i = 0, 49 do | |
| 2726 | swait(1) | |
| 2727 | v.Transparency = v.Transparency + 0.02 | |
| 2728 | end | |
| 2729 | v:Destroy() | |
| 2730 | dude:Destroy() | |
| 2731 | end)) | |
| 2732 | end | |
| 2733 | end | |
| 2734 | end)) | |
| 2735 | else | |
| 2736 | bgf:Destroy() | |
| 2737 | sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
| |
| 2738 | end | |
| 2739 | end) | |
| 2740 | ds() | |
| 2741 | end | |
| 2742 | end | |
| 2743 | ||
| 2744 | ||
| 2745 | local Grabbed = false | |
| 2746 | ||
| 2747 | function QuickStab() | |
| 2748 | attack = true | |
| 2749 | hum.WalkSpeed = 0 | |
| 2750 | swait(1) | |
| 2751 | CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
| |
| 2752 | RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3) | |
| 2753 | if targetted.Name ~= "isaacsantamaria01" then | |
| 2754 | local grab = nil | |
| 2755 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 5)) do | |
| 2756 | if v:FindFirstChild('Head') then
| |
| 2757 | Grabbed = true | |
| 2758 | grab = v | |
| 2759 | end | |
| 2760 | end | |
| 2761 | if Grabbed == true then | |
| 2762 | for i = 0,2,0.1 do | |
| 2763 | swait() | |
| 2764 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2765 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2766 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
| 2767 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 2768 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
| 2769 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4) | |
| 2770 | end | |
| 2771 | dmg(grab) | |
| 2772 | local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
| |
| 2773 | bld.LightEmission = 0.1 | |
| 2774 | bld.Texture = "rbxassetid://284205403" | |
| 2775 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2776 | bld.Rate = 500 | |
| 2777 | bld.Lifetime = NumberRange.new(1) | |
| 2778 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2779 | bld.Acceleration = vt(0,-25,0) | |
| 2780 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2781 | bld.Speed = NumberRange.new(10,50) | |
| 2782 | bld.EmissionDirection = "Front" | |
| 2783 | bld.VelocitySpread = 25 | |
| 2784 | bld.Rotation = NumberRange.new(-500,500) | |
| 2785 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2786 | game:GetService("Debris"):AddItem(bld,3)
| |
| 2787 | CFuncs["Sound"].Create("rbxassetid://206082327", targetted.Torso, 2.5, 0.9)
| |
| 2788 | for i = 0,1,0.1 do | |
| 2789 | swait() | |
| 2790 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 2791 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 2792 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
| 2793 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
| 2794 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 2795 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8) | |
| 2796 | end | |
| 2797 | bld.Enabled = false | |
| 2798 | end | |
| 2799 | else | |
| 2800 | for i = 0,8,0.1 do | |
| 2801 | swait() | |
| 2802 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2803 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2804 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(60)),.4) | |
| 2805 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.8) | |
| 2806 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
| 2807 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(60 - 5 * math.cos(sine / 1))),.4) | |
| 2808 | end | |
| 2809 | local randomized = math.random(1,3) | |
| 2810 | if randomized == 1 then | |
| 2811 | chatfunc("No... i cant.",Color3.new(0.5,0,0))
| |
| 2812 | elseif randomized == 2 then | |
| 2813 | chatfunc("Why would i do this...",Color3.new(0.5,0,0))
| |
| 2814 | elseif randomized == 3 then | |
| 2815 | chatfunc("Oh... i thought you're my enemy...",Color3.new(0.5,0,0))
| |
| 2816 | end | |
| 2817 | --[[for i = 0,3,0.1 do | |
| 2818 | swait() | |
| 2819 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2820 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2821 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
| 2822 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8) | |
| 2823 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
| 2824 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4) | |
| 2825 | end]]-- | |
| 2826 | end | |
| 2827 | Grabbed = false | |
| 2828 | attack = false | |
| 2829 | hum.WalkSpeed = 6 | |
| 2830 | end | |
| 2831 | ||
| 2832 | ||
| 2833 | function BlinkingStab() | |
| 2834 | attack = true | |
| 2835 | hum.WalkSpeed = 0 | |
| 2836 | swait(1) | |
| 2837 | if targetted.Name ~= "isaacsantamaria01" then | |
| 2838 | for i = 0,2,0.1 do | |
| 2839 | swait() | |
| 2840 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2841 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2842 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4) | |
| 2843 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
| 2844 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
| 2845 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4) | |
| 2846 | end | |
| 2847 | RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,2) | |
| 2848 | CFuncs["Sound"].Create("rbxassetid://743521497", char, 1, 1)
| |
| 2849 | dmg(targetted) | |
| 2850 | local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
| |
| 2851 | bld.LightEmission = 0.1 | |
| 2852 | bld.Texture = "rbxassetid://284205403" | |
| 2853 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2854 | bld.Rate = 500 | |
| 2855 | bld.Lifetime = NumberRange.new(1) | |
| 2856 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2857 | bld.Acceleration = vt(0,-25,0) | |
| 2858 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2859 | bld.Speed = NumberRange.new(10,50) | |
| 2860 | bld.EmissionDirection = "Front" | |
| 2861 | bld.VelocitySpread = 25 | |
| 2862 | bld.Rotation = NumberRange.new(-500,500) | |
| 2863 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2864 | game:GetService("Debris"):AddItem(bld,3)
| |
| 2865 | CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Torso, 1,1)
| |
| 2866 | for i = 0,1,0.1 do | |
| 2867 | swait() | |
| 2868 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 2869 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 2870 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
| 2871 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
| 2872 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 2873 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8) | |
| 2874 | end | |
| 2875 | bld.Enabled = false | |
| 2876 | else | |
| 2877 | for i = 0,8,0.1 do | |
| 2878 | swait() | |
| 2879 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2880 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2881 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4) | |
| 2882 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
| 2883 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
| 2884 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4) | |
| 2885 | end | |
| 2886 | local randomized = math.random(1,3) | |
| 2887 | if randomized == 1 then | |
| 2888 | chatfunc("Wait.. a minute... wrong guy...",Color3.new(0.5,0,0))
| |
| 2889 | elseif randomized == 2 then | |
| 2890 | chatfunc("I forgot about you...",Color3.new(0.5,0,0))
| |
| 2891 | elseif randomized == 3 then | |
| 2892 | chatfunc("Oh. sorry...",Color3.new(0.5,0,0))
| |
| 2893 | end | |
| 2894 | --[[for i = 0,3,0.1 do | |
| 2895 | swait() | |
| 2896 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2897 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 2898 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
| 2899 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8) | |
| 2900 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
| 2901 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4) | |
| 2902 | end]]-- | |
| 2903 | end | |
| 2904 | attack = false | |
| 2905 | hum.WalkSpeed = 6 | |
| 2906 | end | |
| 2907 | ||
| 2908 | ||
| 2909 | function Tele() | |
| 2910 | sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
| |
| 2911 | sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
| |
| 2912 | CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
| |
| 2913 | RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3) | |
| 2914 | sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
| |
| 2915 | sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
| |
| 2916 | end | |
| 2917 | ||
| 2918 | function uhhnolikeokthen() | |
| 2919 | hum.WalkSpeed = 0 | |
| 2920 | attack = true | |
| 2921 | CFuncs["Sound"].Create("rbxassetid://163315655", root, 1,1)
| |
| 2922 | for i = 0,10,0.1 do | |
| 2923 | swait() | |
| 2924 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
| 2925 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
| 2926 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
| 2927 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1) | |
| 2928 | RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1) | |
| 2929 | LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1) | |
| 2930 | end | |
| 2931 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("White"))
| |
| 2932 | sphere(6,"Add",root.CFrame,vt(0,0,0),0.5,BrickColor.new("White"))
| |
| 2933 | sphere(9,"Add",root.CFrame,vt(0,0,0),0.75,BrickColor.new("White"))
| |
| 2934 | CFuncs["Sound"].Create("rbxassetid://1213175909", root, 3,1)
| |
| 2935 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2,1)
| |
| 2936 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2,0.9)
| |
| 2937 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 25)) do | |
| 2938 | if v:FindFirstChild('Torso') then
| |
| 2939 | dmg(v) | |
| 2940 | CFuncs["Sound"].Create("rbxassetid://206082327", v.Torso, 1, 0.9)
| |
| 2941 | local bld = Instance.new("ParticleEmitter",v.Torso)
| |
| 2942 | bld.LightEmission = 0.1 | |
| 2943 | bld.Texture = "rbxassetid://284205403" | |
| 2944 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 2945 | bld.Rate = 500 | |
| 2946 | bld.Lifetime = NumberRange.new(1) | |
| 2947 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2948 | bld.Acceleration = vt(0,-25,0) | |
| 2949 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2950 | bld.Speed = NumberRange.new(10,50) | |
| 2951 | bld.EmissionDirection = "Front" | |
| 2952 | bld.VelocitySpread = 2500 | |
| 2953 | bld.Rotation = NumberRange.new(-500,500) | |
| 2954 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2955 | coroutine.resume(coroutine.create(function() | |
| 2956 | swait(4) | |
| 2957 | bld.Enabled = false | |
| 2958 | game:GetService("Debris"):AddItem(bld,3)
| |
| 2959 | end)) | |
| 2960 | end | |
| 2961 | end | |
| 2962 | for i = 0,28,0.1 do | |
| 2963 | swait() | |
| 2964 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
| 2965 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
| 2966 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 2967 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5) | |
| 2968 | RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5) | |
| 2969 | LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5) | |
| 2970 | end | |
| 2971 | attack = false | |
| 2972 | hum.WalkSpeed = 6 | |
| 2973 | end | |
| 2974 | ||
| 2975 | function deadworld() | |
| 2976 | hum.WalkSpeed = 0 | |
| 2977 | attack = true | |
| 2978 | chatfunc("You... you will regret this!",Color3.new(0.5,0,0))
| |
| 2979 | for i = 0,10,0.1 do | |
| 2980 | swait() | |
| 2981 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
| 2982 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
| 2983 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
| 2984 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1) | |
| 2985 | RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1) | |
| 2986 | LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1) | |
| 2987 | end | |
| 2988 | coroutine.resume(coroutine.create(function() | |
| 2989 | CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1)
| |
| 2990 | sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 2991 | sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 2992 | sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 2993 | coroutine.resume(coroutine.create(function() | |
| 2994 | for i = 0, 9 do | |
| 2995 | swait(3) | |
| 2996 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
| |
| 2997 | end | |
| 2998 | end)) | |
| 2999 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1)
| |
| 3000 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1)
| |
| 3001 | local blastpitch = 1 | |
| 3002 | for i = 0,2 do | |
| 3003 | wait(1.5) | |
| 3004 | sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3005 | sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3006 | sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
| |
| 3007 | coroutine.resume(coroutine.create(function() | |
| 3008 | for i = 0, 9 do | |
| 3009 | swait(3) | |
| 3010 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
| |
| 3011 | end | |
| 3012 | end)) | |
| 3013 | blastpitch = blastpitch - 0.15 | |
| 3014 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch)
| |
| 3015 | end | |
| 3016 | wait(2) | |
| 3017 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do | |
| 3018 | if v:FindFirstChild('Torso') then
| |
| 3019 | dmg(v) | |
| 3020 | end | |
| 3021 | end | |
| 3022 | tors:Destroy() | |
| 3023 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75)
| |
| 3024 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5)
| |
| 3025 | sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
| |
| 3026 | sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
| |
| 3027 | sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
| |
| 3028 | coroutine.resume(coroutine.create(function() | |
| 3029 | for i = 0, 49 do | |
| 3030 | swait(3) | |
| 3031 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-175,175),math.random(-175,175),math.random(-175,175)),vt(0,0,0),2,BrickColor.new("Really red"))
| |
| 3032 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-375,375),math.random(-375,375),math.random(-375,375)),vt(0,0,0),8,BrickColor.new("Really red"))
| |
| 3033 | end | |
| 3034 | end)) | |
| 3035 | end)) | |
| 3036 | for i = 0,280,0.1 do | |
| 3037 | swait() | |
| 3038 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
| 3039 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
| 3040 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 3041 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5) | |
| 3042 | RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5) | |
| 3043 | LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5) | |
| 3044 | end | |
| 3045 | attack = false | |
| 3046 | hum.WalkSpeed = 6 | |
| 3047 | end | |
| 3048 | coroutine.resume(coroutine.create(function() | |
| 3049 | AppearMutatedLimbs() | |
| 3050 | end)) | |
| 3051 | ||
| 3052 | mouse.Button1Down:connect(function() | |
| 3053 | if attack == false and targetted ~= nil then | |
| 3054 | BlinkingStab() | |
| 3055 | end | |
| 3056 | end) | |
| 3057 | ||
| 3058 | mouse.KeyDown:connect(function(k) | |
| 3059 | if k == "q" and attack == false then | |
| 3060 | LockOn() | |
| 3061 | end | |
| 3062 | if k == "e" and attack == false and targetted ~= nil then | |
| 3063 | Tele() | |
| 3064 | end | |
| 3065 | if k == "z" and attack == false and targetted ~= nil then | |
| 3066 | QuickStab() | |
| 3067 | end | |
| 3068 | if k == "x" and attack == false then | |
| 3069 | uhhnolikeokthen() | |
| 3070 | end | |
| 3071 | if k == "l" and attack == false and unlockedA == true and LeftModeUnlocked == false then | |
| 3072 | AppearMutatedLimbs2() | |
| 3073 | end | |
| 3074 | if k == "p" and attack == false and unlockedX == true then | |
| 3075 | deadworld() | |
| 3076 | end | |
| 3077 | if k == "t" and attack == false and plr.Name == "isaacsantamaria01" then | |
| 3078 | attack = true | |
| 3079 | chatfunc("HAH",Color3.new(0.5,0,0))
| |
| 3080 | CFuncs["Sound"].Create("rbxassetid://695281161", root, 5,1.4)
| |
| 3081 | for i = 0, 1, 0.1 do | |
| 3082 | swait() | |
| 3083 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.9) | |
| 3084 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.9) | |
| 3085 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.9) | |
| 3086 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.9) | |
| 3087 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(10)),.9) | |
| 3088 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(-10)),.9) | |
| 3089 | end | |
| 3090 | attack = false | |
| 3091 | end | |
| 3092 | end) | |
| 3093 | idleanim=.4 | |
| 3094 | while true do | |
| 3095 | swait() | |
| 3096 | imgl.Rotation = imgl.Rotation + 3 | |
| 3097 | imgl2.Rotation = imgl2.Rotation - 3 | |
| 3098 | img2.Rotation = img2.Rotation - 3 | |
| 3099 | if targetted ~= nil then | |
| 3100 | abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 3101 | abss.Enabled = true | |
| 3102 | elseif targetted == nil then | |
| 3103 | abss.Adornee = nil | |
| 3104 | abss.Enabled = false | |
| 3105 | end | |
| 3106 | while true and imgl.Rotation >= 360 do | |
| 3107 | imgl.Rotation = 0 | |
| 3108 | imgl2.Rotation = 0 | |
| 3109 | img2.Rotation = 0 | |
| 3110 | end | |
| 3111 | uhh.Rotation = math.random(-1,1) | |
| 3112 | uhh.Position = UDim2.new(-0.15, 0, 0.35, 0) + UDim2.new(0,math.random(-1,1),0,math.random(-1,1)) | |
| 3113 | uhh.Text = "Kills : " ..killcount | |
| 3114 | if killcount < maxA then | |
| 3115 | uhh2.Text = "Required kills for second mutated arm: " ..requirekillA-killcount | |
| 3116 | elseif killcount >= maxA then | |
| 3117 | unlockedA = true | |
| 3118 | uhh2.Text = "Second mutated arm unlocked. (L)" | |
| 3119 | end | |
| 3120 | if killcount < maxX then | |
| 3121 | uhh3.Text = "Required kills for the end: " ..requirekillX-killcount | |
| 3122 | elseif killcount >= maxX then | |
| 3123 | unlockedX = true | |
| 3124 | uhh3.Text = "The end unlocked. (P to activate)" | |
| 3125 | end | |
| 3126 | sine = sine + change | |
| 3127 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 3128 | local velderp=RootPart.Velocity.y | |
| 3129 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 3130 | if equipped==true or equipped==false then | |
| 3131 | if attack==false then | |
| 3132 | idle=idle+1 | |
| 3133 | else | |
| 3134 | idle=0 | |
| 3135 | end | |
| 3136 | if idle>=500 then | |
| 3137 | if attack==false then | |
| 3138 | --Sheath() | |
| 3139 | end | |
| 3140 | end | |
| 3141 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 3142 | Anim="Jump" | |
| 3143 | if attack==false then | |
| 3144 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
| 3145 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
| 3146 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
| 3147 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
| 3148 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
| 3149 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
| 3150 | end | |
| 3151 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 3152 | Anim="Fall" | |
| 3153 | if attack==false then | |
| 3154 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
| 3155 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
| 3156 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3157 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3158 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
| 3159 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
| 3160 | end | |
| 3161 | elseif torvel<1 and hitfloor~=nil then | |
| 3162 | Anim="Idle" | |
| 3163 | if attack==false then | |
| 3164 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
| 3165 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
| 3166 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
| 3167 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 - 10 * math.cos(sine / 1))),.1) | |
| 3168 | if LeftModeUnlocked == false then | |
| 3169 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1) | |
| 3170 | else | |
| 3171 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1) | |
| 3172 | end | |
| 3173 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1) | |
| 3174 | end | |
| 3175 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 3176 | Anim="Walk" | |
| 3177 | if attack==false then | |
| 3178 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10 + 40 * math.cos(sine / 18))),.1) | |
| 3179 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 40 * math.cos(sine / 18))),.1) | |
| 3180 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
| 3181 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1) | |
| 3182 | if LeftModeUnlocked == false then | |
| 3183 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 40 * math.cos(sine / 18)),math.rad(0),math.rad(10)),.1) | |
| 3184 | else | |
| 3185 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1) | |
| 3186 | end | |
| 3187 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1) | |
| 3188 | end | |
| 3189 | elseif torvel>=22 and hitfloor~=nil then | |
| 3190 | Anim="Run" | |
| 3191 | if attack==false then | |
| 3192 | RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
| 3193 | LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
| 3194 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1) | |
| 3195 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1) | |
| 3196 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1) | |
| 3197 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1) | |
| 3198 | end | |
| 3199 | end | |
| 3200 | end | |
| 3201 | end |