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