SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do | |
| 6 | print("FE Compatibility code V2 by Mokiros")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | i = tostring(math.random(0,10000)) | |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | ||
| 87 | local h,t | |
| 88 | --Give the server mouse data every second frame, but only if the values changed | |
| 89 | --If player is not moving their mouse, client won't fire events | |
| 90 | local HB = game:GetService("RunService").Heartbeat
| |
| 91 | while true do | |
| 92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 93 | h,t=Mouse.Hit,Mouse.Target | |
| 94 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 95 | end | |
| 96 | --Wait 2 frames | |
| 97 | for i=1,2 do | |
| 98 | HB:Wait() | |
| 99 | end | |
| 100 | end]==],script) | |
| 101 | ||
| 102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 103 | --Real game object | |
| 104 | local RealGame = game | |
| 105 | ||
| 106 | --Metatable for fake service | |
| 107 | local FakeService_Metatable = {
| |
| 108 | __index = function(self,k) | |
| 109 | local s = rawget(self,"_RealService") | |
| 110 | if s then | |
| 111 | return typeof(s[k])=="function" | |
| 112 | and function(_,...)return s[k](s,...)end or s[k] | |
| 113 | end | |
| 114 | end, | |
| 115 | __newindex = function(self,k,v) | |
| 116 | local s = rawget(self,"_RealService") | |
| 117 | if s then s[k]=v end | |
| 118 | end | |
| 119 | } | |
| 120 | local function FakeService(t,RealService) | |
| 121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 122 | return setmetatable(t,FakeService_Metatable) | |
| 123 | end | |
| 124 | ||
| 125 | --Fake game object | |
| 126 | local FakeGame = {
| |
| 127 | GetService = function(self,s) | |
| 128 | return rawget(self,s) or RealGame:GetService(s) | |
| 129 | end, | |
| 130 | Players = FakeService({
| |
| 131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 132 | },"Players"), | |
| 133 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 135 | RunService = FakeService({
| |
| 136 | _btrs = {},
| |
| 137 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 138 | BindToRenderStep = function(self,name,_,fun) | |
| 139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 140 | end, | |
| 141 | UnbindFromRenderStep = function(self,name) | |
| 142 | self._btrs[name]:Disconnect() | |
| 143 | end, | |
| 144 | },"RunService") | |
| 145 | } | |
| 146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 147 | FakeGame.service = FakeGame.GetService | |
| 148 | FakeService(FakeGame,game) | |
| 149 | --Changing owner to fake player object to support owner:GetMouse() | |
| 150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 151 | end | |
| 152 | ||
| 153 | local Player = game:GetService("Players").LocalPlayer
| |
| 154 | ||
| 155 | local Mouse,mouse,UserInputService,ContextActionService | |
| 156 | do | |
| 157 | script.Parent = Player.Character | |
| 158 | local CAS = {Actions={}}
| |
| 159 | local Event = Instance.new("RemoteEvent")
| |
| 160 | Event.Name = "UserInput_Event" | |
| 161 | Event.Parent = Player.Character | |
| 162 | local fakeEvent = function() | |
| 163 | local t = {_fakeEvent=true}
| |
| 164 | t.Connect = function(self,f)self.Function=f end | |
| 165 | t.connect = t.Connect | |
| 166 | return t | |
| 167 | end | |
| 168 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 169 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 170 | function CAS:BindAction(name,fun,touch,...) | |
| 171 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
| |
| 172 | end | |
| 173 | function CAS:UnbindAction(name) | |
| 174 | CAS.Actions[name] = nil | |
| 175 | end | |
| 176 | local function te(self,ev,...) | |
| 177 | local t = m[ev] | |
| 178 | if t and t._fakeEvent and t.Function then | |
| 179 | t.Function(...) | |
| 180 | end | |
| 181 | end | |
| 182 | m.TrigEvent = te | |
| 183 | UIS.TrigEvent = te | |
| 184 | Event.OnServerEvent:Connect(function(plr,io) | |
| 185 | if plr~=Player then return end | |
| 186 | if io.isMouse then | |
| 187 | m.Target = io.Target | |
| 188 | m.Hit = io.Hit | |
| 189 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 190 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 191 | m:TrigEvent("Button1Down")
| |
| 192 | else | |
| 193 | m:TrigEvent("Button1Up")
| |
| 194 | end | |
| 195 | else | |
| 196 | for n,t in pairs(CAS.Actions) do | |
| 197 | for _,k in pairs(t.Keys) do | |
| 198 | if k==io.KeyCode then | |
| 199 | t.Function(t.Name,io.UserInputState,io) | |
| 200 | end | |
| 201 | end | |
| 202 | end | |
| 203 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 204 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
| |
| 205 | UIS:TrigEvent("InputBegan",io,false)
| |
| 206 | else | |
| 207 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
| |
| 208 | UIS:TrigEvent("InputEnded",io,false)
| |
| 209 | end | |
| 210 | end | |
| 211 | end) | |
| 212 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 213 | end | |
| 214 | ||
| 215 | -- made by .... (Idk...) Edited by goodguyaiden geez i made this a hole lot creeper | |
| 216 | Player=game:GetService("Players").LocalPlayer
| |
| 217 | Character=Player.Character | |
| 218 | PlayerGui=Player.PlayerGui | |
| 219 | Backpack=Player.Backpack | |
| 220 | Torso=Character.Torso | |
| 221 | Head=Character.Head | |
| 222 | Humanoid=Character.Humanoid | |
| 223 | m=Instance.new('Model',Character)
| |
| 224 | LeftArm=Character["Left Arm"] | |
| 225 | LeftLeg=Character["Left Leg"] | |
| 226 | RightArm=Character["Right Arm"] | |
| 227 | RightLeg=Character["Right Leg"] | |
| 228 | LS=Torso["Left Shoulder"] | |
| 229 | LH=Torso["Left Hip"] | |
| 230 | RS=Torso["Right Shoulder"] | |
| 231 | RH=Torso["Right Hip"] | |
| 232 | for i,v in pairs(Character:children()) do | |
| 233 | if v:IsA("Hat") then
| |
| 234 | v:Destroy() | |
| 235 | end | |
| 236 | end | |
| 237 | for i,v in pairs(Character:children()) do | |
| 238 | if v:IsA("Accessory") then
| |
| 239 | v:Destroy() | |
| 240 | end | |
| 241 | end | |
| 242 | ||
| 243 | ||
| 244 | local txt = Instance.new("BillboardGui", Character)
| |
| 245 | CV="Lime green" | |
| 246 | txt.Adornee = Character.Head | |
| 247 | txt.Name = "_status" | |
| 248 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 249 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 250 | local text = Instance.new("TextLabel", txt)
| |
| 251 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 252 | text.FontSize = "Size24" | |
| 253 | text.TextScaled = true | |
| 254 | text.TextTransparency = 0 | |
| 255 | text.BackgroundTransparency = 1 | |
| 256 | text.TextTransparency = 0 | |
| 257 | text.TextStrokeTransparency = 0 | |
| 258 | text.Font = "Antique" | |
| 259 | text.TextStrokeColor3 = BrickColor.new("Gold").Color
| |
| 260 | text.TextColor3 = BrickColor.new("Maroon").Color
| |
| 261 | text.Text = "The Flash" | |
| 262 | ||
| 263 | ||
| 264 | ||
| 265 | ||
| 266 | ||
| 267 | Character["Body Colors"].HeadColor = BrickColor.new("Maroon")
| |
| 268 | Character["Body Colors"].TorsoColor = BrickColor.new("Maroon")
| |
| 269 | Character["Body Colors"].LeftArmColor = BrickColor.new("Maroon")
| |
| 270 | Character["Body Colors"].RightArmColor = BrickColor.new("Maroon")
| |
| 271 | Character["Body Colors"].LeftLegColor = BrickColor.new("Maroon")
| |
| 272 | Character["Body Colors"].RightLegColor = BrickColor.new("Maroon")
| |
| 273 | Face = Instance.new("Decal",Character.Head)
| |
| 274 | Face.Texture = "rbxassetid://13603673" | |
| 275 | Face.Face = "Front" | |
| 276 | Face.Transparency = 0 | |
| 277 | Face.Name = "Blood" | |
| 278 | function chatfunc(text) | |
| 279 | local chat = coroutine.wrap(function() | |
| 280 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 281 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 282 | end | |
| 283 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 284 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 285 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 286 | naeeym2.Adornee = Character.Head | |
| 287 | naeeym2.Name = "TalkingBillBoard" | |
| 288 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 289 | tecks2.BackgroundTransparency = 1 | |
| 290 | tecks2.BorderSizePixel = 0 | |
| 291 | tecks2.Text = "" | |
| 292 | tecks2.Font = "Fantasy" | |
| 293 | tecks2.TextSize = 30 | |
| 294 | tecks2.TextStrokeTransparency = 0 | |
| 295 | tecks2.TextColor3 = Color3.new(0,0,1) | |
| 296 | tecks2.TextStrokeColor3 = Color3.new(0,1,0) | |
| 297 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 298 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 299 | tecks3.BackgroundTransparency = 1 | |
| 300 | tecks3.BorderSizePixel = 0 | |
| 301 | tecks3.Text = "" | |
| 302 | tecks3.Font = "Fantasy" | |
| 303 | tecks3.TextSize = 30 | |
| 304 | tecks3.TextStrokeTransparency = 0 | |
| 305 | tecks3.TextColor3 = Color3.new(122,78,255) | |
| 306 | tecks3.TextStrokeColor3 = Color3.new(122,78,255) | |
| 307 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 308 | for i = 1,string.len(text),1 do | |
| 309 | tecks2.Text = string.sub(text,1,i) | |
| 310 | tecks3.Text = string.sub(text,1,i) | |
| 311 | wait(0.01) | |
| 312 | end | |
| 313 | wait(2) | |
| 314 | for i = 1, 50 do | |
| 315 | wait(0.0000000000000000000001) | |
| 316 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 317 | tecks2.Rotation = tecks2.Rotation - .8 | |
| 318 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 319 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 320 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 321 | tecks3.Rotation = tecks2.Rotation + .8 | |
| 322 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 323 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 324 | end | |
| 325 | naeeym2:Destroy() | |
| 326 | end) | |
| 327 | chat() | |
| 328 | end | |
| 329 | function onChatted(msg) | |
| 330 | chatfunc(msg) | |
| 331 | end | |
| 332 | Face = Head.face | |
| 333 | Neck=Torso.Neck | |
| 334 | it=Instance.new | |
| 335 | attacktype=1 | |
| 336 | vt=Vector3.new | |
| 337 | cf=CFrame.new | |
| 338 | euler=CFrame.fromEulerAnglesXYZ | |
| 339 | angles=CFrame.Angles | |
| 340 | cloaked=false | |
| 341 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 342 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 343 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 344 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 345 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 346 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 347 | RootPart=Character.HumanoidRootPart | |
| 348 | RootJoint=RootPart.RootJoint | |
| 349 | RootCF=euler(-1.57,0,3.14) | |
| 350 | attack = false | |
| 351 | attackdebounce = false | |
| 352 | deb=false | |
| 353 | equipped=true | |
| 354 | hand=false | |
| 355 | MMouse=nil | |
| 356 | combo=0 | |
| 357 | mana=0 | |
| 358 | trispeed=1 | |
| 359 | pathtrans=.7 | |
| 360 | attackmode='none' | |
| 361 | local idle=0 | |
| 362 | local Anim="Idle" | |
| 363 | local Effects={}
| |
| 364 | local gun=false | |
| 365 | local shoot=false | |
| 366 | player=nil | |
| 367 | cloak=false | |
| 368 | lightcolor='Really Black' | |
| 369 | ||
| 370 | local Color1=Torso.BrickColor | |
| 371 | ||
| 372 | warn'THE TING GOES SKRRRRRRRRRA' | |
| 373 | local p = game.Players.LocalPlayer | |
| 374 | local char = p.Character | |
| 375 | local hed = char.Head | |
| 376 | local hes = game.Players.LocalPlayer.Character.Humanoid | |
| 377 | for i,v in pairs(char:children()) do | |
| 378 | if v:IsA("Hat") then
| |
| 379 | v:Destroy() | |
| 380 | end | |
| 381 | end | |
| 382 | for i,v in pairs(hed:children()) do | |
| 383 | if v:IsA("Sound") then
| |
| 384 | v:Destroy() | |
| 385 | end | |
| 386 | end | |
| 387 | local Part = Instance.new("Part",hed)
| |
| 388 | Part.BrickColor = BrickColor.new("Really Black")
| |
| 389 | Part.Size = Vector3.new(1,1,1) | |
| 390 | Part.CanCollide = false | |
| 391 | Part.Material = "Neon" | |
| 392 | local M = Instance.new("SpecialMesh",Part)
| |
| 393 | M.MeshId = "rbxassetid://0" | |
| 394 | M.Scale = Vector3.new(3,3,3) | |
| 395 | local Part2 = Instance.new("Weld",Part)
| |
| 396 | Part2.Part0 = hed | |
| 397 | Part2.Part1 = Part | |
| 398 | Part2.C0 = CFrame.new(0, 1, -0.5) | |
| 399 | hes.MaxHealth = math.huge | |
| 400 | plr = game.Players.LocalPlayer | |
| 401 | chr = plr.Character | |
| 402 | local plr = game:service'Players'.LocalPlayer | |
| 403 | local char = plr.Character | |
| 404 | for i,v in pairs(char:GetChildren()) do if v:IsA("Accessory") then v:Remove() end end
| |
| 405 | for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v:Remove() end end
| |
| 406 | local Part = Instance.new("Part",chr)
| |
| 407 | Part.BrickColor = BrickColor.new("Royal blue")
| |
| 408 | Part.Size = Vector3.new(1,1,1) | |
| 409 | Part.CanCollide = false | |
| 410 | Part.Material = "Neon" | |
| 411 | local M = Instance.new("SpecialMesh",Part)
| |
| 412 | M.MeshId = "rbxassetid://0" | |
| 413 | M.Scale = Vector3.new(1.2,1.2,1.2) | |
| 414 | M.TextureId = "rbxassetid://0" | |
| 415 | local Part2 = Instance.new("Weld",Part)
| |
| 416 | Part2.Part0 = chr.Head | |
| 417 | Part2.Part1 = Part | |
| 418 | Part2.C0 = CFrame.new(0,0.2,0)*CFrame.Angles(0,0,0) | |
| 419 | local Part1 = Instance.new("Part",chr)
| |
| 420 | Part1.BrickColor = BrickColor.new("New Yeller")
| |
| 421 | Part1.Size = Vector3.new(1,1,1) | |
| 422 | Part1.CanCollide = false | |
| 423 | Part1.Material = "Neon" | |
| 424 | local M1 = Instance.new("SpecialMesh",Part1)
| |
| 425 | M1.MeshId = "rbxassetid://0" | |
| 426 | M1.Scale = Vector3.new(0.0067,0.0067,0.0067) | |
| 427 | local Part21 = Instance.new("Weld",Part1)
| |
| 428 | Part21.Part0 = chr.Head | |
| 429 | Part21.Part1 = Part1 | |
| 430 | Part21.C0 = CFrame.new(0,-1.2,0)*CFrame.Angles(0,1.55,0) | |
| 431 | local Part = Instance.new("Part",Character)
| |
| 432 | Part.BrickColor = BrickColor.new("Mint")
| |
| 433 | Part.Size = Vector3.new(1,1,1) | |
| 434 | Part.CanCollide = false | |
| 435 | Part.Material = "Neon" | |
| 436 | local M = Instance.new("SpecialMesh",Part)
| |
| 437 | M.MeshId = "rbxassetid://0" | |
| 438 | M.TextureId = "rbxassetid://0" | |
| 439 | M.Scale = Vector3.new(1,1,1.1) | |
| 440 | local Part2 = Instance.new("Weld",Part)
| |
| 441 | Part2.Part0 = Character.Head | |
| 442 | Part2.Part1 = Part | |
| 443 | Part2.C0 = CFrame.new(0,-0.5,0.9)*CFrame.Angles(math.rad(0),math.pi/90,0) | |
| 444 | Effects = { }
| |
| 445 | wait(1/60) | |
| 446 | wait(3) | |
| 447 | local sky = game.Lighting | |
| 448 | game.Lighting.TimeOfDay = "00:00:00" | |
| 449 | sky.Ambient = BrickColor.new("Really black").Color
| |
| 450 | sky.Brightness = 0 | |
| 451 | sky.FogEnd = 50000 | |
| 452 | sky.FogColor = BrickColor.new("Really black").Color
| |
| 453 | CV="Really black" | |
| 454 | ||
| 455 | mouse=Player:GetMouse() | |
| 456 | --save shoulders | |
| 457 | RSH, LSH=nil, nil | |
| 458 | --welds | |
| 459 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 460 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 461 | LH=Torso["Left Hip"] | |
| 462 | RH=Torso["Right Hip"] | |
| 463 | TorsoColor=Torso.BrickColor | |
| 464 | function NoOutline(Part) | |
| 465 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 466 | end | |
| 467 | ||
| 468 | ||
| 469 | ||
| 470 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 471 | local fp=it("Part")
| |
| 472 | fp.formFactor=formfactor | |
| 473 | fp.Parent=parent | |
| 474 | fp.Reflectance=reflectance | |
| 475 | fp.Transparency=transparency | |
| 476 | fp.CanCollide=false | |
| 477 | fp.Locked=true | |
| 478 | fp.BrickColor=brickcolor | |
| 479 | fp.Name=name | |
| 480 | fp.Size=size | |
| 481 | fp.Position=Torso.Position | |
| 482 | NoOutline(fp) | |
| 483 | fp.Material="SmoothPlastic" | |
| 484 | fp:BreakJoints() | |
| 485 | return fp | |
| 486 | end | |
| 487 | ||
| 488 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 489 | local mesh=it(Mesh) | |
| 490 | mesh.Parent=part | |
| 491 | if Mesh=="SpecialMesh" then | |
| 492 | mesh.MeshType=meshtype | |
| 493 | if meshid~="nil" then | |
| 494 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 495 | end | |
| 496 | end | |
| 497 | mesh.Offset=offset | |
| 498 | mesh.Scale=scale | |
| 499 | return mesh | |
| 500 | end | |
| 501 | ||
| 502 | function weld(parent,part0,part1,c0) | |
| 503 | local weld=it("Weld")
| |
| 504 | weld.Parent=parent | |
| 505 | weld.Part0=part0 | |
| 506 | weld.Part1=part1 | |
| 507 | weld.C0=c0 | |
| 508 | return weld | |
| 509 | end | |
| 510 | ||
| 511 | local Color1=Torso.BrickColor | |
| 512 | ||
| 513 | ||
| 514 | ||
| 515 | ||
| 516 | ||
| 517 | Player=game:GetService('Players').LocalPlayer
| |
| 518 | Character=Player.Character | |
| 519 | Mouse=Player:GetMouse() | |
| 520 | m=Instance.new('Model',Character)
| |
| 521 | ||
| 522 | ||
| 523 | local function weldBetween(a, b) | |
| 524 | local weldd = Instance.new("ManualWeld")
| |
| 525 | weldd.Part0 = a | |
| 526 | weldd.Part1 = b | |
| 527 | weldd.C0 = CFrame.new() | |
| 528 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 529 | weldd.Parent = a | |
| 530 | return weldd | |
| 531 | end | |
| 532 | ||
| 533 | it=Instance.new | |
| 534 | ||
| 535 | function nooutline(part) | |
| 536 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
| 537 | end | |
| 538 | ||
| 539 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
| 540 | local fp=it("Part")
| |
| 541 | fp.formFactor=formfactor | |
| 542 | fp.Parent=parent | |
| 543 | fp.Reflectance=reflectance | |
| 544 | fp.Transparency=transparency | |
| 545 | fp.CanCollide=false | |
| 546 | fp.Locked=true | |
| 547 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
| 548 | fp.Name=name | |
| 549 | fp.Size=size | |
| 550 | fp.Position=Character.Torso.Position | |
| 551 | nooutline(fp) | |
| 552 | fp.Material=material | |
| 553 | fp:BreakJoints() | |
| 554 | return fp | |
| 555 | end | |
| 556 | ||
| 557 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 558 | local mesh=it(Mesh) | |
| 559 | mesh.Parent=part | |
| 560 | if Mesh=="SpecialMesh" then | |
| 561 | mesh.MeshType=meshtype | |
| 562 | mesh.MeshId=meshid | |
| 563 | end | |
| 564 | mesh.Offset=offset | |
| 565 | mesh.Scale=scale | |
| 566 | return mesh | |
| 567 | end | |
| 568 | ||
| 569 | function weld(parent,part0,part1,c0,c1) | |
| 570 | local weld=it("Weld")
| |
| 571 | weld.Parent=parent | |
| 572 | weld.Part0=part0 | |
| 573 | weld.Part1=part1 | |
| 574 | weld.C0=c0 | |
| 575 | weld.C1=c1 | |
| 576 | return weld | |
| 577 | end | |
| 578 | ||
| 579 | ||
| 580 | ||
| 581 | ||
| 582 | ||
| 583 | ||
| 584 | ||
| 585 | ||
| 586 | ||
| 587 | -------------------------------- | |
| 588 | local p = game.Players.LocalPlayer | |
| 589 | local char = p.Character | |
| 590 | local mouse = p:GetMouse() | |
| 591 | local larm = char["Left Arm"] | |
| 592 | local rarm = char["Right Arm"] | |
| 593 | local lleg = char["Left Leg"] | |
| 594 | local rleg = char["Right Leg"] | |
| 595 | local hed = char.Head | |
| 596 | local torso = char.Torso | |
| 597 | local hum = char.Humanoid | |
| 598 | local cam = game.Workspace.CurrentCamera | |
| 599 | local root = char.HumanoidRootPart | |
| 600 | local deb = false | |
| 601 | local shot = 0 | |
| 602 | local debris=game:service"Debris" | |
| 603 | local l = game:GetService("Lighting")
| |
| 604 | local rs = game:GetService("RunService").RenderStepped
| |
| 605 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 606 | math.randomseed(os.time()) | |
| 607 | for i,v in pairs(char:children()) do | |
| 608 | if v:IsA("Hat") then
| |
| 609 | v:Destroy() | |
| 610 | end | |
| 611 | end | |
| 612 | for i,v in pairs (hed:GetChildren()) do | |
| 613 | if v:IsA("Sound") then
| |
| 614 | v:Destroy() | |
| 615 | end | |
| 616 | end | |
| 617 | ---------------------------------------------------- | |
| 618 | z = Instance.new("Sound", torso)
| |
| 619 | z.SoundId = "rbxassetid://304235605" -- Put Music ID Here. | |
| 620 | z.Looped = true | |
| 621 | z.Volume = 10 | |
| 622 | wait(.1) | |
| 623 | z:Play() | |
| 624 | ----------------------------------------------------- | |
| 625 | Debounces = {
| |
| 626 | CanAttack = true; | |
| 627 | NoIdl = false; | |
| 628 | Slashing = false; | |
| 629 | Slashed = false; | |
| 630 | RPunch = false; | |
| 631 | RPunched = false; | |
| 632 | LPunch = false; | |
| 633 | LPunched = false; | |
| 634 | } | |
| 635 | local Touche = {char.Name, }
| |
| 636 | ---------------------------------------------------- | |
| 637 | ---------------------------------------------------- | |
| 638 | ---------------------------------------------------- | |
| 639 | local LocalPlayer = game:GetService("Players").LocalPlayer
| |
| 640 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() | |
| 641 | ||
| 642 | ------------------------------------------------------ | |
| 643 | local sw = Instance.new("Part",torso)
| |
| 644 | sw.CanCollide = false | |
| 645 | sw.BrickColor = BrickColor.new("Really Black")
| |
| 646 | ||
| 647 | local m = Instance.new("SpecialMesh",sw)
| |
| 648 | m.MeshId = "rbxassetid://0" | |
| 649 | m.TextureId = "rbxassetid://0" | |
| 650 | m.Scale = Vector3.new(2.1,2.1,2.1) | |
| 651 | local w1 = Instance.new("Weld")
| |
| 652 | ||
| 653 | w1.Part1 = sw | |
| 654 | w1.Part0 = larm | |
| 655 | w1.Parent = char | |
| 656 | w1.C0 = CFrame.new(0,-0.7,-2.3) * CFrame.Angles(math.rad(180),0,-20),0.1 | |
| 657 | -------------------------------------------------------- | |
| 658 | local h = Instance.new("Trail",Character.Head)
| |
| 659 | h.Name = "Cat" | |
| 660 | h.Color = ColorSequence.new(Color3.new(255,0,0),Color3.new(255,0,0)) | |
| 661 | h.LightEmission = 0.6 | |
| 662 | h.Transparency = NumberSequence.new(0.6,1) | |
| 663 | h.Lifetime = 0.5 | |
| 664 | -------------------------------------------------------- | |
| 665 | local hl = Instance.new("Trail",Character.Head)
| |
| 666 | hl.Name = "Cat" | |
| 667 | hl.Color = ColorSequence.new(Color3.new(255,0,0),Color3.new(255,0,0)) | |
| 668 | hl.LightEmission = 0.6 | |
| 669 | hl.Transparency = NumberSequence.new(0.6,1) | |
| 670 | hl.Lifetime = 0.5 | |
| 671 | -------------------------------------------------------- | |
| 672 | local Link1 = Instance.new("Attachment",Character.Head)
| |
| 673 | Link1.Name = "Trail1" | |
| 674 | ---------------------------------------------------------------------- | |
| 675 | local Link2 = Instance.new("Attachment",Character.Head)
| |
| 676 | Link2.Name = "Trail2" | |
| 677 | ---------------------------------------------------------------------- | |
| 678 | local Link3 = Instance.new("Attachment",Character.Head)
| |
| 679 | Link3.Name = "Trail3" | |
| 680 | ---------------------------------------------------------------------- | |
| 681 | local Link4 = Instance.new("Attachment",Character.Head)
| |
| 682 | Link4.Name = "Trail4" | |
| 683 | ----------------------------------------------------- | |
| 684 | h.Attachment0 = Link1 | |
| 685 | h.Attachment1 = Link2 | |
| 686 | hl.Attachment0 = Link3 | |
| 687 | hl.Attachment1 = Link4 | |
| 688 | ---------------------------------------------------------------------- | |
| 689 | Link1.Position = Vector3.new(0.15,0.20,-0.8) | |
| 690 | Link2.Position = Vector3.new(0.20,0.25,-0.8) | |
| 691 | Link3.Position = Vector3.new(-0.15,0.20,-0.8) | |
| 692 | Link4.Position = Vector3.new(-0.20,0.25,-0.8) | |
| 693 | ---------------------------------------------------------------------- | |
| 694 | local LocalPlayer = game:GetService("Players").LocalPlayer
| |
| 695 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() | |
| 696 | ||
| 697 | ---------------------------------------- | |
| 698 | local p = game.Players.LocalPlayer | |
| 699 | local char = p.Character | |
| 700 | local mouse = p:GetMouse() | |
| 701 | local larm = char["Left Arm"] | |
| 702 | local rarm = char["Right Arm"] | |
| 703 | local lleg = char["Left Leg"] | |
| 704 | local rleg = char["Right Leg"] | |
| 705 | local hed = char.Head | |
| 706 | local torso = char.Torso | |
| 707 | local hum = char.Humanoid | |
| 708 | local cam = game.Workspace.CurrentCamera | |
| 709 | local root = char.HumanoidRootPart | |
| 710 | local rj = root.RootJoint | |
| 711 | local deb = false | |
| 712 | local shot = 0 | |
| 713 | local stanceToggle = "Idle1" | |
| 714 | local l = game:GetService("Lighting")
| |
| 715 | local rs = game:GetService("RunService").RenderStepped
| |
| 716 | local hb = game:GetService("RunService").Heartbeat
| |
| 717 | local Stepped = game:GetService("RunService").Stepped
| |
| 718 | math.randomseed(os.time()) | |
| 719 | ---------------------------------------------------- | |
| 720 | fat = Instance.new("BindableEvent",script)
| |
| 721 | fat.Name = "Heartbeat" | |
| 722 | ||
| 723 | script:WaitForChild("Heartbeat")
| |
| 724 | ||
| 725 | frame = 1/30 | |
| 726 | tf = 0 | |
| 727 | allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater. | |
| 728 | tossremainder = false --if set to true t will be set to 0 after Fire()-ing. | |
| 729 | lastframe = tick() | |
| 730 | script.Heartbeat:Fire() --ayy lmao | |
| 731 | ||
| 732 | game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
| |
| 733 | tf = tf + s | |
| 734 | if tf >= frame then | |
| 735 | if allowframeloss then | |
| 736 | script.Heartbeat:Fire() | |
| 737 | lastframe=tick() | |
| 738 | else | |
| 739 | --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
| |
| 740 | for i=1, math.floor(tf/frame) do | |
| 741 | script.Heartbeat:Fire() | |
| 742 | end | |
| 743 | lastframe=tick() | |
| 744 | end | |
| 745 | if tossremainder then | |
| 746 | tf = 0 | |
| 747 | else | |
| 748 | tf = tf - frame * math.floor(tf/frame) | |
| 749 | end | |
| 750 | end | |
| 751 | end) | |
| 752 | ---------------------------------------------------- | |
| 753 | for i,v in pairs(char:children()) do | |
| 754 | if v:IsA("Hat") then
| |
| 755 | v:Destroy() | |
| 756 | end | |
| 757 | end | |
| 758 | for i,v in pairs (hed:GetChildren()) do | |
| 759 | if v:IsA("Sound") then
| |
| 760 | v:Destroy() | |
| 761 | end | |
| 762 | end | |
| 763 | ---------------------------------------------------- | |
| 764 | Debounces = {
| |
| 765 | CanAttack = true; | |
| 766 | CanJoke = true; | |
| 767 | NoIdl = false; | |
| 768 | Slashing = false; | |
| 769 | Slashed = false; | |
| 770 | ks = false; | |
| 771 | } | |
| 772 | ---------------------------------------------------- | |
| 773 | function weld5(part0, part1, c0, c1) | |
| 774 | weeld=Instance.new("Weld", part0)
| |
| 775 | weeld.Part0=part0 | |
| 776 | weeld.Part1=part1 | |
| 777 | weeld.C0=c0 | |
| 778 | weeld.C1=c1 | |
| 779 | return weeld | |
| 780 | end | |
| 781 | ---------------------------------------------------- | |
| 782 | function NewPart(prnt,siz,cf,trans,anc,mat,col) | |
| 783 | local prt=Instance.new("Part")
| |
| 784 | prt.Parent=prnt | |
| 785 | prt.Name="Part" | |
| 786 | prt.Size=siz | |
| 787 | prt.CanCollide=false | |
| 788 | prt.Anchored=anc | |
| 789 | prt.Locked=true | |
| 790 | prt.Transparency = trans | |
| 791 | prt.TopSurface=10 | |
| 792 | prt.BottomSurface=10 | |
| 793 | prt.FrontSurface=10 | |
| 794 | prt.BackSurface=10 | |
| 795 | prt.LeftSurface=10 | |
| 796 | prt.RightSurface=10 | |
| 797 | prt:BreakJoints() | |
| 798 | prt.CFrame=cf or CFrame.new(30,10,30) | |
| 799 | prt.Material=mat | |
| 800 | prt.BrickColor=BrickColor.new(col) | |
| 801 | m=Instance.new("SpecialMesh",prt)
| |
| 802 | m.MeshType=6 | |
| 803 | return prt | |
| 804 | end | |
| 805 | ---------------------------------------------------- | |
| 806 | function lerp(a, b, t) -- Linear interpolation | |
| 807 | return a + (b - a)*t | |
| 808 | end | |
| 809 | ||
| 810 | function slerp(a, b, t) --Spherical interpolation | |
| 811 | dot = a:Dot(b) | |
| 812 | if dot > 0.99999 or dot < -0.99999 then | |
| 813 | return t <= 0.5 and a or b | |
| 814 | else | |
| 815 | r = math.acos(dot) | |
| 816 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 817 | end | |
| 818 | end | |
| 819 | ||
| 820 | function matrixInterpolate(a, b, t) | |
| 821 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 822 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 823 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 824 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 825 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 826 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 827 | local t = v1:Dot(v2) | |
| 828 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 829 | return CFrame.new() | |
| 830 | end | |
| 831 | return CFrame.new( | |
| 832 | v0.x, v0.y, v0.z, | |
| 833 | v1.x, v1.y, v1.z, | |
| 834 | v2.x, v2.y, v2.z, | |
| 835 | v3.x, v3.y, v3.z) | |
| 836 | end | |
| 837 | ---------------------------------------------------- | |
| 838 | function genWeld(a,b) | |
| 839 | local w = Instance.new("Weld",a)
| |
| 840 | w.Part0 = a | |
| 841 | w.Part1 = b | |
| 842 | return w | |
| 843 | end | |
| 844 | function weld(a, b) | |
| 845 | local weld = Instance.new("Weld")
| |
| 846 | weld.Name = "W" | |
| 847 | weld.Part0 = a | |
| 848 | weld.Part1 = b | |
| 849 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 850 | weld.Parent = a | |
| 851 | return weld; | |
| 852 | end | |
| 853 | ---------------------------------------------------- | |
| 854 | function Lerp(c1,c2,al) | |
| 855 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 856 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 857 | for i,v in pairs(com1) do | |
| 858 | com1[i] = v+(com2[i]-v)*al | |
| 859 | end | |
| 860 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 861 | end | |
| 862 | ---------------------------------------------------- | |
| 863 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 864 | local wld = Instance.new("Weld", wp1)
| |
| 865 | wld.Part0 = wp0 | |
| 866 | wld.Part1 = wp1 | |
| 867 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 868 | end | |
| 869 | ---------------------------------------------------- | |
| 870 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 871 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 872 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 873 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
| 874 | newWeld(torso, hed, 0, 1.5, 0) | |
| 875 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 876 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 877 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 878 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 879 | newWeld(root, torso, 0, -1, 0) | |
| 880 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 881 | ---------------------------------------------------- | |
| 882 | z = Instance.new("Sound",char) --Smile: print(".-.")
| |
| 883 | z.SoundId = "rbxassetid://0"--410761150, 411368002 | |
| 884 | z.Looped = true | |
| 885 | z.Pitch = 1 | |
| 886 | z.Volume = 1 | |
| 887 | wait(0.1) | |
| 888 | z:Play() | |
| 889 | ---------------------------------------------------- | |
| 890 | New = function(Object, Parent, Name, Data) | |
| 891 | local Object = Instance.new(Object) | |
| 892 | for Index, Value in pairs(Data or {}) do
| |
| 893 | Object[Index] = Value | |
| 894 | end | |
| 895 | Object.Parent = Parent | |
| 896 | Object.Name = Name | |
| 897 | return Object | |
| 898 | end | |
| 899 | ---------------------------------------------------- | |
| 900 | --Left Arm | |
| 901 | m = Instance.new("Model")
| |
| 902 | m.Name = "LeftArm" | |
| 903 | ||
| 904 | p4 = Instance.new("Part", m)
| |
| 905 | p4.BrickColor = BrickColor.new("Really black")
| |
| 906 | p4.Material = Enum.Material.SmoothPlastic | |
| 907 | p4.Name = "LeftArmPlate" | |
| 908 | p4.Size = Vector3.new(1, 2, 1) | |
| 909 | p4.Transparency = 1 | |
| 910 | p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 911 | p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 912 | p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 913 | p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 914 | p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 915 | p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 916 | b4 = Instance.new("SpecialMesh", p4)
| |
| 917 | b4.MeshType = Enum.MeshType.Brick | |
| 918 | b4.Name = "Mesh" | |
| 919 | b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) | |
| 920 | ||
| 921 | ||
| 922 | ||
| 923 | ||
| 924 | ||
| 925 | w1 = Instance.new("Weld", p4)
| |
| 926 | w1.Name = "Part_Weld" | |
| 927 | w1.Part0 = p4 | |
| 928 | w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 929 | w1.Part1 = p4 | |
| 930 | w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 931 | w2 = Instance.new("Weld", p4)
| |
| 932 | w2.Name = "Part_Weld" | |
| 933 | w2.Part0 = p4 | |
| 934 | w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 935 | w2.Part1 = p4 | |
| 936 | w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 937 | w3 = Instance.new("Weld", p4)
| |
| 938 | w3.Name = "LeftArmPlate_Weld" | |
| 939 | w3.Part0 = p4 | |
| 940 | w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 941 | w3.Part1 = p4 | |
| 942 | w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 943 | w4 = Instance.new("Weld", p4)
| |
| 944 | w4.Name = "Part_Weld" | |
| 945 | w4.Part0 = p4 | |
| 946 | w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 947 | w4.Part1 = p4 | |
| 948 | w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 949 | w5 = Instance.new("Weld", p4)
| |
| 950 | w5.Name = "Part_Weld" | |
| 951 | w5.Part0 = p4 | |
| 952 | w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 953 | w5.Part1 = p4 | |
| 954 | w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 955 | w6 = Instance.new("Weld", p4)
| |
| 956 | w6.Name = "Part_Weld" | |
| 957 | w6.Part0 = p4 | |
| 958 | w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 959 | w6.Part1 = p7 | |
| 960 | w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 961 | w7 = Instance.new("Weld", p7)
| |
| 962 | w7.Name = "Part_Weld" | |
| 963 | w7.Part0 = p7 | |
| 964 | w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 965 | w7.Part1 = p4 | |
| 966 | w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 967 | w8 = Instance.new("Weld", p4)
| |
| 968 | w8.Name = "Part_Weld" | |
| 969 | w8.Part0 = p4 | |
| 970 | w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 971 | w8.Part1 = p4 | |
| 972 | w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 973 | w9 = Instance.new("Weld", p4)
| |
| 974 | w9.Name = "Part_Weld" | |
| 975 | w9.Part0 = p4 | |
| 976 | w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 977 | w9.Part1 = p4 | |
| 978 | w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 979 | w10 = Instance.new("Weld", p4)
| |
| 980 | w10.Name = "Part_Weld" | |
| 981 | w10.Part0 = p4 | |
| 982 | w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 983 | w10.Part1 = p4 | |
| 984 | w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 985 | w11 = Instance.new("Weld", p4)
| |
| 986 | w11.Name = "Part_Weld" | |
| 987 | w11.Part0 = p4 | |
| 988 | w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 989 | w11.Part1 = p4 | |
| 990 | w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 991 | w12 = Instance.new("Weld", p4)
| |
| 992 | w12.Name = "Part_Weld" | |
| 993 | w12.Part0 = p4 | |
| 994 | w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 995 | w12.Part1 = p4 | |
| 996 | w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 997 | w13 = Instance.new("Weld", p4)
| |
| 998 | w13.Name = "Part_Weld" | |
| 999 | w13.Part0 = p4 | |
| 1000 | w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1001 | w13.Part1 = p4 | |
| 1002 | w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1003 | w14 = Instance.new("Weld", p4)
| |
| 1004 | w14.Name = "Part_Weld" | |
| 1005 | w14.Part0 = p4 | |
| 1006 | w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1007 | w14.Part1 = p4 | |
| 1008 | w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1009 | w15 = Instance.new("Weld", p4)
| |
| 1010 | w15.Name = "Part_Weld" | |
| 1011 | w15.Part0 = p4 | |
| 1012 | w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1013 | w15.Part1 = p16 | |
| 1014 | w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5) | |
| 1015 | ||
| 1016 | m.Parent = larm | |
| 1017 | m:MakeJoints() | |
| 1018 | ---------------------------------------------------- | |
| 1019 | local cor = Instance.new("Part", larm.LeftArm)
| |
| 1020 | cor.Name = "Thingy" | |
| 1021 | cor.Locked = true | |
| 1022 | cor.BottomSurface = 0 | |
| 1023 | cor.CanCollide = false | |
| 1024 | cor.Size = Vector3.new(1, 1, 1) | |
| 1025 | cor.Transparency = 1 | |
| 1026 | cor.TopSurface = 0 | |
| 1027 | corw = Instance.new("Weld", cor)
| |
| 1028 | corw.Part0 = larm | |
| 1029 | corw.Part1 = cor | |
| 1030 | corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1031 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1032 | weld1 = Instance.new("Weld", larm.LeftArm)
| |
| 1033 | weld1.Part0 = cor | |
| 1034 | weld1.Part1 = larm.LeftArm.LeftArmPlate | |
| 1035 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1036 | --Right Arm | |
| 1037 | m2 = Instance.new("Model")
| |
| 1038 | m2.Name = "RightArm" | |
| 1039 | ||
| 1040 | p7 = Instance.new("Part", m2)
| |
| 1041 | p7.BrickColor = BrickColor.new("Really Black")
| |
| 1042 | p7.Material = Enum.Material.SmoothPlastic | |
| 1043 | p7.Transparency = 1 | |
| 1044 | p7.Name = "RightArmPlate" | |
| 1045 | p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1046 | p7.FormFactor = Enum.FormFactor.Symmetric | |
| 1047 | p7.Size = Vector3.new(1, 2, 1) | |
| 1048 | p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1049 | p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1050 | p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1051 | p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1052 | p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1053 | p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1054 | b7 = Instance.new("SpecialMesh", p7)
| |
| 1055 | b7.MeshType = Enum.MeshType.Brick | |
| 1056 | b7.Name = "Mesh" | |
| 1057 | b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998) | |
| 1058 | ||
| 1059 | ||
| 1060 | w1 = Instance.new("Weld", p4)
| |
| 1061 | w1.Name = "Part_Weld" | |
| 1062 | w1.Part0 = p4 | |
| 1063 | w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1064 | w1.Part1 = p4 | |
| 1065 | w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1066 | w2 = Instance.new("Weld", p4)
| |
| 1067 | w2.Name = "Part_Weld" | |
| 1068 | w2.Part0 = p4 | |
| 1069 | w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1070 | w2.Part1 = p4 | |
| 1071 | w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1072 | w3 = Instance.new("Weld", p4)
| |
| 1073 | w3.Name = "Part_Weld" | |
| 1074 | w3.Part0 = p4 | |
| 1075 | w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1076 | w3.Part1 = p4 | |
| 1077 | w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1078 | w4 = Instance.new("Weld", p4)
| |
| 1079 | w4.Name = "Part_Weld" | |
| 1080 | w4.Part0 = p4 | |
| 1081 | w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1082 | w4.Part1 = p4 | |
| 1083 | w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1084 | w5 = Instance.new("Weld", p4)
| |
| 1085 | w5.Name = "Part_Weld" | |
| 1086 | w5.Part0 = p4 | |
| 1087 | w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1088 | w5.Part1 = p4 | |
| 1089 | w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1090 | w6 = Instance.new("Weld", p4)
| |
| 1091 | w6.Name = "RightArmPlate_Weld" | |
| 1092 | w6.Part0 = p4 | |
| 1093 | w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1094 | w6.Part1 = p7 | |
| 1095 | w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1096 | w7 = Instance.new("Weld", p7)
| |
| 1097 | w7.Name = "Part_Weld" | |
| 1098 | w7.Part0 = p7 | |
| 1099 | w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1100 | w7.Part1 = p4 | |
| 1101 | w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1102 | w8 = Instance.new("Weld", p4)
| |
| 1103 | w8.Name = "Part_Weld" | |
| 1104 | w8.Part0 = p4 | |
| 1105 | w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1106 | w8.Part1 = p4 | |
| 1107 | w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1108 | w9 = Instance.new("Weld", p4)
| |
| 1109 | w9.Name = "Part_Weld" | |
| 1110 | w9.Part0 = p4 | |
| 1111 | w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1112 | w9.Part1 = p4 | |
| 1113 | w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1114 | w10 = Instance.new("Weld", p4)
| |
| 1115 | w10.Name = "Part_Weld" | |
| 1116 | w10.Part0 = p4 | |
| 1117 | w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1118 | w10.Part1 = p4 | |
| 1119 | w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1120 | w11 = Instance.new("Weld", p4)
| |
| 1121 | w11.Name = "Part_Weld" | |
| 1122 | w11.Part0 = p4 | |
| 1123 | w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1124 | w11.Part1 = p4 | |
| 1125 | w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1126 | w12 = Instance.new("Weld", p4)
| |
| 1127 | w12.Name = "Part_Weld" | |
| 1128 | w12.Part0 = p4 | |
| 1129 | w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1130 | w12.Part1 = p4 | |
| 1131 | w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1132 | w13 = Instance.new("Weld", p4)
| |
| 1133 | w13.Name = "Part_Weld" | |
| 1134 | w13.Part0 = p4 | |
| 1135 | w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1136 | w13.Part1 = p4 | |
| 1137 | w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1138 | w14 = Instance.new("Weld", p4)
| |
| 1139 | w14.Name = "Part_Weld" | |
| 1140 | w14.Part0 = p4 | |
| 1141 | w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1142 | w14.Part1 = p4 | |
| 1143 | w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1144 | w15 = Instance.new("Weld", p4)
| |
| 1145 | w15.Name = "Part_Weld" | |
| 1146 | w15.Part0 = p4 | |
| 1147 | w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1148 | w15.Part1 = p16 | |
| 1149 | w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1150 | w16 = Instance.new("Weld", p16)
| |
| 1151 | w16.Name = "Part_Weld" | |
| 1152 | w16.Part0 = p16 | |
| 1153 | w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1154 | w16.Part1 = p4 | |
| 1155 | w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1156 | w17 = Instance.new("Weld", p4)
| |
| 1157 | w17.Name = "Part_Weld" | |
| 1158 | w17.Part0 = p4 | |
| 1159 | w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1160 | w17.Part1 = p4 | |
| 1161 | w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1162 | w18 = Instance.new("Weld", p4)
| |
| 1163 | w18.Name = "Part_Weld" | |
| 1164 | w18.Part0 = p4 | |
| 1165 | w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1166 | w18.Part1 = p4 | |
| 1167 | w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1168 | m2.Parent = rarm | |
| 1169 | m2:MakeJoints() | |
| 1170 | ---------------------------------------------------- | |
| 1171 | local cor2 = Instance.new("Part", rarm.RightArm)
| |
| 1172 | cor2.Name = "Thingy" | |
| 1173 | cor2.Locked = true | |
| 1174 | cor2.BottomSurface = 0 | |
| 1175 | cor2.CanCollide = false | |
| 1176 | cor2.Size = Vector3.new(1, 1, 1) | |
| 1177 | cor2.Transparency = 1 | |
| 1178 | cor2.TopSurface = 0 | |
| 1179 | corw2 = Instance.new("Weld", cor2)
| |
| 1180 | corw2.Part0 = rarm | |
| 1181 | corw2.Part1 = cor2 | |
| 1182 | corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1183 | corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1184 | weld2 = Instance.new("Weld", rarm.RightArm)
| |
| 1185 | weld2.Part0 = cor2 | |
| 1186 | weld2.Part1 = rarm.RightArm.RightArmPlate | |
| 1187 | weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1188 | ||
| 1189 | ||
| 1190 | --Zyrodoxa | |
| 1191 | m8 = Instance.new("Model")
| |
| 1192 | m8.Name = "Zyrodoxa" | |
| 1193 | ||
| 1194 | p16 = Instance.new("Part", m8)
| |
| 1195 | p16.BrickColor = BrickColor.new("Really Black")
| |
| 1196 | p16.Material = Enum.Material.Metal | |
| 1197 | p16.Name = "Handle" | |
| 1198 | p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007) | |
| 1199 | p16.CanCollide = false | |
| 1200 | p16.Locked = true | |
| 1201 | p16.FormFactor = Enum.FormFactor.Custom | |
| 1202 | p16.Size = Vector3.new(0, 0, 0) | |
| 1203 | p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1204 | p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1205 | p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1206 | p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1207 | p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1208 | p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1209 | b16 = Instance.new("BlockMesh", p16)
| |
| 1210 | b16.Name = "Mesh" | |
| 1211 | b16.Scale = Vector3.new(0, 0, 0) | |
| 1212 | ||
| 1213 | w16 = Instance.new("Weld", p16)
| |
| 1214 | w16.Name = "Block_Weld" | |
| 1215 | w16.Part0 = p16 | |
| 1216 | w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015) | |
| 1217 | w16.Part1 = p17 | |
| 1218 | w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1) | |
| 1219 | ||
| 1220 | m8.Parent = rarm | |
| 1221 | m8:MakeJoints() | |
| 1222 | ---------------------------------------------------- | |
| 1223 | local cor8 = Instance.new("Part", rarm.Zyrodoxa)
| |
| 1224 | cor8.Name = "Thingy" | |
| 1225 | cor8.Locked = true | |
| 1226 | cor8.BottomSurface = 0 | |
| 1227 | cor8.CanCollide = false | |
| 1228 | cor8.Size = Vector3.new(1, 1, 1) | |
| 1229 | cor8.Transparency = 1 | |
| 1230 | cor8.TopSurface = 0 | |
| 1231 | corw8 = Instance.new("Weld", cor8)
| |
| 1232 | corw8.Part0 = rarm | |
| 1233 | corw8.Part1 = cor8 | |
| 1234 | corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)) | |
| 1235 | corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1236 | weld8 = Instance.new("Weld", rarm.Zyrodoxa)
| |
| 1237 | weld8.Part0 = cor8 | |
| 1238 | weld8.Part1 = rarm.Zyrodoxa.Handle | |
| 1239 | weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1240 | ---------------------------------------------------- | |
| 1241 | models = {m,m2,m8}
| |
| 1242 | parts = {}
| |
| 1243 | Stepped:connect(function() | |
| 1244 | for i,v in pairs(models) do | |
| 1245 | for _, a in pairs(v:GetChildren()) do | |
| 1246 | if v:IsA("Part") and v.Name ~= "Thingy" then
| |
| 1247 | table.insert(parts, a) | |
| 1248 | for i,v in pairs(parts) do | |
| 1249 | v.CanCollide = false | |
| 1250 | end | |
| 1251 | end | |
| 1252 | end | |
| 1253 | end | |
| 1254 | end) | |
| 1255 | ---------------------------------------------------- | |
| 1256 | local animpose = "Idle1" | |
| 1257 | local lastanimpose = "Idle1" | |
| 1258 | local grab = false | |
| 1259 | local Smooth = 1 | |
| 1260 | local sine = 0 | |
| 1261 | local change = 1 | |
| 1262 | local val = 0 | |
| 1263 | local ffing = false | |
| 1264 | ---------------------------------------------------- | |
| 1265 | --[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k | |
| 1266 | ||
| 1267 | function FindHumanoids() | |
| 1268 | local function c_region(Position, Size) | |
| 1269 | local SizeOffset = Size/2 | |
| 1270 | local Point1 = Position - SizeOffset | |
| 1271 | local Point2 = Position + SizeOffset | |
| 1272 | local a = Instance.new("Part", workspace)
| |
| 1273 | a.Anchored = true | |
| 1274 | a.Size = Size | |
| 1275 | a.Position = Position | |
| 1276 | print("Hey!, I'm making a part!")
| |
| 1277 | return Region3.new(Point1, Point2) | |
| 1278 | end | |
| 1279 | ||
| 1280 | local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1281 | local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1282 | local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1283 | local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22)) | |
| 1284 | ||
| 1285 | local regions = {a, b, c, d}
| |
| 1286 | ||
| 1287 | local found_humanoids = {}
| |
| 1288 | local already_found = {char.Name}
| |
| 1289 | ||
| 1290 | for _, region in pairs(regions) do | |
| 1291 | for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do | |
| 1292 | print(part, part.Parent, part.Name) ---nope | |
| 1293 | if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
| |
| 1294 | local humanoid = part.Parent:FindFirstChild("Humanoid")
| |
| 1295 | local name = humanoid.Parent.Name | |
| 1296 | local exists = false | |
| 1297 | for _, n in pairs(already_found) do | |
| 1298 | if n == name then | |
| 1299 | exists = true | |
| 1300 | end | |
| 1301 | end | |
| 1302 | if not exists then | |
| 1303 | table.insert(already_found, name) | |
| 1304 | table.insert(found_humanoids, humanoid) | |
| 1305 | end | |
| 1306 | elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
| |
| 1307 | local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
| |
| 1308 | local name = humanoid.Parent.Parent.Name | |
| 1309 | local exists = false | |
| 1310 | for _, n in pairs(already_found) do | |
| 1311 | if n == name then | |
| 1312 | exists = true | |
| 1313 | end | |
| 1314 | end | |
| 1315 | if not exists then | |
| 1316 | table.insert(already_found, name) | |
| 1317 | table.insert(found_humanoids, humanoid) | |
| 1318 | end | |
| 1319 | end | |
| 1320 | end | |
| 1321 | end | |
| 1322 | return found_humanoids | |
| 1323 | end | |
| 1324 | ||
| 1325 | local humanoids = FindHumanoids() | |
| 1326 | if #humanoids == 0 then | |
| 1327 | for i, v in pairs(humanoids) do | |
| 1328 | print(v.Parent.Name) | |
| 1329 | if Debounces.Slashing == true then | |
| 1330 | v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage? | |
| 1331 | elseif Debounces.Slashing == false then | |
| 1332 | wait() | |
| 1333 | end | |
| 1334 | end | |
| 1335 | wait(0.3) | |
| 1336 | end]]-- | |
| 1337 | ---------------------------------------------------- | |
| 1338 | --[[mouse.KeyDown:connect(function(key) | |
| 1339 | if key == "f" then | |
| 1340 | if Debounces.CanAttack == true then | |
| 1341 | Debounces.CanAttack = false | |
| 1342 | Debounces.NoIdl = true | |
| 1343 | Debounces.on = true | |
| 1344 | for i = 1, 20 do | |
| 1345 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 1346 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 1347 | CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1) | |
| 1348 | CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1349 | CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1350 | CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1351 | CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1) | |
| 1352 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8) | |
| 1353 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 1354 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8) | |
| 1355 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 1356 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5) | |
| 1357 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5) | |
| 1358 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1) | |
| 1359 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1) | |
| 1360 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1) | |
| 1361 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1) | |
| 1362 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1) | |
| 1363 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1) | |
| 1364 | if Debounces.on == false then | |
| 1365 | break | |
| 1366 | end | |
| 1367 | fat.Event:wait() | |
| 1368 | end | |
| 1369 | end | |
| 1370 | end | |
| 1371 | end)]]-- | |
| 1372 | ---------------------------------------------------- | |
| 1373 | mod4 = Instance.new("Model",char)
| |
| 1374 | ||
| 1375 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 1376 | ||
| 1377 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 1378 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 1379 | local List = {}
| |
| 1380 | for i,v in pairs(workspace:GetChildren())do | |
| 1381 | if v:IsA("Model")then
| |
| 1382 | if v:findFirstChild("Torso")then
| |
| 1383 | if v ~= char then | |
| 1384 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 1385 | table.insert(List,v) | |
| 1386 | end | |
| 1387 | end | |
| 1388 | end | |
| 1389 | end | |
| 1390 | end | |
| 1391 | return List | |
| 1392 | end | |
| 1393 | ||
| 1394 | function Slam() | |
| 1395 | local part=Instance.new('Part',mod4)
| |
| 1396 | part.Anchored=true | |
| 1397 | part.CanCollide=false | |
| 1398 | part.FormFactor='Custom' | |
| 1399 | part.Size=Vector3.new(.2,.2,.2) | |
| 1400 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
| 1401 | part.Transparency=.7 | |
| 1402 | part.BrickColor=BrickColor.new('Really black')
| |
| 1403 | mesh=Instance.new('SpecialMesh',part)
| |
| 1404 | mesh.MeshId='http://www.roblox.com/asset/?id=0' | |
| 1405 | mesh.Scale=Vector3.new(10,10,10) | |
| 1406 | local part2=Instance.new('Part',mod4)
| |
| 1407 | part2.Anchored=true | |
| 1408 | part2.CanCollide=false | |
| 1409 | part2.FormFactor='Custom' | |
| 1410 | part2.Size=Vector3.new(.2,.2,.2) | |
| 1411 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
| 1412 | part2.Transparency=.7 | |
| 1413 | part2.BrickColor=BrickColor.new('Really Black')
| |
| 1414 | mesh2=Instance.new('SpecialMesh',part2)
| |
| 1415 | mesh2.MeshId='http://www.roblox.com/asset/?id=0' | |
| 1416 | mesh2.Scale=Vector3.new(9,1.5,9) | |
| 1417 | x = Instance.new("Sound",larm)
| |
| 1418 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
| 1419 | x.Pitch = ptez[math.random(1,#ptez)] | |
| 1420 | x.Volume = 1 | |
| 1421 | wait(.1) | |
| 1422 | x1 = Instance.new("Sound",larm)
| |
| 1423 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
| 1424 | x1.Pitch = ptez[math.random(1,#ptez)] | |
| 1425 | x1.Volume = 1 | |
| 1426 | wait(.1) | |
| 1427 | x:Play() | |
| 1428 | x1:Play() | |
| 1429 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
| 1430 | if v:FindFirstChild('Humanoid') then
| |
| 1431 | v.Humanoid:TakeDamage(math.random(30,45)) | |
| 1432 | end | |
| 1433 | end | |
| 1434 | coroutine.resume(coroutine.create(function() | |
| 1435 | for i=0,0.62,0.13 do | |
| 1436 | wait() | |
| 1437 | part.CFrame=part.CFrame | |
| 1438 | part.Transparency=i | |
| 1439 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
| 1440 | part2.CFrame=part2.CFrame | |
| 1441 | part2.Transparency=i | |
| 1442 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
| 1443 | end | |
| 1444 | part.Parent=nil | |
| 1445 | part2.Parent=nil | |
| 1446 | x:Destroy() | |
| 1447 | end)) | |
| 1448 | end | |
| 1449 | ---------------------------------------------------- | |
| 1450 | wPart = function(x,y,z,color,tr,cc,an,parent) | |
| 1451 | local wp = Instance.new('WedgePart',parent or Weapon)
| |
| 1452 | wp.formFactor = 'Custom' | |
| 1453 | wp.Size = Vector3.new(x,y,z) | |
| 1454 | wp.BrickColor = BrickColor.new(color) | |
| 1455 | wp.CanCollide = cc | |
| 1456 | wp.Transparency = tr | |
| 1457 | wp.Anchored = an | |
| 1458 | wp.TopSurface,wp.BottomSurface = 0,0 | |
| 1459 | return wp | |
| 1460 | end | |
| 1461 | ||
| 1462 | Mesh = function(par,num,x,y,z) | |
| 1463 | local msh = _ | |
| 1464 | if num == 1 then | |
| 1465 | msh = Instance.new("CylinderMesh",par)
| |
| 1466 | elseif num == 2 then | |
| 1467 | msh = Instance.new("SpecialMesh",par)
| |
| 1468 | msh.MeshType = 3 | |
| 1469 | elseif num == 3 then | |
| 1470 | msh = Instance.new("BlockMesh",par)
| |
| 1471 | elseif num == 4 then | |
| 1472 | msh = Instance.new("SpecialMesh",par)
| |
| 1473 | msh.MeshType = "Torso" | |
| 1474 | elseif type(num) == 'string' then | |
| 1475 | msh = Instance.new("SpecialMesh",par)
| |
| 1476 | msh.MeshId = num | |
| 1477 | end | |
| 1478 | msh.Scale = Vector3.new(x,y,z) | |
| 1479 | return msh | |
| 1480 | end | |
| 1481 | ||
| 1482 | local function CFrameFromTopBack(at, top, back) | |
| 1483 | local right = top:Cross(back) | |
| 1484 | return CFrame.new(at.x, at.y, at.z, | |
| 1485 | right.x, top.x, back.x, | |
| 1486 | right.y, top.y, back.y, | |
| 1487 | right.z, top.z, back.z) | |
| 1488 | end | |
| 1489 | ||
| 1490 | function Triangle(a, b, c) | |
| 1491 | local edg1 = (c-a):Dot((b-a).unit) | |
| 1492 | local edg2 = (a-b):Dot((c-b).unit) | |
| 1493 | local edg3 = (b-c):Dot((a-c).unit) | |
| 1494 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 1495 | a, b, c = a, b, c | |
| 1496 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 1497 | a, b, c = b, c, a | |
| 1498 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 1499 | a, b, c = c, a, b | |
| 1500 | else | |
| 1501 | print("unreachable")
| |
| 1502 | end | |
| 1503 | local len1 = (c-a):Dot((b-a).unit) | |
| 1504 | local len2 = (b-a).magnitude - len1 | |
| 1505 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 1506 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 1507 | local list = {}
| |
| 1508 | if len1 > 0.01 then | |
| 1509 | local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char) | |
| 1510 | local sz = Vector3.new(0.2, width, len1) | |
| 1511 | w1.Size = sz | |
| 1512 | local sp = Mesh(w1,2,0,0,0) | |
| 1513 | sp.MeshType='Wedge' | |
| 1514 | sp.Scale=Vector3.new(0,1,1)*sz/w1.Size | |
| 1515 | w1:BreakJoints() | |
| 1516 | w1.Anchored = true | |
| 1517 | w1.Transparency = 0.7 | |
| 1518 | Spawn(function() | |
| 1519 | for i=0,1,0.1 do | |
| 1520 | fat.Event:wait() | |
| 1521 | w1.Transparency=w1.Transparency+0.03 | |
| 1522 | end | |
| 1523 | end) | |
| 1524 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 1525 | table.insert(list,w1) | |
| 1526 | end | |
| 1527 | if len2 > 0.01 then | |
| 1528 | local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char) | |
| 1529 | local sz = Vector3.new(0.2, width, len2) | |
| 1530 | w2.Size = sz | |
| 1531 | local sp = Mesh(w2,2,0,0,0) | |
| 1532 | sp.MeshType='Wedge' | |
| 1533 | sp.Scale=Vector3.new(0,1,1)*sz/w2.Size | |
| 1534 | w2:BreakJoints() | |
| 1535 | w2.Anchored = true | |
| 1536 | w2.Transparency = 0.7 | |
| 1537 | Spawn(function() | |
| 1538 | for i=0,1,0.1 do | |
| 1539 | fat.Event:wait() | |
| 1540 | w2.Transparency=w2.Transparency+0.03 | |
| 1541 | end | |
| 1542 | end) | |
| 1543 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 1544 | table.insert(list,w2) | |
| 1545 | end | |
| 1546 | return unpack(list) | |
| 1547 | end | |
| 1548 | ||
| 1549 | function trail(p,t,h) | |
| 1550 | Spawn(function() | |
| 1551 | local blcf = p.CFrame | |
| 1552 | local scfr = blcf | |
| 1553 | for i=1,t do | |
| 1554 | local blcf = p.CFrame | |
| 1555 | if scfr and (p.Position-scfr.p).magnitude > .1 then | |
| 1556 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
| 1557 | if a then game.Debris:AddItem(a,1) end | |
| 1558 | if b then game.Debris:AddItem(b,1) end | |
| 1559 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
| 1560 | if a then game.Debris:AddItem(a,1) end | |
| 1561 | if b then game.Debris:AddItem(b,1) end | |
| 1562 | scfr = blcf | |
| 1563 | elseif not scfr then | |
| 1564 | scfr = blcf | |
| 1565 | end | |
| 1566 | fat.Event:wait() | |
| 1567 | end | |
| 1568 | scfr=nil | |
| 1569 | end) | |
| 1570 | end | |
| 1571 | --trail(char.Sword.Blade,1e1000,5) | |
| 1572 | ---------------------------------------------------- | |
| 1573 | function Dmg() | |
| 1574 | local partofdeath = rarm.Zyrodoxa.Hitbox | |
| 1575 | local function CreateRegion3FromLocAndSize(Position, Size) | |
| 1576 | local SizeOffset = Size/2 | |
| 1577 | local Point1 = Position - SizeOffset | |
| 1578 | local Point2 = Position + SizeOffset | |
| 1579 | return Region3.new(Point1, Point2) | |
| 1580 | end | |
| 1581 | local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size) | |
| 1582 | for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do | |
| 1583 | Spawn(function() | |
| 1584 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1585 | Debounces.Slashed = true | |
| 1586 | ypcall(function() | |
| 1587 | local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
| |
| 1588 | humanoid:TakeDamage(math.random(10,18)) | |
| 1589 | end) | |
| 1590 | wait(.4) | |
| 1591 | Debounces.Slashed = false | |
| 1592 | end | |
| 1593 | end) | |
| 1594 | end | |
| 1595 | end | |
| 1596 | ---------------------------------------------------- | |
| 1597 | pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 1598 | ptz = {0.7, 0.8, 0.9, 1}
| |
| 1599 | idz = {"161006212", "161006195"}
| |
| 1600 | function attackone() | |
| 1601 | for i = 1, 13 do | |
| 1602 | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) | |
| 1603 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8) | |
| 1604 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3) | |
| 1605 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
| 1606 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5) | |
| 1607 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5) | |
| 1608 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5) | |
| 1609 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5) | |
| 1610 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7) | |
| 1611 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7) | |
| 1612 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) | |
| 1613 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5) | |
| 1614 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) | |
| 1615 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5) | |
| 1616 | if Debounces.on == false then | |
| 1617 | break | |
| 1618 | end | |
| 1619 | fat.Event:wait() | |
| 1620 | end | |
| 1621 | trail(rarm.Zyrodoxa.Hitbox,20,2) | |
| 1622 | Debounces.Slashing = true | |
| 1623 | wait(0.2) | |
| 1624 | --[[z = Instance.new("Sound", hed)
| |
| 1625 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
| 1626 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1627 | z.Volume = 1 | |
| 1628 | wait(.01) | |
| 1629 | z:Play()]]-- | |
| 1630 | for i = 1, 14 do | |
| 1631 | Dmg() | |
| 1632 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8) | |
| 1633 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8) | |
| 1634 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4) | |
| 1635 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4) | |
| 1636 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4) | |
| 1637 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4) | |
| 1638 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7) | |
| 1639 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
| 1640 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4) | |
| 1641 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1642 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5) | |
| 1643 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5) | |
| 1644 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5) | |
| 1645 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5) | |
| 1646 | if Debounces.on == false then break end | |
| 1647 | rs:wait() | |
| 1648 | end | |
| 1649 | Debounces.Slashing = false | |
| 1650 | end | |
| 1651 | function attacktwo() | |
| 1652 | Debounces.Slashing = true | |
| 1653 | for i = 1, 14 do | |
| 1654 | Dmg() | |
| 1655 | corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4) | |
| 1656 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4) | |
| 1657 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7) | |
| 1658 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 1659 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5) | |
| 1660 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
| 1661 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5) | |
| 1662 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
| 1663 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) | |
| 1664 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1665 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5) | |
| 1666 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1667 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5) | |
| 1668 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1669 | if Debounces.on == false then | |
| 1670 | break | |
| 1671 | end | |
| 1672 | rs:wait() | |
| 1673 | end | |
| 1674 | end | |
| 1675 | ---------------------------------------------------- | |
| 1676 | ||
| 1677 | ---------------------------------------------------- | |
| 1678 | definition = 5 | |
| 1679 | bc = {}
| |
| 1680 | bezierparts = {}
| |
| 1681 | function NoOutline(Part) | |
| 1682 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 1683 | end | |
| 1684 | function draw(p,d) | |
| 1685 | for i=1,d do | |
| 1686 | local t = i/d | |
| 1687 | bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2 | |
| 1688 | end | |
| 1689 | ||
| 1690 | Spawn(function() fat.Event:wait() | |
| 1691 | for i,v in pairs(bezierparts) do | |
| 1692 | v.Transparency = 1 | |
| 1693 | end | |
| 1694 | end) | |
| 1695 | end | |
| 1696 | --local points = {larm.Position,rarn.Position,invisipart.Position}
| |
| 1697 | --draw(points,definition) | |
| 1698 | ||
| 1699 | fat.Event:wait() | |
| 1700 | ||
| 1701 | rpart = Instance.new("Part",rarm)
| |
| 1702 | NoOutline(rpart) | |
| 1703 | rpart.Anchored = false | |
| 1704 | rpart.Size = Vector3.new(1,1,1) | |
| 1705 | rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
| 1706 | rpart.Transparency = 1 | |
| 1707 | newWeld(rarm, rpart, 0, 0, 0) | |
| 1708 | rpart.Weld.C1 = CFrame.new(0, 1.1, 0) | |
| 1709 | lpart = Instance.new("Part",larm)
| |
| 1710 | NoOutline(lpart) | |
| 1711 | lpart.Anchored = false | |
| 1712 | lpart.Size = Vector3.new(1,1,1) | |
| 1713 | lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
| 1714 | lpart.Transparency = 1 | |
| 1715 | newWeld(larm, lpart, 0, 0, 0) | |
| 1716 | lpart.Weld.C1 = CFrame.new(0, 1.1, 0) | |
| 1717 | invisipart = Instance.new("Part",torso)
| |
| 1718 | NoOutline(invisipart) | |
| 1719 | invisipart.Anchored = false | |
| 1720 | invisipart.Size = Vector3.new(1,1,1) | |
| 1721 | invisipart.Transparency = 1 | |
| 1722 | invisipart.CFrame = torso.CFrame | |
| 1723 | newWeld(torso, invisipart, 0, 0, 0) | |
| 1724 | invisipart.Weld.C1 = CFrame.new(0, 0, 6) | |
| 1725 | table.insert(bezierparts, rpart) | |
| 1726 | table.insert(bezierparts, lpart) | |
| 1727 | table.insert(bezierparts, invisipart) | |
| 1728 | for i = 1, 40 do | |
| 1729 | local points = {lpart.Position,invisipart.Position,rpart.Position}
| |
| 1730 | draw(points,definition) | |
| 1731 | --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6) | |
| 1732 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1) | |
| 1733 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 1734 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1) | |
| 1735 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 1736 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2) | |
| 1737 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7) | |
| 1738 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 1739 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1740 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2) | |
| 1741 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1742 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2) | |
| 1743 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5) | |
| 1744 | if Debounces.on == false then | |
| 1745 | break | |
| 1746 | end | |
| 1747 | fat.Event:wait() | |
| 1748 | end | |
| 1749 | for i,v in pairs(bezierparts) do | |
| 1750 | v:Destroy() | |
| 1751 | end | |
| 1752 | --draw(points,definition) | |
| 1753 | if Debounces.CanAttack == false then | |
| 1754 | Debounces.CanAttack = true | |
| 1755 | Debounces.NoIdl = false | |
| 1756 | Debounces.on = false | |
| 1757 | end | |
| 1758 | ||
| 1759 | ---------------------------------------------------- | |
| 1760 | ---------------------------------------------------- | |
| 1761 | pt = {6.6, 6.8, 7, 7.2, 7.4}
| |
| 1762 | mouse.KeyDown:connect(function(key) | |
| 1763 | if key == "q" then | |
| 1764 | if Debounces.CanJoke == true then | |
| 1765 | Debounces.CanJoke = false | |
| 1766 | u = Instance.new("Sound",char)
| |
| 1767 | u.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1768 | u.Pitch = pt[math.random(1,#pt)] | |
| 1769 | u.Volume = 0.3 | |
| 1770 | u2 = Instance.new("Sound",char)
| |
| 1771 | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1772 | u2.Pitch = u.Pitch | |
| 1773 | u2.Volume = 0.3 | |
| 1774 | u3 = Instance.new("Sound",char)
| |
| 1775 | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1776 | u3.Pitch = u.Pitch | |
| 1777 | u3.Volume = 0.3 | |
| 1778 | wait(.01) | |
| 1779 | u:Play() | |
| 1780 | u2:Play() | |
| 1781 | u3:Play() | |
| 1782 | wait(1.5) | |
| 1783 | u:Destroy() | |
| 1784 | u2:Destroy() | |
| 1785 | u3:Destroy() | |
| 1786 | if Debounces.CanJoke == false then | |
| 1787 | Debounces.CanJoke = true | |
| 1788 | end | |
| 1789 | end | |
| 1790 | end | |
| 1791 | end) | |
| 1792 | ----------------------------------------------------- | |
| 1793 | mouse.KeyDown:connect(function(key) | |
| 1794 | if key == "l" then | |
| 1795 | Debounces.on = true | |
| 1796 | Debounces.NoIdl = true | |
| 1797 | Debounces.ks = true | |
| 1798 | for i = 1, 20 do | |
| 1799 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(3.,0,0), 0.2) | |
| 1800 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1801 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-0.5,0),0.2) | |
| 1802 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1803 | if Debounces.on == false then break end | |
| 1804 | fat.Event:wait() | |
| 1805 | end | |
| 1806 | handleweld:remove() | |
| 1807 | local Weld = Instance.new("Weld",handle)
| |
| 1808 | Weld.Part0 = Character["Right Arm"] | |
| 1809 | Weld.Part1 = handle | |
| 1810 | Weld.C0 = CFrame.new(0,-1,-0.2)*CFrame.Angles(-1.55,1.55,0) | |
| 1811 | Debounces.on = false | |
| 1812 | Debounces.NoIdl = false | |
| 1813 | Debounces.ks = false | |
| 1814 | WOW:disconnect() | |
| 1815 | WOW2:disconnect() | |
| 1816 | WOW3:disconnect() | |
| 1817 | WOW4:disconnect() | |
| 1818 | mouse.Button1Down:connect(function() | |
| 1819 | print("IT WORKS LAZY")
| |
| 1820 | end) | |
| 1821 | end | |
| 1822 | end) | |
| 1823 | ---------------------------------------------------- | |
| 1824 | WOW = mouse.KeyDown:connect(function(key) | |
| 1825 | if key == "x" then | |
| 1826 | Character.Humanoid.WalkSpeed = 50 | |
| 1827 | Debounces.on = true | |
| 1828 | Debounces.NoIdl = true | |
| 1829 | Debounces.ks = true | |
| 1830 | for i = 1, 20 do | |
| 1831 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.5,0,1.3), 0.2) | |
| 1832 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1833 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-1,0),0.2) | |
| 1834 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1835 | if Debounces.on == false then break end | |
| 1836 | fat.Event:wait() | |
| 1837 | end | |
| 1838 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 1839 | HitBox.Size = Vector3.new(3,3,3) | |
| 1840 | HitBox.Transparency = 1 | |
| 1841 | HitBox.CanCollide = false | |
| 1842 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 1843 | HitBox2.Part0 = Character["Right Arm"] | |
| 1844 | HitBox2.Part1 = HitBox | |
| 1845 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 1846 | HitBox.Touched:connect(function(hit) | |
| 1847 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
| |
| 1848 | HitBox:remove() | |
| 1849 | hit.Parent.Head.Transparency = 1e9 | |
| 1850 | local SFXZ = Instance.new("Sound",hit.Parent.Torso)
| |
| 1851 | SFXZ.SoundId = "rbxassetid://206082273" | |
| 1852 | SFXZ.Volume = 1 | |
| 1853 | SFXZ.Pitch = 1 | |
| 1854 | SFXZ.Looped = false | |
| 1855 | wait(0.01) | |
| 1856 | SFXZ:Play() | |
| 1857 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 1858 | HitBox.Transparency = 0 | |
| 1859 | HitBox.Size = Vector3.new(1,1,1) | |
| 1860 | HitBox.BrickColor = hit.Parent.Head.BrickColor | |
| 1861 | HitBox.CanCollide = false | |
| 1862 | local HitBoxM = Instance.new("SpecialMesh",HitBox)
| |
| 1863 | HitBoxM.MeshType = "Head" | |
| 1864 | HitBoxM.Scale = Vector3.new(1.25,1.25,1.25) | |
| 1865 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 1866 | HitBox2.Part0 = Character["Right Arm"] | |
| 1867 | HitBox2.Part1 = HitBox | |
| 1868 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 1869 | local D = Instance.new("Decal",HitBox)
| |
| 1870 | D.Face = "Front" | |
| 1871 | D.Texture = hit.Parent.Head.face.Texture | |
| 1872 | hit.Parent.Head.face:remove() | |
| 1873 | local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
| |
| 1874 | partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
| 1875 | partasdeff.LightEmission = .1 | |
| 1876 | partasdeff.Size = NumberSequence.new(0.2) | |
| 1877 | partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224" | |
| 1878 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
| |
| 1879 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 1880 | partasdeff.Transparency = bbb | |
| 1881 | partasdeff.Size = aaa | |
| 1882 | partasdeff.ZOffset = .9 | |
| 1883 | partasdeff.Acceleration = Vector3.new(0, -5, 0) | |
| 1884 | partasdeff.LockedToPart = false | |
| 1885 | partasdeff.EmissionDirection = "Top" | |
| 1886 | partasdeff.Lifetime = NumberRange.new(1, 2) | |
| 1887 | partasdeff.Rate = 1000 | |
| 1888 | partasdeff.Rotation = NumberRange.new(-100, 100) | |
| 1889 | partasdeff.RotSpeed = NumberRange.new(-100, 100) | |
| 1890 | partasdeff.Speed = NumberRange.new(10) | |
| 1891 | partasdeff.VelocitySpread = 20 | |
| 1892 | partasdeff.Enabled=true | |
| 1893 | hit.Parent.Head:remove() | |
| 1894 | wait(1) | |
| 1895 | for i = 1, 20 do | |
| 1896 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(1.66,0,-1), 0.2) | |
| 1897 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1898 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0),0.2) | |
| 1899 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1900 | if Debounces.on == false then break end | |
| 1901 | fat.Event:wait() | |
| 1902 | end | |
| 1903 | chatfunc("Yummy.")
| |
| 1904 | for i = 1,14 do | |
| 1905 | HitBoxM.Scale = HitBoxM.Scale - Vector3.new(0.1,0.1,0.1) | |
| 1906 | game:GetService("RunService").RenderStepped:wait()
| |
| 1907 | end | |
| 1908 | HitBox:remove() | |
| 1909 | wait(0.5) | |
| 1910 | partasdeff.Enabled = false | |
| 1911 | HitBox:remove() | |
| 1912 | Debounces.on = false | |
| 1913 | Debounces.NoIdl = false | |
| 1914 | Debounces.ks = false | |
| 1915 | Character.Humanoid.WalkSpeed = 50 | |
| 1916 | local a = Instance.new("Part",game.Players.LocalPlayer.Character.Head)
| |
| 1917 | a.Transparency = 1 | |
| 1918 | a.Size = Vector3.new(.2,.2,.2) | |
| 1919 | local b = Instance.new("Weld",a.Parent.Parent)
| |
| 1920 | b.Part0 = a | |
| 1921 | b.Part1 = a.Parent | |
| 1922 | b.C0 = CFrame.new(0,.3,0.65) | |
| 1923 | local p2mit = Instance.new("ParticleEmitter",a)
| |
| 1924 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
| 1925 | p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))})
| |
| 1926 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)})
| |
| 1927 | p2mit.Lifetime = NumberRange.new(1) | |
| 1928 | p2mit.Rate = 10 | |
| 1929 | p2mit.VelocitySpread = 10 | |
| 1930 | p2mit.Acceleration = Vector3.new(0,-10,0) | |
| 1931 | p2mit.Speed = NumberRange.new(0) | |
| 1932 | coroutine.wrap(function() | |
| 1933 | wait(15) | |
| 1934 | p2mit.Enabled=false | |
| 1935 | game:service'Debris':AddItem(a,2) | |
| 1936 | end)() | |
| 1937 | end | |
| 1938 | end) | |
| 1939 | for i = 1, 20 do | |
| 1940 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.9,0,0), 0.2) | |
| 1941 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1942 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,1,0),0.2) | |
| 1943 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1944 | if Debounces.on == false then break end | |
| 1945 | fat.Event:wait() | |
| 1946 | end | |
| 1947 | wait(0.5) | |
| 1948 | HitBox:remove() | |
| 1949 | wait(3) | |
| 1950 | Debounces.on = false | |
| 1951 | Debounces.NoIdl = false | |
| 1952 | Debounces.ks = false | |
| 1953 | Character.Humanoid.WalkSpeed = 50 | |
| 1954 | end | |
| 1955 | end) | |
| 1956 | ---------------------------------------------------- | |
| 1957 | WOW2 = mouse.KeyDown:connect(function(key) | |
| 1958 | if key == "z" then | |
| 1959 | Character.Humanoid.WalkSpeed = 50 | |
| 1960 | Debounces.on = true | |
| 1961 | Debounces.NoIdl = true | |
| 1962 | Debounces.ks = true | |
| 1963 | for i = 1, 20 do | |
| 1964 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(2.5,0,1.3), 0.2) | |
| 1965 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1966 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-1,0),0.2) | |
| 1967 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 1968 | if Debounces.on == false then break end | |
| 1969 | fat.Event:wait() | |
| 1970 | end | |
| 1971 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 1972 | HitBox.Size = Vector3.new(3,3,3) | |
| 1973 | HitBox.Transparency = 1 | |
| 1974 | HitBox.CanCollide = false | |
| 1975 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 1976 | HitBox2.Part0 = Character["Right Arm"] | |
| 1977 | HitBox2.Part1 = HitBox | |
| 1978 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 1979 | HitBox.Touched:connect(function(hit) | |
| 1980 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
| |
| 1981 | HitBox:remove() | |
| 1982 | local SFXZ = Instance.new("Sound",hit.Parent.Torso)
| |
| 1983 | SFXZ.SoundId = "rbxassetid://743886825" | |
| 1984 | SFXZ.Volume = 1 | |
| 1985 | SFXZ.Pitch = 1 | |
| 1986 | SFXZ.Looped = false | |
| 1987 | SFXZ:Play() | |
| 1988 | hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(1.56,0,0) | |
| 1989 | wait(1.5) | |
| 1990 | hit.Parent.Torso.Anchored = true | |
| 1991 | torso.CFrame = hit.Parent.Torso.CFrame*CFrame.new(0,0,-2)*CFrame.Angles(-1.55,1.55,0) | |
| 1992 | Head.Anchored = true | |
| 1993 | hit.Parent.Head.Anchored = true | |
| 1994 | wait(0.01) | |
| 1995 | for i = 1, 20 do | |
| 1996 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(2.4,0,0.5), 0.2) | |
| 1997 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 1998 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0.8,0,0), 0.2) | |
| 1999 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 2000 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0.3,0,0),0.2) | |
| 2001 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-0.5,0)*CFrame.Angles(0,0,0), 0.5) | |
| 2002 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1.3, 0) * CFrame.Angles(-1.56,0,-0.5), 0.2) | |
| 2003 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0), 0.4) | |
| 2004 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1.3, 0) * CFrame.Angles(-1.56,0,0.5), 0.2) | |
| 2005 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0), 0.4) | |
| 2006 | if Debounces.on == false then break end | |
| 2007 | fat.Event:wait() | |
| 2008 | end | |
| 2009 | wait(1.2) | |
| 2010 | chatfunc("Shhh..")
| |
| 2011 | for i = 1, 20 do | |
| 2012 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5,-0.2,-0.8)*CFrame.Angles(0.4,0,-0.5), 0.2) | |
| 2013 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 2014 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0.8,0,0), 0.2) | |
| 2015 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 2016 | if Debounces.on == false then break end | |
| 2017 | fat.Event:wait() | |
| 2018 | end | |
| 2019 | wait(2.5) | |
| 2020 | hit.Parent:BreakJoints() | |
| 2021 | wait(2.5) | |
| 2022 | Head.Anchored = false | |
| 2023 | Debounces.on = false | |
| 2024 | Debounces.NoIdl = false | |
| 2025 | Debounces.ks = false | |
| 2026 | Character.Humanoid.WalkSpeed = 50 | |
| 2027 | end | |
| 2028 | end) | |
| 2029 | for i = 1, 20 do | |
| 2030 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(1,0,-0.4), 0.2) | |
| 2031 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 2032 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,1.4,0),0.2) | |
| 2033 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 2034 | if Debounces.on == false then break end | |
| 2035 | fat.Event:wait() | |
| 2036 | end | |
| 2037 | end | |
| 2038 | end) | |
| 2039 | ---------------------------------------------------- | |
| 2040 | WOW3 = mouse.KeyDown:connect(function(key) | |
| 2041 | if key == "r" then | |
| 2042 | Debounces.on = true | |
| 2043 | Debounces.NoIdl = true | |
| 2044 | Debounces.ks = true | |
| 2045 | for i = 1, 20 do | |
| 2046 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(1.55,0,1.3), 0.2) | |
| 2047 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 2048 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,-1,0),0.2) | |
| 2049 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 2050 | if Debounces.on == false then break end | |
| 2051 | fat.Event:wait() | |
| 2052 | end | |
| 2053 | local HitBox = Instance.new("Part",Character["Right Arm"])
| |
| 2054 | HitBox.Size = Vector3.new(3,3,3) | |
| 2055 | HitBox.Transparency = 1 | |
| 2056 | HitBox.CanCollide = false | |
| 2057 | local HitBox2 = Instance.new("Weld",HitBox)
| |
| 2058 | HitBox2.Part0 = Character["Right Arm"] | |
| 2059 | HitBox2.Part1 = HitBox | |
| 2060 | HitBox2.C0 = CFrame.new(0,-1.1,0) | |
| 2061 | HitBox.Touched:connect(function(hit) | |
| 2062 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil and hit.Parent.Name ~= Character.Name then
| |
| 2063 | local SFXZ = Instance.new("Sound",hit.Parent.Torso)
| |
| 2064 | SFXZ.SoundId = "rbxassetid://283674624" | |
| 2065 | SFXZ.Volume = 1 | |
| 2066 | SFXZ.Pitch = 1 | |
| 2067 | SFXZ.Looped = false | |
| 2068 | SFXZ:Play() | |
| 2069 | HitBox:remove() | |
| 2070 | hit.Parent.Humanoid:TakeDamage(math.huge) | |
| 2071 | local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
| |
| 2072 | Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 2073 | Fl.velocity = Character.Torso.CFrame.lookVector*350 | |
| 2074 | wait(0.1) | |
| 2075 | Fl:remove() | |
| 2076 | coroutine.resume(coroutine.create(function() | |
| 2077 | for i = 1,30 do | |
| 2078 | local H = Instance.new("Part",hit.Parent.Head)
| |
| 2079 | H.Size = Vector3.new(1,1,1) | |
| 2080 | H.BrickColor = BrickColor.new("Really Black")
| |
| 2081 | H.CanCollide = false | |
| 2082 | H.Anchored = true | |
| 2083 | H.CFrame = hit.Parent.Torso.CFrame*CFrame.new(0,0,1)*CFrame.Angles(0,0,0) | |
| 2084 | local H2 = Instance.new("SpecialMesh",H)
| |
| 2085 | H2.MeshId = "rbxassetid://0" | |
| 2086 | coroutine.resume(coroutine.create(function() | |
| 2087 | for i = 1,200 do | |
| 2088 | H2.Scale = H2.Scale + Vector3.new(4,4,4) | |
| 2089 | H.Transparency = H.Transparency + 0.09 | |
| 2090 | wait(0.00000000001) | |
| 2091 | end | |
| 2092 | end)) | |
| 2093 | wait(0.0000000000001) | |
| 2094 | end | |
| 2095 | end)) | |
| 2096 | end | |
| 2097 | end) | |
| 2098 | for i = 1, 20 do | |
| 2099 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(1.55,0,-0.4), 0.2) | |
| 2100 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(0,0,0), 0.5) | |
| 2101 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0,1.4,0),0.2) | |
| 2102 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(0,0,0), 0.5) | |
| 2103 | if Debounces.on == false then break end | |
| 2104 | fat.Event:wait() | |
| 2105 | end | |
| 2106 | HitBox:remove() | |
| 2107 | Debounces.on = false | |
| 2108 | Debounces.NoIdl = false | |
| 2109 | Debounces.ks = false | |
| 2110 | ||
| 2111 | end | |
| 2112 | end) | |
| 2113 | ---------------------------------------------------- | |
| 2114 | mouse.KeyDown:connect(function(key) | |
| 2115 | if key == "c" then | |
| 2116 | if Debounces.CanJoke == true then | |
| 2117 | Debounces.CanJoke = false | |
| 2118 | z = Instance.new("Sound",hed)
| |
| 2119 | z.SoundId = "rbxassetid://153317147" | |
| 2120 | z.Pitch = 1 | |
| 2121 | z.Volume = 50 | |
| 2122 | wait() | |
| 2123 | z:Play() | |
| 2124 | wait(5.5) | |
| 2125 | z:Destroy() | |
| 2126 | if Debounces.CanJoke == false then | |
| 2127 | Debounces.CanJoke = true | |
| 2128 | end | |
| 2129 | end | |
| 2130 | end | |
| 2131 | end) | |
| 2132 | ---------------------------------------------------- | |
| 2133 | Grab = false | |
| 2134 | WOW4 = mouse.KeyDown:connect(function(key) | |
| 2135 | if key == "e" then | |
| 2136 | Debounces.on = true | |
| 2137 | Debounces.NoIdl = true | |
| 2138 | Debounces.ks = true | |
| 2139 | if Grab == false then | |
| 2140 | gp = nil | |
| 2141 | for i = 1, 20 do | |
| 2142 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
| 2143 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2144 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
| 2145 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2146 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
| 2147 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2148 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
| 2149 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2150 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
| 2151 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2152 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
| 2153 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2154 | if Debounces.on == false then break end | |
| 2155 | fat.Event:wait() | |
| 2156 | end | |
| 2157 | con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit) | |
| 2158 | ht = hit.Parent | |
| 2159 | for i,v in pairs(ht:GetChildren()) do | |
| 2160 | if v:IsA("Part") then
| |
| 2161 | v.CanCollide = false | |
| 2162 | v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001) | |
| 2163 | end | |
| 2164 | end | |
| 2165 | hum1=ht:FindFirstChild('Humanoid')
| |
| 2166 | if hum1 ~= nil then | |
| 2167 | if Debounces.ks==true then | |
| 2168 | z = Instance.new("Sound",hed)
| |
| 2169 | z.SoundId = "rbxassetid://169380525" | |
| 2170 | z.Volume = 1 | |
| 2171 | z:Play() | |
| 2172 | Debounces.ks=false | |
| 2173 | end | |
| 2174 | hum1.PlatformStand=true | |
| 2175 | hum1:ChangeState'Physics' | |
| 2176 | gp = ht | |
| 2177 | Grab = true | |
| 2178 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
| |
| 2179 | asd.Parent = larm | |
| 2180 | asd.Name = "asd" | |
| 2181 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
| 2182 | stanceToggle = "Grabbed" | |
| 2183 | --[[elseif hum1 == nil then | |
| 2184 | con1:disconnect() | |
| 2185 | wait() return]]-- | |
| 2186 | end | |
| 2187 | end) | |
| 2188 | for i = 1, 20 do | |
| 2189 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
| 2190 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2191 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
| 2192 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2193 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2) | |
| 2194 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2195 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
| 2196 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2197 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
| 2198 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2199 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
| 2200 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2201 | if Debounces.on == false then break end | |
| 2202 | fat.Event:wait() | |
| 2203 | end | |
| 2204 | con1:disconnect() | |
| 2205 | Debounces.on = false | |
| 2206 | Debounces.NoIdl = false | |
| 2207 | elseif Grab == true then | |
| 2208 | Grab = false | |
| 2209 | for i = 1, 16 do | |
| 2210 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3) | |
| 2211 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5) | |
| 2212 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3) | |
| 2213 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5) | |
| 2214 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
| 2215 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2216 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3) | |
| 2217 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2218 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
| 2219 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) | |
| 2220 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
| 2221 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2222 | if Debounces.on == false then end | |
| 2223 | rs:wait() | |
| 2224 | end | |
| 2225 | for i = 1, 12 do | |
| 2226 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6) | |
| 2227 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2228 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6) | |
| 2229 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2230 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6) | |
| 2231 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2232 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6) | |
| 2233 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5) | |
| 2234 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6) | |
| 2235 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4) | |
| 2236 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6) | |
| 2237 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4) | |
| 2238 | if Debounces.on == false then end | |
| 2239 | rs:wait() | |
| 2240 | end | |
| 2241 | Slam() | |
| 2242 | if gp ~= nil then | |
| 2243 | for i,v in pairs(larm:GetChildren()) do | |
| 2244 | if v.Name == "asd" and v:IsA("Weld") then
| |
| 2245 | v:Remove() | |
| 2246 | end | |
| 2247 | if v:IsA("Part") then
| |
| 2248 | v.CanCollide = true | |
| 2249 | v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1) | |
| 2250 | end | |
| 2251 | end | |
| 2252 | end | |
| 2253 | stanceToggle = "Idle1" | |
| 2254 | Debounces.on = false | |
| 2255 | Debounces.NoIdl = false | |
| 2256 | elseif ht == nil then wait() | |
| 2257 | Grab = false | |
| 2258 | Debounces.on = false | |
| 2259 | Debounces.NoIdl = false | |
| 2260 | end | |
| 2261 | end | |
| 2262 | end) | |
| 2263 | ---------------------------------------------------- | |
| 2264 | Change = false | |
| 2265 | mouse.KeyDown:connect(function(key) | |
| 2266 | if key == "n" then | |
| 2267 | if Change == false then | |
| 2268 | Change = true | |
| 2269 | stanceToggle = "Idle2" | |
| 2270 | elseif Change == true then | |
| 2271 | Change = false | |
| 2272 | stanceToggle = "Idle1" | |
| 2273 | end | |
| 2274 | end | |
| 2275 | end) | |
| 2276 | ---------------------------------------------------- | |
| 2277 | mouse.KeyDown:connect(function(key) | |
| 2278 | if string.byte(key) == 48 then | |
| 2279 | Swing = 2 | |
| 2280 | char.Humanoid.WalkSpeed = 200 | |
| 2281 | end | |
| 2282 | end) | |
| 2283 | mouse.KeyUp:connect(function(key) | |
| 2284 | if string.byte(key) == 48 then | |
| 2285 | Swing = 1 | |
| 2286 | char.Humanoid.WalkSpeed = 50 | |
| 2287 | end | |
| 2288 | end) | |
| 2289 | ---------------------------------------------------- | |
| 2290 | ||
| 2291 | jump = false | |
| 2292 | rs:connect(function() | |
| 2293 | if char.Humanoid.Jump == true then | |
| 2294 | jump = true | |
| 2295 | else | |
| 2296 | jump = false | |
| 2297 | end | |
| 2298 | char.Humanoid.FreeFalling:connect(function(f) | |
| 2299 | if f then | |
| 2300 | ffing = true | |
| 2301 | else | |
| 2302 | ffing = false | |
| 2303 | end | |
| 2304 | end) | |
| 2305 | sine = sine + change | |
| 2306 | if jump == true then | |
| 2307 | animpose = "Jumping" | |
| 2308 | elseif ffing == true then | |
| 2309 | animpose = "Freefalling" | |
| 2310 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 2311 | animpose = "Idle" | |
| 2312 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 2313 | animpose = "Walking" | |
| 2314 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 2315 | animpose = "Running" | |
| 2316 | end | |
| 2317 | RightLeg = CFrame.new(0.5,-1,0) | |
| 2318 | LeftLeg = CFrame.new(-0.5,-1,0) | |
| 2319 | ||
| 2320 | lefth = (torso.CFrame*LeftLeg) | |
| 2321 | righth = (torso.CFrame*RightLeg) | |
| 2322 | ||
| 2323 | speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z) | |
| 2324 | ||
| 2325 | TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100) | |
| 2326 | ||
| 2327 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
| 2328 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
| 2329 | if animpose ~= lastanimpose then | |
| 2330 | sine = 0 | |
| 2331 | if Debounces.NoIdl == false then | |
| 2332 | if stanceToggle == "Idle1" then | |
| 2333 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) | |
| 2334 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) | |
| 2335 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) | |
| 2336 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2) | |
| 2337 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2) | |
| 2338 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2) | |
| 2339 | elseif stanceToggle == "Idle2" then | |
| 2340 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3) | |
| 2341 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3) | |
| 2342 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2) | |
| 2343 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2) | |
| 2344 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2) | |
| 2345 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2) | |
| 2346 | end | |
| 2347 | fat.Event:wait() | |
| 2348 | end | |
| 2349 | else | |
| 2350 | end | |
| 2351 | lastanimpose = animpose | |
| 2352 | if Debounces.NoIdl == false then | |
| 2353 | if animpose == "Idle" then | |
| 2354 | change = 0.5 | |
| 2355 | if stanceToggle == "Idle1" then | |
| 2356 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2357 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3) | |
| 2358 | ||
| 2359 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8) | |
| 2360 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2361 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8) | |
| 2362 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2363 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5) | |
| 2364 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5) | |
| 2365 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1) | |
| 2366 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1) | |
| 2367 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
| 2368 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1) | |
| 2369 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1) | |
| 2370 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1) | |
| 2371 | elseif stanceToggle == "Idle2" then | |
| 2372 | ||
| 2373 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2374 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1) | |
| 2375 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
| 2376 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6) | |
| 2377 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2) | |
| 2378 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2379 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
| 2380 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
| 2381 | --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3) | |
| 2382 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2383 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2384 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8) | |
| 2385 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8) | |
| 2386 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8) | |
| 2387 | elseif stanceToggle == "Grabbed" then | |
| 2388 | grab = true | |
| 2389 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2390 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2391 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
| 2392 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
| 2393 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3) | |
| 2394 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
| 2395 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
| 2396 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2397 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
| 2398 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1) | |
| 2399 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
| 2400 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2401 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
| 2402 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2403 | end | |
| 2404 | elseif animpose == "Walking" then | |
| 2405 | if stanceToggle == "Grabbed" then | |
| 2406 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2407 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2408 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
| 2409 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 2410 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3) | |
| 2411 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2) | |
| 2412 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
| 2413 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
| 2414 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
| 2415 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
| 2416 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 2417 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
| 2418 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2419 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
| 2420 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2421 | elseif stanceToggle ~= "Grabbed" then | |
| 2422 | change = 1 | |
| 2423 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2424 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2425 | ||
| 2426 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
| 2427 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 2428 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4) | |
| 2429 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
| 2430 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4) | |
| 2431 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7) | |
| 2432 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4) | |
| 2433 | --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1) | |
| 2434 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8) | |
| 2435 | --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
| 2436 | lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8) | |
| 2437 | lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2438 | --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4) | |
| 2439 | rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8) | |
| 2440 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
| 2441 | end | |
| 2442 | elseif animpose == "Running" then | |
| 2443 | change = 1 | |
| 2444 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2445 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2446 | ||
| 2447 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2) | |
| 2448 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
| 2449 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2) | |
| 2450 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2451 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2) | |
| 2452 | hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5) | |
| 2453 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2) | |
| 2454 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2455 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
| 2456 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2457 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8) | |
| 2458 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2459 | elseif animpose == "Jumping" then | |
| 2460 | ||
| 2461 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2462 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2463 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2) | |
| 2464 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
| 2465 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
| 2466 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2467 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2) | |
| 2468 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
| 2469 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2470 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 2471 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2472 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
| 2473 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2474 | elseif animpose == "Freefalling" then | |
| 2475 | ||
| 2476 | corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3) | |
| 2477 | corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 2478 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2) | |
| 2479 | rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36) | |
| 2480 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2) | |
| 2481 | larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5) | |
| 2482 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2) | |
| 2483 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2) | |
| 2484 | torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4) | |
| 2485 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
| 2486 | lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2487 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2) | |
| 2488 | rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 2489 | end | |
| 2490 | end | |
| 2491 | end) | |
| 2492 | hum.MaxHealth = math.huge | |
| 2493 | wait(3) | |
| 2494 | hum.Health = math.huge |