SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by iPxter | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | - | local Plr = Plrs.LocalPlayer |
| 14 | + | --Fake event to make stuff like Mouse.KeyDown work |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=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 | - | local Mouse = Plr:GetMouse() |
| 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 and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | wait(0.016666666666667) | |
| 88 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
| |
| 89 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
| |
| 90 | local C3 = {tRGB= function(c3) return c3.r*255,c3.g*255,c3.b*255 end,N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
| |
| 91 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
| |
| 92 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
| |
| 93 | local R3 = {N=Region3.new}
| |
| 94 | local De = S.Debris | |
| 95 | local WS = workspace | |
| 96 | local Lght = S.Lighting | |
| 97 | local RepS = S.ReplicatedStorage | |
| 98 | local IN = Instance.new | |
| 99 | local Plrs = S.Players | |
| 100 | local Plr = owner | |
| 101 | local Char = Plr.Character | |
| 102 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
| 103 | local RArm = Char["Right Arm"] | |
| 104 | local LArm = Char["Left Arm"] | |
| 105 | local RLeg = Char["Right Leg"] | |
| 106 | local LLeg = Char["Left Leg"] | |
| 107 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
| 108 | local Torso = Char.Torso | |
| 109 | local Head = Char.Head | |
| 110 | local NeutralAnims = true | |
| 111 | local Attack = false | |
| 112 | local Debounces = {Debounces={}}
| |
| 113 | local Hit = {}
| |
| 114 | local Sine = 0 | |
| 115 | local Change = 1 | |
| 116 | local BloodPuddles = {}
| |
| 117 | local Glitching = false | |
| 118 | local Target; | |
| 119 | local Cam = workspace.CurrentCamera | |
| 120 | local Effects = IN("Folder",Char)
| |
| 121 | Effects.Name = "Effects" | |
| 122 | local Kills = 0; | |
| 123 | local PlrGui = Plr:WaitForChild'PlayerGui' | |
| 124 | function Debounces:New(name,cooldown) | |
| 125 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
| |
| 126 | setmetatable(aaaaa,{__index = Debounces})
| |
| 127 | Debounces.Debounces[name] = aaaaa | |
| 128 | return aaaaa | |
| 129 | end | |
| 130 | function Debounces:Use(overrideUsable) | |
| 131 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
| 132 | if(self.Usable or overrideUsable)then | |
| 133 | self.Usable = false | |
| 134 | self.CoolingDown = true | |
| 135 | local LastUse = time() | |
| 136 | self.LastUse = LastUse | |
| 137 | delay(self.Cooldown or 2,function() | |
| 138 | if(self.LastUse == LastUse)then | |
| 139 | self.CoolingDown = false | |
| 140 | self.Usable = true | |
| 141 | end | |
| 142 | end) | |
| 143 | end | |
| 144 | end | |
| 145 | function Debounces:Get(name) | |
| 146 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
| |
| 147 | for i,v in next, Debounces.Debounces do | |
| 148 | if(i == name)then | |
| 149 | return v; | |
| 150 | end | |
| 151 | end | |
| 152 | end | |
| 153 | function Debounces:GetProgressPercentage() | |
| 154 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
| 155 | if(self.CoolingDown and not self.Usable)then | |
| 156 | return math.max( | |
| 157 | math.floor( | |
| 158 | ( | |
| 159 | (time()-self.LastUse)/self.Cooldown or 2 | |
| 160 | )*100 | |
| 161 | ) | |
| 162 | ) | |
| 163 | else | |
| 164 | return 100 | |
| 165 | end | |
| 166 | end | |
| 167 | local baseSound = IN("Sound")
| |
| 168 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
| 169 | local Sound = baseSound:Clone() | |
| 170 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
| 171 | Sound.Pitch = pitch or 1 | |
| 172 | Sound.Volume = volume or 1 | |
| 173 | Sound.Looped = looped or false | |
| 174 | if(autoPlay)then | |
| 175 | coroutine.wrap(function() | |
| 176 | repeat wait() until Sound.IsLoaded | |
| 177 | Sound.Playing = autoPlay or false | |
| 178 | end)() | |
| 179 | end | |
| 180 | if(not looped and effect)then | |
| 181 | Sound.Stopped:connect(function() | |
| 182 | Sound.Volume = 0 | |
| 183 | Sound:destroy() | |
| 184 | end) | |
| 185 | elseif(effect)then | |
| 186 | warn("Sound can't be looped and a sound effect!")
| |
| 187 | end | |
| 188 | Sound.Parent =parent or Torso | |
| 189 | return Sound | |
| 190 | end | |
| 191 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
| 192 | local part = IN("Part")
| |
| 193 | part.Parent = parent or Char | |
| 194 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
| 195 | part.Material = material or Enum.Material.SmoothPlastic | |
| 196 | part.TopSurface,part.BottomSurface=10,10 | |
| 197 | part.Size = size or V3.N(1,1,1) | |
| 198 | part.CFrame = cframe or CF.N(0,0,0) | |
| 199 | part.CanCollide = cancollide or false | |
| 200 | part.Anchored = anchored or false | |
| 201 | return part | |
| 202 | end | |
| 203 | function Weld(part0,part1,c0,c1) | |
| 204 | local weld = IN("Weld")
| |
| 205 | weld.Parent = part0 | |
| 206 | weld.Part0 = part0 | |
| 207 | weld.Part1 = part1 | |
| 208 | weld.C0 = c0 or CF.N() | |
| 209 | weld.C1 = c1 or CF.N() | |
| 210 | return weld | |
| 211 | end | |
| 212 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
| 213 | local part = IN("SpecialMesh")
| |
| 214 | part.MeshId = meshid or "" | |
| 215 | part.TextureId = textid or "" | |
| 216 | part.Scale = scale or V3.N(1,1,1) | |
| 217 | part.Offset = offset or V3.N(0,0,0) | |
| 218 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
| 219 | part.Parent = parent | |
| 220 | return part | |
| 221 | end | |
| 222 | NewInstance = function(instance,parent,properties) | |
| 223 | local inst = Instance.new(instance) | |
| 224 | inst.Parent = parent | |
| 225 | if(properties)then | |
| 226 | for i,v in next, properties do | |
| 227 | pcall(function() inst[i] = v end) | |
| 228 | end | |
| 229 | end | |
| 230 | return inst; | |
| 231 | end | |
| 232 | function Clone(instance,parent,properties) | |
| 233 | local inst = instance:Clone() | |
| 234 | inst.Parent = parent | |
| 235 | if(properties)then | |
| 236 | for i,v in next, properties do | |
| 237 | pcall(function() inst[i] = v end) | |
| 238 | end | |
| 239 | end | |
| 240 | return inst; | |
| 241 | end | |
| 242 | function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf) | |
| 243 | local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
| |
| 244 | local Sound = IN("Sound")
| |
| 245 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
| 246 | Sound.Pitch = pitch or 1 | |
| 247 | Sound.Volume = volume or 1 | |
| 248 | Sound.Looped = looped or false | |
| 249 | if(autoPlay)then | |
| 250 | coroutine.wrap(function() | |
| 251 | repeat wait() until Sound.IsLoaded | |
| 252 | Sound.Playing = autoPlay or false | |
| 253 | end)() | |
| 254 | end | |
| 255 | if(not looped and effect)then | |
| 256 | Sound.Stopped:connect(function() | |
| 257 | Sound.Volume = 0 | |
| 258 | soundPart:destroy() | |
| 259 | end) | |
| 260 | elseif(effect)then | |
| 261 | warn("Sound can't be looped and a sound effect!")
| |
| 262 | end | |
| 263 | Sound.Parent = soundPart | |
| 264 | return Sound | |
| 265 | end | |
| 266 | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
| |
| 267 | function CamShake(who,times,intense,origin) | |
| 268 | coroutine.wrap(function() | |
| 269 | if(script:FindFirstChild'CamShake')then | |
| 270 | local cam = script.CamShake:Clone() | |
| 271 | cam:WaitForChild'intensity'.Value = intense | |
| 272 | cam:WaitForChild'times'.Value = times | |
| 273 | ||
| 274 | if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
| |
| 275 | cam.Parent = who | |
| 276 | wait() | |
| 277 | cam.Disabled = false | |
| 278 | elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then | |
| 279 | local intensity = intense | |
| 280 | if(Hum and not Hum:FindFirstChild'CamShaking')then | |
| 281 | local cam = workspace.CurrentCamera | |
| 282 | local oCO = Hum.CameraOffset | |
| 283 | local cs = Instance.new("BoolValue",Hum)
| |
| 284 | cs.Name = "CamShaking" | |
| 285 | for i = 1, times do | |
| 286 | local camDistFromOrigin | |
| 287 | if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then | |
| 288 | camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin.Position).magnitude )/25 | |
| 289 | elseif(typeof(origin) == 'Vector3')then | |
| 290 | camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin).magnitude )/25 | |
| 291 | end | |
| 292 | if(camDistFromOrigin)then | |
| 293 | intensity = math.min(intense, math.floor(intense/camDistFromOrigin)) | |
| 294 | end | |
| 295 | if(Hum)then | |
| 296 | Hum.CameraOffset = Vector3.new(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200) | |
| 297 | end | |
| 298 | swait() | |
| 299 | end | |
| 300 | if(Hum)then | |
| 301 | Hum.CameraOffset = oCO | |
| 302 | end | |
| 303 | cs:destroy() | |
| 304 | end | |
| 305 | end | |
| 306 | end)() | |
| 307 | end | |
| 308 | ||
| 309 | ||
| 310 | function CamShakeAll(times,intense,origin) | |
| 311 | for _,v in next, Plrs:players() do | |
| 312 | CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin) | |
| 313 | end | |
| 314 | end | |
| 315 | ||
| 316 | function ServerScript(code) | |
| 317 | if(script:FindFirstChild'Loadstring')then | |
| 318 | local load = script.Loadstring:Clone() | |
| 319 | load:WaitForChild'Sauce'.Value = code | |
| 320 | load.Disabled = false | |
| 321 | load.Parent = workspace | |
| 322 | elseif(NS and typeof(NS) == 'function')then | |
| 323 | NS(code,workspace) | |
| 324 | else | |
| 325 | warn("no serverscripts lol")
| |
| 326 | end | |
| 327 | end | |
| 328 | ||
| 329 | function LocalOnPlayer(who,code) | |
| 330 | ServerScript([[ | |
| 331 | wait() | |
| 332 | script.Parent=nil | |
| 333 | if(not _G.Http)then _G.Http = game:service'HttpService' end | |
| 334 | ||
| 335 | local Http = _G.Http or game:service'HttpService' | |
| 336 | ||
| 337 | local source = ]].."[["..code.."]]"..[[ | |
| 338 | local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php" | |
| 339 | local asd = Http:PostAsync(link,source) | |
| 340 | repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID | |
| 341 | local ID = Http:JSONDecode(asd).Result.Require_ID | |
| 342 | local vs = require(ID).VORTH_SCRIPT | |
| 343 | vs.Parent = game:service'Players'.]]..who.Name..[[.Character | |
| 344 | ]]) | |
| 345 | end | |
| 346 | ||
| 347 | function Nametag(color,tag) | |
| 348 | local r,g,b = C3.tRGB(color) | |
| 349 | local c3 = C3.RGB(r/2,g/2,b/2) | |
| 350 | local name = script:FindFirstChild'Nametag' and script.Nametag:Clone(); | |
| 351 | if(not name)then | |
| 352 | name = NewInstance("BillboardGui",nil,{MaxDistance=150,AlwaysOnTop=true,Active=false,Size=UDim2.new(5,0,1,0),SizeOffset=Vector2.new(0,6)})
| |
| 353 | NewInstance("TextLabel",name,{Name='Title',BackgroundTransparency=1,Size=UDim2.new(2.5,0,1.5,0),Position=UDim2.new(-.75,0,.9,0),Text=tag,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextStrokeTransparency=0,TextSize=14,TextScaled=true,TextWrapped=true,})
| |
| 354 | end | |
| 355 | name.Title.Text = tag | |
| 356 | name.Title.TextColor3 = color | |
| 357 | name.Title.TextStrokeColor3 = c3 | |
| 358 | ||
| 359 | ||
| 360 | name.Parent = Char | |
| 361 | name.Adornee = Head | |
| 362 | name.PlayerToHideFrom = Plr | |
| 363 | ||
| 364 | return name | |
| 365 | end | |
| 366 | ||
| 367 | local Frame_Speed = 60 | |
| 368 | local Remove_Hats = false | |
| 369 | local Remove_Clothing = false | |
| 370 | local PlayerSize = 1 | |
| 371 | local DamageColor = BrickColor.new'Really red' | |
| 372 | local MusicID = 486598641 | |
| 373 | local God = false | |
| 374 | local Muted = false | |
| 375 | local WalkSpeed = 8 | |
| 376 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
| 377 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
| 378 | New = function(Object, Parent, Name, Data) | |
| 379 | local Object = Instance.new(Object) | |
| 380 | for Index, Value in pairs(Data or {}) do
| |
| 381 | Object[Index] = Value | |
| 382 | end | |
| 383 | Object.Parent = Parent | |
| 384 | Object.Name = Name | |
| 385 | return Object | |
| 386 | end | |
| 387 | local NoClear = {}
| |
| 388 | local Voodoo = New("Model",Char,"Voodoo",{})
| |
| 389 | local VTorso = New("Part",Voodoo,"Torso",{Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.60029155, 0.60029155, 0.300145775),CFrame = CFrame.new(16.9809666, 34.1897087, 12.3049202, 0.979014099, -0.138922885, 0.149103805, 0.203679025, 0.691457033, -0.693110347, -0.0068100011, 0.708934069, 0.705241799),LeftSurface = Enum.SurfaceType.Weld,RightSurface = Enum.SurfaceType.Weld,})
| |
| 390 | local VHead = New("Part",Voodoo,"Head",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.60029155, 0.300145775, 0.300145775),CFrame = CFrame.new(16.9182777, 34.5018272, 12.6228008, 0.981222212, -0.146387979, 0.125594378, 0.192836046, 0.730337858, -0.655302107, 0.0042019859, 0.667215884, 0.744852483),TopSurface = Enum.SurfaceType.Smooth,})
| |
| 391 | local SMesh = New("SpecialMesh",VHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
| |
| 392 | local mot = New("Motor",Head,"mot",{Part0 = VHead,Part1 = VTorso,C0 = CFrame.new(0, 0, 0, 0.981222093, 0.192836031, 0.00420200033, -0.146387964, 0.730337918, 0.667215943, 0.125594392, -0.655302107, 0.744852543),C1 = CFrame.new(3.43322754e-05, 0.449882507, -0.00149726868, 0.979014099, 0.203679025, -0.0068100011, -0.138922885, 0.691457033, 0.708934069, 0.149103805, -0.693110347, 0.705241799),})
| |
| 393 | local VLA = New("Part",Voodoo,"Left Arm",{Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.300145775, 0.60029155, 0.300145775),CFrame = CFrame.new(16.5398445, 34.0791664, 12.4485207, 0.842483878, 0.427749634, 0.327492595, -0.371340811, 0.901513815, -0.222213656, -0.390290886, 0.0656000972, 0.918351531),})
| |
| 394 | local mot = New("Motor",VLA,"mot",{Part0 = VLA,Part1 = VTorso,C0 = CFrame.new(0, 0, 0, 0.842483819, -0.371340901, -0.390290916, 0.427749544, 0.901513815, 0.0656001195, 0.327492595, -0.222213745, 0.91835165),C1 = CFrame.new(-0.455356598, 0.0866508484, 0.112116814, 0.979014099, 0.203679025, -0.0068100011, -0.138922885, 0.691457033, 0.708934069, 0.149103805, -0.693110347, 0.705241799),})
| |
| 395 | local VLL = New("Part",Voodoo,"Left Leg",{Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.300145775, 0.60029155, 0.300145775),CFrame = CFrame.new(16.9056549, 33.7453232, 11.9883003, 0.984823465, -0.0888315961, 0.149104908, 0.137862071, 0.922279239, -0.361102521, -0.10543903, 0.376178026, 0.920528531),BottomSurface = Enum.SurfaceType.Smooth,})
| |
| 396 | local mot = New("Motor",VLL,"mot",{Part0 = VLL,Part1 = VTorso,C0 = CFrame.new(0, 0, 0, 0.984823227, 0.137862027, -0.105439022, -0.0888316259, 0.922279298, 0.376178056, 0.149104908, -0.361102551, 0.920528591),C1 = CFrame.new(-0.162086487, -0.521272659, 0.0734844208, 0.979014099, 0.203679025, -0.0068100011, -0.138922885, 0.691457033, 0.708934069, 0.149103805, -0.693110347, 0.705241799),})
| |
| 397 | local VRL = New("Part",Voodoo,"Right Leg",{Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.300145775, 0.60029155, 0.300145775),CFrame = CFrame.new(17.2400646, 33.8107071, 11.9597893, 0.959730387, -0.238088086, 0.149103299, 0.276998103, 0.890439391, -0.36109513, -0.0467950329, 0.387855232, 0.920531631),BottomSurface = Enum.SurfaceType.Smooth,})
| |
| 398 | local mot = New("Motor",VRL,"mot",{Part0 = VRL,Part1 = VTorso,C0 = CFrame.new(0, 0, 0, 0.959730327, 0.276998103, -0.0467950143, -0.238088101, 0.89043951, 0.387855232, 0.149103299, -0.361095101, 0.92053175),C1 = CFrame.new(0.178815842, -0.542732239, 0.0579204559, 0.979014099, 0.203679025, -0.0068100011, -0.138922885, 0.691457033, 0.708934069, 0.149103805, -0.693110347, 0.705241799),})
| |
| 399 | local VRA = New("Part",Voodoo,"Right Arm",{Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.300145775, 0.60029155, 0.300145775),CFrame = CFrame.new(17.508316, 34.2938004, 12.3892946, 0.695788145, -0.716024339, -0.0564649031, 0.695248008, 0.651688695, 0.303202778, -0.180302992, -0.250221908, 0.951251626),})
| |
| 400 | local mot = New("Motor",VRA,"mot",{Part0 = VRA,Part1 = VTorso,C0 = CFrame.new(0, 0, 0, 0.695788085, 0.695248067, -0.180303007, -0.71602428, 0.651688814, -0.250221968, -0.0564648844, 0.303202778, 0.951251745),C1 = CFrame.new(0.536909103, 0.0585308075, 0.0659856796, 0.979014099, 0.203679025, -0.0068100011, -0.138922885, 0.691457033, 0.708934069, 0.149103805, -0.693110347, 0.705241799),})
| |
| 401 | ||
| 402 | local VHum = NewInstance("Humanoid",Voodoo,{PlatformStand=true,Health=0,DisplayDistanceType=Enum.HumanoidDisplayDistanceType.None})
| |
| 403 | ||
| 404 | for _,v in next, Voodoo:GetDescendants() do | |
| 405 | NoClear[v] = true | |
| 406 | end | |
| 407 | ||
| 408 | local knife = Part(Char,BrickColor.new'Medium stone grey',Enum.Material.SmoothPlastic,V3.N(.3,3,.5),CF.N(),false,false) | |
| 409 | Mesh(knife,Enum.MeshType.FileMesh,'rbxassetid://1245215297','rbxassetid://1245215354',V3.N(1.25,1.45,1.25)) | |
| 410 | ||
| 411 | if(PlayerSize ~= 1)then | |
| 412 | for _,v in next, Char:GetDescendants() do | |
| 413 | if(v:IsA'BasePart')then | |
| 414 | v.Size = v.Size * PlayerSize | |
| 415 | end | |
| 416 | end | |
| 417 | end | |
| 418 | ||
| 419 | Nametag(C3.N(.75,.75,.75),"The Voodoo Master") | |
| 420 | ||
| 421 | local gui = NewInstance("ScreenGui",PlrGui,{})
| |
| 422 | local txt = NewInstance("TextLabel",gui,{TextStrokeTransparency=.3,TextStrokeColor3=C3.RGB(107,0,0),Font=Enum.Font.Antique,BackgroundTransparency=1,Size=UDim2.new(.48,0,.1,0),Position=UDim2.new(.279,0,.842,0),Text='Target:',TextColor3=C3.RGB(214,0,0),TextScaled=true,TextWrapped=true,})
| |
| 423 | local ktxt = NewInstance("TextLabel",gui,{TextStrokeTransparency=.3,TextStrokeColor3=C3.RGB(107,0,0),Font=Enum.Font.Antique,BackgroundTransparency=1,Size=UDim2.new(.48,0,.1,0),Position=UDim2.new(.279,0,.742,0),Text='Target:',TextColor3=C3.RGB(214,0,0),TextScaled=true,TextWrapped=true,})
| |
| 424 | ||
| 425 | local Music = Sound(Char,MusicID,1,3,true,false,true) | |
| 426 | Music.Name = 'Music' | |
| 427 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
| 428 | v:Stop(); | |
| 429 | end | |
| 430 | ||
| 431 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
| 432 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
| 433 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
| |
| 434 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
| |
| 435 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
| |
| 436 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
| |
| 437 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
| |
| 438 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
| |
| 439 | ||
| 440 | local KW = NewInstance('Motor',Char,{Part0=LArm,Part1=knife,C0=CF.N(0,-1,0)*CF.A(M.R(90),0,0),C1=CF.N(0,-1,0)})
| |
| 441 | local VW = NewInstance('Motor',Char,{Part0=RArm,Part1=VTorso,C0=CF.N(0,-.8,-.5)*CF.A(M.R(-43),0,0)})
| |
| 442 | ||
| 443 | local LSC0 = LS.C0 | |
| 444 | local RSC0 = RS.C0 | |
| 445 | local NKC0 = NK.C0 | |
| 446 | local LHC0 = LH.C0 | |
| 447 | local RHC0 = RH.C0 | |
| 448 | local RJC0 = RJ.C0 | |
| 449 | local ArtificialHB = IN("BindableEvent", script)
| |
| 450 | ArtificialHB.Name = "Heartbeat" | |
| 451 | ||
| 452 | script:WaitForChild("Heartbeat")
| |
| 453 | ||
| 454 | local tf = 0 | |
| 455 | local allowframeloss = false | |
| 456 | local tossremainder = false | |
| 457 | local lastframe = tick() | |
| 458 | local frame = 1/Frame_Speed | |
| 459 | ArtificialHB:Fire() | |
| 460 | ||
| 461 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 462 | tf = tf + s | |
| 463 | if tf >= frame then | |
| 464 | if allowframeloss then | |
| 465 | script.Heartbeat:Fire() | |
| 466 | lastframe = tick() | |
| 467 | else | |
| 468 | for i = 1, math.floor(tf / frame) do | |
| 469 | ArtificialHB:Fire() | |
| 470 | end | |
| 471 | lastframe = tick() | |
| 472 | end | |
| 473 | if tossremainder then | |
| 474 | tf = 0 | |
| 475 | else | |
| 476 | tf = tf - frame * math.floor(tf / frame) | |
| 477 | end | |
| 478 | end | |
| 479 | end) | |
| 480 | ||
| 481 | function swait(num) | |
| 482 | if num == 0 or num == nil then | |
| 483 | ArtificialHB.Event:wait() | |
| 484 | else | |
| 485 | for i = 0, num do | |
| 486 | ArtificialHB.Event:wait() | |
| 487 | end | |
| 488 | end | |
| 489 | end | |
| 490 | function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis) | |
| 491 | local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false) | |
| 492 | local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N()) | |
| 493 | local Scale = 1 | |
| 494 | local speeder = Speed | |
| 495 | if(Type == "Multiply")then | |
| 496 | Scale = 1*Inc | |
| 497 | elseif(Type == "Divide")then | |
| 498 | Scale = 1/Inc | |
| 499 | end | |
| 500 | coroutine.wrap(function() | |
| 501 | for i = 0,10/Lifetime,.1 do | |
| 502 | ||
| 503 | if(Type == "Multiply")then | |
| 504 | Scale = Scale - 0.01*Inc/Lifetime | |
| 505 | elseif(Type == "Divide")then | |
| 506 | Scale = Scale - 0.01/Inc*Lifetime | |
| 507 | end | |
| 508 | speeder = speeder - 0.01*Speed*Lifetime | |
| 509 | fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime | |
| 510 | fxP.Transparency = fxP.Transparency + 0.01*Lifetime | |
| 511 | if(Axis == 'x')then | |
| 512 | fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0) | |
| 513 | elseif(Axis == 'y')then | |
| 514 | fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0) | |
| 515 | elseif(Axis == 'z')then | |
| 516 | fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime) | |
| 517 | elseif(Axis == 'xyz')then | |
| 518 | fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime) | |
| 519 | elseif(Axis == 'yz')then | |
| 520 | fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime) | |
| 521 | elseif(Axis == 'xz')then | |
| 522 | fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime) | |
| 523 | else | |
| 524 | fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0) | |
| 525 | end | |
| 526 | if(fxP.Transparency >= 1)then break end | |
| 527 | swait() | |
| 528 | end | |
| 529 | fxP:destroy() | |
| 530 | end)() | |
| 531 | return fxP | |
| 532 | end | |
| 533 | ||
| 534 | function NoobySphere2(Lifetime,Type,Pos,StartSize,Inc,Color,MeshId) | |
| 535 | local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos,true,false) | |
| 536 | local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N()) | |
| 537 | ||
| 538 | local Scale = 1 | |
| 539 | if(Type == "Multiply")then | |
| 540 | Scale = 1*Inc | |
| 541 | elseif(Type == "Divide")then | |
| 542 | Scale = 1/Inc | |
| 543 | end | |
| 544 | coroutine.wrap(function() | |
| 545 | for i = 0,10/Lifetime,.1 do | |
| 546 | ||
| 547 | if(Type == "Multiply")then | |
| 548 | Scale = Scale - 0.01*Inc/Lifetime | |
| 549 | elseif(Type == "Divide")then | |
| 550 | Scale = Scale - 0.01/Inc*Lifetime | |
| 551 | end | |
| 552 | fxP.Transparency = fxP.Transparency + 0.01*Lifetime | |
| 553 | fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime) | |
| 554 | swait() | |
| 555 | end | |
| 556 | fxP:destroy() | |
| 557 | end)() | |
| 558 | end | |
| 559 | ||
| 560 | function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId) | |
| 561 | local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false) | |
| 562 | local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N()) | |
| 563 | local Scale = 1 | |
| 564 | local speeder = Speed | |
| 565 | if(Type == "Multiply")then | |
| 566 | Scale = 1*Inc | |
| 567 | elseif(Type == "Divide")then | |
| 568 | Scale = 1/Inc | |
| 569 | end | |
| 570 | coroutine.wrap(function() | |
| 571 | for i = 0,10/Lifetime,.1 do | |
| 572 | if(Type == "Multiply")then | |
| 573 | Scale = Scale - 0.01*Inc/Lifetime | |
| 574 | elseif(Type == "Divide")then | |
| 575 | Scale = Scale - 0.01/Inc*Lifetime | |
| 576 | end | |
| 577 | if(Fade)then | |
| 578 | fxP.Transparency = i/(10/Lifetime) | |
| 579 | end | |
| 580 | speeder = speeder - 0.01*Speed*Lifetime/10 | |
| 581 | fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime | |
| 582 | fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime) | |
| 583 | swait() | |
| 584 | end | |
| 585 | fxP:destroy() | |
| 586 | end)() | |
| 587 | end | |
| 588 | ||
| 589 | function Bezier(startpos, pos2, pos3, endpos, t) | |
| 590 | local A = startpos:lerp(pos2, t) | |
| 591 | local B = pos2:lerp(pos3, t) | |
| 592 | local C = pos3:lerp(endpos, t) | |
| 593 | local lerp1 = A:lerp(B, t) | |
| 594 | local lerp2 = B:lerp(C, t) | |
| 595 | local cubic = lerp1:lerp(lerp2, t) | |
| 596 | return cubic | |
| 597 | end | |
| 598 | function Puddle(hit,pos,norm,data) | |
| 599 | local material = data.Material or Enum.Material.SmoothPlastic | |
| 600 | local color = data.Color or BrickColor.new'Crimson' | |
| 601 | local size = data.Size or 1 | |
| 602 | ||
| 603 | if(hit.Name ~= 'BloodPuddle')then | |
| 604 | local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
| |
| 605 | local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
| |
| 606 | BloodPuddles[Puddle] = 0 | |
| 607 | else | |
| 608 | local cyl = hit:FindFirstChild'CylinderMesh' | |
| 609 | if(cyl)then | |
| 610 | BloodPuddles[hit] = 0 | |
| 611 | cyl.Scale = cyl.Scale + V3.N(size,0,size) | |
| 612 | hit.Transparency = 0 | |
| 613 | end | |
| 614 | end | |
| 615 | end | |
| 616 | ||
| 617 | function Droplet(data) | |
| 618 | local Size = data.Size or 1 | |
| 619 | local Color = data.Color or BrickColor.new'Crimson' | |
| 620 | local StudsPerFrame = data.Speed or 1 | |
| 621 | local Shape = data.Shape or 'Ball' | |
| 622 | local Frames = (data.Frames or 160)+1 | |
| 623 | local Pos = data.Origin or Root.CFrame | |
| 624 | local Direction = data.Direction or Root.CFrame.lookVector*100000 | |
| 625 | local Material = data.Material or Enum.Material.SmoothPlastic | |
| 626 | local Drop = data.Drop or .05 | |
| 627 | local Ignorelist = data.Ignorelist or nil | |
| 628 | ||
| 629 | local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false) | |
| 630 | local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N()) | |
| 631 | if(Shape == 'Ball')then | |
| 632 | BMesh.MeshType = Enum.MeshType.Sphere | |
| 633 | elseif(Shape == 'Head')then | |
| 634 | BMesh.MeshType = Enum.MeshType.Head | |
| 635 | elseif(Shape == 'Cylinder')then | |
| 636 | BMesh.MeshType = Enum.MeshType.Cylinder | |
| 637 | end | |
| 638 | ||
| 639 | coroutine.wrap(function() | |
| 640 | for i = 1, Frames do | |
| 641 | Pos = Pos * CF.N(0,-(Drop*i),0) | |
| 642 | local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame) | |
| 643 | if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then | |
| 644 | Puddle(hit,pos,norm,data) | |
| 645 | break; | |
| 646 | else | |
| 647 | Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)) | |
| 648 | end | |
| 649 | swait() | |
| 650 | end | |
| 651 | Bullet:destroy() | |
| 652 | end)() | |
| 653 | end | |
| 654 | ||
| 655 | function SphereFX(duration,color,scale,pos,endScale,increment) | |
| 656 | return Effect{
| |
| 657 | Effect='ResizeAndFade', | |
| 658 | Color=color, | |
| 659 | Size=scale, | |
| 660 | Mesh={MeshType=Enum.MeshType.Sphere},
| |
| 661 | CFrame=pos, | |
| 662 | FXSettings={
| |
| 663 | EndSize=endScale, | |
| 664 | EndIsIncrement=increment | |
| 665 | } | |
| 666 | } | |
| 667 | end | |
| 668 | ||
| 669 | function BlastFX(duration,color,scale,pos,endScale,increment) | |
| 670 | return Effect{
| |
| 671 | Effect='ResizeAndFade', | |
| 672 | Color=color, | |
| 673 | Size=scale, | |
| 674 | Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
| |
| 675 | CFrame=pos, | |
| 676 | FXSettings={
| |
| 677 | EndSize=endScale, | |
| 678 | EndIsIncrement=increment | |
| 679 | } | |
| 680 | } | |
| 681 | end | |
| 682 | ||
| 683 | function BlockFX(duration,color,scale,pos,endScale,increment) | |
| 684 | return Effect{
| |
| 685 | Effect='ResizeAndFade', | |
| 686 | Color=color, | |
| 687 | Size=scale, | |
| 688 | CFrame=pos, | |
| 689 | FXSettings={
| |
| 690 | EndSize=endScale, | |
| 691 | EndIsIncrement=increment | |
| 692 | } | |
| 693 | } | |
| 694 | end | |
| 695 | ||
| 696 | function ShootBullet(data) | |
| 697 | local Size = data.Size or V3.N(2,2,2) | |
| 698 | local Color = data.Color or BrickColor.new'Crimson' | |
| 699 | local StudsPerFrame = data.Speed or 10 | |
| 700 | local Shape = data.Shape or 'Ball' | |
| 701 | local Frames = data.Frames or 160 | |
| 702 | local Pos = data.Origin or Torso.CFrame | |
| 703 | local Direction = data.Direction or Mouse.Hit | |
| 704 | local Material = data.Material or Enum.Material.Neon | |
| 705 | local OnHit = data.HitFunction or function(hit,pos) | |
| 706 | Effect{
| |
| 707 | Effect='ResizeAndFade', | |
| 708 | Color=Color, | |
| 709 | Size=V3.N(10,10,10), | |
| 710 | Mesh={MeshType=Enum.MeshType.Sphere},
| |
| 711 | CFrame=CF.N(pos), | |
| 712 | FXSettings={
| |
| 713 | EndSize=V3.N(.05,.05,.05), | |
| 714 | EndIsIncrement=true | |
| 715 | } | |
| 716 | } | |
| 717 | for i = 1, 5 do | |
| 718 | local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)) | |
| 719 | Effect{
| |
| 720 | Effect='Fade', | |
| 721 | Frames=65, | |
| 722 | Size=V3.N(5,5,10), | |
| 723 | CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos), | |
| 724 | Mesh = {MeshType=Enum.MeshType.Sphere},
| |
| 725 | Material=Enum.Material.Neon, | |
| 726 | Color=Color, | |
| 727 | MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p, | |
| 728 | } | |
| 729 | end | |
| 730 | end | |
| 731 | ||
| 732 | local Bullet = Part(Effects,Color,Material,Size,Pos,true,false) | |
| 733 | local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N()) | |
| 734 | if(Shape == 'Ball')then | |
| 735 | BMesh.MeshType = Enum.MeshType.Sphere | |
| 736 | elseif(Shape == 'Head')then | |
| 737 | BMesh.MeshType = Enum.MeshType.Head | |
| 738 | elseif(Shape == 'Cylinder')then | |
| 739 | BMesh.MeshType = Enum.MeshType.Cylinder | |
| 740 | end | |
| 741 | ||
| 742 | coroutine.wrap(function() | |
| 743 | for i = 1, Frames+1 do | |
| 744 | local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame) | |
| 745 | if(hit)then | |
| 746 | OnHit(hit,pos,norm,dist) | |
| 747 | break; | |
| 748 | else | |
| 749 | Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame) | |
| 750 | end | |
| 751 | swait() | |
| 752 | end | |
| 753 | Bullet:destroy() | |
| 754 | end)() | |
| 755 | ||
| 756 | end | |
| 757 | ||
| 758 | ||
| 759 | function Zap(data) | |
| 760 | local sCF,eCF = data.StartCFrame,data.EndCFrame | |
| 761 | assert(sCF,"You need a start CFrame!") | |
| 762 | assert(eCF,"You need an end CFrame!") | |
| 763 | local parts = data.PartCount or 15 | |
| 764 | local zapRot = data.ZapRotation or {-5,5}
| |
| 765 | local startThick = data.StartSize or 3; | |
| 766 | local endThick = data.EndSize or startThick/2; | |
| 767 | local color = data.Color or BrickColor.new'Electric blue' | |
| 768 | local delay = data.Delay or 35 | |
| 769 | local delayInc = data.DelayInc or 0 | |
| 770 | local lastLightning; | |
| 771 | local MagZ = (sCF.p - eCF.p).magnitude | |
| 772 | local thick = startThick | |
| 773 | local inc = (startThick/parts)-(endThick/parts) | |
| 774 | ||
| 775 | for i = 1, parts do | |
| 776 | local pos = sCF.p | |
| 777 | if(lastLightning)then | |
| 778 | pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p | |
| 779 | end | |
| 780 | delay = delay + delayInc | |
| 781 | local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false) | |
| 782 | local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot))) | |
| 783 | if(parts == i)then | |
| 784 | local MagZ = (pos-eCF.p).magnitude | |
| 785 | zapPart.Size = V3.N(endThick,endThick,MagZ) | |
| 786 | zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2) | |
| 787 | Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
| |
| 788 | else | |
| 789 | zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2) | |
| 790 | end | |
| 791 | ||
| 792 | lastLightning = zapPart | |
| 793 | Effect{Effect='Fade',Manual=zapPart,Frames=delay}
| |
| 794 | ||
| 795 | thick=thick-inc | |
| 796 | ||
| 797 | end | |
| 798 | end | |
| 799 | ||
| 800 | function Zap2(data) | |
| 801 | local Color = data.Color or BrickColor.new'Electric blue' | |
| 802 | local StartPos = data.Start or Torso.Position | |
| 803 | local EndPos = data.End or Mouse.Hit.p | |
| 804 | local SegLength = data.SegL or 2 | |
| 805 | local Thicc = data.Thickness or 0.5 | |
| 806 | local Fades = data.Fade or 45 | |
| 807 | local Parent = data.Parent or Effects | |
| 808 | local MaxD = data.MaxDist or 200 | |
| 809 | local Branch = data.Branches or false | |
| 810 | local Material = data.Material or Enum.Material.Neon | |
| 811 | local Raycasts = data.Raycasts or false | |
| 812 | local Offset = data.Offset or {0,360}
| |
| 813 | local AddMesh = (data.Mesh == nil and true or data.Mesh) | |
| 814 | if((StartPos-EndPos).magnitude > MaxD)then | |
| 815 | EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p | |
| 816 | end | |
| 817 | local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude | |
| 818 | if(Raycasts)then | |
| 819 | hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD) | |
| 820 | end | |
| 821 | local segments = dist/SegLength | |
| 822 | local model = IN("Model",Parent)
| |
| 823 | model.Name = 'Lightning' | |
| 824 | local Last; | |
| 825 | for i = 1, segments do | |
| 826 | local size = (segments-i)/25 | |
| 827 | local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false) | |
| 828 | if(AddMesh)then IN("CylinderMesh",prt) end
| |
| 829 | if(Last and math.floor(segments) == i)then | |
| 830 | local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude | |
| 831 | prt.Size = V3.N(Thicc+size,MagZ,Thicc+size) | |
| 832 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0) | |
| 833 | elseif(not Last)then | |
| 834 | prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
| 835 | else | |
| 836 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
| 837 | end | |
| 838 | Last = prt | |
| 839 | if(Branch)then | |
| 840 | local choice = M.RNG(1,7+((segments-i)*2)) | |
| 841 | if(choice == 1)then | |
| 842 | local LastB; | |
| 843 | for i2 = 1,M.RNG(2,5) do | |
| 844 | local size2 = ((segments-i)/35)/i2 | |
| 845 | local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false) | |
| 846 | if(AddMesh)then IN("CylinderMesh",prt) end
| |
| 847 | if(not LastB)then | |
| 848 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
| 849 | else | |
| 850 | prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
| 851 | end | |
| 852 | LastB = prt | |
| 853 | end | |
| 854 | end | |
| 855 | end | |
| 856 | end | |
| 857 | if(Fades > 0)then | |
| 858 | coroutine.wrap(function() | |
| 859 | for i = 1, Fades do | |
| 860 | for _,v in next, model:children() do | |
| 861 | if(v:IsA'BasePart')then | |
| 862 | v.Transparency = (i/Fades) | |
| 863 | end | |
| 864 | end | |
| 865 | swait() | |
| 866 | end | |
| 867 | model:destroy() | |
| 868 | end)() | |
| 869 | else | |
| 870 | S.Debris:AddItem(model,.01) | |
| 871 | end | |
| 872 | return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
| |
| 873 | end | |
| 874 | ||
| 875 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
| 876 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
| 877 | local tween = S.TweenService:Create(obj, info, props) | |
| 878 | ||
| 879 | tween:Play() | |
| 880 | end | |
| 881 | ||
| 882 | function Effect(data) | |
| 883 | local FX = data.Effect or 'ResizeAndFade' | |
| 884 | local Parent = data.Parent or Effects | |
| 885 | local Color = data.Color or C3.N(0,0,0) | |
| 886 | local Size = data.Size or V3.N(1,1,1) | |
| 887 | local MoveDir = data.MoveDirection or nil | |
| 888 | local MeshData = data.Mesh or nil | |
| 889 | local SndData = data.Sound or nil | |
| 890 | local Frames = data.Frames or 45 | |
| 891 | local Manual = data.Manual or nil | |
| 892 | local Material = data.Material or nil | |
| 893 | local CFra = data.CFrame or Torso.CFrame | |
| 894 | local Settings = data.FXSettings or {}
| |
| 895 | local Shape = data.Shape or Enum.PartType.Block | |
| 896 | local Snd,Prt,Msh; | |
| 897 | local RotInc = data.RotInc or {0,0,0}
| |
| 898 | if(typeof(RotInc) == 'number')then | |
| 899 | RotInc = {RotInc,RotInc,RotInc}
| |
| 900 | end | |
| 901 | coroutine.wrap(function() | |
| 902 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
| 903 | Prt = Manual | |
| 904 | else | |
| 905 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
| 906 | Prt.Shape = Shape | |
| 907 | end | |
| 908 | if(typeof(MeshData) == 'table')then | |
| 909 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
| 910 | elseif(typeof(MeshData) == 'Instance')then | |
| 911 | Msh = MeshData:Clone() | |
| 912 | Msh.Parent = Prt | |
| 913 | elseif(Shape == Enum.PartType.Block)then | |
| 914 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
| 915 | end | |
| 916 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
| 917 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
| 918 | end | |
| 919 | if(Snd)then | |
| 920 | repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
| 921 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
| 922 | end | |
| 923 | Size = (Msh and Msh.Scale or Size) | |
| 924 | local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2) | |
| 925 | ||
| 926 | local MoveSpeed = nil; | |
| 927 | if(MoveDir)then | |
| 928 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
| 929 | end | |
| 930 | if(FX ~= 'Arc')then | |
| 931 | for Frame = 1, Frames do | |
| 932 | if(FX == "Fade")then | |
| 933 | Prt.Transparency = (Frame/Frames) | |
| 934 | elseif(FX == "Resize")then | |
| 935 | if(not Settings.EndSize)then | |
| 936 | Settings.EndSize = V3.N(0,0,0) | |
| 937 | end | |
| 938 | if(Settings.EndIsIncrement)then | |
| 939 | if(Msh)then | |
| 940 | Msh.Scale = Msh.Scale + Settings.EndSize | |
| 941 | else | |
| 942 | Prt.Size = Prt.Size + Settings.EndSize | |
| 943 | end | |
| 944 | else | |
| 945 | if(Msh)then | |
| 946 | Msh.Scale = Msh.Scale - grow/Frames | |
| 947 | else | |
| 948 | Prt.Size = Prt.Size - grow/Frames | |
| 949 | end | |
| 950 | end | |
| 951 | elseif(FX == "ResizeAndFade")then | |
| 952 | if(not Settings.EndSize)then | |
| 953 | Settings.EndSize = V3.N(0,0,0) | |
| 954 | end | |
| 955 | if(Settings.EndIsIncrement)then | |
| 956 | if(Msh)then | |
| 957 | Msh.Scale = Msh.Scale + Settings.EndSize | |
| 958 | else | |
| 959 | Prt.Size = Prt.Size + Settings.EndSize | |
| 960 | end | |
| 961 | else | |
| 962 | if(Msh)then | |
| 963 | Msh.Scale = Msh.Scale - grow/Frames | |
| 964 | else | |
| 965 | Prt.Size = Prt.Size - grow/Frames | |
| 966 | end | |
| 967 | end | |
| 968 | Prt.Transparency = (Frame/Frames) | |
| 969 | end | |
| 970 | if(Settings.RandomizeCFrame)then | |
| 971 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
| 972 | else | |
| 973 | Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc)) | |
| 974 | end | |
| 975 | if(MoveDir and MoveSpeed)then | |
| 976 | local Orientation = Prt.Orientation | |
| 977 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
| 978 | Prt.Orientation = Orientation | |
| 979 | end | |
| 980 | swait() | |
| 981 | end | |
| 982 | Prt:destroy() | |
| 983 | else | |
| 984 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
| 985 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
| 986 | if(start and endP)then | |
| 987 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 988 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 989 | for Frame = 0, 1, (Settings.Speed or 0.01) do | |
| 990 | if(Settings.Home)then | |
| 991 | endP = Settings.Home.CFrame | |
| 992 | end | |
| 993 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
| 994 | end | |
| 995 | if(Settings.RemoveOnGoal)then | |
| 996 | Prt:destroy() | |
| 997 | end | |
| 998 | else | |
| 999 | Prt:destroy() | |
| 1000 | assert(start,"You need a start position!") | |
| 1001 | assert(endP,"You need a start position!") | |
| 1002 | end | |
| 1003 | end | |
| 1004 | end)() | |
| 1005 | return Prt,Msh,Snd | |
| 1006 | end | |
| 1007 | function SoulSteal(whom) | |
| 1008 | local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart') | |
| 1009 | print(torso) | |
| 1010 | if(torso and torso:IsA'BasePart')then | |
| 1011 | local Model = Instance.new("Model",Effects)
| |
| 1012 | Model.Name = whom.Name.."'s Soul" | |
| 1013 | whom:BreakJoints() | |
| 1014 | local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false) | |
| 1015 | Soul.Name = 'Head' | |
| 1016 | NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
| |
| 1017 | Effect{
| |
| 1018 | Effect="Arc", | |
| 1019 | Manual = Soul, | |
| 1020 | FXSettings={
| |
| 1021 | Start=torso.CFrame, | |
| 1022 | Home = Torso, | |
| 1023 | RemoveOnGoal = true, | |
| 1024 | } | |
| 1025 | } | |
| 1026 | local lastPoint = Soul.CFrame.p | |
| 1027 | ||
| 1028 | for i = 0, 1, 0.01 do | |
| 1029 | local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0) | |
| 1030 | local mag = (lastPoint - Soul.Position).magnitude | |
| 1031 | Effect{
| |
| 1032 | Effect = "Fade", | |
| 1033 | CFrame = point * CF.N(0, mag/2, 0), | |
| 1034 | Size = V3.N(.5,mag+.5,.5), | |
| 1035 | Color = Soul.BrickColor | |
| 1036 | } | |
| 1037 | lastPoint = Soul.CFrame.p | |
| 1038 | swait() | |
| 1039 | end | |
| 1040 | for i = 1, 5 do | |
| 1041 | Effect{
| |
| 1042 | Effect="Fade", | |
| 1043 | Color = BrickColor.new'Really red', | |
| 1044 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
| 1045 | } | |
| 1046 | end | |
| 1047 | end | |
| 1048 | end | |
| 1049 | ||
| 1050 | function MultiplyCF(cf,mult) | |
| 1051 | local a,b,c,d,e,f,g,h,i,j,k,l = cf:components() | |
| 1052 | return CF.N(a*mult,b*mult,c*mult,d*mult,e*mult,f*mult,g*mult,h*mult,i*mult,j*mult,k*mult,l*mult) | |
| 1053 | end | |
| 1054 | ||
| 1055 | function ResetVoodoo() | |
| 1056 | for _,v in next, Voodoo:GetDescendants() do | |
| 1057 | if(not NoClear[v])then | |
| 1058 | v:destroy() | |
| 1059 | end | |
| 1060 | end | |
| 1061 | VRA.Color = C3.RGB(163,162,165) | |
| 1062 | VLA.Color = C3.RGB(163,162,165) | |
| 1063 | VRL.Color = C3.RGB(163,162,165) | |
| 1064 | VLL.Color = C3.RGB(163,162,165) | |
| 1065 | VTorso.Color = C3.RGB(163,162,165) | |
| 1066 | VHead.Color = C3.RGB(163,162,165) | |
| 1067 | end | |
| 1068 | ||
| 1069 | function ChangeTarget(who) | |
| 1070 | local h = who:FindFirstChildOfClass'Humanoid' | |
| 1071 | ResetVoodoo() | |
| 1072 | if(h and h.Health <= 0)then return end | |
| 1073 | Target = who | |
| 1074 | for _,v in next, who:children() do | |
| 1075 | if(v:IsA'Clothing' or v:IsA'CharacterMesh')then | |
| 1076 | v:Clone().Parent = Voodoo | |
| 1077 | elseif(v:FindFirstChild'face' and v.Name == 'Head')then | |
| 1078 | v.face:Clone().Parent = VHead | |
| 1079 | elseif(v:IsA'BodyColors')then | |
| 1080 | VTorso.BrickColor = v.TorsoColor | |
| 1081 | VHead.BrickColor = v.HeadColor | |
| 1082 | VLA.BrickColor = v.LeftArmColor | |
| 1083 | VRA.BrickColor = v.RightArmColor | |
| 1084 | VLL.BrickColor = v.LeftLegColor | |
| 1085 | VRL.BrickColor = v.RightLegColor | |
| 1086 | elseif(Voodoo:FindFirstChild(v.Name) and Voodoo[v.Name]:IsA'BasePart' and v:IsA'BasePart')then | |
| 1087 | Voodoo[v.Name].Color = v.Color | |
| 1088 | end | |
| 1089 | end | |
| 1090 | end | |
| 1091 | ||
| 1092 | function CastRay(startPos,endPos,range,ignoreList) | |
| 1093 | local ray = Ray.new(startPos,(endPos-startPos).unit*range) | |
| 1094 | local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
| |
| 1095 | return part,pos,norm,(pos and (startPos-pos).magnitude) | |
| 1096 | end | |
| 1097 | ||
| 1098 | function getRegion(point,range,ignore) | |
| 1099 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
| 1100 | end | |
| 1101 | ||
| 1102 | function clerp(startCF,endCF,alpha) | |
| 1103 | return startCF:lerp(endCF, alpha) | |
| 1104 | end | |
| 1105 | ||
| 1106 | function GetTorso(char) | |
| 1107 | return char and (char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart') | |
| 1108 | end | |
| 1109 | ||
| 1110 | function ShowDamage(Pos, Text, Time, Color) | |
| 1111 | coroutine.wrap(function() | |
| 1112 | local Rate = (1 / Frame_Speed) | |
| 1113 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 1114 | local Text = (Text or "") | |
| 1115 | local Time = (Time or 2) | |
| 1116 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 1117 | local EffectPart = NewInstance("Part",Effects,{
| |
| 1118 | Material=Enum.Material.SmoothPlastic, | |
| 1119 | Reflectance = 0, | |
| 1120 | Transparency = 1, | |
| 1121 | BrickColor = BrickColor.new(Color), | |
| 1122 | Name = "Effect", | |
| 1123 | Size = Vector3.new(0,0,0), | |
| 1124 | Anchored = true, | |
| 1125 | CFrame = CF.N(Pos) | |
| 1126 | }) | |
| 1127 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{
| |
| 1128 | Size = UDim2.new(1.25, 0, 1.25, 0), | |
| 1129 | Adornee = EffectPart, | |
| 1130 | }) | |
| 1131 | local TextLabel = NewInstance("TextLabel",BillboardGui,{
| |
| 1132 | BackgroundTransparency = 1, | |
| 1133 | Size = UDim2.new(1, 0, 1, 0), | |
| 1134 | Text = Text, | |
| 1135 | Font = "Bodoni", | |
| 1136 | TextColor3 = Color, | |
| 1137 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 1138 | TextStrokeTransparency=0, | |
| 1139 | TextScaled = true, | |
| 1140 | }) | |
| 1141 | S.Debris:AddItem(EffectPart, (Time)) | |
| 1142 | EffectPart.Parent = workspace | |
| 1143 | delay(0, function() | |
| 1144 | Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
| |
| 1145 | local Frames = (Time / Rate) | |
| 1146 | for Frame = 1, Frames do | |
| 1147 | swait() | |
| 1148 | local Percent = (Frame / Frames) | |
| 1149 | TextLabel.TextTransparency = Percent | |
| 1150 | TextLabel.TextStrokeTransparency = Percent | |
| 1151 | end | |
| 1152 | if EffectPart and EffectPart.Parent then | |
| 1153 | EffectPart:Destroy() | |
| 1154 | end | |
| 1155 | end) end)() | |
| 1156 | end | |
| 1157 | ||
| 1158 | function DealDamage(data) | |
| 1159 | local Who = data.Who; | |
| 1160 | local MinDam = data.MinimumDamage or 15; | |
| 1161 | local MaxDam = data.MaximumDamage or 30; | |
| 1162 | local MaxHP = data.MaxHP or 1e5; | |
| 1163 | ||
| 1164 | local DB = data.Debounce or .2; | |
| 1165 | ||
| 1166 | local CritData = data.Crit or {}
| |
| 1167 | local CritChance = CritData.Chance or 0; | |
| 1168 | local CritMultiplier = CritData.Multiplier or 1; | |
| 1169 | ||
| 1170 | local DamageEffects = data.DamageFX or {}
| |
| 1171 | local DamageType = DamageEffects.Type or "Normal" | |
| 1172 | local DeathFunction = DamageEffects.DeathFunction | |
| 1173 | ||
| 1174 | assert(Who,"Specify someone to damage!") | |
| 1175 | ||
| 1176 | local Humanoid = Who:FindFirstChildOfClass'Humanoid' | |
| 1177 | local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1) | |
| 1178 | ||
| 1179 | local canHit = true | |
| 1180 | if(Humanoid)then | |
| 1181 | for _, p in pairs(Hit) do | |
| 1182 | if p[1] == Humanoid then | |
| 1183 | if(time() - p[2] <= DB) then | |
| 1184 | canHit = false | |
| 1185 | else | |
| 1186 | Hit[_] = nil | |
| 1187 | end | |
| 1188 | end | |
| 1189 | end | |
| 1190 | if(canHit)then | |
| 1191 | table.insert(Hit,{Humanoid,time()})
| |
| 1192 | local HitTorso = GetTorso(Who) | |
| 1193 | local player = S.Players:GetPlayerFromCharacter(Who) | |
| 1194 | if(not player or player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then | |
| 1195 | if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then | |
| 1196 | print'Got kill' | |
| 1197 | Humanoid.Health = 0; | |
| 1198 | Who:BreakJoints(); | |
| 1199 | if(DeathFunction)then DeathFunction(Who,Humanoid) end | |
| 1200 | else | |
| 1201 | local c = Instance.new("ObjectValue",Hum)
| |
| 1202 | c.Name = "creator" | |
| 1203 | c.Value = Plr | |
| 1204 | S.Debris:AddItem(c,0.35) | |
| 1205 | if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then | |
| 1206 | ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color) | |
| 1207 | end | |
| 1208 | if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end | |
| 1209 | Humanoid.Health = Humanoid.Health - DoneDamage | |
| 1210 | ||
| 1211 | if(DamageType == 'Knockback' and HitTorso)then | |
| 1212 | local up = DamageEffects.KnockUp or 25 | |
| 1213 | local back = DamageEffects.KnockBack or 25 | |
| 1214 | local origin = DamageEffects.Origin or Root | |
| 1215 | local decay = DamageEffects.Decay or .5; | |
| 1216 | ||
| 1217 | local bfos = Instance.new("BodyVelocity",HitTorso)
| |
| 1218 | bfos.P = 20000 | |
| 1219 | bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1220 | bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back) | |
| 1221 | S.Debris:AddItem(bfos,decay) | |
| 1222 | end | |
| 1223 | end | |
| 1224 | end | |
| 1225 | end | |
| 1226 | end | |
| 1227 | end | |
| 1228 | ||
| 1229 | function Kill(dude) | |
| 1230 | Kills = Kills + 1 | |
| 1231 | local t = GetTorso(dude) | |
| 1232 | local h = dude:FindFirstChildOfClass'Humanoid' | |
| 1233 | if(dude == Target)then | |
| 1234 | Target = nil | |
| 1235 | ResetVoodoo() | |
| 1236 | end | |
| 1237 | if(h)then Instance.new("BoolValue",h).Name = 'Killed' end
| |
| 1238 | if(t)then | |
| 1239 | Sound(t,429400881,.7,3,false,true,true) | |
| 1240 | local pe = NewInstance("ParticleEmitter",t,{Size=NumberSequence.new(.2,5),Enabled=false,Texture='rbxassetid://771221224',Speed=NumberRange.new(15),VelocitySpread=90,Color=ColorSequence.new(C3.N(1,0,0)),Transparency=NumberSequence.new(0,1),ZOffset=.8,Acceleration=V3.N(0,-25,0),EmissionDirection=Enum.NormalId.Top,Lifetime=NumberRange.new(1),Rate=2500,Rotation=NumberRange.new(-100,100),RotSpeed=NumberRange.new(-100,100),})
| |
| 1241 | pe:Emit(250) | |
| 1242 | NoobySphere(1,0,'Multiply',t.CFrame,V3.N(1,1,1),.1,C3.N(.4,0,0),0,nil,'xyz') | |
| 1243 | ResetVoodoo() | |
| 1244 | coroutine.wrap(function() | |
| 1245 | swait(60) | |
| 1246 | for i = 0, 1, .025 do | |
| 1247 | for _,v in next, dude:children() do | |
| 1248 | if(v:IsA'BasePart' and v.Name ~= 'HumanoidRootPart')then | |
| 1249 | v.Transparency = i | |
| 1250 | end | |
| 1251 | end | |
| 1252 | swait() | |
| 1253 | end | |
| 1254 | for _,v in next, dude:children() do | |
| 1255 | if(v:IsA'BasePart')then | |
| 1256 | v:destroy() | |
| 1257 | end | |
| 1258 | end | |
| 1259 | end)() | |
| 1260 | end | |
| 1261 | dude:breakJoints() | |
| 1262 | end | |
| 1263 | ||
| 1264 | function Burn(dude) | |
| 1265 | local t = GetTorso(dude) | |
| 1266 | local h = dude:FindFirstChildOfClass'Humanoid' | |
| 1267 | if(t and h)then | |
| 1268 | local pe = NewInstance("ParticleEmitter",t,{Color=ColorSequence.new(C3.RGB(255,105,19),C3.RGB(255,255,127)),LightEmission=.8,Size=NumberSequence.new(1,0),Transparency=NumberSequence.new(0,1),Texture='rbxassetid://242102147',ZOffset=.3,EmissionDirection=Enum.NormalId.Top,Rate=1000,Lifetime=NumberRange.new(1),Speed=NumberRange.new(5)})
| |
| 1269 | Sound(t,192104941,.8,5,false,true,true) | |
| 1270 | Sound(t,147758746,1,5,false,true,true) | |
| 1271 | coroutine.wrap(function() | |
| 1272 | repeat h.Health = h.Health - (h.MaxHealth/200) swait() until h.Health <= 0 | |
| 1273 | dude:breakJoints() | |
| 1274 | if(not h:FindFirstChild'Killed')then Kills = Kills + 1 end | |
| 1275 | h:destroy() | |
| 1276 | if(dude == Target)then | |
| 1277 | Target = nil | |
| 1278 | ResetVoodoo() | |
| 1279 | end | |
| 1280 | NoobySphere(1,0,'Multiply',t.CFrame,V3.N(1,1,1),.1,C3.N(.4,0,0),0,nil,'xyz') | |
| 1281 | swait(60) | |
| 1282 | for i = 0, 1, .025 do | |
| 1283 | for _,v in next, dude:children() do | |
| 1284 | if(v:IsA'BasePart' and v.Name ~= 'HumanoidRootPart')then | |
| 1285 | v.Transparency = i | |
| 1286 | v.Color = C3.N(0,0,0) | |
| 1287 | v.Material = Enum.Material.Slate | |
| 1288 | end | |
| 1289 | end | |
| 1290 | swait() | |
| 1291 | end | |
| 1292 | for _,v in next, dude:children() do | |
| 1293 | if(v:IsA'BasePart')then | |
| 1294 | v:destroy() | |
| 1295 | end | |
| 1296 | end | |
| 1297 | end)() | |
| 1298 | end | |
| 1299 | end | |
| 1300 | ||
| 1301 | function AOEDamage(where,range,options) | |
| 1302 | local hit = {}
| |
| 1303 | for _,v in next, getRegion(where,range,{Char}) do
| |
| 1304 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then | |
| 1305 | local callTable = {Who=v.Parent}
| |
| 1306 | hit[v.Parent] = true | |
| 1307 | for _,v in next, options do callTable[_] = v end | |
| 1308 | DealDamage(callTable) | |
| 1309 | end | |
| 1310 | end | |
| 1311 | return hit | |
| 1312 | end | |
| 1313 | ||
| 1314 | function AOEHeal(where,range,amount) | |
| 1315 | local healed = {}
| |
| 1316 | for _,v in next, getRegion(where,range,{Char}) do
| |
| 1317 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
| 1318 | if(hum and not healed[hum])then | |
| 1319 | hum.Health = hum.Health + amount | |
| 1320 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
| 1321 | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) | |
| 1322 | end | |
| 1323 | end | |
| 1324 | end | |
| 1325 | end | |
| 1326 | ||
| 1327 | function BurnANigga() | |
| 1328 | Attack = true | |
| 1329 | NeutralAnims = false | |
| 1330 | local Target = Target | |
| 1331 | for i = 0, 3, 0.1 do | |
| 1332 | swait() | |
| 1333 | local Alpha = .2 | |
| 1334 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21813294e-08, -0.0789605454, -7.5250864e-07, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1335 | LH.C0 = LH.C0:lerp(CFrame.new(-0.499999344, -1.02113664, -2.92062759e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1336 | RH.C0 = RH.C0:lerp(CFrame.new(0.499997526, -1.0211345, -1.49011612e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1337 | LS.C0 = LS.C0:lerp(CFrame.new(-1.48020887, 0.396520793, -0.0840251297, 0.125036538, -0.110845402, 0.985939026, -0.0894355327, 0.988434374, 0.122468963, -0.988111138, -0.103490412, 0.113677412),Alpha) | |
| 1338 | RS.C0 = RS.C0:lerp(CFrame.new(1.49998105, 0.499911726, 1.90734863e-06, 0.902840197, -0.0815670565, 0.422160357, 0.389566094, -0.260352403, -0.883433402, 0.18197079, 0.962058306, -0.20328176),Alpha) | |
| 1339 | NK.C0 = NK.C0:lerp(CFrame.new(2.08616257e-06, 1.50000572, 1.21630728e-06, 0.102758601, -0.164331287, 0.981036484, -0.0197002441, 0.985729218, 0.167181715, -0.994509459, -0.0365053862, 0.098055318),Alpha) | |
| 1340 | end | |
| 1341 | knife.Transparency = 1 | |
| 1342 | local Match = New("Model",Char,"Match",{})
| |
| 1343 | local Handle = New("Part",Match,"Handle",{BrickColor = BrickColor.new("Brick yellow"),Material = Enum.Material.Wood,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 1.2069068, 0.200000003),CFrame = CFrame.new(22.6316547, 30.6187859, 20.0125217, 0.836512625, -0.224143878, -0.499997824, 0.258817941, 0.965925753, 2.13843787e-08, 0.482960761, -0.129409477, 0.866021514),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.843137, 0.772549, 0.603922),})
| |
| 1344 | ||
| 1345 | local FXHead = New("Part",Match,"FXHead",{BrickColor = BrickColor.new("Dusty Rose"),Material = Enum.Material.Concrete,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.144828811, 0.225289285, 0.144828811),CFrame = CFrame.new(22.4783554, 31.2793884, 19.9240131, 0.836508334, -0.224146977, -0.499995291, 0.258818597, 0.965925217, -3.05112985e-06, 0.482958704, -0.129407614, 0.866017997),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.639216, 0.294118, 0.294118),})
| |
| 1346 | local Mesh = New("SpecialMesh",FXHead,"Mesh",{MeshType = Enum.MeshType.Sphere,})
| |
| 1347 | local mot = New("Motor",FXHead,"mot",{Part0 = FXHead,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.836515725, 0.258820862, 0.482963055, -0.224147007, 0.965925395, -0.129407734, -0.499999642, -3.10509813e-06, 0.866025686),C1 = CFrame.new(-7.62939453e-06, 0.683908463, -9.53674316e-07, 0.836512625, 0.258817941, 0.482960761, -0.224143878, 0.965925753, -0.129409477, -0.499997824, 2.13843787e-08, 0.866021514),})
| |
| 1348 | local MHead = New("Part",Match,"MHead",{BrickColor = BrickColor.new("Dusty Rose"),Material = Enum.Material.Concrete,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0804604515, 0.0482763015, 0.0804604515),CFrame = CFrame.new(22.4945812, 31.209444, 19.9333839, 0.836508274, -0.224147394, -0.499995291, 0.258818835, 0.965925217, -3.39144185e-06, 0.482958704, -0.12940748, 0.866017878),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.639216, 0.294118, 0.294118),})
| |
| 1349 | local mot = New("Motor",MHead,"mot",{Part0 = MHead,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.836515665, 0.2588211, 0.482963055, -0.224147394, 0.965925276, -0.12940757, -0.499999642, -3.44821296e-06, 0.866025627),C1 = CFrame.new(-1.14440918e-05, 0.611497879, 1.90734863e-06, 0.836512625, 0.258817941, 0.482960761, -0.224143878, 0.965925753, -0.129409477, -0.499997824, 2.13843787e-08, 0.866021514),}) local Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(0.400000006, 1, 0.400000006),})
| |
| 1350 | ||
| 1351 | local fire = NewInstance("ParticleEmitter",FXHead,{
| |
| 1352 | Color = ColorSequence.new(C3.RGB(255,237,210),C3.RGB(255,170,0)), | |
| 1353 | LightEmission=1, | |
| 1354 | LightInfluence=0, | |
| 1355 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.3,.25),NumberSequenceKeypoint.new(.597,.312),NumberSequenceKeypoint.new(1,0)},
| |
| 1356 | Texture='rbxassetid://242461088', | |
| 1357 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.199,.825),NumberSequenceKeypoint.new(.6,1),NumberSequenceKeypoint.new(1,1)},
| |
| 1358 | ZOffset=.2, | |
| 1359 | Acceleration=V3.N(0,.75,0), | |
| 1360 | LockedToPart=true, | |
| 1361 | EmissionDirection=Enum.NormalId.Top, | |
| 1362 | Lifetime=NumberRange.new(.75), | |
| 1363 | Rate=50, | |
| 1364 | Speed=NumberRange.new(0) | |
| 1365 | }) | |
| 1366 | local HW = NewInstance('Weld',Char,{Part0=LArm,Part1=Handle,C0=CF.N(0,-1,0)*CF.A(M.R(-90),0,0)})
| |
| 1367 | for i = 0, 7, 0.1 do | |
| 1368 | swait() | |
| 1369 | local Alpha = .1 | |
| 1370 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21805193e-08, -0.0789600536, 1.08964741e-06, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1371 | LH.C0 = LH.C0:lerp(CFrame.new(-0.499998987, -1.02113318, -1.04308128e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1372 | RH.C0 = RH.C0:lerp(CFrame.new(0.499997348, -1.02113235, -5.96046448e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1373 | LS.C0 = LS.C0:lerp(CFrame.new(-1.28626728, 0.457301795, 0.0561587811, 0.779788852, 0.617777467, -0.101375088, -0.0164614469, -0.141639799, -0.98978132, -0.625823021, 0.773489416, -0.100280359),Alpha) | |
| 1374 | RS.C0 = RS.C0:lerp(CFrame.new(1.49997759, 0.499910235, 1.22189522e-06, 0.902840197, -0.0815670565, 0.422160357, 0.389566094, -0.260352403, -0.883433402, 0.18197079, 0.962058306, -0.20328176),Alpha) | |
| 1375 | NK.C0 = NK.C0:lerp(CFrame.new(3.81376594e-06, 1.5000037, 3.7914142e-06, 0.561061919, 0.0163413882, 0.827610493, -0.0240478665, 0.999704778, -0.00343565643, -0.827422142, -0.0179739445, 0.561289608),Alpha) | |
| 1376 | end | |
| 1377 | for i = 0, 1, 0.1 do | |
| 1378 | swait() | |
| 1379 | local Alpha = .15 | |
| 1380 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21813294e-08, -0.0789605454, -7.5250864e-07, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1381 | LH.C0 = LH.C0:lerp(CFrame.new(-0.499998987, -1.02113295, -1.96695328e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1382 | RH.C0 = RH.C0:lerp(CFrame.new(0.499997348, -1.02113235, -5.96046448e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1383 | LS.C0 = LS.C0:lerp(CFrame.new(-0.56364888, 0.845062912, -0.882486701, 0.556871235, -0.829850614, 0.0351991951, -0.0293087214, -0.0619851053, -0.99764663, 0.830079675, 0.554528773, -0.0588402748),Alpha) | |
| 1384 | RS.C0 = RS.C0:lerp(CFrame.new(1.49997818, 0.499908328, 1.7285347e-06, 0.902840197, -0.0815670565, 0.422160357, 0.389566094, -0.260352403, -0.883433402, 0.18197079, 0.962058306, -0.20328176),Alpha) | |
| 1385 | NK.C0 = NK.C0:lerp(CFrame.new(-2.10106373e-06, 1.50000787, -1.17905438e-06, 0.744260013, 0.016378643, -0.667686522, -0.000203326344, 0.999704778, 0.0242953151, 0.667887568, -0.0179455429, 0.74404341),Alpha) | |
| 1386 | end | |
| 1387 | Burn(Target) | |
| 1388 | for i = 0, 6, 0.1 do | |
| 1389 | swait() | |
| 1390 | local Alpha = .15 | |
| 1391 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21813294e-08, -0.0789605454, -7.5250864e-07, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1392 | LH.C0 = LH.C0:lerp(CFrame.new(-0.499998987, -1.02113318, -1.04308128e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1393 | RH.C0 = RH.C0:lerp(CFrame.new(0.499997348, -1.02113235, -5.96046448e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1394 | LS.C0 = LS.C0:lerp(CFrame.new(-0.431874216, 0.854955196, -0.97056669, 0.117097467, -0.829880476, -0.545511901, -0.991014123, -0.0618889406, -0.118577883, 0.064643696, 0.554494739, -0.829670548),Alpha) | |
| 1395 | RS.C0 = RS.C0:lerp(CFrame.new(1.55841696, 0.530878901, -0.013287276, 0.846236467, 0.325094491, 0.422130316, 0.464434087, -0.0617963374, -0.883448958, -0.261117637, 0.943658531, -0.203279719),Alpha) | |
| 1396 | NK.C0 = NK.C0:lerp(CFrame.new(-3.43844295e-06, 1.50000417, 3.09199095e-07, 0.744260013, 0.016378643, -0.667686522, -0.000203326344, 0.999704778, 0.0242953151, 0.667887568, -0.0179455429, 0.74404341),Alpha) | |
| 1397 | end | |
| 1398 | for i = 0, 3, 0.1 do | |
| 1399 | swait() | |
| 1400 | local Alpha = .1 | |
| 1401 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21813294e-08, -0.0789605454, -7.5250864e-07, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1402 | LH.C0 = LH.C0:lerp(CFrame.new(-0.499999344, -1.02113664, -2.92062759e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1403 | RH.C0 = RH.C0:lerp(CFrame.new(0.499997526, -1.0211345, -1.49011612e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1404 | LS.C0 = LS.C0:lerp(CFrame.new(-1.48020887, 0.396520793, -0.0840251297, 0.125036538, -0.110845402, 0.985939026, -0.0894355327, 0.988434374, 0.122468963, -0.988111138, -0.103490412, 0.113677412),Alpha) | |
| 1405 | RS.C0 = RS.C0:lerp(CFrame.new(1.49998105, 0.499911726, 1.90734863e-06, 0.902840197, -0.0815670565, 0.422160357, 0.389566094, -0.260352403, -0.883433402, 0.18197079, 0.962058306, -0.20328176),Alpha) | |
| 1406 | NK.C0 = NK.C0:lerp(CFrame.new(2.08616257e-06, 1.50000572, 1.21630728e-06, 0.102758601, -0.164331287, 0.981036484, -0.0197002441, 0.985729218, 0.167181715, -0.994509459, -0.0365053862, 0.098055318),Alpha) | |
| 1407 | end | |
| 1408 | knife.Transparency = 0 | |
| 1409 | Match:destroy() | |
| 1410 | Attack = false | |
| 1411 | NeutralAnims = true | |
| 1412 | ||
| 1413 | end | |
| 1414 | ||
| 1415 | function KillVoodoo() | |
| 1416 | Attack = true | |
| 1417 | NeutralAnims = false | |
| 1418 | WalkSpeed = 0 | |
| 1419 | local Target = Target | |
| 1420 | for i = 0, 1.9, 0.1 do | |
| 1421 | swait() | |
| 1422 | local Alpha = .1 | |
| 1423 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21813294e-08, -0.0789605454, -7.5250864e-07, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1424 | LH.C0 = LH.C0:lerp(CFrame.new(-0.500003159, -1.02113652, -1.87754631e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1425 | RH.C0 = RH.C0:lerp(CFrame.new(0.500005007, -1.02113163, -4.17232513e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1426 | LS.C0 = LS.C0:lerp(CFrame.new(-1.30809402, 0.707052946, -0.212298125, 0.324948817, 0.857990444, 0.397815555, 0.638829648, -0.509305477, 0.576632023, 0.697354972, 0.0667604953, -0.71360743),Alpha) | |
| 1427 | RS.C0 = RS.C0:lerp(CFrame.new(1.17349327, 0.596340418, -0.226585925, 0.880390525, 0.216107711, 0.422145128, 0.452990264, -0.119689628, -0.883444428, -0.140392065, 0.969003797, -0.203268766),Alpha) | |
| 1428 | NK.C0 = NK.C0:lerp(CFrame.new(4.42750752e-06, 1.50000238, 4.23006713e-06, 0.827343702, 0.0163316131, -0.561455429, -0.00340057909, 0.99970448, 0.024066925, 0.56168288, -0.0180016756, 0.827154636),Alpha) | |
| 1429 | end | |
| 1430 | local gay = Plrs:GetPlayerFromCharacter(Target) | |
| 1431 | if(not gay or Plr.UserId == 5719877 or gay.UserId ~= 5719877 and gay.UserId ~= 19909695 and gay.UserId ~= 33104243)then | |
| 1432 | Kill(Target) | |
| 1433 | for i = 0, 1.2, 0.1 do | |
| 1434 | swait() | |
| 1435 | local Alpha = .2 | |
| 1436 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21813294e-08, -0.0789605454, -7.5250864e-07, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1437 | LH.C0 = LH.C0:lerp(CFrame.new(-0.500003159, -1.02113652, -1.87754631e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1438 | RH.C0 = RH.C0:lerp(CFrame.new(0.500005007, -1.02113163, -4.17232513e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1439 | LS.C0 = LS.C0:lerp(CFrame.new(-0.765871823, 0.875704765, -0.619495153, 0.324934751, -0.587293684, 0.74128288, 0.638849139, -0.441647798, -0.629935622, 0.697343588, 0.678255379, 0.231685296),Alpha) | |
| 1440 | RS.C0 = RS.C0:lerp(CFrame.new(1.17349327, 0.596340418, -0.226585925, 0.880390525, 0.216107711, 0.422145128, 0.452990264, -0.119689628, -0.883444428, -0.140392065, 0.969003797, -0.203268766),Alpha) | |
| 1441 | NK.C0 = NK.C0:lerp(CFrame.new(4.42750752e-06, 1.50000238, 4.23006713e-06, 0.827343702, 0.0163316131, -0.561455429, -0.00340057909, 0.99970448, 0.024066925, 0.56168288, -0.0180016756, 0.827154636),Alpha) | |
| 1442 | end | |
| 1443 | for i = 0, .9, 0.1 do | |
| 1444 | swait() | |
| 1445 | local Alpha = .2 | |
| 1446 | RJ.C0 = RJ.C0:lerp(CFrame.new(-2.16149999e-07, -0.0789605081, -7.11530447e-07, 0.999989629, 2.49221875e-06, 1.27442513e-06, 2.73494675e-06, 0.965795875, 0.259301215, 5.88124067e-07, -0.259299994, 0.965785265),Alpha) | |
| 1447 | LH.C0 = LH.C0:lerp(CFrame.new(-0.500001371, -1.02113628, -5.54323196e-06, 0.996183932, 0.0871576071, 5.81604752e-07, -0.0841722414, 0.96212101, -0.259300053, -0.0225983392, 0.258314729, 0.965785265),Alpha) | |
| 1448 | RH.C0 = RH.C0:lerp(CFrame.new(0.49999243, -1.02113175, -5.66244125e-06, 0.996184528, -0.0871521831, 5.94584947e-07, 0.0841772109, 0.962120533, -0.259300053, 0.0226008799, 0.25831449, 0.965785265),Alpha) | |
| 1449 | LS.C0 = LS.C0:lerp(CFrame.new(-1.34198368, 0.383808315, 0.099660337, 0.324967146, 0.259882778, 0.90930742, 0.638826787, -0.76930356, -0.00842937827, 0.697345734, 0.583627462, -0.416016668),Alpha) | |
| 1450 | RS.C0 = RS.C0:lerp(CFrame.new(1.1734798, 0.596339762, -0.226573557, 0.880385041, 0.216106832, 0.422140598, 0.452991217, -0.1196879, -0.883443415, -0.140389711, 0.968996823, -0.203268081),Alpha) | |
| 1451 | NK.C0 = NK.C0:lerp(CFrame.new(4.42750752e-06, 1.50000238, 4.23006713e-06, 0.827343702, 0.0163316131, -0.561455429, -0.00340057909, 0.99970448, 0.024066925, 0.56168288, -0.0180016756, 0.827154636),Alpha) | |
| 1452 | end | |
| 1453 | else | |
| 1454 | for i = 0, 1.2, 0.1 do | |
| 1455 | swait() | |
| 1456 | local Alpha = .2 | |
| 1457 | RJ.C0 = RJ.C0:lerp(CFrame.new(-7.21813294e-08, -0.0789605454, -7.5250864e-07, 0.999996543, 8.32955209e-07, 4.22970459e-07, 9.11652307e-07, 0.965796173, 0.259301841, 1.96043004e-07, -0.259301394, 0.965792596),Alpha) | |
| 1458 | LH.C0 = LH.C0:lerp(CFrame.new(-0.500003159, -1.02113652, -1.87754631e-06, 0.996191025, 0.0871564001, 1.89523718e-07, -0.0841739103, 0.962121129, -0.259301454, -0.0225992389, 0.258315265, 0.965792596),Alpha) | |
| 1459 | RH.C0 = RH.C0:lerp(CFrame.new(0.500005007, -1.02113163, -4.17232513e-07, 0.996191263, -0.087154597, 2.02503998e-07, 0.0841755792, 0.96212101, -0.259301454, 0.0226000845, 0.258315176, 0.965792596),Alpha) | |
| 1460 | LS.C0 = LS.C0:lerp(CFrame.new(-0.765871823, 0.875704765, -0.619495153, 0.324934751, -0.587293684, 0.74128288, 0.638849139, -0.441647798, -0.629935622, 0.697343588, 0.678255379, 0.231685296),Alpha) | |
| 1461 | RS.C0 = RS.C0:lerp(CFrame.new(1.34997082, 0.691436887, -0.00414918363, 0.308846682, -0.493054748, -0.813330948, -0.13198103, 0.824647903, -0.550033391, 0.94190836, 0.277220637, 0.18961516),Alpha) | |
| 1462 | NK.C0 = NK.C0:lerp(CFrame.new(4.42750752e-06, 1.50000238, 4.23006713e-06, 0.827343702, 0.0163316131, -0.561455429, -0.00340057909, 0.99970448, 0.024066925, 0.56168288, -0.0180016756, 0.827154636),Alpha) | |
| 1463 | end | |
| 1464 | for i = 0, .9, 0.1 do | |
| 1465 | swait() | |
| 1466 | local Alpha = .2 | |
| 1467 | RJ.C0 = RJ.C0:lerp(CFrame.new(-2.16149999e-07, -0.0789605081, -7.11530447e-07, 0.999989629, 2.49221875e-06, 1.27442513e-06, 2.73494675e-06, 0.965795875, 0.259301215, 5.88124067e-07, -0.259299994, 0.965785265),Alpha) | |
| 1468 | LH.C0 = LH.C0:lerp(CFrame.new(-0.500001371, -1.02113628, -5.54323196e-06, 0.996183932, 0.0871576071, 5.81604752e-07, -0.0841722414, 0.96212101, -0.259300053, -0.0225983392, 0.258314729, 0.965785265),Alpha) | |
| 1469 | RH.C0 = RH.C0:lerp(CFrame.new(0.49999243, -1.02113175, -5.66244125e-06, 0.996184528, -0.0871521831, 5.94584947e-07, 0.0841772109, 0.962120533, -0.259300053, 0.0226008799, 0.25831449, 0.965785265),Alpha) | |
| 1470 | LS.C0 = LS.C0:lerp(CFrame.new(-1.34198368, 0.383808315, 0.099660337, 0.324967146, 0.259882778, 0.90930742, 0.638826787, -0.76930356, -0.00842937827, 0.697345734, 0.583627462, -0.416016668),Alpha) | |
| 1471 | RS.C0 = RS.C0:lerp(CFrame.new(1.34997082, 0.691436887, -0.00414918363, 0.308846682, -0.493054748, -0.813330948, -0.13198103, 0.824647903, -0.550033391, 0.94190836, 0.277220637, 0.18961516),Alpha) | |
| 1472 | NK.C0 = NK.C0:lerp(CFrame.new(4.42750752e-06, 1.50000238, 4.23006713e-06, 0.827343702, 0.0163316131, -0.561455429, -0.00340057909, 0.99970448, 0.024066925, 0.56168288, -0.0180016756, 0.827154636),Alpha) | |
| 1473 | end | |
| 1474 | end | |
| 1475 | WalkSpeed = 8 | |
| 1476 | Attack = false | |
| 1477 | NeutralAnims = true | |
| 1478 | end | |
| 1479 | ||
| 1480 | Mouse.KeyDown:connect(function(k) | |
| 1481 | if(Attack)then return end | |
| 1482 | if(k == 'q')then | |
| 1483 | local targ = (Mouse.Target and Mouse.Target.Parent) | |
| 1484 | if(targ and GetTorso(targ) and targ:FindFirstChildOfClass'Humanoid')then | |
| 1485 | ChangeTarget(targ) | |
| 1486 | end | |
| 1487 | elseif(k == 'z' and Target)then | |
| 1488 | BurnANigga() | |
| 1489 | end | |
| 1490 | end) | |
| 1491 | ||
| 1492 | Mouse.Button1Down:connect(function() | |
| 1493 | if(Attack)then return end | |
| 1494 | if(Target)then | |
| 1495 | KillVoodoo() | |
| 1496 | else | |
| 1497 | end | |
| 1498 | end) | |
| 1499 | ||
| 1500 | coroutine.wrap(function() | |
| 1501 | while true do | |
| 1502 | if(M.RNG(1,350) == 1 and not Glitching)then | |
| 1503 | for i = 1, M.RNG(100,300)/100 do | |
| 1504 | local TP = Music.TimePosition | |
| 1505 | Glitching = true | |
| 1506 | swait(M.RNG(15,30)) | |
| 1507 | Glitching = false | |
| 1508 | Music.TimePosition = TP | |
| 1509 | end | |
| 1510 | end | |
| 1511 | swait() | |
| 1512 | end | |
| 1513 | end)() | |
| 1514 | ||
| 1515 | local Texts = {"INSANITY","BURN","DIE","CRY","VOODOO","NO STRINGS ATTACHED"}
| |
| 1516 | coroutine.wrap(function() | |
| 1517 | while true do | |
| 1518 | if(M.RNG(1,65) >= (Glitching and 5 or 40))then | |
| 1519 | local frame = NewInstance("Frame",gui,{Size=UDim2.new(.26,0,.07,0),BackgroundTransparency=1,Position=UDim2.new(M.RNG(0,100)/100,0,M.RNG(0,100)/100,0)})
| |
| 1520 | local fat = Texts[M.RNG(1,#Texts)] | |
| 1521 | local toxt = ""; | |
| 1522 | for i = 1, #fat do | |
| 1523 | if(M.RNG(1,2) == 1)then | |
| 1524 | toxt = toxt..fat:sub(i,i):lower() | |
| 1525 | else | |
| 1526 | toxt = toxt..fat:sub(i,i) | |
| 1527 | end | |
| 1528 | end | |
| 1529 | local rot = M.RNG(-15,15) | |
| 1530 | local txt = NewInstance('TextLabel',frame,{Rotation=rot,TextTransparency=1,Text=toxt,TextColor3=C3.N(M.RNG(50,100)/100,0,0),FontSize=M.RNG(8,14),Font=Enum.Font.Antique})
| |
| 1531 | coroutine.wrap(function() | |
| 1532 | for i = 1, 30 do | |
| 1533 | swait() | |
| 1534 | txt.Rotation = rot+M.RNG(-15,15) | |
| 1535 | txt.TextTransparency = txt.TextTransparency - 1/30 | |
| 1536 | end | |
| 1537 | for i = 1, 30 do | |
| 1538 | swait() | |
| 1539 | txt.Rotation = rot+M.RNG(-15,15) | |
| 1540 | txt.TextTransparency = txt.TextTransparency + 1/30 | |
| 1541 | end | |
| 1542 | txt:destroy() | |
| 1543 | end)() | |
| 1544 | end | |
| 1545 | swait() | |
| 1546 | end | |
| 1547 | end)() | |
| 1548 | ||
| 1549 | local FT,RA,LA,RL,LL = Instance.new("BlockMesh"),Instance.new("BlockMesh"),Instance.new("BlockMesh"),Instance.new("BlockMesh"),Instance.new("BlockMesh")
| |
| 1550 | ||
| 1551 | local Meshes = {FT,RA,LA,RL,LL}
| |
| 1552 | ||
| 1553 | for _,v in next, Char:GetDescendants() do | |
| 1554 | if(v:IsA'DataModelMesh')then | |
| 1555 | table.insert(Meshes,v) | |
| 1556 | end | |
| 1557 | end | |
| 1558 | ||
| 1559 | while true do | |
| 1560 | swait() | |
| 1561 | ||
| 1562 | if(Target and (not Target.Parent or not Target:FindFirstChildOfClass'Humanoid' or Target:FindFirstChildOfClass'Humanoid'.Health <= 0))then | |
| 1563 | Target = nil | |
| 1564 | ResetVoodoo() | |
| 1565 | end | |
| 1566 | txt.Rotation = M.RNG(-150,150)/150 | |
| 1567 | txt.Text = 'Target: '..(Target and Target.Name or '') | |
| 1568 | ||
| 1569 | ktxt.Rotation = M.RNG(-150,150)/150 | |
| 1570 | ktxt.Text = 'Kills: '..Kills | |
| 1571 | ||
| 1572 | Hum.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None | |
| 1573 | ||
| 1574 | VHum.PlatformStand = true | |
| 1575 | VHum:ChangeState(Enum.HumanoidStateType.Physics) | |
| 1576 | VHum:SetStateEnabled(Enum.HumanoidStateType.Dead,false) | |
| 1577 | ||
| 1578 | Sine = Sine + Change | |
| 1579 | if(not Music or not Music.Parent)then | |
| 1580 | local tp = (Music and Music.TimePosition) | |
| 1581 | Music = Sound(Char,MusicID,1,10,true,false,true) | |
| 1582 | Music.Name = 'Music' | |
| 1583 | Music.TimePosition = tp | |
| 1584 | end | |
| 1585 | Music.SoundId = "rbxassetid://"..MusicID | |
| 1586 | Music.Parent = Torso | |
| 1587 | Music.Pitch = (Glitching and M.RNG(55,175)/100 or 1) | |
| 1588 | Music.Volume = 3 | |
| 1589 | if(not Muted)then | |
| 1590 | Music:Resume() | |
| 1591 | else | |
| 1592 | Music:Pause() | |
| 1593 | end | |
| 1594 | ||
| 1595 | if(God)then | |
| 1596 | Hum.MaxHealth = 1e100 | |
| 1597 | Hum.Health = 1e100 | |
| 1598 | if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
| |
| 1599 | Hum.Name = M.RNG()*100 | |
| 1600 | end | |
| 1601 | ||
| 1602 | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char) | |
| 1603 | ||
| 1604 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
| 1605 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle") | |
| 1606 | if(not Effects or not Effects.Parent)then | |
| 1607 | Effects = IN("Model",Char)
| |
| 1608 | Effects.Name = "Effects" | |
| 1609 | end | |
| 1610 | if(State == 'Run')then | |
| 1611 | local wsVal = 16 / (Hum.WalkSpeed/16) | |
| 1612 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
| 1613 | Change = 1 | |
| 1614 | RH.C1 = RH.C1:lerp(CF.N(0,1-.5*M.C(Sine/wsVal)/2,.5*M.C(Sine/wsVal)/2)*CF.A(M.R(25-15*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2,0,0),Alpha) | |
| 1615 | LH.C1 = LH.C1:lerp(CF.N(0,1+.5*M.C(Sine/wsVal)/2,-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(25+15*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2,0,0),Alpha) | |
| 1616 | elseif(State == 'Walk')then | |
| 1617 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
| 1618 | local Alpha = math.min(.15 * (Hum.WalkSpeed/16),1) | |
| 1619 | Change = 1 | |
| 1620 | RH.C1 = RH.C1:lerp(CF.N(0,1-.5*M.C(Sine/wsVal)/2,.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-5*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2,0,0),Alpha) | |
| 1621 | LH.C1 = LH.C1:lerp(CF.N(0,1+.5*M.C(Sine/wsVal)/2,-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+5*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2,0,0),Alpha) | |
| 1622 | else | |
| 1623 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2) | |
| 1624 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2) | |
| 1625 | end | |
| 1626 | Hum.WalkSpeed = WalkSpeed | |
| 1627 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
| 1628 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
| 1629 | ||
| 1630 | if(Glitching)then | |
| 1631 | Hum.CameraOffset = V3.N(M.RNG(-25,25)/100,M.RNG(-25,25)/100,M.RNG(-25,25)/100) | |
| 1632 | elseif(not Hum:FindFirstChild'CamShaking')then | |
| 1633 | Hum.CameraOffset = V3.N(0,0,0) | |
| 1634 | end | |
| 1635 | ||
| 1636 | if(Glitching)then | |
| 1637 | RA.Parent = RArm | |
| 1638 | LA.Parent = LArm | |
| 1639 | FT.Parent = Torso | |
| 1640 | RL.Parent = RLeg | |
| 1641 | LL.Parent = LLeg | |
| 1642 | for _,v in next, Meshes do | |
| 1643 | v.Offset = V3.N(M.RNG(-25,25)/100,M.RNG(-25,25)/100,M.RNG(-25,25)/100) | |
| 1644 | end | |
| 1645 | ||
| 1646 | RLeg.Material = Enum.Material.Neon | |
| 1647 | LLeg.Material = Enum.Material.Neon | |
| 1648 | RArm.Material = Enum.Material.Neon | |
| 1649 | LArm.Material = Enum.Material.Neon | |
| 1650 | Torso.Material = Enum.Material.Neon | |
| 1651 | Head.Material = Enum.Material.Neon | |
| 1652 | else | |
| 1653 | for _,v in next, Meshes do | |
| 1654 | v.Offset = V3.N(0,0,0) | |
| 1655 | end | |
| 1656 | RA.Parent = nil | |
| 1657 | LA.Parent = nil | |
| 1658 | FT.Parent = nil | |
| 1659 | RL.Parent = nil | |
| 1660 | LL.Parent = nil | |
| 1661 | RLeg.Material = Enum.Material.SmoothPlastic | |
| 1662 | LLeg.Material = Enum.Material.SmoothPlastic | |
| 1663 | RArm.Material = Enum.Material.SmoothPlastic | |
| 1664 | LArm.Material = Enum.Material.SmoothPlastic | |
| 1665 | Torso.Material = Enum.Material.SmoothPlastic | |
| 1666 | Head.Material = Enum.Material.SmoothPlastic | |
| 1667 | end | |
| 1668 | ||
| 1669 | if(NeutralAnims)then | |
| 1670 | if(State == 'Idle')then | |
| 1671 | local Alpha = .1 | |
| 1672 | Change = 1 | |
| 1673 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),.3) | |
| 1674 | if(M.RNG(1,45) == 45)then | |
| 1675 | NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,0)*CF.A(M.RRNG(15,65),M.RRNG(-35,35),0),1) | |
| 1676 | end | |
| 1677 | if(not Glitching)then | |
| 1678 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.05*M.C(Sine/24),0)*CF.A(M.R(-15),0,0),Alpha) | |
| 1679 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(15),0,M.R(-5-5*M.C(Sine/24))),Alpha) | |
| 1680 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(105-5*M.C(Sine/24)),M.R(25),M.R(5+5*M.C(Sine/16))),Alpha) | |
| 1681 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/24),0)*CF.A(M.R(15),0,M.R(-5)),Alpha) | |
| 1682 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/24),0)*CF.A(M.R(15),0,M.R(5)),Alpha) | |
| 1683 | else | |
| 1684 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.2+.1*M.C(Sine/24),0)*CF.A(M.R(-45),0,0),1) | |
| 1685 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,.1*M.C(Sine/24),0)*CF.A(M.R(180),0,M.R(25)+M.RRNG(-3,3)),1) | |
| 1686 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,.1*M.C(Sine/24),0)*CF.A(M.R(180),0,M.R(-25)+M.RRNG(-3,3)),1) | |
| 1687 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,-.1*M.C(Sine/24),0)*CF.A(M.R(45),0,M.R(-5)),1) | |
| 1688 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,-.1*M.C(Sine/24),0)*CF.A(M.R(45),0,M.R(5)),1) | |
| 1689 | NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.2)*CF.A(M.R(-25),0,0)*CF.A(M.RRNG(-5,5),M.RRNG(-3,3),0),.1) | |
| 1690 | end | |
| 1691 | ||
| 1692 | elseif(State == 'Run')then | |
| 1693 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
| 1694 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
| 1695 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha) | |
| 1696 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
| 1697 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha) | |
| 1698 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha) | |
| 1699 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
| 1700 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
| 1701 | elseif(State == 'Walk')then | |
| 1702 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
| 1703 | local Alpha = math.min(.15 * (Hum.WalkSpeed/16),1) | |
| 1704 | NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),.3) | |
| 1705 | if(M.RNG(1,45) == 45)then | |
| 1706 | NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,0)*CF.A(M.RRNG(15,65),M.RRNG(-35,35),0),1) | |
| 1707 | end | |
| 1708 | if(not Glitching)then | |
| 1709 | RJ.C0 = RJ.C0:lerp(CF.N(0,-.075+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/7),0)*CF.A(M.R(-15-2.5*M.C(Sine/(wsVal/2))),M.R(4*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha) | |
| 1710 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.27*M.C(Sine/wsVal))*CF.A(M.R(28*M.C(Sine/wsVal)),0,M.R(-5-7*M.S(Sine/wsVal))+LArm.RotVelocity.y/35),Alpha) | |
| 1711 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(105-5*M.C(Sine/24)),M.R(25),M.R(5+5*M.C(Sine/16))),Alpha) | |
| 1712 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15+2.5*M.C(Sine/(wsVal/2))),M.R(-4*M.C(Sine/wsVal)),0),Alpha) | |
| 1713 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15+2.5*M.C(Sine/(wsVal/2))),M.R(-4*M.C(Sine/wsVal)),0),Alpha) | |
| 1714 | else | |
| 1715 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.2+.1*M.C(Sine/24),0)*CF.A(M.R(-45),0,0),1) | |
| 1716 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,.1*M.C(Sine/24),0)*CF.A(M.R(180),0,M.R(25)+M.RRNG(-3,3)),1) | |
| 1717 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,.1*M.C(Sine/24),0)*CF.A(M.R(180),0,M.R(-25)+M.RRNG(-3,3)),1) | |
| 1718 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,-.1*M.C(Sine/24),0)*CF.A(M.R(45),0,M.R(-5)),1) | |
| 1719 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,-.1*M.C(Sine/24),0)*CF.A(M.R(45),0,M.R(5)),1) | |
| 1720 | NK.C0 = NK.C0:lerp(NKC0*CF.N(0,0,-.2)*CF.A(M.R(-25),0,0)*CF.A(M.RRNG(-5,5),M.RRNG(-3,3),0),.1) | |
| 1721 | end | |
| 1722 | ||
| 1723 | elseif(State == 'Jump')then | |
| 1724 | local Alpha = .1 | |
| 1725 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
| 1726 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha) | |
| 1727 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha) | |
| 1728 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
| 1729 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
| 1730 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
| 1731 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
| 1732 | elseif(State == 'Fall')then | |
| 1733 | local Alpha = .1 | |
| 1734 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
| 1735 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha) | |
| 1736 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha) | |
| 1737 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
| 1738 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
| 1739 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
| 1740 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
| 1741 | elseif(State == 'Paralyzed')then | |
| 1742 | elseif(State == 'Sit')then | |
| 1743 | end | |
| 1744 | end | |
| 1745 | ||
| 1746 | for i,v in next, BloodPuddles do | |
| 1747 | local mesh = i:FindFirstChild'CylinderMesh' | |
| 1748 | BloodPuddles[i] = v + 1 | |
| 1749 | if(not mesh or i.Transparency >= 1)then | |
| 1750 | i:destroy() | |
| 1751 | BloodPuddles[i] = nil | |
| 1752 | elseif(v >= Frame_Speed*4)then | |
| 1753 | local trans = (v-Frame_Speed*4)/(Frame_Speed*2) | |
| 1754 | i.Transparency = trans | |
| 1755 | if(mesh.Scale.Z > 0)then | |
| 1756 | mesh.Scale = mesh.Scale-V3.N(.05,0,.05) | |
| 1757 | end | |
| 1758 | else | |
| 1759 | i.Transparency = 0 | |
| 1760 | end | |
| 1761 | end | |
| 1762 | end |