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 print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 6 | ||
| 7 | ||
| 8 | targettedOn = false | |
| 9 | function onTouched(hit) | |
| 10 | hole:Play() | |
| 11 | hit.CanCollide=false | |
| 12 | wait(.5) | |
| 13 | hit.CanCollide = true | |
| 14 | debounce = true | |
| 15 | ||
| 16 | end | |
| 17 | ||
| 18 | dft = {}
| |
| 19 | ||
| 20 | function GetPlayers() | |
| 21 | local c = game.Players:GetChildren() | |
| 22 | for i = 1, #c do | |
| 23 | table.insert(dft, c[i].Name) | |
| 24 | end | |
| 25 | end | |
| 26 | ||
| 27 | function Randomize() | |
| 28 | GetPlayers() | |
| 29 | local d = math.random(1, #dft) | |
| 30 | s = d | |
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | end | |
| 35 | ||
| 36 | playertarg = game.Players.LocalPlayer | |
| 37 | chara = playertarg.Character | |
| 38 | Mouse = playertarg:GetMouse() | |
| 39 | targetted = nil | |
| 40 | ||
| 41 | New = function(Object, Parent, Name, Data) | |
| 42 | local Object = Instance.new(Object) | |
| 43 | for Index, Value in pairs(Data or {}) do
| |
| 44 | Object[Index] = Value | |
| 45 | end | |
| 46 | Object.Parent = Parent | |
| 47 | Object.Name = Name | |
| 48 | return Object | |
| 49 | end | |
| 50 | ||
| 51 | ||
| 52 | ||
| 53 | crosshair = Instance.new("BillboardGui",chara)
| |
| 54 | crosshair.Size = UDim2.new(10,0,10,0) | |
| 55 | crosshair.Enabled = false | |
| 56 | imgl = Instance.new("ImageLabel",crosshair)
| |
| 57 | imgl.Position = UDim2.new(0,0,0,0) | |
| 58 | imgl.Size = UDim2.new(1,0,1,0) | |
| 59 | imgl.Image = "rbxassetid://160506713" | |
| 60 | imgl.BackgroundTransparency = 1 | |
| 61 | imgl.ImageTransparency = .7 | |
| 62 | imgl.ImageColor3 = Color3.new(0,0,0) | |
| 63 | ||
| 64 | CV="Maroon" | |
| 65 | Player = game.Players.LocalPlayer | |
| 66 | Character = Player.Character | |
| 67 | local txt = Instance.new("BillboardGui", Character)
| |
| 68 | txt.Adornee = Character .Head | |
| 69 | txt.Name = "_status" | |
| 70 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 71 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 72 | local text = Instance.new("TextLabel", txt)
| |
| 73 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 74 | text.FontSize = "Size24" | |
| 75 | text.TextScaled = true | |
| 76 | text.TextTransparency = 0 | |
| 77 | text.BackgroundTransparency = 1 | |
| 78 | text.TextTransparency = 0 | |
| 79 | text.TextStrokeTransparency = 0 | |
| 80 | text.Font = "Bodoni" | |
| 81 | text.TextStrokeColor3 = Color3.new(255,255,255) | |
| 82 | ||
| 83 | v=Instance.new("Part")
| |
| 84 | v.Name = "ColorBrick" | |
| 85 | v.Parent=Player.Character | |
| 86 | v.FormFactor="Symmetric" | |
| 87 | v.Anchored=true | |
| 88 | v.CanCollide=false | |
| 89 | v.BottomSurface="Smooth" | |
| 90 | v.TopSurface="Smooth" | |
| 91 | v.Size=Vector3.new(10,5,3) | |
| 92 | v.Transparency=1 | |
| 93 | v.CFrame=Character.Torso.CFrame | |
| 94 | v.BrickColor=BrickColor.new(CV) | |
| 95 | v.Transparency=1 | |
| 96 | text.TextColor3 = Color3.new(0,0,0) | |
| 97 | v.Shape="Block" | |
| 98 | text.Text = "SCP - 049" | |
| 99 | ----------------------------------------- | |
| 100 | ||
| 101 | function LoadSnd(id,loop,vol,pit) | |
| 102 | local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
| |
| 103 | return snd | |
| 104 | end | |
| 105 | ||
| 106 | TargetSnd = LoadSnd(167191994,false,2.2,.8) | |
| 107 | ||
| 108 | ||
| 109 | function TargetSelect(person) | |
| 110 | local dd=coroutine.wrap(function() | |
| 111 | if targetted ~= person then | |
| 112 | targetted = person | |
| 113 | ||
| 114 | for i = 0,30,10 do | |
| 115 | wait(.05) | |
| 116 | crosshair.Size = UDim2.new(40-i,0,40-i,0) | |
| 117 | end | |
| 118 | end | |
| 119 | end) | |
| 120 | dd() | |
| 121 | end | |
| 122 | ||
| 123 | ||
| 124 | ||
| 125 | function LockOn() | |
| 126 | if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
| |
| 127 | TargetSelect(Mouse.Target.Parent) | |
| 128 | TargetSnd:Play() | |
| 129 | else end | |
| 130 | end | |
| 131 | ||
| 132 | ||
| 133 | ||
| 134 | ||
| 135 | ||
| 136 | ||
| 137 | ||
| 138 | ||
| 139 | ||
| 140 | ZomWait = false | |
| 141 | ZomWait2 = false | |
| 142 | ZomSyle = false | |
| 143 | ||
| 144 | ||
| 145 | Target1 =script.Parent.Name | |
| 146 | Target2 = game.Players[Target1] | |
| 147 | Target2.Character.archivable = true | |
| 148 | clone4 = Target2.Character:Clone() | |
| 149 | clone4.Parent = game.Lighting | |
| 150 | ||
| 151 | ||
| 152 | ||
| 153 | ||
| 154 | ||
| 155 | clone4.Torso["Left Shoulder"].DesiredAngle = -1.5 | |
| 156 | clone4.Torso["Right Shoulder"].DesiredAngle = 1.5 | |
| 157 | ||
| 158 | ||
| 159 | ||
| 160 | ||
| 161 | ||
| 162 | ||
| 163 | ||
| 164 | ||
| 165 | ||
| 166 | Glow1 = Color3.new(.5,0,0) | |
| 167 | Glow2 = Color3.new(0,0,0) | |
| 168 | ||
| 169 | GlowParticle = Instance.new("ParticleEmitter",clone4.Torso)
| |
| 170 | GlowParticle.LightEmission = 0 | |
| 171 | GlowParticle.Color = ColorSequence.new(Glow1,Glow2) | |
| 172 | GlowParticle.Size = NumberSequence.new(2,0) | |
| 173 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=118641183" | |
| 174 | GlowParticle.Transparency = NumberSequence.new(.3,.8) | |
| 175 | GlowParticle.LockedToPart = false | |
| 176 | GlowParticle.Lifetime = NumberRange.new(.5,.6) | |
| 177 | GlowParticle.Rate= 100 | |
| 178 | GlowParticle.Speed =NumberRange.new(6) | |
| 179 | GlowParticle.VelocitySpread = 360 | |
| 180 | ||
| 181 | ||
| 182 | ||
| 183 | for i,v in pairs(clone4:GetChildren()) do | |
| 184 | ||
| 185 | ||
| 186 | if v:IsA("ShirtGraphic") then
| |
| 187 | v:Destroy() | |
| 188 | end | |
| 189 | ||
| 190 | if v:IsA("Pants") then
| |
| 191 | v:Destroy() | |
| 192 | end | |
| 193 | if v:IsA("Shirt") then
| |
| 194 | v:Destroy() | |
| 195 | end | |
| 196 | if v:IsA("Hat") then
| |
| 197 | v:Destroy() | |
| 198 | ||
| 199 | end | |
| 200 | if v:IsA("Accessory") then
| |
| 201 | v:Destroy() | |
| 202 | end | |
| 203 | ||
| 204 | end | |
| 205 | ||
| 206 | clone4["Body Colors"]:Destroy() | |
| 207 | clone4.Head.face.Texture = "rbxassetid://97880283" | |
| 208 | ||
| 209 | wait() | |
| 210 | Zombie = clone4:Clone() | |
| 211 | ||
| 212 | wait() | |
| 213 | ||
| 214 | clone4:Destroy() | |
| 215 | ||
| 216 | wait() | |
| 217 | ||
| 218 | ||
| 219 | Player=game:GetService("Players").LocalPlayer
| |
| 220 | Character=Player.Character | |
| 221 | ||
| 222 | ||
| 223 | ------------------------------------------------------- | |
| 224 | local Orbd = Instance.new("Part", Character)
| |
| 225 | Orbd.Name = "Orbd" | |
| 226 | Orbd.Shape = Enum.PartType.Ball | |
| 227 | Orbd.CanCollide = false | |
| 228 | Orbd.BrickColor = BrickColor.new("Really black")
| |
| 229 | Orbd.Transparency = 0 | |
| 230 | Orbd.Material = "Neon" | |
| 231 | Orbd.Size = Vector3.new(0.3, 0.3, 0.3) | |
| 232 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
| 233 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
| 234 | ||
| 235 | local Weld = Instance.new("Weld", Orbd)
| |
| 236 | Weld.Part0 = Character.Head | |
| 237 | Weld.Part1 = Orbd | |
| 238 | Weld.C1 = CFrame.new(-0.26, -0.24, 0.55) | |
| 239 | ||
| 240 | -------------------------------------------------------- | |
| 241 | local Orbvc = Instance.new("Part", Character)
| |
| 242 | Orbvc.Name = "Orbvc" | |
| 243 | Orbvc.Shape = Enum.PartType.Ball | |
| 244 | Orbvc.CanCollide = false | |
| 245 | Orbvc.BrickColor = BrickColor.new("Really black")
| |
| 246 | Orbvc.Transparency = 0 | |
| 247 | Orbvc.Material = "Neon" | |
| 248 | Orbvc.Size = Vector3.new(0.3, 0.3, 0.3) | |
| 249 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
| 250 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
| 251 | ||
| 252 | local Weld = Instance.new("Weld", Orbvc)
| |
| 253 | Weld.Part0 = Character.Head | |
| 254 | Weld.Part1 = Orbvc | |
| 255 | Weld.C1 = CFrame.new(0.26, -0.24, 0.55) | |
| 256 | --------------------------------------------------------- | |
| 257 | local Mask = Instance.new("Part", Character)
| |
| 258 | Mask.Name = "Mask" | |
| 259 | Mask.CanCollide = false | |
| 260 | Mask.BrickColor = BrickColor.new("Mid gray")
| |
| 261 | Mask.Transparency = 0 | |
| 262 | Mask.Material = "Plastic" | |
| 263 | Mask.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 264 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
| 265 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
| 266 | ||
| 267 | local Weld = Instance.new("Weld", Mask)
| |
| 268 | Weld.Part0 = Character.Head | |
| 269 | Weld.Part1 = Mask | |
| 270 | Weld.C1 = CFrame.new(0, -0.1, 0.8) | |
| 271 | ||
| 272 | local M1 = Instance.new("SpecialMesh")
| |
| 273 | M1.Parent = Mask | |
| 274 | M1.MeshId = "http://www.roblox.com/asset/?id=62679079" | |
| 275 | M1.Scale = Vector3.new( 1, 1, 2) | |
| 276 | ---------------------------------------------------------- | |
| 277 | local Hood = Instance.new("Part", Character)
| |
| 278 | Hood.Name = "Hood" | |
| 279 | Hood.CanCollide = false | |
| 280 | Hood.BrickColor = BrickColor.new("Really black")
| |
| 281 | Hood.Transparency = 0 | |
| 282 | Hood.Material = "Plastic" | |
| 283 | Hood.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 284 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
| 285 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
| 286 | ||
| 287 | local Weld = Instance.new("Weld", Hood)
| |
| 288 | Weld.Part0 = Character.Head | |
| 289 | Weld.Part1 = Hood | |
| 290 | Weld.C1 = CFrame.new(0, -0.2, 0) | |
| 291 | ||
| 292 | local M2 = Instance.new("SpecialMesh")
| |
| 293 | M2.Parent = Hood | |
| 294 | M2.MeshId = "http://www.roblox.com/asset/?id=83499032" | |
| 295 | M2.Scale = Vector3.new( 1, 1.2, 1.1) | |
| 296 | ------------------------------------------------------ | |
| 297 | ||
| 298 | p = game.Players.LocalPlayer | |
| 299 | char049 = p.Character | |
| 300 | ||
| 301 | char049.Shirt:Remove() | |
| 302 | for i,v in pairs(char049:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
| |
| 303 | wait()shirt = Instance.new("Shirt", char049)
| |
| 304 | shirt.Name = "Shirt" | |
| 305 | pants = Instance.new("Pants", char049)
| |
| 306 | pants.Name = "Pants" | |
| 307 | ||
| 308 | char049.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=648758131" | |
| 309 | char049.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472675863" | |
| 310 | ------------------------------------------------- | |
| 311 | ---- Orbd,Orbvc,Mask,Hood | |
| 312 | ||
| 313 | --[[NIGHTOWLACE_WEAPONRY]]-- | |
| 314 | maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name | |
| 315 | secondcolor = "Really black" | |
| 316 | ||
| 317 | wait(1 / 60) | |
| 318 | Effects = { }
| |
| 319 | local Player = game.Players.localPlayer | |
| 320 | local Character = Player.Character | |
| 321 | local Humanoid = Character.Humanoid | |
| 322 | local mouse = Player:GetMouse() | |
| 323 | local LeftArm = Character["Left Arm"] | |
| 324 | local RightArm = Character["Right Arm"] | |
| 325 | local LeftLeg = Character["Left Leg"] | |
| 326 | local RightLeg = Character["Right Leg"] | |
| 327 | local Head = Character.Head | |
| 328 | local Torso = Character.Torso | |
| 329 | local cam = game.Workspace.CurrentCamera | |
| 330 | local RootPart = Character.HumanoidRootPart | |
| 331 | local RootJoint = RootPart.RootJoint | |
| 332 | local equipped = false | |
| 333 | local attack = false | |
| 334 | local Anim = 'Idle' | |
| 335 | local idle = 0 | |
| 336 | local attacktype = 1 | |
| 337 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 338 | local velocity = RootPart.Velocity.y | |
| 339 | local sine = 0 | |
| 340 | local change = 1 | |
| 341 | local grabbed = false | |
| 342 | local cn = CFrame.new | |
| 343 | local mr = math.rad | |
| 344 | local angles = CFrame.Angles | |
| 345 | local ud = UDim2.new | |
| 346 | local c3 = Color3.new | |
| 347 | ||
| 348 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 349 | Humanoid.Animator:Destroy() | |
| 350 | Character.Animate:Destroy() | |
| 351 | ||
| 352 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 353 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 354 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 355 | ||
| 356 | RSH, LSH = nil, nil | |
| 357 | ||
| 358 | RW = Instance.new("Weld")
| |
| 359 | LW = Instance.new("Weld")
| |
| 360 | ||
| 361 | RH = Torso["Right Hip"] | |
| 362 | LH = Torso["Left Hip"] | |
| 363 | ||
| 364 | RSH = Torso["Right Shoulder"] | |
| 365 | LSH = Torso["Left Shoulder"] | |
| 366 | ||
| 367 | RSH.Parent = nil | |
| 368 | LSH.Parent = nil | |
| 369 | ||
| 370 | RW.Name = "RW" | |
| 371 | RW.Part0 = Torso | |
| 372 | RW.C0 = cn(1.5, 0.5, 0) | |
| 373 | RW.C1 = cn(0, 0.5, 0) | |
| 374 | RW.Part1 = RightArm | |
| 375 | RW.Parent = Torso | |
| 376 | ||
| 377 | LW.Name = "LW" | |
| 378 | LW.Part0 = Torso | |
| 379 | LW.C0 = cn(-1.5, 0.5, 0) | |
| 380 | LW.C1 = cn(0, 0.5, 0) | |
| 381 | LW.Part1 = LeftArm | |
| 382 | LW.Parent = Torso | |
| 383 | ||
| 384 | function clerp(a, b, t) | |
| 385 | local qa = {
| |
| 386 | QuaternionFromCFrame(a) | |
| 387 | } | |
| 388 | local qb = {
| |
| 389 | QuaternionFromCFrame(b) | |
| 390 | } | |
| 391 | local ax, ay, az = a.x, a.y, a.z | |
| 392 | local bx, by, bz = b.x, b.y, b.z | |
| 393 | local _t = 1 - t | |
| 394 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 395 | end | |
| 396 | ||
| 397 | function QuaternionFromCFrame(cf) | |
| 398 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 399 | local trace = m00 + m11 + m22 | |
| 400 | if trace > 0 then | |
| 401 | local s = math.sqrt(1 + trace) | |
| 402 | local recip = 0.5 / s | |
| 403 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 404 | else | |
| 405 | local i = 0 | |
| 406 | if m11 > m00 then | |
| 407 | i = 1 | |
| 408 | end | |
| 409 | if m22 > (i == 0 and m00 or m11) then | |
| 410 | i = 2 | |
| 411 | end | |
| 412 | if i == 0 then | |
| 413 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 414 | local recip = 0.5 / s | |
| 415 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 416 | elseif i == 1 then | |
| 417 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 418 | local recip = 0.5 / s | |
| 419 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 420 | elseif i == 2 then | |
| 421 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 422 | local recip = 0.5 / s | |
| 423 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 424 | end | |
| 425 | end | |
| 426 | end | |
| 427 | ||
| 428 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 429 | local xs, ys, zs = x + x, y + y, z + z | |
| 430 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 431 | local xx = x * xs | |
| 432 | local xy = x * ys | |
| 433 | local xz = x * zs | |
| 434 | local yy = y * ys | |
| 435 | local yz = y * zs | |
| 436 | local zz = z * zs | |
| 437 | 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)) | |
| 438 | end | |
| 439 | ||
| 440 | function QuaternionSlerp(a, b, t) | |
| 441 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 442 | local startInterp, finishInterp; | |
| 443 | if cosTheta >= 0.0001 then | |
| 444 | if (1 - cosTheta) > 0.0001 then | |
| 445 | local theta = math.acos(cosTheta) | |
| 446 | local invSinTheta = 1 / math.sin(theta) | |
| 447 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 448 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 449 | else | |
| 450 | startInterp = 1 - t | |
| 451 | finishInterp = t | |
| 452 | end | |
| 453 | else | |
| 454 | if (1 + cosTheta) > 0.0001 then | |
| 455 | local theta = math.acos(-cosTheta) | |
| 456 | local invSinTheta = 1 / math.sin(theta) | |
| 457 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 458 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 459 | else | |
| 460 | startInterp = t - 1 | |
| 461 | finishInterp = t | |
| 462 | end | |
| 463 | end | |
| 464 | 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 | |
| 465 | end | |
| 466 | ||
| 467 | function swait(num) | |
| 468 | if num == 0 or num == nil then | |
| 469 | game:service'RunService'.RenderStepped:wait(0) | |
| 470 | else | |
| 471 | for i = 0, num do | |
| 472 | game:service'RunService'.RenderStepped:wait(0) | |
| 473 | end | |
| 474 | end | |
| 475 | end | |
| 476 | ||
| 477 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 478 | local Create = RbxUtility.Create | |
| 479 | ||
| 480 | function RemoveOutlines(part) | |
| 481 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 482 | end | |
| 483 | ||
| 484 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 485 | local Part = Create("Part"){
| |
| 486 | formFactor = FormFactor, | |
| 487 | Parent = Parent, | |
| 488 | Reflectance = Reflectance, | |
| 489 | Transparency = Transparency, | |
| 490 | CanCollide = false, | |
| 491 | Locked = true, | |
| 492 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 493 | Name = Name, | |
| 494 | Size = Size, | |
| 495 | Material = Material, | |
| 496 | } | |
| 497 | RemoveOutlines(Part) | |
| 498 | return Part | |
| 499 | end | |
| 500 | ||
| 501 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 502 | local Msh = Create(Mesh){
| |
| 503 | Parent = Part, | |
| 504 | Offset = OffSet, | |
| 505 | Scale = Scale, | |
| 506 | } | |
| 507 | if Mesh == "SpecialMesh" then | |
| 508 | Msh.MeshType = MeshType | |
| 509 | Msh.MeshId = MeshId | |
| 510 | end | |
| 511 | return Msh | |
| 512 | end | |
| 513 | ||
| 514 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 515 | local Weld = Create("Weld"){
| |
| 516 | Parent = Parent, | |
| 517 | Part0 = Part0, | |
| 518 | Part1 = Part1, | |
| 519 | C0 = C0, | |
| 520 | C1 = C1, | |
| 521 | } | |
| 522 | return Weld | |
| 523 | end | |
| 524 | ||
| 525 | function rayCast(Position, Direction, Range, Ignore) | |
| 526 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 527 | end | |
| 528 | ||
| 529 | function CreateSound(id, par, vol, pit) | |
| 530 | coroutine.resume(coroutine.create(function() | |
| 531 | local sou = Instance.new("Sound", par or workspace)
| |
| 532 | sou.Volume = vol | |
| 533 | sou.Pitch = pit or 1 | |
| 534 | sou.SoundId = id | |
| 535 | wait() | |
| 536 | sou:play() | |
| 537 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 538 | end)) | |
| 539 | end | |
| 540 | ||
| 541 | local function getclosest(obj, distance) | |
| 542 | local last, lastx = distance + 1 | |
| 543 | for i, v in pairs(workspace:GetChildren()) do | |
| 544 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 545 | local t = v.Torso | |
| 546 | local dist = (t.Position - obj.Position).magnitude | |
| 547 | if dist <= distance then | |
| 548 | if dist < last then | |
| 549 | last = dist | |
| 550 | lastx = v | |
| 551 | end | |
| 552 | end | |
| 553 | end | |
| 554 | end | |
| 555 | return lastx | |
| 556 | end | |
| 557 | ||
| 558 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 559 | for i, v in pairs(hit:GetChildren()) do | |
| 560 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 561 | local find = v:FindFirstChild("Hitz")
| |
| 562 | if not find then | |
| 563 | if v.Parent:findFirstChild("Head") then
| |
| 564 | local BillG = Create("BillboardGui"){
| |
| 565 | Parent = v.Parent.Head, | |
| 566 | Size = UDim2.new(1, 0, 1, 0), | |
| 567 | Adornee = v.Parent.Head, | |
| 568 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 569 | } | |
| 570 | local TL = Create("TextLabel"){
| |
| 571 | Parent = BillG, | |
| 572 | Size = UDim2.new(3, 3, 3, 3), | |
| 573 | BackgroundTransparency = 1, | |
| 574 | Text = tostring(damage).."-", | |
| 575 | TextColor3 = Color1.Color, | |
| 576 | TextStrokeColor3 = Color2.Color, | |
| 577 | TextStrokeTransparency = 0, | |
| 578 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 579 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 580 | FontSize = Enum.FontSize.Size18, | |
| 581 | Font = "ArialBold", | |
| 582 | } | |
| 583 | coroutine.resume(coroutine.create(function() | |
| 584 | wait(1) | |
| 585 | for i = 0, 1, .1 do | |
| 586 | wait(.1) | |
| 587 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 588 | end | |
| 589 | BillG:Destroy() | |
| 590 | end)) | |
| 591 | end | |
| 592 | v.Health = v.Health - damage | |
| 593 | local bool = Create("BoolValue"){
| |
| 594 | Parent = v, | |
| 595 | Name = 'Hitz', | |
| 596 | } | |
| 597 | if HSound ~= nil and HPitch ~= nil then | |
| 598 | CreateSound(HSound, hit, 1, HPitch) | |
| 599 | end | |
| 600 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 601 | end | |
| 602 | end | |
| 603 | end | |
| 604 | end | |
| 605 | ||
| 606 | ||
| 607 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 608 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 609 | prt.Anchored = true | |
| 610 | prt.CFrame = cframe | |
| 611 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 612 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 613 | if Type == 1 or Type == nil then | |
| 614 | table.insert(Effects, {
| |
| 615 | prt, | |
| 616 | "Block1", | |
| 617 | delay, | |
| 618 | x3, | |
| 619 | y3, | |
| 620 | z3, | |
| 621 | msh | |
| 622 | }) | |
| 623 | elseif Type == 2 then | |
| 624 | table.insert(Effects, {
| |
| 625 | prt, | |
| 626 | "Block2", | |
| 627 | delay, | |
| 628 | x3, | |
| 629 | y3, | |
| 630 | z3, | |
| 631 | msh | |
| 632 | }) | |
| 633 | end | |
| 634 | end | |
| 635 | ||
| 636 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 637 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 638 | prt.Anchored = true | |
| 639 | prt.CFrame = cframe | |
| 640 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 641 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 642 | table.insert(Effects, {
| |
| 643 | prt, | |
| 644 | "Cylinder", | |
| 645 | delay, | |
| 646 | x3, | |
| 647 | y3, | |
| 648 | z3, | |
| 649 | msh | |
| 650 | }) | |
| 651 | end | |
| 652 | ||
| 653 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 654 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 655 | prt.Anchored = true | |
| 656 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 657 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 658 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 659 | table.insert(Effects, {
| |
| 660 | prt, | |
| 661 | "Cylinder", | |
| 662 | delay, | |
| 663 | x3, | |
| 664 | y3, | |
| 665 | z3, | |
| 666 | msh | |
| 667 | }) | |
| 668 | end | |
| 669 | ||
| 670 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 671 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 672 | prt.Anchored = true | |
| 673 | prt.CFrame = cframe | |
| 674 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 675 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 676 | table.insert(Effects, {
| |
| 677 | prt, | |
| 678 | "Cylinder", | |
| 679 | delay, | |
| 680 | x3, | |
| 681 | y3, | |
| 682 | z3, | |
| 683 | msh | |
| 684 | }) | |
| 685 | end | |
| 686 | ||
| 687 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 688 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 689 | prt.Anchored = true | |
| 690 | prt.CFrame = cframe | |
| 691 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 692 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 693 | table.insert(Effects, {
| |
| 694 | prt, | |
| 695 | "Cylinder", | |
| 696 | delay, | |
| 697 | x3, | |
| 698 | y3, | |
| 699 | z3, | |
| 700 | msh | |
| 701 | }) | |
| 702 | end | |
| 703 | ||
| 704 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 705 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 706 | prt.Anchored = true | |
| 707 | prt.CFrame = cframe | |
| 708 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 709 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 710 | table.insert(Effects, {
| |
| 711 | prt, | |
| 712 | "Cylinder", | |
| 713 | delay, | |
| 714 | x3, | |
| 715 | y3, | |
| 716 | z3, | |
| 717 | msh | |
| 718 | }) | |
| 719 | end | |
| 720 | ||
| 721 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 722 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 723 | prt.Anchored = true | |
| 724 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 725 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 726 | local num = math.random(10, 50) / 1000 | |
| 727 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 728 | table.insert(Effects, {
| |
| 729 | prt, | |
| 730 | "Shatter", | |
| 731 | num, | |
| 732 | prt.CFrame, | |
| 733 | math.random() - math.random(), | |
| 734 | 0, | |
| 735 | math.random(50, 100) / 100 | |
| 736 | }) | |
| 737 | end | |
| 738 | ||
| 739 | ||
| 740 | ||
| 741 | ||
| 742 | for i = 0, 1, 0.05 do | |
| 743 | swait() | |
| 744 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
| 745 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
| 746 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 747 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
| 748 | if Torsovelocity > 2 then | |
| 749 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 750 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 751 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
| 752 | elseif Torsovelocity < 1 then | |
| 753 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
| 754 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 755 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
| 756 | end | |
| 757 | end | |
| 758 | attack = false | |
| 759 | ||
| 760 | ||
| 761 | ||
| 762 | game:GetService'RunService'.Stepped:connect(function() | |
| 763 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 764 | velocity = RootPart.Velocity.y | |
| 765 | sine = sine + change | |
| 766 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 767 | if equipped == true or equipped == false then | |
| 768 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 769 | Anim = "Jump" | |
| 770 | if attack == false then | |
| 771 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 772 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 773 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1) | |
| 774 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1) | |
| 775 | RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1) | |
| 776 | LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1) | |
| 777 | end | |
| 778 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 779 | Anim = "Fall" | |
| 780 | if attack == false then | |
| 781 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 782 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
| 783 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1) | |
| 784 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1) | |
| 785 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 786 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
| 787 | end | |
| 788 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 789 | Anim = "Idle" | |
| 790 | if attack == false then | |
| 791 | change = 1 | |
| 792 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1) | |
| 793 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1) | |
| 794 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1) | |
| 795 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1) | |
| 796 | RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
| 797 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1) | |
| 798 | end | |
| 799 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 800 | Anim = "Walk" | |
| 801 | if attack == false then | |
| 802 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2) | |
| 803 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
| 804 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(4)), .2) | |
| 805 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2) | |
| 806 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3) | |
| 807 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3) | |
| 808 | end | |
| 809 | end | |
| 810 | end | |
| 811 | if #Effects > 0 then | |
| 812 | for e = 1, #Effects do | |
| 813 | if Effects[e] ~= nil then | |
| 814 | local Thing = Effects[e] | |
| 815 | if Thing ~= nil then | |
| 816 | local Part = Thing[1] | |
| 817 | local Mode = Thing[2] | |
| 818 | local Delay = Thing[3] | |
| 819 | local IncX = Thing[4] | |
| 820 | local IncY = Thing[5] | |
| 821 | local IncZ = Thing[6] | |
| 822 | if Thing[1].Transparency <= 1 then | |
| 823 | if Thing[2] == "Block1" then | |
| 824 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 825 | local Mesh = Thing[1].Mesh | |
| 826 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 827 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 828 | elseif Thing[2] == "Block2" then | |
| 829 | Thing[1].CFrame = Thing[1].CFrame | |
| 830 | local Mesh = Thing[7] | |
| 831 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 832 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 833 | elseif Thing[2] == "Cylinder" then | |
| 834 | local Mesh = Thing[1].Mesh | |
| 835 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 836 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 837 | elseif Thing[2] == "Blood" then | |
| 838 | local Mesh = Thing[7] | |
| 839 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 840 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 841 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 842 | elseif Thing[2] == "Elec" then | |
| 843 | local Mesh = Thing[1].Mesh | |
| 844 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 845 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 846 | elseif Thing[2] == "Disappear" then | |
| 847 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 848 | elseif Thing[2] == "Shatter" then | |
| 849 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 850 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 851 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 852 | Thing[6] = Thing[6] + Thing[5] | |
| 853 | end | |
| 854 | else | |
| 855 | Part.Parent = nil | |
| 856 | table.remove(Effects, e) | |
| 857 | end | |
| 858 | end | |
| 859 | end | |
| 860 | end | |
| 861 | end | |
| 862 | end) | |
| 863 | ||
| 864 | ||
| 865 | local lp = game.Players.LocalPlayer | |
| 866 | local chr = lp.Character | |
| 867 | local mouseV2 = lp:GetMouse() | |
| 868 | local euler = CFrame.fromEulerAnglesXYZ | |
| 869 | local rad = math.rad | |
| 870 | local trso = chr.Torso | |
| 871 | ||
| 872 | ||
| 873 | ||
| 874 | ||
| 875 | ||
| 876 | ||
| 877 | ||
| 878 | ||
| 879 | ||
| 880 | ||
| 881 | ||
| 882 | ||
| 883 | ||
| 884 | ||
| 885 | ||
| 886 | ||
| 887 | ||
| 888 | ||
| 889 | ||
| 890 | ||
| 891 | ||
| 892 | ||
| 893 | ||
| 894 | ||
| 895 | ||
| 896 | hum = chr.Humanoid | |
| 897 | ||
| 898 | ||
| 899 | ||
| 900 | function CreateMesh(parent, id, x, y, z, texture) | |
| 901 | local m=Instance.new("SpecialMesh", parent)
| |
| 902 | m.MeshType = "FileMesh" | |
| 903 | m.MeshId="http://www.roblox.com/asset/?id="..id | |
| 904 | if texture ~= nil then | |
| 905 | m.TextureId="http://www.roblox.com/asset/?id="..texture | |
| 906 | end | |
| 907 | m.Scale = Vector3.new(x,y,z) | |
| 908 | end | |
| 909 | ||
| 910 | ||
| 911 | ||
| 912 | Hat=function() | |
| 913 | hat = Instance.new("Part", chr)
| |
| 914 | hat.Transparency = 1 | |
| 915 | hat.Name = "Top hat" | |
| 916 | hat.Locked = true | |
| 917 | hat.BrickColor = BrickColor.new("Really black")
| |
| 918 | hat.CanCollide=true | |
| 919 | hat.Size=Vector3.new(1,1,1) | |
| 920 | hatw = Instance.new("Weld",hat)
| |
| 921 | hatw.Part0=hat | |
| 922 | hatw.Part1=chr['Head'] | |
| 923 | hatw.C0=CFrame.new(0,-1.7,0) | |
| 924 | hatw.C1=euler(rad(0),rad(0),rad(0)) | |
| 925 | end | |
| 926 | ||
| 927 | Hat() | |
| 928 | ||
| 929 | ||
| 930 | ||
| 931 | function Name(msg) | |
| 932 | if hat.Parent then | |
| 933 | pcall(function() | |
| 934 | local Gui = Instance.new('BillboardGui', hat)
| |
| 935 | Gui.ExtentsOffset = Vector3.new(0,1.5,0) | |
| 936 | Gui.Size = UDim2.new(0,200,0,300) | |
| 937 | local Frame = Instance.new('Frame',Gui)
| |
| 938 | Frame.BackgroundTransparency = 1 | |
| 939 | Frame.Size = UDim2.new(1,0,1,0) | |
| 940 | local Txt = Instance.new('TextLabel',Frame)
| |
| 941 | Txt.BackgroundTransparency = 1 | |
| 942 | Txt.Size = UDim2.new(1,0,1,0) | |
| 943 | Txt.Font = 'ArialBold' | |
| 944 | Txt.FontSize = 'Size24' | |
| 945 | Txt.Text = msg | |
| 946 | Txt.TextColor3 = BrickColor.new("Really black").Color
| |
| 947 | Txt.TextStrokeColor3 = Color3.new(1,0,0) | |
| 948 | Txt.TextStrokeTransparency = 0 | |
| 949 | Txt.TextWrapped = true | |
| 950 | Txt.TextScaled = false | |
| 951 | end) | |
| 952 | else | |
| 953 | end | |
| 954 | end | |
| 955 | ||
| 956 | function Chat(msg) -- Credit to jillmiles1, kthxbye | |
| 957 | if hat.Parent then | |
| 958 | pcall(function() | |
| 959 | if hat:FindFirstChild("Fazbear Chat Gui") then
| |
| 960 | hat['Fazbear Chat Gui']:destroy() | |
| 961 | end | |
| 962 | local Gui = Instance.new('BillboardGui', hat)
| |
| 963 | Gui.Name = "Fazbear Chat Gui" | |
| 964 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 965 | Gui.Size = UDim2.new(0,200,0,300) | |
| 966 | local Frame = Instance.new('Frame',Gui)
| |
| 967 | Frame.BackgroundTransparency = 1 | |
| 968 | Frame.Size = UDim2.new(1,0,1,0) | |
| 969 | local Txt = Instance.new('TextLabel',Frame)
| |
| 970 | Txt.BackgroundTransparency = 1 | |
| 971 | Txt.Size = UDim2.new(1,0,1,0) | |
| 972 | Txt.Font = 'ArialBold' | |
| 973 | Txt.Name = "ChatGui" | |
| 974 | Txt.FontSize = 'Size24' | |
| 975 | Txt.Text = '' | |
| 976 | Txt.TextColor3 = BrickColor.new("Really black").Color
| |
| 977 | Txt.TextStrokeColor3 = Color3.new(1,1,1) | |
| 978 | Txt.TextStrokeTransparency = .5 | |
| 979 | Txt.TextWrapped = true | |
| 980 | Txt.TextScaled = false | |
| 981 | ||
| 982 | delay(wait(),function() | |
| 983 | for v = 1, #msg do | |
| 984 | Txt.Text=string.sub(msg,1,v) | |
| 985 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 986 | wait(.009) | |
| 987 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 988 | wait(.009) | |
| 989 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 990 | end; | |
| 991 | ||
| 992 | ||
| 993 | ||
| 994 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 995 | wait(.03) | |
| 996 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 997 | wait(.03) | |
| 998 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 999 | wait(.03) | |
| 1000 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 1001 | wait(.03) | |
| 1002 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 1003 | wait(.03) | |
| 1004 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 1005 | wait(.03) | |
| 1006 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 1007 | wait(.03) | |
| 1008 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 1009 | wait(.03) | |
| 1010 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 1011 | wait(.03) | |
| 1012 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 1013 | wait(.03) | |
| 1014 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 1015 | wait(.03) | |
| 1016 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 1017 | wait(.03) | |
| 1018 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 1019 | wait(.03) | |
| 1020 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 1021 | wait(.03) | |
| 1022 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 1023 | wait(.03) | |
| 1024 | Gui.ExtentsOffset = Vector3.new(.1,2.9,0) | |
| 1025 | wait(.03) | |
| 1026 | Gui.ExtentsOffset = Vector3.new(0,3,-0.1) | |
| 1027 | wait(.03) | |
| 1028 | Gui.ExtentsOffset = Vector3.new(0,3,0) | |
| 1029 | wait(.03) | |
| 1030 | ||
| 1031 | Txt.TextStrokeTransparency = .6 | |
| 1032 | wait() | |
| 1033 | Txt.TextStrokeTransparency = .7 | |
| 1034 | wait() | |
| 1035 | Txt.TextStrokeTransparency = .8 | |
| 1036 | wait() | |
| 1037 | Txt.TextStrokeTransparency = .9 | |
| 1038 | wait() | |
| 1039 | Txt.TextStrokeTransparency = 1 | |
| 1040 | wait() | |
| 1041 | ||
| 1042 | for v = 1, #Txt.Text do | |
| 1043 | Txt.Text=string.sub(msg,-1,v) | |
| 1044 | ||
| 1045 | ||
| 1046 | ||
| 1047 | ||
| 1048 | ||
| 1049 | ||
| 1050 | ||
| 1051 | end; | |
| 1052 | Gui:remove() | |
| 1053 | end) | |
| 1054 | end) | |
| 1055 | else | |
| 1056 | end | |
| 1057 | end | |
| 1058 | ||
| 1059 | ||
| 1060 | ||
| 1061 | ||
| 1062 | function PlaySound(id, pitch, looped) | |
| 1063 | epicsound = Instance.new("Sound")
| |
| 1064 | epicsound.Name = "FazbearSound" | |
| 1065 | epicsound.SoundId = "rbxassetid://"..id | |
| 1066 | epicsound.Volume = 2 | |
| 1067 | epicsound.Pitch = pitch | |
| 1068 | if looped == nil then | |
| 1069 | looped = true | |
| 1070 | else | |
| 1071 | looped = looped | |
| 1072 | end | |
| 1073 | wait() | |
| 1074 | epicsound.Looped = looped | |
| 1075 | epicsound.Parent = workspace | |
| 1076 | if epicsound.SoundId=="rbxassetid://tt" then -- TELL ME, TELL ME, WHERE DA FREAKS AT! | |
| 1077 | epicsound.SoundId="rbxassetid://181158033" | |
| 1078 | elseif epicsound.SoundId=="rbxassetid://fabulous" then -- FA-FA-FABULOUS! | |
| 1079 | epicsound.SoundId="rbxassetid://191819419" | |
| 1080 | elseif epicsound.SoundId=="rbxassetid://ufdb" then -- ultimate final death battle(fairy tail XD) | |
| 1081 | epicsound.SoundId="rbxassetid://153085393" | |
| 1082 | elseif epicsound.SoundId=="rbxassetid://nnm" then | |
| 1083 | epicsound.SoundId="rbxassetid://210189234" | |
| 1084 | elseif epicsound.SoundId=="rbxassetid://tun" then -- tunak tunak tun | |
| 1085 | epicsound.SoundId="rbxassetid://162682002" | |
| 1086 | elseif epicsound.SoundId=="rbxassetid://zelda" then | |
| 1087 | epicsound.SoundId="rbxassetid://158215156" | |
| 1088 | elseif epicsound.SoundId=="rbxassetid://cc" then | |
| 1089 | epicsound.SoundId="rbxassetid://177080835" | |
| 1090 | end | |
| 1091 | es=epicsound:clone() | |
| 1092 | es:Stop() | |
| 1093 | es.Parent = chr | |
| 1094 | wait() | |
| 1095 | es:Play() | |
| 1096 | end | |
| 1097 | ||
| 1098 | ||
| 1099 | ||
| 1100 | ||
| 1101 | lp.Chatted:connect(function(msg) | |
| 1102 | Chat(msg) | |
| 1103 | end) | |
| 1104 | ||
| 1105 | goldie=true | |
| 1106 | ||
| 1107 | ||
| 1108 | function StopMusic() | |
| 1109 | if chr:FindFirstChild("FazbearSound") then
| |
| 1110 | if chr.FazbearSound.ClassName == "Sound" then | |
| 1111 | chr.FazbearSound:Stop() | |
| 1112 | wait() | |
| 1113 | chr.FazbearSound:Destroy() | |
| 1114 | end | |
| 1115 | end | |
| 1116 | end | |
| 1117 | ||
| 1118 | Name("")
| |
| 1119 | ||
| 1120 | ||
| 1121 | mouseV2.KeyDown:connect(function(key) | |
| 1122 | if key == "g" then | |
| 1123 | if goldie==false then | |
| 1124 | goldie=true | |
| 1125 | ||
| 1126 | elseif goldie==true then | |
| 1127 | goldie=false | |
| 1128 | ||
| 1129 | end | |
| 1130 | elseif key == "j" then -- Plays a song | |
| 1131 | StopMusic() | |
| 1132 | PlaySound(150456585, 1.1, true) | |
| 1133 | elseif key == "k" then -- Plays a song | |
| 1134 | StopMusic() | |
| 1135 | PlaySound(260170583, 1, true) | |
| 1136 | Chat("Heh...")
| |
| 1137 | elseif key == "p" then -- Stops any sound(s) playing from your torso | |
| 1138 | StopMusic() | |
| 1139 | Chat("All sounds stopped!")
| |
| 1140 | end | |
| 1141 | end) | |
| 1142 | ||
| 1143 | ||
| 1144 | ||
| 1145 | hum.Died:connect(function() | |
| 1146 | es.Pitch = 10 | |
| 1147 | wait() | |
| 1148 | es:Pause() | |
| 1149 | es:Stop() | |
| 1150 | es.Name = "Ded" | |
| 1151 | wait() | |
| 1152 | es:Destroy() | |
| 1153 | end) | |
| 1154 | ||
| 1155 | ||
| 1156 | ||
| 1157 | ||
| 1158 | ||
| 1159 | ||
| 1160 | p = (game.Players.LocalPlayer.Name) | |
| 1161 | char = game.Players.LocalPlayer.Character | |
| 1162 | ||
| 1163 | ||
| 1164 | local player = game.Players.LocalPlayer | |
| 1165 | repeat wait() until player.Character.Humanoid | |
| 1166 | local humanoid = player.Character.Humanoid | |
| 1167 | local mouse = player:GetMouse() | |
| 1168 | ||
| 1169 | for i,v in pairs(char:GetChildren()) do | |
| 1170 | if v.ClassName == 'Accessory' then | |
| 1171 | v:Destroy() | |
| 1172 | end | |
| 1173 | end | |
| 1174 | ||
| 1175 | ScarySound1 = Instance.new("Sound")
| |
| 1176 | ScarySound1.Parent = char.Torso | |
| 1177 | ScarySound1.SoundId = "rbxassetid://161964276" | |
| 1178 | ScarySound1.Volume = .5 | |
| 1179 | ||
| 1180 | ScarySound2 = Instance.new("Sound")
| |
| 1181 | ScarySound2.Parent = char.Torso | |
| 1182 | ScarySound2.SoundId = "rbxassetid://669623416" | |
| 1183 | ScarySound2.Volume = 2 | |
| 1184 | ScarySound2.Looped = true | |
| 1185 | ||
| 1186 | ScarySound3 = Instance.new("Sound")
| |
| 1187 | ScarySound3.Parent = char.Torso | |
| 1188 | ScarySound3.SoundId = "rbxassetid://483810543" | |
| 1189 | ScarySound3.Volume = 0.3 | |
| 1190 | ScarySound3.Looped = true | |
| 1191 | ||
| 1192 | ScarySound4 = Instance.new("Sound")
| |
| 1193 | ScarySound4.Parent = char.Torso | |
| 1194 | ScarySound4.SoundId = "rbxassetid://177113856" | |
| 1195 | ScarySound4.Volume = 2 | |
| 1196 | ScarySound4.Looped = false | |
| 1197 | ||
| 1198 | Punch = Instance.new("Sound")
| |
| 1199 | Punch.Parent = char.Torso | |
| 1200 | Punch.SoundId = "rbxassetid://146938349" | |
| 1201 | Punch.Volume = 1.5 | |
| 1202 | Punch.Looped = false | |
| 1203 | Punch.Pitch = 0.8 | |
| 1204 | ||
| 1205 | hole = Instance.new("Sound")
| |
| 1206 | hole.Parent = char.Torso | |
| 1207 | hole.SoundId = "rbxassetid://224339308" | |
| 1208 | hole.Volume = .3 | |
| 1209 | ||
| 1210 | ||
| 1211 | game.Players.LocalPlayer.Character.Sound:Destroy() | |
| 1212 | ||
| 1213 | function Normal() | |
| 1214 | ScarySound3:Play() | |
| 1215 | char.Humanoid.WalkSpeed = 18 | |
| 1216 | char.Head.face.Texture = "rbxassetid://0" | |
| 1217 | char["Left Leg"].Transparency = 0 | |
| 1218 | char["Head"].Transparency = 0 | |
| 1219 | char["Right Leg"].Transparency = 0 | |
| 1220 | char["Torso"].Transparency = 0 | |
| 1221 | char["Left Arm"].Transparency = 0 | |
| 1222 | char["Right Arm"].Transparency = 0 | |
| 1223 | end | |
| 1224 | ||
| 1225 | function GoInvisible() | |
| 1226 | ScarySound3:Stop() | |
| 1227 | ScarySound1:Stop() | |
| 1228 | char.Humanoid.WalkSpeed = 120 | |
| 1229 | char.Head.face.Transparency = 1 | |
| 1230 | char["Left Leg"].Transparency = 0.5 | |
| 1231 | char["Head"].Transparency = 0.5 | |
| 1232 | char["Right Leg"].Transparency = 0.5 | |
| 1233 | char["Torso"].Transparency = 0.5 | |
| 1234 | char["Left Arm"].Transparency = 0.5 | |
| 1235 | char["Right Arm"].Transparency = 0.5 | |
| 1236 | Hood.Transparency = 0.5 | |
| 1237 | Mask.Transparency = 0.5 | |
| 1238 | Orbvc.Transparency = 0.5 | |
| 1239 | Orbd.Transparency = 0.5 | |
| 1240 | Orbvc.BrickColor = BrickColor.new("Really red")
| |
| 1241 | Orbd.BrickColor = BrickColor.new("Really red")
| |
| 1242 | wait(0.001) | |
| 1243 | char["Left Leg"].Transparency = 0.6 | |
| 1244 | char["Head"].Transparency = 0.6 | |
| 1245 | char["Right Leg"].Transparency = 0.6 | |
| 1246 | char["Torso"].Transparency = 0.6 | |
| 1247 | char["Left Arm"].Transparency = 0.6 | |
| 1248 | char["Right Arm"].Transparency = 0.6 | |
| 1249 | Hood.Transparency = 0.6 | |
| 1250 | Mask.Transparency = 0.6 | |
| 1251 | Orbvc.Transparency = 0.6 | |
| 1252 | Orbd.Transparency = 0.6 | |
| 1253 | wait(0.001) | |
| 1254 | char["Left Leg"].Transparency = 0.7 | |
| 1255 | char["Head"].Transparency = 0.7 | |
| 1256 | char["Right Leg"].Transparency = 0.7 | |
| 1257 | char["Torso"].Transparency = 0.7 | |
| 1258 | char["Left Arm"].Transparency = 0.7 | |
| 1259 | char["Right Arm"].Transparency = 0.7 | |
| 1260 | Hood.Transparency = 0.7 | |
| 1261 | Mask.Transparency = 0.7 | |
| 1262 | Orbvc.Transparency = 0.7 | |
| 1263 | Orbd.Transparency = 0.7 | |
| 1264 | wait(0.001) | |
| 1265 | char["Left Leg"].Transparency = 1 | |
| 1266 | char["Head"].Transparency = 1 | |
| 1267 | char["Right Leg"].Transparency = 1 | |
| 1268 | char["Torso"].Transparency = 1 | |
| 1269 | char["Left Arm"].Transparency = 1 | |
| 1270 | char["Right Arm"].Transparency = 1 | |
| 1271 | Hood.Transparency = 1 | |
| 1272 | Mask.Transparency = 1 | |
| 1273 | Orbvc.Transparency = 1 | |
| 1274 | Orbd.Transparency = 1 | |
| 1275 | end | |
| 1276 | ||
| 1277 | function GoVisible() | |
| 1278 | ScarySound3:Play() | |
| 1279 | char.Humanoid.WalkSpeed = 16 | |
| 1280 | ScarySound1:Play() | |
| 1281 | char.Head.face.Transparency = 0 | |
| 1282 | Orbvc.BrickColor = BrickColor.new("Really black")
| |
| 1283 | Orbd.BrickColor = BrickColor.new("Really black")
| |
| 1284 | char["Left Leg"].Transparency = 0.9 | |
| 1285 | char["Head"].Transparency = 0.9 | |
| 1286 | char["Right Leg"].Transparency = 9 | |
| 1287 | char["Torso"].Transparency = 0.9 | |
| 1288 | char["Left Arm"].Transparency = 0.9 | |
| 1289 | char["Right Arm"].Transparency = 0.9 | |
| 1290 | Hood.Transparency = 0.9 | |
| 1291 | Mask.Transparency = 0.9 | |
| 1292 | Orbvc.Transparency = 0.9 | |
| 1293 | Orbd.Transparency = 0.9 | |
| 1294 | wait(0.001) | |
| 1295 | char["Left Leg"].Transparency = 0.7 | |
| 1296 | char["Head"].Transparency = 0.7 | |
| 1297 | char["Right Leg"].Transparency = 0.7 | |
| 1298 | char["Torso"].Transparency = 0.7 | |
| 1299 | char["Left Arm"].Transparency = 0.7 | |
| 1300 | char["Right Arm"].Transparency = 0.7 | |
| 1301 | Hood.Transparency = 0.7 | |
| 1302 | Mask.Transparency = 0.7 | |
| 1303 | Orbvc.Transparency = 0.7 | |
| 1304 | Orbd.Transparency = 0.7 | |
| 1305 | wait(0.001) | |
| 1306 | char["Left Leg"].Transparency = 0 | |
| 1307 | char["Head"].Transparency = 0 | |
| 1308 | char["Right Leg"].Transparency = 0 | |
| 1309 | char["Torso"].Transparency = 0 | |
| 1310 | char["Left Arm"].Transparency = 0 | |
| 1311 | char["Right Arm"].Transparency = 0 | |
| 1312 | Hood.Transparency = 0 | |
| 1313 | Mask.Transparency = 0 | |
| 1314 | Orbvc.Transparency = 0 | |
| 1315 | Orbd.Transparency = 0 | |
| 1316 | end | |
| 1317 | ||
| 1318 | Normal() | |
| 1319 | ||
| 1320 | Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://293341992",Volume = 2,Looped = true})
| |
| 1321 | Music1.Pitch = 1 | |
| 1322 | musicon = false | |
| 1323 | mouse.KeyDown:connect(function(key) | |
| 1324 | if key == "z" then | |
| 1325 | if char.Head.Transparency == 0 then | |
| 1326 | GoInvisible() | |
| 1327 | ||
| 1328 | elseif char.Head.Transparency == 1 then | |
| 1329 | GoVisible() | |
| 1330 | Chat("...")
| |
| 1331 | end | |
| 1332 | end end) | |
| 1333 | ||
| 1334 | mouse.KeyDown:connect(function(key) | |
| 1335 | if key == "x" then | |
| 1336 | if ScarySound2.IsPlaying == false then | |
| 1337 | ScarySound2:Play() | |
| 1338 | elseif ScarySound2.IsPlaying == true then | |
| 1339 | ScarySound2:Stop() | |
| 1340 | ||
| 1341 | ||
| 1342 | end | |
| 1343 | end end) | |
| 1344 | ||
| 1345 | mouse.KeyDown:connect(function(key) | |
| 1346 | if key == "r" then | |
| 1347 | if ScarySound4.IsPlaying == false then | |
| 1348 | ScarySound4:Play() | |
| 1349 | Chat("Hello...")
| |
| 1350 | wait(1.5) | |
| 1351 | Chat("greetings...")
| |
| 1352 | wait(2) | |
| 1353 | Chat("o my...")
| |
| 1354 | wait(1.5) | |
| 1355 | Chat("he have another victim of the disease")
| |
| 1356 | wait(3) | |
| 1357 | Chat("you are not a doctor...")
| |
| 1358 | wait(2) | |
| 1359 | Chat("i sense the the disease in you")
| |
| 1360 | wait(2.3) | |
| 1361 | Chat("i am the cure...")
| |
| 1362 | wait(2) | |
| 1363 | Chat("do not be afraid")
| |
| 1364 | wait(2) | |
| 1365 | Chat("i am the cure")
| |
| 1366 | wait(2) | |
| 1367 | Chat("stop resisting...")
| |
| 1368 | wait(1.8) | |
| 1369 | Chat("i am here to cure you...")
| |
| 1370 | ||
| 1371 | ||
| 1372 | ||
| 1373 | ||
| 1374 | end | |
| 1375 | end end) | |
| 1376 | mouse.KeyDown:connect(function(key) | |
| 1377 | if key == "u" then | |
| 1378 | for _, z in pairs(workspace:GetChildren()) do | |
| 1379 | ||
| 1380 | if z.Name == "Zombie" then | |
| 1381 | Chat("Clean...")
| |
| 1382 | z:Destroy() | |
| 1383 | ||
| 1384 | end | |
| 1385 | end | |
| 1386 | end | |
| 1387 | end) | |
| 1388 | ||
| 1389 | ||
| 1390 | mouse.KeyDown:connect(function(key) | |
| 1391 | if key == "m" then | |
| 1392 | if musicon == true then | |
| 1393 | Music1:Stop() | |
| 1394 | musicon = false | |
| 1395 | Chat("Auto Target: Deactivated")
| |
| 1396 | else | |
| 1397 | Chat("Auto Target: Activated")
| |
| 1398 | Music1:Play() | |
| 1399 | musicon = true | |
| 1400 | ||
| 1401 | end | |
| 1402 | end | |
| 1403 | end) | |
| 1404 | ||
| 1405 | Virus = true | |
| 1406 | ||
| 1407 | ||
| 1408 | mouse.KeyDown:connect(function(key) | |
| 1409 | if key == "v" then | |
| 1410 | if Virus == true then | |
| 1411 | Chat("Infection: Deactivated")
| |
| 1412 | Virus = false | |
| 1413 | ||
| 1414 | else | |
| 1415 | ||
| 1416 | Virus = true | |
| 1417 | Chat("Infection: Activated")
| |
| 1418 | end | |
| 1419 | end | |
| 1420 | end) | |
| 1421 | ||
| 1422 | ||
| 1423 | ||
| 1424 | mouse.KeyDown:connect(function(key) | |
| 1425 | if key == "h" then | |
| 1426 | for _, z in pairs(workspace:GetChildren()) do | |
| 1427 | ||
| 1428 | if z.Name == "Zombie" then | |
| 1429 | ||
| 1430 | ||
| 1431 | ||
| 1432 | end | |
| 1433 | end | |
| 1434 | end | |
| 1435 | end) | |
| 1436 | ||
| 1437 | ||
| 1438 | ||
| 1439 | ||
| 1440 | mouse.KeyDown:connect(function(key) | |
| 1441 | if key == "f" then | |
| 1442 | if targetted == nil then | |
| 1443 | targetted = char | |
| 1444 | else | |
| 1445 | ||
| 1446 | targetted = nil | |
| 1447 | end | |
| 1448 | ||
| 1449 | ||
| 1450 | end | |
| 1451 | end) | |
| 1452 | ||
| 1453 | ||
| 1454 | ||
| 1455 | ||
| 1456 | ||
| 1457 | function SpawnZombie() | |
| 1458 | ||
| 1459 | ||
| 1460 | if ZomWait == false and ZomWait2 == false then | |
| 1461 | Zombie.Parent = game.Lighting | |
| 1462 | Zombie2 = Zombie:Clone() | |
| 1463 | Zombie3 = Zombie:Clone() | |
| 1464 | ||
| 1465 | Zombie:Destroy() | |
| 1466 | ---------------------------- | |
| 1467 | ZomWait2 = true | |
| 1468 | wait() | |
| 1469 | ZomWait = true | |
| 1470 | end | |
| 1471 | ||
| 1472 | ||
| 1473 | ||
| 1474 | if ZomWait == true and ZomWait2 == false then | |
| 1475 | Zombie3.Parent = game.Lighting | |
| 1476 | Zombie2 = Zombie3:Clone() | |
| 1477 | Zombie = Zombie3:Clone() | |
| 1478 | ||
| 1479 | Zombie3:Destroy() | |
| 1480 | ---------------------------- | |
| 1481 | ZomWait2 = true | |
| 1482 | wait() | |
| 1483 | ZomWait = false | |
| 1484 | end | |
| 1485 | Zombie2.Parent = game.Workspace | |
| 1486 | ||
| 1487 | end | |
| 1488 | ||
| 1489 | ||
| 1490 | ||
| 1491 | ||
| 1492 | function ResetZombie() | |
| 1493 | wait(4) | |
| 1494 | ZomSyle = false | |
| 1495 | ZomWait2 = false | |
| 1496 | ||
| 1497 | end | |
| 1498 | waitV2 = false | |
| 1499 | function onTouch(part) | |
| 1500 | ||
| 1501 | local humanoid = part.Parent:findFirstChild("Humanoid")
| |
| 1502 | local model = part.Parent | |
| 1503 | local torso = part.Parent:FindFirstChild("Torso")
| |
| 1504 | local head = part.Parent:findFirstChild("Head")
| |
| 1505 | local leftleg = part.Parent:findFirstChild("Left Leg")
| |
| 1506 | local rightleg = part.Parent:findFirstChild("Right Leg")
| |
| 1507 | local leftarm = part.Parent:findFirstChild("Left Arm")
| |
| 1508 | local rightarm = part.Parent:findFirstChild("Right Arm")
| |
| 1509 | if model.Name == 'Zombie' == false and model.Name == ''..p == false and Virus == true and waitV2 == false then | |
| 1510 | waitV2 = true | |
| 1511 | wait(.2) | |
| 1512 | waitV2 = false | |
| 1513 | ||
| 1514 | ||
| 1515 | ||
| 1516 | ||
| 1517 | if (humanoid ~=nil) then | |
| 1518 | ||
| 1519 | --humanoid.Health = 0 | |
| 1520 | ||
| 1521 | ||
| 1522 | ---------------------------R15------------------------------------------------- | |
| 1523 | if part.Parent:FindFirstChild("Torso") == nil and model.Humanoid.Health == 0 == false then
| |
| 1524 | local torso2 = part.Parent:FindFirstChild("UpperTorso")
| |
| 1525 | torso2:Destroy() | |
| 1526 | end | |
| 1527 | ------------------------------------------------------------------------------- | |
| 1528 | ||
| 1529 | ||
| 1530 | ||
| 1531 | humanoid.Sit = true | |
| 1532 | wait(0.5) | |
| 1533 | torso.Anchored = true | |
| 1534 | wait(.3) | |
| 1535 | zomchar = humanoid.Parent | |
| 1536 | e=Instance.new('Part', model)
| |
| 1537 | e.Size = Vector3.new(2.25,2.25,2.25) | |
| 1538 | e.Transparency = 1 | |
| 1539 | e.Anchored = true | |
| 1540 | e.CFrame = CFrame.new(torso.Position) | |
| 1541 | ||
| 1542 | ||
| 1543 | ||
| 1544 | wait(1) | |
| 1545 | torso:Destroy() | |
| 1546 | q=Instance.new('ParticleEmitter', e)
| |
| 1547 | q.Size = NumberSequence.new(2,.0) | |
| 1548 | q.Rate = 500 | |
| 1549 | q.Transparency = NumberSequence.new(0,1) | |
| 1550 | q.Speed = NumberRange.new(7) | |
| 1551 | q.VelocitySpread = 100 | |
| 1552 | q.Lifetime = NumberRange.new(0.1,1) | |
| 1553 | q.Texture = 'rbxassetid://164417280' | |
| 1554 | wait(.1) | |
| 1555 | torso.Anchored = true | |
| 1556 | rightleg.Anchored = true | |
| 1557 | leftleg.Anchored = true | |
| 1558 | rightarm.Anchored = true | |
| 1559 | leftarm.Anchored = true | |
| 1560 | ded = Instance.new("Sound")
| |
| 1561 | ded.Parent = e | |
| 1562 | ded.SoundId = "rbxassetid://130976109" | |
| 1563 | ded.Volume = 3 | |
| 1564 | ded.Looped = false | |
| 1565 | wait() | |
| 1566 | ||
| 1567 | ded:Play() | |
| 1568 | ||
| 1569 | wait(1) | |
| 1570 | leftleg.Transparency = 0.5 | |
| 1571 | head.Transparency = 0.5 | |
| 1572 | rightleg.Transparency = 0.5 | |
| 1573 | torso.Transparency = 0.5 | |
| 1574 | leftarm.Transparency = 0.5 | |
| 1575 | rightarm.Transparency = 0.5 | |
| 1576 | ||
| 1577 | ||
| 1578 | wait(0.001) | |
| 1579 | leftleg.Transparency = 0.6 | |
| 1580 | head.Transparency = 0.6 | |
| 1581 | rightleg.Transparency = 0.6 | |
| 1582 | torso.Transparency = 0.6 | |
| 1583 | leftarm.Transparency = 0.6 | |
| 1584 | rightarm.Transparency = 0.6 | |
| 1585 | ||
| 1586 | wait(0.001) | |
| 1587 | leftleg.Transparency = 0.7 | |
| 1588 | head.Transparency = 0.7 | |
| 1589 | rightleg.Transparency = 0.7 | |
| 1590 | torso.Transparency = 0.7 | |
| 1591 | leftarm.Transparency = 0.7 | |
| 1592 | rightarm.Transparency = 0.7 | |
| 1593 | ||
| 1594 | ||
| 1595 | ||
| 1596 | ||
| 1597 | ||
| 1598 | ||
| 1599 | wait(0.001) | |
| 1600 | leftleg.Transparency = 1 | |
| 1601 | head.Transparency = 1 | |
| 1602 | rightleg.Transparency = 1 | |
| 1603 | torso.Transparency = 1 | |
| 1604 | leftarm.Transparency = 1 | |
| 1605 | rightarm.Transparency = 1 | |
| 1606 | wait() | |
| 1607 | ||
| 1608 | SpawnZombie() | |
| 1609 | Zombie2.Torso.Touched:connect(onTouch) | |
| 1610 | Zombie2.Name = 'Zombie' | |
| 1611 | function AutoJump() | |
| 1612 | Zombie2.Humanoid.Jump = true | |
| 1613 | end | |
| 1614 | Zombie2.Torso.Touched:connect(AutoJump) | |
| 1615 | wait() | |
| 1616 | Zombie2:MoveTo(zomchar.Head.Position + Vector3.new(math.random(0,1),0,math.random(0,1))) | |
| 1617 | ---------------------- | |
| 1618 | ||
| 1619 | if ZomSyle == false then | |
| 1620 | ZomSyle = true | |
| 1621 | ||
| 1622 | ||
| 1623 | ||
| 1624 | ||
| 1625 | ||
| 1626 | ||
| 1627 | ||
| 1628 | ||
| 1629 | Zombie2.archivable = false | |
| 1630 | ||
| 1631 | ||
| 1632 | skin = zomchar["Body Colors"]:Clone() | |
| 1633 | skin.Parent = Zombie2 | |
| 1634 | wait() | |
| 1635 | ||
| 1636 | ||
| 1637 | Character= Zombie2 | |
| 1638 | plr = Zombie2 | |
| 1639 | Headmaker = Character.Head | |
| 1640 | Headcol1 = Headmaker.BrickColor | |
| 1641 | Headmat = Headmaker.Material | |
| 1642 | Headsize = Headmaker.Size | |
| 1643 | Headsize2 = Headmaker.Mesh.Scale | |
| 1644 | hed = Character.Head | |
| 1645 | hed.Transparency = 1 | |
| 1646 | ||
| 1647 | local Headnr1 = Instance.new("Model",Character.Head)
| |
| 1648 | Headnr1.Name = "Lmao" | |
| 1649 | local Headnr2 = Instance.new("Model",Headnr1)
| |
| 1650 | Headnr2.Name = ""..zomchar.Name | |
| 1651 | ||
| 1652 | ||
| 1653 | ---------------------------------------------------------- | |
| 1654 | wait() | |
| 1655 | local Mask = Instance.new("Part", Headnr2)
| |
| 1656 | Mask.Name = "Head" | |
| 1657 | Mask.CanCollide = false | |
| 1658 | Mask.BrickColor = Headcol1 | |
| 1659 | Mask.Transparency = 0 | |
| 1660 | Mask.Material = Headmat | |
| 1661 | Mask.Size = Headsize | |
| 1662 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
| 1663 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
| 1664 | local Weld = Instance.new("Weld", Mask)
| |
| 1665 | Weld.Part0 = Character.Head | |
| 1666 | Weld.Part1 = Mask | |
| 1667 | Weld.C1 = CFrame.new(0,0,0) | |
| 1668 | ||
| 1669 | local M1 = Instance.new("SpecialMesh")
| |
| 1670 | M1.Parent = Mask | |
| 1671 | M1.MeshType='Head' | |
| 1672 | M1.Scale = Headsize2 | |
| 1673 | ---------------------------------------------------------- | |
| 1674 | local Name2 = Instance.new("Humanoid",Headnr2)
| |
| 1675 | ||
| 1676 | wait() | |
| 1677 | ||
| 1678 | for i,v in pairs(zomchar:GetChildren()) do | |
| 1679 | if v:IsA("CharacterMesh") then
| |
| 1680 | v:clone().Parent = Zombie2 | |
| 1681 | end | |
| 1682 | ||
| 1683 | if v:IsA("ShirtGraphic") then
| |
| 1684 | v:clone().Parent = Zombie2 | |
| 1685 | end | |
| 1686 | ||
| 1687 | if v:IsA("Pants") then
| |
| 1688 | v:clone().Parent = Zombie2 | |
| 1689 | end | |
| 1690 | if v:IsA("Shirt") then
| |
| 1691 | v:clone().Parent = Zombie2 | |
| 1692 | ||
| 1693 | end | |
| 1694 | ||
| 1695 | ||
| 1696 | if v:IsA("Accessory") then
| |
| 1697 | v:clone().Parent = Zombie2 | |
| 1698 | end | |
| 1699 | ||
| 1700 | if v:IsA("Hat") then
| |
| 1701 | v:clone().Parent = Zombie2 | |
| 1702 | end | |
| 1703 | ||
| 1704 | end | |
| 1705 | ||
| 1706 | ||
| 1707 | ||
| 1708 | end | |
| 1709 | ||
| 1710 | ||
| 1711 | ||
| 1712 | ||
| 1713 | ||
| 1714 | ||
| 1715 | ||
| 1716 | ---------------------- | |
| 1717 | wait() | |
| 1718 | leftleg:Destroy() | |
| 1719 | head:Destroy() | |
| 1720 | rightleg:Destroy() | |
| 1721 | leftarm:Destroy() | |
| 1722 | rightarm:Destroy() | |
| 1723 | ResetZombie() | |
| 1724 | end | |
| 1725 | end | |
| 1726 | end | |
| 1727 | ||
| 1728 | ||
| 1729 | ||
| 1730 | char.Torso.Touched:connect(onTouch) | |
| 1731 | ||
| 1732 | mouse.KeyDown:connect(function(key) | |
| 1733 | if key == "c" then | |
| 1734 | ||
| 1735 | LockOn() | |
| 1736 | ||
| 1737 | ||
| 1738 | ||
| 1739 | ||
| 1740 | ||
| 1741 | end | |
| 1742 | end) | |
| 1743 | ||
| 1744 | ||
| 1745 | debounce = false | |
| 1746 | ||
| 1747 | function onTouched(hit) | |
| 1748 | hole:Play() | |
| 1749 | hit.CanCollide=false | |
| 1750 | wait(.5) | |
| 1751 | hit.CanCollide = true | |
| 1752 | debounce = true | |
| 1753 | ||
| 1754 | end | |
| 1755 | game.Players.LocalPlayer.Character.Torso.Touched:connect(onTouched) | |
| 1756 | ||
| 1757 | ||
| 1758 | ||
| 1759 | game:GetService("RunService"):BindToRenderStep("ew", 0, function()
| |
| 1760 | ||
| 1761 | ||
| 1762 | if targetted == nil and musicon == true then | |
| 1763 | print('Waiting For A Target...')
| |
| 1764 | wait() | |
| 1765 | GetPlayers() | |
| 1766 | local d = math.random(1, #dft) | |
| 1767 | local s = d | |
| 1768 | print(''..dft[s]..'?')
| |
| 1769 | ||
| 1770 | ||
| 1771 | ||
| 1772 | for _, z in pairs(workspace:GetChildren()) do | |
| 1773 | ||
| 1774 | if z.Name == ""..dft[s] then | |
| 1775 | ||
| 1776 | ||
| 1777 | ||
| 1778 | ||
| 1779 | ||
| 1780 | targetted = z | |
| 1781 | ||
| 1782 | if z.Name == ''..p then | |
| 1783 | ||
| 1784 | targetted = nil | |
| 1785 | ||
| 1786 | print('Wait a sec is that not me!')
| |
| 1787 | ||
| 1788 | end | |
| 1789 | end | |
| 1790 | end | |
| 1791 | ||
| 1792 | ||
| 1793 | end | |
| 1794 | ||
| 1795 | if musicon == true and targetted.Humanoid.Health == 0 then | |
| 1796 | targetted = nil | |
| 1797 | ||
| 1798 | end | |
| 1799 | ||
| 1800 | for _, z in pairs(workspace:GetChildren()) do | |
| 1801 | ||
| 1802 | if z.Name == "Zombie" then | |
| 1803 | ||
| 1804 | z.Humanoid:MoveTo(targetted.Head.Position) | |
| 1805 | ||
| 1806 | end | |
| 1807 | end | |
| 1808 | for _, z in pairs(workspace:GetChildren()) do | |
| 1809 | ||
| 1810 | if z.Name == "Zombie" then | |
| 1811 | if z.Humanoid.Health == 0 then | |
| 1812 | z.Head.face.Transparency = 1 | |
| 1813 | z["Left Leg"].Transparency = 0.5 | |
| 1814 | z["Head"].Transparency = 0.5 | |
| 1815 | z["Right Leg"].Transparency = 0.5 | |
| 1816 | z["Torso"].Transparency = 0.5 | |
| 1817 | z["Left Arm"].Transparency = 0.5 | |
| 1818 | z["Right Arm"].Transparency = 0.5 | |
| 1819 | wait(0.1) | |
| 1820 | z:Destroy() | |
| 1821 | end | |
| 1822 | end | |
| 1823 | end | |
| 1824 | ||
| 1825 | ||
| 1826 | ||
| 1827 | ------------------- | |
| 1828 | end) | |
| 1829 | ||
| 1830 | ||
| 1831 | ||
| 1832 | print('Loaded...')
| |
| 1833 | print('---------------------')
| |
| 1834 | print('Made by 123jl123')
| |
| 1835 | print('---------------------')
| |
| 1836 | print('do not leak...')
| |
| 1837 | print('Have a nice day :)')
| |
| 1838 | print('---------------------')
| |
| 1839 | while wait() do | |
| 1840 | ||
| 1841 | ||
| 1842 | ||
| 1843 | char["Left Leg"].BrickColor = BrickColor.new("Really black")
| |
| 1844 | char["Head"].BrickColor = BrickColor.new("Really black")
| |
| 1845 | char["Right Leg"].BrickColor = BrickColor.new("Really black")
| |
| 1846 | char["Torso"].BrickColor = BrickColor.new("Really black")
| |
| 1847 | char["Left Arm"].BrickColor = BrickColor.new("Black")
| |
| 1848 | char["Right Arm"].BrickColor = BrickColor.new("Black")
| |
| 1849 | imgl.Rotation = imgl.Rotation + 1 | |
| 1850 | if targetted ~= nil then | |
| 1851 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 1852 | crosshair.Enabled = true | |
| 1853 | ||
| 1854 | elseif targetted == nil then | |
| 1855 | ||
| 1856 | crosshair.Adornee = nil | |
| 1857 | crosshair.Enabled = false | |
| 1858 | ||
| 1859 | end | |
| 1860 | ||
| 1861 | ||
| 1862 | ||
| 1863 | ||
| 1864 | ||
| 1865 | ||
| 1866 | ||
| 1867 | ||
| 1868 | ||
| 1869 | ||
| 1870 | ||
| 1871 | ||
| 1872 | end | |
| 1873 | ||
| 1874 | ||
| 1875 | ------------------------------------------------------------------------ |