Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Camera1 = Instance.new("Camera")
- BoolValue2 = Instance.new("BoolValue")
- Shirt3 = Instance.new("Shirt")
- Pants4 = Instance.new("Pants")
- StringValue5 = Instance.new("StringValue")
- BoolValue6 = Instance.new("BoolValue")
- BoolValue7 = Instance.new("BoolValue")
- Script8 = Instance.new("Script")
- ScreenGui9 = Instance.new("ScreenGui")
- ImageLabel10 = Instance.new("ImageLabel")
- Script11 = Instance.new("Script")
- Folder12 = Instance.new("Folder")
- Animation13 = Instance.new("Animation")
- Animation14 = Instance.new("Animation")
- ObjectValue15 = Instance.new("ObjectValue")
- NumberValue16 = Instance.new("NumberValue")
- ObjectValue17 = Instance.new("ObjectValue")
- LocalScript18 = Instance.new("LocalScript")
- Humanoid19 = Instance.new("Humanoid")
- Part20 = Instance.new("Part")
- SpecialMesh21 = Instance.new("SpecialMesh")
- Sound22 = Instance.new("Sound")
- Decal23 = Instance.new("Decal")
- Sound24 = Instance.new("Sound")
- Weld25 = Instance.new("Weld")
- Weld26 = Instance.new("Weld")
- Part27 = Instance.new("Part")
- ParticleEmitter28 = Instance.new("ParticleEmitter")
- ParticleEmitter29 = Instance.new("ParticleEmitter")
- ParticleEmitter30 = Instance.new("ParticleEmitter")
- Part31 = Instance.new("Part")
- Part32 = Instance.new("Part")
- Part33 = Instance.new("Part")
- Hat34 = Instance.new("Hat")
- Part35 = Instance.new("Part")
- SpecialMesh36 = Instance.new("SpecialMesh")
- Camera37 = Instance.new("Camera")
- Hat38 = Instance.new("Hat")
- Part39 = Instance.new("Part")
- SpecialMesh40 = Instance.new("SpecialMesh")
- Camera41 = Instance.new("Camera")
- Part42 = Instance.new("Part")
- Motor6D43 = Instance.new("Motor6D")
- Motor6D44 = Instance.new("Motor6D")
- Motor6D45 = Instance.new("Motor6D")
- Motor6D46 = Instance.new("Motor6D")
- Motor6D47 = Instance.new("Motor6D")
- Part48 = Instance.new("Part")
- Motor6D49 = Instance.new("Motor6D")
- Sound50 = Instance.new("Sound")
- Model0.Name = "FurryBoss"
- Model0.Parent = mas
- Model0.PrimaryPart = Part42
- Camera1.Name = "ThumbnailCamera"
- Camera1.Parent = Model0
- Camera1.CFrame = CFrame.new(-126.561401, 7.8807168, -126.360405, -0.454598993, 0.102303706, 0.884801507, -3.72529074e-09, 0.993381858, -0.114858136, -0.890696228, -0.0522143953, -0.451590419)
- Camera1.CoordinateFrame = CFrame.new(-126.561401, 7.8807168, -126.360405, -0.454598993, 0.102303706, 0.884801507, -3.72529074e-09, 0.993381858, -0.114858136, -0.890696228, -0.0522143953, -0.451590419)
- Camera1.Focus = CFrame.new(-128.330994, 8.11043167, -125.45723, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera1.focus = CFrame.new(-128.330994, 8.11043167, -125.45723, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- BoolValue2.Name = "FixValue"
- BoolValue2.Parent = Model0
- Shirt3.Name = "Shirt"
- Shirt3.Parent = Model0
- Shirt3.ShirtTemplate = "http://www.roblox.com/asset/?id=184821191"
- Pants4.Name = "Pants"
- Pants4.Parent = Model0
- Pants4.PantsTemplate = "http://www.roblox.com/asset/?id=184821199"
- StringValue5.Name = "Classification"
- StringValue5.Parent = Model0
- StringValue5.Value = "Furry"
- BoolValue6.Name = "Zombie"
- BoolValue6.Parent = Model0
- BoolValue7.Name = "Ressurects"
- BoolValue7.Parent = BoolValue6
- Script8.Name = "AI"
- Script8.Parent = Model0
- table.insert(cors,sandbox(Script8,function()
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- Pscale = 1.625
- local CHARACTER = script.Parent
- local CLONE = CHARACTER:Clone()
- local TORSO = CHARACTER.HumanoidRootPart
- local HED = CHARACTER.Head
- local HUMANOID = CHARACTER.Humanoid
- local CLASSIFICATION = CHARACTER.Classification.Value
- local ANIMS = script.Anims
- local ARMS = HUMANOID:LoadAnimation(ANIMS.ArmAnim)
- local ATTACKA = HUMANOID:LoadAnimation(ANIMS.Attack)
- local DEAD = false
- local Attack = false
- local TweenService = game:GetService("TweenService")
- RootPart = CHARACTER["HumanoidRootPart"]
- Torso = CHARACTER["Torso"]
- Head = CHARACTER["Head"]
- RightArm = CHARACTER["Right Arm"]
- LeftArm = CHARACTER["Left Arm"]
- RightLeg = CHARACTER["Right Leg"]
- LeftLeg = CHARACTER["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RS =Torso["Right Shoulder"]
- LS =Torso["Left Shoulder"]
- RH =Torso["Right Hip"]
- LH =Torso["Left Hip"]
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local NeckCF = CF(0, 1*Pscale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RS.C1 = CF(0, 0.5*Pscale, 0)
- LS.C1 = CF(0, 0.5*Pscale, 0)
- RH.C1 = CF(0, 1*Pscale, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- LH.C1 = CF(0, 1*Pscale, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- AnimP = 0
- AnimSpeed=0
- Anim = "Walk"
- local Tuant = Head:WaitForChild("Tuant")
- local Effects = IT("Folder",CHARACTER)
- Debris = game:GetService("Debris")
- music = CHARACTER.Sound
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = 1/60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- --//=================================\\
- --|| FUNCTIONS
- --\\=================================//
- function CF2(X1,Y1,Z1)
- local output = CFrame.new(X1*Pscale,Y1*Pscale,Z1*Pscale)
- return output
- end
- function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
- local MoveStyle = Enum.EasingStyle[MoveStyle2]
- local outorin = Enum.EasingDirection[outorin2]
- local tweeningInformation = TweenInfo.new(
- AnimTime,
- MoveStyle,
- outorin,
- 0,
- false,
- 0
- )
- local MoveCF = CFr
- local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
- tweenanim:Play()
- end
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(2))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(-2))},"Quad","InOut",AnimSpeed)
- --Legs
- SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- 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))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- 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
- end
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = IT("Sound")
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or Torso.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
- local BOOMERANG = (Table.Boomerang or 0)
- local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" or TYPE == "Box" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = SIZE
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local BOOMR1 = 1+BOOMERANG/50
- local BOOMR2 = 1+SIZEBOOMERANG/50
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- if USEBOOMERANGMATH == true then
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
- else
- MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
- end
- end
- local GROWTH = nil
- if USEBOOMERANGMATH == true then
- GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
- else
- GROWTH = (SIZE - ENDSIZE)
- end
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- if USEBOOMERANGMATH == true then
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
- EFFECT.Orientation = ORI
- end
- end
- else
- for LOOP = 1, TIME+1 do
- Swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- end
- EFFECT.Transparency = 1
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- end
- end))
- end
- wait()
- function Clerp(a, b, t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function GatherAllInstances(Parent,ig)
- local Instances = {}
- local Ignore=nil
- if ig ~= nil then
- Ignore = ig
- end
- local function GatherInstances(Parent,Ignore)
- for i, v in pairs(Parent:GetChildren()) do
- if v ~= Ignore then
- GatherInstances(v,Ignore)
- table.insert(Instances, v) end
- end
- end
- GatherInstances(Parent,Ignore)
- return Instances
- end
- function infect(Char)
- end
- function ApplyDamage(Humanoid,Damage)
- Damage = Damage * 1
- local SOUND = CreateSound(610359515, RightArm, 1.0, 1.5, false)
- if game.Players:FindFirstChild(Humanoid.Parent.Name) then
- local PLR = game.Players:FindFirstChild(Humanoid.Parent.Name)
- end
- if Humanoid.Health - Damage < 0.000001 then
- --Tuant:Play()
- local Zombie = Humanoid.Parent
- Humanoid.PlatformStand = true
- infect(Zombie)
- end
- if Humanoid.Health ~= 0 then
- Humanoid.Health = Humanoid.Health - Damage
- end
- end
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- --//=================================\\
- --|| ATRIFICIAL INTELLIGENCE
- --\\=================================//
- function Attack1()
- local POS = TORSO.CFrame * CF(0,0,-12*Pscale)
- local HIT = false
- Attack = true
- AnimSpeed=.15
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(170),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(50),math.rad(0),math.rad(-20))},"Quad","InOut",AnimSpeed) --]]
- for i = 1, 5 do
- Swait()
- TORSO.CFrame = TORSO.CFrame * CF(0,0,(5-i)/10)
- end
- --ATTACKA:Play()
- --ATTACKA:AdjustSpeed(2.5)
- wait(0.1)
- AnimSpeed =.3
- SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(10),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.25,.5,-.1)*ANGLES(math.rad(60),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.35,.6,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed) --]]
- local SOUND = CreateSound(305734380, RightArm, 1.5, 1.0, false)
- for i = 1, 12 do
- if DEAD == true then
- break
- end
- RightArm.Flame:Emit(10)
- RightArm.Sparks:Emit(5)
- TORSO.CFrame = Clerp(TORSO.CFrame,POS,0.1)
- for index, CHILD in pairs(workspace:GetDescendants()) do
- local Pass = false
- if CHILD:FindFirstChild("Classification") and CHILD:FindFirstChild("Classification").Value == CLASSIFICATION then
- Pass=true
- end
- if CHILD.ClassName == "Model" and CHILD ~= CHARACTER and Pass == false then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- if HUM then
- local TORSO2 = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO2 then
- if (TORSO2.Position - TORSO.CFrame*CF(0,0,-1).p).Magnitude <= 3*Pscale then
- local DMG = MRANDOM(35,45)
- ApplyDamage(HUM,DMG)
- HIT = true
- end
- end
- end
- end
- end
- if HIT == true then
- break
- end
- Swait()
- end
- wait(.5)
- Attack = false
- end
- function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
- for index, CHILD in pairs(workspace:GetDescendants()) do
- if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
- local HUM = CHILD:FindFirstChildOfClass("Humanoid")
- local Pass=false
- if CHILD:FindFirstChild("Classification") and CHILD:FindFirstChild("Classification").Value == CLASSIFICATION then
- Pass=true
- end
- if HUM and Pass == false then
- local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
- if TORSO then
- if (TORSO.Position - POSITION).Magnitude <= RANGE then
- if INSTAKILL == true then
- CHILD:BreakJoints()
- else
- local DMG = MRANDOM(MINDMG,MAXDMG)
- ApplyDamage(HUM,DMG)
- end
- if FLING > 0 then
- for _, c in pairs(CHILD:GetChildren()) do
- if c:IsA("BasePart") then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
- bv.Parent = c
- Debris:AddItem(bv,0.05)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- function Attack2()
- Attack = true
- local POS = TORSO.CFrame * CF(0,0,-6)
- local HIT = false
- for i = 1, 5 do
- Swait()
- TORSO.CFrame = TORSO.CFrame * CF(0,0,(5-i)/10)
- end
- AnimSpeed =.3
- SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(10),math.rad(0),math.rad(-20))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(30),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.25,.5,-.1)*ANGLES(math.rad(60),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.35,.6,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed) --]]
- wait(AnimSpeed)
- local RPP = RootPart.Position
- local lookv= RootPart.CFrame.lookVector
- coroutine.resume(coroutine.create(function()
- for i = 1,10,1 do
- local attackP = RPP+lookv*i*6
- local attackCF = CF(attackP,attackP+lookv*1)
- WACKYEFFECT({Time = 30,EffectType = "Sphere", Size = VT(2,0,10), Size2 = VT(2,60,10), Transparency = .5, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,.5), SoundID = 1452071798, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 1.25})
- WACKYEFFECT({Time = 20,EffectType = "Wave", Size = VT(0,0,10), Size2 = VT(2,60,10), Transparency = 0.8, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = math.random(-10,10)/10, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- ApplyAoE(attackP,6,3,5,12,false)
- Swait(5)
- end
- end))
- AnimSpeed =.3
- SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(-10),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(-20))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,-.1)*ANGLES(math.rad(160),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.35,.6,-.0)*ANGLES(math.rad(-0),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed) --]]
- wait(AnimSpeed)
- Attack = false
- end
- function Attack3()
- Attack = true
- local POS = TORSO.CFrame * CF(0,0,-6)
- local HIT = false
- for i = 1, 5 do
- Swait()
- TORSO.CFrame = TORSO.CFrame * CF(0,0,(5-i)/10)
- end
- AnimSpeed =.3
- SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(10),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,-.0)*ANGLES(math.rad(-20),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed) --]]
- wait(AnimSpeed)
- local RPP = RootPart.Position
- local lookv= RootPart.CFrame.lookVector
- local attackP = RPP+lookv*6
- local attackCF = CF(attackP,attackP+lookv*1)
- WACKYEFFECT({Time = 30,EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(200,1,200), Transparency = .5, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,.5), SoundID = 1452071798, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
- WACKYEFFECT({Time = 30,EffectType = "Wave", Size = VT(20,0,20), Size2 = VT(200,10,200), Transparency = 0.8, Transparency2 = 1, CFrame = attackCF*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 10, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- coroutine.resume(coroutine.create(function()
- for i = 0,20 do Swait()
- coroutine.resume(coroutine.create(function()
- local BlastPos = attackCF*CF(math.random(-50,50),0,math.random(-50,50))
- WACKYEFFECT({Time = 20,EffectType = "Sphere", Size = VT(10,1,10), Size2 = VT(0,1,0), Transparency = .5, Transparency2 = 1, CFrame = BlastPos*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 588738949, SoundPitch = 1, SoundVolume = 2})
- wait(1)
- WACKYEFFECT({Time = 40,EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(10,60,10), Transparency = .5, Transparency2 = 1, CFrame = BlastPos*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,.5), SoundID = 610359590, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 1.5})
- WACKYEFFECT({Time = 30,EffectType = "Wave", Size = VT(20,0,20), Size2 = VT(10,10,10), Transparency = 0.8, Transparency2 = 1, CFrame = BlastPos*CF(0,-2.5*Pscale,0), MoveToPos = nil, RotationX = 0, RotationY = 2, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- ApplyAoE(BlastPos.p,10,13,15,32,false)
- end))
- end
- end))
- AnimSpeed =1
- SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(-10),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.25,.5,-.1)*ANGLES(math.rad(150),math.rad(0),math.rad(-25))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.25,.5,-.1)*ANGLES(math.rad(150),math.rad(0),math.rad(25))},"Quad","InOut",AnimSpeed) --]]
- wait(AnimSpeed)
- AnimSpeed =.25
- SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(-0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,-.0)*ANGLES(math.rad(90),math.rad(0),math.rad(90))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,-.0)*ANGLES(math.rad(90),math.rad(0),math.rad(-90))},"Quad","InOut",AnimSpeed) --]]
- wait(AnimSpeed)
- Attack = false
- wait(AnimSpeed)
- end
- function intro()
- Attack = true
- coroutine.resume(coroutine.create(function()
- local SCRIPTS = {}
- for index, CHILD in pairs(game.Players:GetChildren()) do
- local SCRIPT = script.Cutscene:Clone()
- SCRIPT.Parent = CHILD.PlayerGui
- SCRIPT.Disabled = false
- script.AttachPart:Clone().Parent = SCRIPT
- script.TestFor:Clone().Parent = SCRIPT
- script.Dist:Clone().Parent = SCRIPT
- table.insert(SCRIPTS,SCRIPT)
- end
- for E = 1, #SCRIPTS do
- SCRIPTS[E].Dist.Value = 13.5
- end
- wait(1)
- for i = 15,25,0.1 do
- for E = 1, #SCRIPTS do
- SCRIPTS[E].Dist.Value = i
- end
- Swait()
- end
- wait(.1)
- CHARACTER.FixValue.Value = true
- for E = 1, #SCRIPTS do
- Debris:AddItem(SCRIPTS[E],12)
- end
- wait(.1)
- CHARACTER.FixValue.Value = false
- end))
- AnimSpeed=1.5/2
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
- local SOUND = CreateSound(907329532, Torso, 1.5, 1.2, false)
- wait(AnimSpeed)
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(20),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(90),math.rad(0),math.rad(90))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
- wait(AnimSpeed)
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(50),math.rad(0),math.rad(20))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
- wait(AnimSpeed)
- music:Play()
- Attack = false
- end
- --//=================================\\
- --|| WRAP
- --\\=================================//
- wait(.5)
- intro()
- function BEGINAI()
- if CHARACTER.Zombie.Value == true then
- ARMS:Play()
- end
- HUMANOID.Died:Connect(function()
- DEAD = true
- for index, CHILD in pairs(CHARACTER:GetDescendants()) do
- if CHILD:IsA("BasePart") then
- CHILD.Anchored = true
- coroutine.resume(coroutine.create(function()
- wait(math.random(100,150)/1000)
- WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
- WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
- WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
- WACKYEFFECT({Time = 65,EffectType = "Box", Size = CHILD.Size*1.1, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.CFrame.p+VT(math.random(-5,5),math.random(-5,5),math.random(-5,5)), RotationX = math.random(-50,50)/100, RotationY = math.random(-50,50)/100, RotationZ = math.random(-50,50)/100, Material = "Neon", Color = C3(1,.5,0), SoundID = nil, SoundPitch = MRANDOM(18,22)/10, SoundVolume = 2})
- CHILD:Destroy()
- end))
- end
- end
- print("Dead")
- coroutine.resume(coroutine.create(function()
- if music.Parent == CHARACTER then
- while music.Volume > 0.001 do
- music.Volume = music.Volume -0.1
- wait()
- end
- music:Stop()
- end
- end))
- local SOUND = CreateSound(260434750, workspace, 1.5, 1, false)
- Debris:AddItem(CHARACTER,15)
- end)
- while true do
- if DEAD == true then
- break
- end
- local TARGETVARIANTS = {}
- local TARGET = nil
- for index, CHILD in pairs(workspace:GetChildren()) do
- local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
- if HUMAN then
- if HUMAN.Health > 0 then
- if HUMAN.Torso then
- local PASS = true
- if CHILD:FindFirstChild("Classification") then
- if CHILD:FindFirstChild("Classification").Value == CLASSIFICATION then
- PASS = false
- end
- end
- if PASS == true then
- local DISTANCE = (HUMAN.Torso.Position - HED.Position).Magnitude
- table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
- end
- end
- end
- end
- end
- local DIST = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999
- for E = 1, #TARGETVARIANTS do
- local PLAYER = TARGETVARIANTS[E]
- local CHARACTER = PLAYER[1]
- local DISTANCE = PLAYER[2]
- if DISTANCE < DIST then
- DIST = DISTANCE
- TARGET = CHARACTER
- end
- end
- if TARGET and TARGET:FindFirstChildOfClass("Humanoid") then
- local HUM = TARGET:FindFirstChildOfClass("Humanoid")
- local ROOT = HUM.Torso
- if ROOT then
- if DIST < 8*Pscale then
- HUMANOID:MoveTo(TORSO.Position)
- local POS = VT(ROOT.Position.X,TORSO.Position.Y,ROOT.Position.Z)
- TORSO.CFrame = Clerp(TORSO.CFrame,CF(TORSO.Position,POS),0.3)
- local Cattack = MRANDOM(1,4)
- if MRANDOM(1,5) == 1 then
- if Cattack == 1 then
- Attack1()
- elseif Cattack == 2 then
- Attack2()
- elseif Cattack == 3 then
- Attack3()
- elseif Cattack == 4 then
- -- Attack4()
- elseif Cattack == 5 then
- end
- end
- else
- HUMANOID:MoveTo(ROOT.Position)
- end
- end
- end
- wait()
- end
- end
- coroutine.resume(coroutine.create(function()
- BEGINAI() end))
- while DEAD == false do
- AnimP = AnimP +1
- if AnimP > 4 then
- AnimP=1
- end
- hitfloor = Raycast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4*Pscale, CHARACTER)
- local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = RootPart.Velocity.y
- inairvel=torvel
- if inairvel > 30 then
- inairvel=30
- end
- inairvel=inairvel/50
- if RootPart.Velocity.y > 1 and hitfloor == nil then
- Anim = "Jump"
- elseif RootPart.Velocity.y < -1 and hitfloor == nil then
- Anim = "Fall"
- elseif HUMANOID.Sit == true then
- Anim = "Sit"
- elseif torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- elseif torvel > 2 and hitfloor ~= nil then
- Anim = "Walk"
- else
- Anim = ""
- end
- if Attack == false then
- AnimSpeed=.5
- if Anim == "Idle" then
- AnimSpeed=.4
- if AnimP == 1 then
- elseif AnimP == 2 then
- ----------------------------------------------------------------------------------------------------------------
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(2))},"Quad","InOut",AnimSpeed*2)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(-2))},"Quad","InOut",AnimSpeed*2)
- --Legs
- SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- elseif AnimP == 3 then
- elseif AnimP == 4 then
- ----------------------------------------------------------------------------------------------------------------
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(2),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(2),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- --Legs
- SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed*2)
- end
- end
- if Anim == "Walk" then
- if AnimP == 1 then
- ----------------------------------------------------------------------------------------------------------------
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(10))},"Linear","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(-5),math.rad(0),math.rad(-10))},"Linear","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(70),math.rad(0),math.rad(5))},"Linear","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(30),math.rad(0),math.rad(5))},"Linear","InOut",AnimSpeed)
- --Legs
- SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(LH,{C0=CF2(-.5,-1,-.3)*ANGLES(math.rad(-50),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- elseif AnimP == 2 then
- ----------------------------------------------------------------------------------------------------------------
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(60),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- --Legs
- SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(LH,{C0=CF2(-.5,-.5,-.2)*ANGLES(math.rad(-20),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- elseif AnimP == 3 then
- ----------------------------------------------------------------------------------------------------------------
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(5),math.rad(0),math.rad(-10))},"Linear","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(-5),math.rad(0),math.rad(10))},"Linear","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(70),math.rad(0),math.rad(-5))},"Linear","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(-5))},"Linear","InOut",AnimSpeed)
- --Legs
- SetTween(RH,{C0=CF2(.5,-1,-.3)*ANGLES(math.rad(-50),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- elseif AnimP == 4 then
- ----------------------------------------------------------------------------------------------------------------
- SetTween(RootJoint,{C0= RootCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(Neck,{C0=NeckCF*CF2(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF2(1.5,.5,0)*ANGLES(math.rad(60),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(LS,{C0=CF2(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- --Legs
- SetTween(RH,{C0=CF2(.5,-.5,-.2)*ANGLES(math.rad(-20),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-30),math.rad(0),math.rad(0))},"Linear","InOut",AnimSpeed)
- end
- end
- else
- --[[
- ----------------------------------------------------------------------------------------------------------------
- SetTween(RootJoint,{C0= RootCF*CF(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=NeckCF*CF(0,0,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- --Arms
- SetTween(RS,{C0=CF(1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(LS,{C0=CF(-1.5,.5,0)*ANGLES(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed) --]]
- --Legs
- SetTween(RH,{C0=CF2(.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- SetTween(LH,{C0=CF2(-.5,-1,0)*ANGLES(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",AnimSpeed)
- end
- wait(AnimSpeed)
- end
- end))
- ScreenGui9.Name = "BloodGui"
- ScreenGui9.Parent = Script8
- ImageLabel10.Name = "Blood"
- ImageLabel10.Parent = ScreenGui9
- ImageLabel10.Position = UDim2.new(0, 0, -0.100000001, 0)
- ImageLabel10.Size = UDim2.new(1, 0, 1.29999995, 0)
- ImageLabel10.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel10.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel10.BackgroundTransparency = 1
- ImageLabel10.Image = "rbxassetid://154207804"
- ImageLabel10.ImageColor3 = Color3.new(0, 0.835294, 1)
- ImageLabel10.ImageTransparency = 0.5
- Script11.Name = "Scrip"
- Script11.Parent = ScreenGui9
- table.insert(cors,sandbox(Script11,function()
- for i = 1, 15 do
- wait()
- script.Parent.Blood.ImageTransparency = script.Parent.Blood.ImageTransparency + 0.5/15
- end
- script.Parent:Remove()
- end))
- Script11.Disabled = true
- Folder12.Name = "Anims"
- Folder12.Parent = Script8
- Animation13.Name = "ArmAnim"
- Animation13.Parent = Folder12
- Animation13.AnimationId = "http://www.roblox.com/asset/?id=183294396"
- Animation14.Name = "Attack"
- Animation14.Parent = Folder12
- Animation14.AnimationId = "http://www.roblox.com/asset/?id=180416148"
- ObjectValue15.Name = "AttachPart"
- ObjectValue15.Parent = Script8
- ObjectValue15.Value = Part42
- NumberValue16.Name = "Dist"
- NumberValue16.Parent = Script8
- NumberValue16.Value = 5
- ObjectValue17.Name = "TestFor"
- ObjectValue17.Parent = Script8
- ObjectValue17.Value = BoolValue2
- LocalScript18.Name = "Cutscene"
- LocalScript18.Parent = Script8
- table.insert(cors,sandbox(LocalScript18,function()
- local PLR = game.Players.LocalPlayer
- local CAM = workspace.CurrentCamera
- repeat wait() until script:FindFirstChild("AttachPart")
- local ATTACH = script:FindFirstChild("AttachPart").Value
- repeat wait() until script:FindFirstChild("TestFor")
- local TESTFOR = script:FindFirstChild("TestFor").Value
- repeat wait() until script:FindFirstChild("Dist")
- local DIST = script:FindFirstChild("Dist")
- CAM.CameraType = Enum.CameraType.Scriptable
- local CFRAME = ATTACH.CFrame*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(180),0)
- CAM.CFrame = CFRAME*CFrame.new(0,0,DIST.Value)
- DIST.Changed:Connect(function()
- CAM.CFrame = CFRAME*CFrame.new(0,0,DIST.Value)
- end)
- TESTFOR.Changed:Connect(function()
- repeat wait() until PLR.Character
- local CHR = PLR.Character
- CAM.CameraType = Enum.CameraType.Custom
- CAM.CameraSubject = CHR.Humanoid
- end)
- end))
- LocalScript18.Disabled = true
- Humanoid19.Parent = Model0
- Humanoid19.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid19.Health = 5000
- Humanoid19.LeftLeg = Part33
- Humanoid19.MaxHealth = 5000
- Humanoid19.RightLeg = Part32
- Humanoid19.Torso = Part48
- Humanoid19.WalkSpeed = 12
- Humanoid19.maxHealth = 5000
- Part20.Name = "Head"
- Part20.Parent = Model0
- Part20.CFrame = CFrame.new(67.730072, 7.31244183, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part20.Orientation = Vector3.new(0, -90, 0)
- Part20.Position = Vector3.new(67.730072, 7.31244183, 21.3516541)
- Part20.Rotation = Vector3.new(0, -90, 0)
- Part20.Size = Vector3.new(3.25, 1.625, 1.625)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh21.Parent = Part20
- SpecialMesh21.Scale = Vector3.new(1.25, 1.25, 1.25)
- Sound22.Name = "Ressurect"
- Sound22.Parent = Part20
- Sound22.MaxDistance = 65
- Sound22.SoundId = "rbxassetid://1158091961"
- Sound22.Volume = 2
- Decal23.Name = "face"
- Decal23.Parent = Part20
- Decal23.Texture = "http://www.roblox.com/asset/?id=1908765569"
- Sound24.Name = "Tuant"
- Sound24.Parent = Part20
- Sound24.SoundId = "rbxassetid://463770058"
- Sound24.Volume = 2
- Weld25.Name = "HeadWeld"
- Weld25.Parent = Part20
- Weld25.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld25.C1 = CFrame.new(0.0500000007, 0.129999995, -0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld25.Part0 = Part20
- Weld25.Part1 = Part35
- Weld25.part1 = Part35
- Weld26.Name = "HeadWeld"
- Weld26.Parent = Part20
- Weld26.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld26.C1 = CFrame.new(0, -0.300000012, -0.150000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld26.Part0 = Part20
- Weld26.Part1 = Part39
- Weld26.part1 = Part39
- Part27.Name = "Right Arm"
- Part27.Parent = Model0
- Part27.CFrame = CFrame.new(67.730072, 4.87494183, 23.7891541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
- Part27.Orientation = Vector3.new(0, -90, 0)
- Part27.Position = Vector3.new(67.730072, 4.87494183, 23.7891541)
- Part27.Rotation = Vector3.new(0, -90, 0)
- Part27.Size = Vector3.new(1.625, 3.25, 1.625)
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.CanCollide = false
- Part27.TopSurface = Enum.SurfaceType.Smooth
- ParticleEmitter28.Name = "Flame"
- ParticleEmitter28.Parent = Part27
- ParticleEmitter28.Speed = NumberRange.new(4, 4)
- ParticleEmitter28.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter28.Color = ColorSequence.new(Color3.new(1, 0.494118, 0.239216),Color3.new(1, 0.572549, 0.223529))
- ParticleEmitter28.Enabled = false
- ParticleEmitter28.LightEmission = 0.75
- ParticleEmitter28.Texture = "http://www.roblox.com/asset/?id=304437537"
- ParticleEmitter28.Transparency = NumberSequence.new(1,0.5,0.25,0.25,0.5,1)
- ParticleEmitter28.ZOffset = -1
- ParticleEmitter28.Size = NumberSequence.new(5.875,1.1874997615814,0.3125)
- ParticleEmitter28.Acceleration = Vector3.new(0, 4.5, 0)
- ParticleEmitter28.Lifetime = NumberRange.new(1, 1.125)
- ParticleEmitter28.Rate = 300
- ParticleEmitter28.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter28.SpreadAngle = Vector2.new(10, 10)
- ParticleEmitter28.VelocitySpread = 10
- ParticleEmitter29.Name = "Sparks"
- ParticleEmitter29.Parent = Part27
- ParticleEmitter29.Speed = NumberRange.new(4, 5)
- ParticleEmitter29.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter29.Color = ColorSequence.new(Color3.new(1, 0.72549, 0.482353),Color3.new(1, 0.72549, 0.482353))
- ParticleEmitter29.Enabled = false
- ParticleEmitter29.LightEmission = 0.5
- ParticleEmitter29.Texture = "http://www.roblox.com/asset/?id=301261210"
- ParticleEmitter29.Transparency = NumberSequence.new(1,0,0,1)
- ParticleEmitter29.Size = NumberSequence.new(0,0.075000002980232,0.025000000372529)
- ParticleEmitter29.Acceleration = Vector3.new(0, 5.5, 0)
- ParticleEmitter29.Lifetime = NumberRange.new(1, 3)
- ParticleEmitter29.Rate = 50
- ParticleEmitter29.SpreadAngle = Vector2.new(22.5, 22.5)
- ParticleEmitter29.VelocitySpread = 22.5
- ParticleEmitter30.Name = "Flame2"
- ParticleEmitter30.Parent = Part27
- ParticleEmitter30.Speed = NumberRange.new(2, 2)
- ParticleEmitter30.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter30.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0.14902, 0, 1))
- ParticleEmitter30.LightEmission = 1
- ParticleEmitter30.Texture = "http://www.roblox.com/asset/?id=304437537"
- ParticleEmitter30.Transparency = NumberSequence.new(1,0.93209874629974,0.790123462677,0.69753086566925,0.67901235818863,0.8148148059845,1)
- ParticleEmitter30.ZOffset = -1
- ParticleEmitter30.Size = NumberSequence.new(1.5,0.56249976158142)
- ParticleEmitter30.Acceleration = Vector3.new(0, 2.5, 0)
- ParticleEmitter30.Lifetime = NumberRange.new(1, 1.125)
- ParticleEmitter30.Rate = 50
- ParticleEmitter30.RotSpeed = NumberRange.new(-200, 200)
- ParticleEmitter30.SpreadAngle = Vector2.new(10, 10)
- ParticleEmitter30.VelocitySpread = 10
- Part31.Name = "Left Arm"
- Part31.Parent = Model0
- Part31.CFrame = CFrame.new(67.730072, 4.87494183, 18.9141541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
- Part31.Orientation = Vector3.new(0, -90, 0)
- Part31.Position = Vector3.new(67.730072, 4.87494183, 18.9141541)
- Part31.Rotation = Vector3.new(0, -90, 0)
- Part31.Size = Vector3.new(1.625, 3.25, 1.625)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.CanCollide = false
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part32.Name = "Right Leg"
- Part32.Parent = Model0
- Part32.CFrame = CFrame.new(67.730072, 1.62494206, 22.1641541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
- Part32.Orientation = Vector3.new(0, -90, 0)
- Part32.Position = Vector3.new(67.730072, 1.62494206, 22.1641541)
- Part32.Rotation = Vector3.new(0, -90, 0)
- Part32.Size = Vector3.new(1.625, 3.25, 1.625)
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.CanCollide = false
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part33.Name = "Left Leg"
- Part33.Parent = Model0
- Part33.CFrame = CFrame.new(67.730072, 1.62494206, 20.5391541, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
- Part33.Orientation = Vector3.new(0, -90, 0)
- Part33.Position = Vector3.new(67.730072, 1.62494206, 20.5391541)
- Part33.Rotation = Vector3.new(0, -90, 0)
- Part33.Size = Vector3.new(1.625, 3.25, 1.625)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.CanCollide = false
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Hat34.Name = "MessySpikes"
- Hat34.Parent = Model0
- Hat34.AttachmentPoint = CFrame.new(0.0500000007, 0.129999995, -0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Hat34.AttachmentPos = Vector3.new(0.0500000007, 0.129999995, -0.200000003)
- Part35.Name = "Handle"
- Part35.Parent = Hat34
- Part35.CFrame = CFrame.new(67.5300751, 7.68244171, 21.3016548, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part35.Orientation = Vector3.new(0, -90, 0)
- Part35.Position = Vector3.new(67.5300751, 7.68244171, 21.3016548)
- Part35.Rotation = Vector3.new(0, -90, 0)
- Part35.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part35.Size = Vector3.new(1.4000001, 1.79999995, 1.60000014)
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.BrickColor = BrickColor.new("Smoky grey")
- Part35.CanCollide = false
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.brickColor = BrickColor.new("Smoky grey")
- Part35.FormFactor = Enum.FormFactor.Custom
- Part35.formFactor = Enum.FormFactor.Custom
- SpecialMesh36.Parent = Part35
- SpecialMesh36.MeshId = "http://www.roblox.com/asset/?id=62246019"
- SpecialMesh36.Offset = Vector3.new(0, 0.125, 0)
- SpecialMesh36.Scale = Vector3.new(1.625, 1.625, 1.625)
- SpecialMesh36.MeshType = Enum.MeshType.FileMesh
- Camera37.Name = "ThumbnailCamera"
- Camera37.Parent = Hat34
- Camera37.CFrame = CFrame.new(-1.32546198, 23.7707462, 24.1931286, 0.813008785, -0.0187010244, -0.581951082, 9.31322686e-10, 0.999484122, -0.032118462, 0.582251549, 0.0261125918, 0.812589228)
- Camera37.CoordinateFrame = CFrame.new(-1.32546198, 23.7707462, 24.1931286, 0.813008785, -0.0187010244, -0.581951082, 9.31322686e-10, 0.999484122, -0.032118462, 0.582251549, 0.0261125918, 0.812589228)
- Camera37.Focus = CFrame.new(-0.109605432, 23.8378506, 22.4954052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera37.focus = CFrame.new(-0.109605432, 23.8378506, 22.4954052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Hat38.Name = "Zootopia Faux Fox Ears"
- Hat38.Parent = Model0
- Hat38.AttachmentPoint = CFrame.new(0, -0.300000012, -0.150000006, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Hat38.AttachmentPos = Vector3.new(0, -0.300000012, -0.150000006)
- Part39.Name = "Handle"
- Part39.Parent = Hat38
- Part39.CFrame = CFrame.new(67.5800705, 8.11244202, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part39.Orientation = Vector3.new(0, -90, 0)
- Part39.Position = Vector3.new(67.5800705, 8.11244202, 21.3516541)
- Part39.Rotation = Vector3.new(0, -90, 0)
- Part39.Size = Vector3.new(1.25000024, 1.12999988, 1.1400001)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.CanCollide = false
- Part39.Locked = true
- Part39.TopSurface = Enum.SurfaceType.Smooth
- Part39.FormFactor = Enum.FormFactor.Custom
- Part39.formFactor = Enum.FormFactor.Custom
- SpecialMesh40.Parent = Part39
- SpecialMesh40.MeshId = "http://www.roblox.com/asset/?id=361948302"
- SpecialMesh40.Offset = Vector3.new(0, 0.5, 0)
- SpecialMesh40.MeshType = Enum.MeshType.FileMesh
- Camera41.Name = "ThumbnailCamera"
- Camera41.Parent = Hat38
- Camera41.CFrame = CFrame.new(65.5680084, 6.36890173, -44.0067368, -0.848218083, 0.0804693326, -0.523498595, -0, 0.98839128, 0.151930109, 0.529647052, 0.128869861, -0.838371396)
- Camera41.CoordinateFrame = CFrame.new(65.5680084, 6.36890173, -44.0067368, -0.848218083, 0.0804693326, -0.523498595, -0, 0.98839128, 0.151930109, 0.529647052, 0.128869861, -0.838371396)
- Camera41.Focus = CFrame.new(66.6150055, 6.06504154, -42.3299942, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera41.focus = CFrame.new(66.6150055, 6.06504154, -42.3299942, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part42.Name = "Torso"
- Part42.Parent = Model0
- Part42.CFrame = CFrame.new(67.730072, 4.87494183, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part42.Orientation = Vector3.new(0, -90, 0)
- Part42.Position = Vector3.new(67.730072, 4.87494183, 21.3516541)
- Part42.Rotation = Vector3.new(0, -90, 0)
- Part42.Size = Vector3.new(3.25, 3.25, 1.625)
- Part42.BottomSurface = Enum.SurfaceType.Smooth
- Part42.CanCollide = false
- Part42.TopSurface = Enum.SurfaceType.Smooth
- Motor6D43.Name = "Left Hip"
- Motor6D43.Parent = Part42
- Motor6D43.C0 = CFrame.new(-1.625, -1.625, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D43.C1 = CFrame.new(-0.8125, 1.625, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D43.Part0 = Part42
- Motor6D43.Part1 = Part33
- Motor6D43.part1 = Part33
- Motor6D44.Name = "Right Hip"
- Motor6D44.Parent = Part42
- Motor6D44.C0 = CFrame.new(1.625, -1.625, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D44.C1 = CFrame.new(0.8125, 1.625, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D44.Part0 = Part42
- Motor6D44.Part1 = Part32
- Motor6D44.part1 = Part32
- Motor6D45.Name = "Left Shoulder"
- Motor6D45.Parent = Part42
- Motor6D45.C0 = CFrame.new(-1.625, 0.8125, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D45.C1 = CFrame.new(0.8125, 0.8125, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D45.Part0 = Part42
- Motor6D45.Part1 = Part31
- Motor6D45.part1 = Part31
- Motor6D46.Name = "Right Shoulder"
- Motor6D46.Parent = Part42
- Motor6D46.C0 = CFrame.new(1.625, 0.8125, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D46.C1 = CFrame.new(-0.8125, 0.8125, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D46.Part0 = Part42
- Motor6D46.Part1 = Part27
- Motor6D46.part1 = Part27
- Motor6D47.Name = "Neck"
- Motor6D47.Parent = Part42
- Motor6D47.C0 = CFrame.new(0, 1.625, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D47.C1 = CFrame.new(0, -0.8125, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D47.Part0 = Part42
- Motor6D47.Part1 = Part20
- Motor6D47.part1 = Part20
- Part48.Name = "HumanoidRootPart"
- Part48.Parent = Model0
- Part48.CFrame = CFrame.new(67.730072, 4.87494183, 21.3516541, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part48.Orientation = Vector3.new(0, -90, 0)
- Part48.Position = Vector3.new(67.730072, 4.87494183, 21.3516541)
- Part48.Rotation = Vector3.new(0, -90, 0)
- Part48.Transparency = 1
- Part48.Size = Vector3.new(3.25, 3.25, 1.625)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Motor6D49.Name = "RootJoint"
- Motor6D49.Parent = Part48
- Motor6D49.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D49.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D49.Part0 = Part48
- Motor6D49.Part1 = Part42
- Motor6D49.part1 = Part42
- Sound50.Parent = Model0
- Sound50.Looped = true
- Sound50.SoundId = "rbxassetid://1842660676"
- Sound50.Volume = 1
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement