Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- 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
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- 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
- --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")
- Part1 = Instance.new("Part")
- Decal2 = Instance.new("Decal")
- Motor6D3 = Instance.new("Motor6D")
- Motor6D4 = Instance.new("Motor6D")
- Motor6D5 = Instance.new("Motor6D")
- Motor6D6 = Instance.new("Motor6D")
- Motor6D7 = Instance.new("Motor6D")
- ParticleEmitter8 = Instance.new("ParticleEmitter")
- MeshPart9 = Instance.new("MeshPart")
- Part10 = Instance.new("Part")
- Motor6D11 = Instance.new("Motor6D")
- Part12 = Instance.new("Part")
- Part13 = Instance.new("Part")
- SpecialMesh14 = Instance.new("SpecialMesh")
- Decal15 = Instance.new("Decal")
- ManualWeld16 = Instance.new("ManualWeld")
- Sound17 = Instance.new("Sound")
- ParticleEmitter18 = Instance.new("ParticleEmitter")
- ParticleEmitter19 = Instance.new("ParticleEmitter")
- Weld20 = Instance.new("Weld")
- Weld21 = Instance.new("Weld")
- Sound22 = Instance.new("Sound")
- Sound23 = Instance.new("Sound")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- Sound27 = Instance.new("Sound")
- Sound28 = Instance.new("Sound")
- Sound29 = Instance.new("Sound")
- Sound30 = Instance.new("Sound")
- Hat31 = Instance.new("Hat")
- Part32 = Instance.new("Part")
- SpecialMesh33 = Instance.new("SpecialMesh")
- Part34 = Instance.new("Part")
- Part35 = Instance.new("Part")
- Part36 = Instance.new("Part")
- Humanoid37 = Instance.new("Humanoid")
- Model38 = Instance.new("Model")
- Model39 = Instance.new("Model")
- Script40 = Instance.new("Script")
- BodyColors41 = Instance.new("BodyColors")
- Pants42 = Instance.new("Pants")
- Script43 = Instance.new("Script")
- LocalScript44 = Instance.new("LocalScript")
- Script45 = Instance.new("Script")
- Decal46 = Instance.new("Decal")
- CharacterMesh47 = Instance.new("CharacterMesh")
- CharacterMesh48 = Instance.new("CharacterMesh")
- CharacterMesh49 = Instance.new("CharacterMesh")
- CharacterMesh50 = Instance.new("CharacterMesh")
- CharacterMesh51 = Instance.new("CharacterMesh")
- Script52 = Instance.new("Script")
- Script53 = Instance.new("Script")
- StringValue54 = Instance.new("StringValue")
- Animation55 = Instance.new("Animation")
- StringValue56 = Instance.new("StringValue")
- Animation57 = Instance.new("Animation")
- StringValue58 = Instance.new("StringValue")
- Animation59 = Instance.new("Animation")
- NumberValue60 = Instance.new("NumberValue")
- Animation61 = Instance.new("Animation")
- NumberValue62 = Instance.new("NumberValue")
- StringValue63 = Instance.new("StringValue")
- Animation64 = Instance.new("Animation")
- StringValue65 = Instance.new("StringValue")
- Animation66 = Instance.new("Animation")
- StringValue67 = Instance.new("StringValue")
- Animation68 = Instance.new("Animation")
- StringValue69 = Instance.new("StringValue")
- Animation70 = Instance.new("Animation")
- StringValue71 = Instance.new("StringValue")
- Animation72 = Instance.new("Animation")
- Script73 = Instance.new("Script")
- Hat74 = Instance.new("Hat")
- Part75 = Instance.new("Part")
- SpecialMesh76 = Instance.new("SpecialMesh")
- Model0.Name = "devil Laina"
- Model0.Parent = mas
- Model0.PrimaryPart = Part13
- Part1.Name = "Torso"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-56.8973503, 3.00309753, -6.06161451, 0.957605481, 0, 0.288082659, 0, 1, 0, -0.288082659, 0, 0.957605481)
- Part1.Orientation = Vector3.new(0, 16.7399998, 0)
- Part1.Position = Vector3.new(-56.8973503, 3.00309753, -6.06161451)
- Part1.Rotation = Vector3.new(0, 16.7399998, 0)
- Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part1.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part1.Size = Vector3.new(2, 2, 1)
- Part1.BackParamA = -99999
- Part1.BackParamB = 99999
- Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.BottomParamA = -99999
- Part1.BottomParamB = 99999
- Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.BrickColor = BrickColor.new("Bright red")
- Part1.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- Part1.FrontParamA = -99999
- Part1.FrontParamB = 99999
- Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.LeftParamA = -99999
- Part1.LeftParamB = 99999
- Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.Locked = true
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.RightParamA = -99999
- Part1.RightParamB = 99999
- Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.TopParamA = -99999
- Part1.TopParamB = 99999
- Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.brickColor = BrickColor.new("Bright red")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Decal2.Name = "roblox"
- Decal2.Parent = Part1
- Motor6D3.Name = "Right Shoulder"
- Motor6D3.Parent = Part1
- Motor6D3.MaxVelocity = 0.10000000149012
- Motor6D3.CurrentAngle = -0.28935590386391
- Motor6D3.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D3.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D3.Part0 = Part1
- Motor6D3.Part1 = Part34
- Motor6D3.part1 = Part34
- Motor6D3.Transform = CFrame.new(-0.123794362, 0.0267424453, 0.010400801, 0.957677424, 0.285576165, -0.0360586308, -0.284920633, 0.958292186, 0.0222785249, 0.0409169234, -0.0110617876, 0.999101341)
- Motor6D4.Name = "Left Shoulder"
- Motor6D4.Parent = Part1
- Motor6D4.MaxVelocity = 0.10000000149012
- Motor6D4.CurrentAngle = -0.46447086334229
- Motor6D4.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D4.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D4.Part0 = Part1
- Motor6D4.Part1 = Part12
- Motor6D4.part1 = Part12
- Motor6D4.Transform = CFrame.new(-0.153082952, -0.02183084, 0.0114122452, 0.893980145, 0.445195019, 0.0509985834, -0.448019266, 0.885752976, 0.121327318, 0.00884217769, -0.131312564, 0.991301596)
- Motor6D5.Name = "Right Hip"
- Motor6D5.Parent = Part1
- Motor6D5.MaxVelocity = 0.10000000149012
- Motor6D5.CurrentAngle = 0.55421549081802
- Motor6D5.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D5.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Motor6D5.Part0 = Part1
- Motor6D5.Part1 = Part35
- Motor6D5.part1 = Part35
- Motor6D5.Transform = CFrame.new(0.00545800012, -0.201476991, -0.0111969989, 0.849582076, -0.525975585, 0.039497152, 0.526288867, 0.850301087, 0.00283536827, -0.0350758061, 0.0183780361, 0.999215662)
- Motor6D6.Name = "Left Hip"
- Motor6D6.Parent = Part1
- Motor6D6.MaxVelocity = 0.10000000149012
- Motor6D6.CurrentAngle = 0.47586044669151
- Motor6D6.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D6.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Motor6D6.Part0 = Part1
- Motor6D6.Part1 = Part36
- Motor6D6.part1 = Part36
- Motor6D6.Transform = CFrame.new(-0.032097999, 0.0876222327, -0.0149980001, 0.888898432, -0.458103597, -0.000835473882, 0.45810312, 0.88889879, -0.000703905651, 0.00106511347, 0.000242967508, 0.999999404)
- Motor6D7.Name = "Neck"
- Motor6D7.Parent = Part1
- Motor6D7.MaxVelocity = 0.10000000149012
- Motor6D7.CurrentAngle = 0.031344093382359
- Motor6D7.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D7.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D7.Part0 = Part1
- Motor6D7.Part1 = Part13
- Motor6D7.part1 = Part13
- Motor6D7.Transform = CFrame.new(0, -0, 0, 0.999508739, -0.0313272178, 0.000936055032, 0.0313411951, 0.999054253, -0.0301388148, 8.99750739e-06, 0.0301533472, 0.999545276)
- ParticleEmitter8.Name = "Smoke"
- ParticleEmitter8.Parent = Part1
- ParticleEmitter8.Color = ColorSequence.new(Color3.new(0.498039, 0, 0),Color3.new(0.337255, 0, 0),Color3.new(0, 0, 0))
- ParticleEmitter8.LightEmission = 1
- ParticleEmitter8.Texture = "rbxassetid://494864527"
- ParticleEmitter8.Transparency = NumberSequence.new(0.50625002384186,0.78125,1)
- ParticleEmitter8.Size = NumberSequence.new(0,2.5,0,0)
- ParticleEmitter8.Lifetime = NumberRange.new(0.80000001192093, 1.5)
- ParticleEmitter8.Rate = 100
- ParticleEmitter8.RotSpeed = NumberRange.new(-180, 180)
- ParticleEmitter8.SpreadAngle = Vector2.new(180, 180)
- ParticleEmitter8.VelocitySpread = 180
- MeshPart9.Name = "Hair"
- MeshPart9.Parent = Model0
- MeshPart9.CFrame = CFrame.new(-56.8726463, 4.39291954, -6.08230495, 0.99881196, -0.00957884081, 0.0477784574, 0.00819780864, 0.999545276, 0.0290175881, -0.0480346382, -0.0285914335, 0.998436332)
- MeshPart9.Orientation = Vector3.new(-1.65999997, 2.74000001, 0.469999999)
- MeshPart9.Position = Vector3.new(-56.8726463, 4.39291954, -6.08230495)
- MeshPart9.Rotation = Vector3.new(-1.65999997, 2.74000001, 0.550000012)
- MeshPart9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- MeshPart9.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- MeshPart9.Size = Vector3.new(2.0769999, 3.17400002, 2.16000009)
- MeshPart9.BackParamA = -99999
- MeshPart9.BackParamB = 99999
- MeshPart9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart9.BottomParamA = -99999
- MeshPart9.BottomParamB = 99999
- MeshPart9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart9.BrickColor = BrickColor.new("Really black")
- MeshPart9.CanCollide = false
- MeshPart9.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- MeshPart9.FrontParamA = -99999
- MeshPart9.FrontParamB = 99999
- MeshPart9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart9.LeftParamA = -99999
- MeshPart9.LeftParamB = 99999
- MeshPart9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart9.Locked = true
- MeshPart9.Material = Enum.Material.SmoothPlastic
- MeshPart9.RightParamA = -99999
- MeshPart9.RightParamB = 99999
- MeshPart9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart9.TopParamA = -99999
- MeshPart9.TopParamB = 99999
- MeshPart9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- MeshPart9.brickColor = BrickColor.new("Really black")
- Part10.Name = "HumanoidRootPart"
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(-56.8973503, 3.00004578, -6.06161451, 0.955112815, 0, 0.296242297, 0, 1, 0, -0.296242297, 0, 0.955112815)
- Part10.Orientation = Vector3.new(0, 17.2299995, 0)
- Part10.Position = Vector3.new(-56.8973503, 3.00004578, -6.06161451)
- Part10.Rotation = Vector3.new(0, 17.2299995, 0)
- Part10.Transparency = 1
- Part10.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part10.Size = Vector3.new(2, 2, 1)
- Part10.BackParamA = -99999
- Part10.BackParamB = 99999
- Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.BottomParamA = -99999
- Part10.BottomParamB = 99999
- Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.CanCollide = false
- Part10.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- Part10.FrontParamA = -99999
- Part10.FrontParamB = 99999
- Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.LeftParamA = -99999
- Part10.LeftParamB = 99999
- Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.Locked = true
- Part10.Material = Enum.Material.SmoothPlastic
- Part10.RightParamA = -99999
- Part10.RightParamB = 99999
- Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.TopParamA = -99999
- Part10.TopParamB = 99999
- Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.formFactor = Enum.FormFactor.Symmetric
- Motor6D11.Name = "RootJoint"
- Motor6D11.Parent = Part10
- Motor6D11.MaxVelocity = 0.10000000149012
- Motor6D11.CurrentAngle = -0.0085319308564067
- Motor6D11.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D11.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D11.Part0 = Part10
- Motor6D11.Part1 = Part1
- Motor6D11.part1 = Part1
- Motor6D11.Transform = CFrame.new(0, 0, 0.00305164163, 0.999963582, 0.00853182748, 0, -0.00853182748, 0.999963582, -0, -0, 0, 1)
- Part12.Name = "Left Arm"
- Part12.Parent = Model0
- Part12.CFrame = CFrame.new(-58.5042763, 3.09905386, -5.94387674, 0.934584022, 0.253998578, 0.24907285, -0.121327318, 0.885752976, -0.448019266, -0.33441332, 0.388492316, 0.858627558)
- Part12.Orientation = Vector3.new(26.6200008, 16.1800003, -7.80000019)
- Part12.Position = Vector3.new(-58.5042763, 3.09905386, -5.94387674)
- Part12.Rotation = Vector3.new(27.5499992, 14.4200001, -15.1999998)
- Part12.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part12.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part12.Size = Vector3.new(1, 2, 1)
- Part12.BackParamA = -99999
- Part12.BackParamB = 99999
- Part12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part12.BottomParamA = -99999
- Part12.BottomParamB = 99999
- Part12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part12.BrickColor = BrickColor.new("Bright red")
- Part12.CanCollide = false
- Part12.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- Part12.FrontParamA = -99999
- Part12.FrontParamB = 99999
- Part12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part12.LeftParamA = -99999
- Part12.LeftParamB = 99999
- Part12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part12.Locked = true
- Part12.Material = Enum.Material.SmoothPlastic
- Part12.RightParamA = -99999
- Part12.RightParamB = 99999
- Part12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part12.TopParamA = -99999
- Part12.TopParamB = 99999
- Part12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part12.brickColor = BrickColor.new("Bright red")
- Part12.FormFactor = Enum.FormFactor.Symmetric
- Part12.formFactor = Enum.FormFactor.Symmetric
- Part13.Name = "Head"
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(-56.9021416, 4.50287008, -6.07591009, 0.94810617, -0.00957884081, 0.317809314, -8.99750739e-06, 0.999545276, 0.0301533472, -0.317953616, -0.0285914335, 0.94767499)
- Part13.Orientation = Vector3.new(-1.73000002, 18.5400009, 0)
- Part13.Position = Vector3.new(-56.9021416, 4.50287008, -6.07591009)
- Part13.Rotation = Vector3.new(-1.82000005, 18.5300007, 0.579999983)
- Part13.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part13.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part13.Size = Vector3.new(2, 1, 1)
- Part13.BackParamA = -99999
- Part13.BackParamB = 99999
- Part13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.BottomParamA = -99999
- Part13.BottomParamB = 99999
- Part13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.BrickColor = BrickColor.new("Bright red")
- Part13.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- Part13.FrontParamA = -99999
- Part13.FrontParamB = 99999
- Part13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.LeftParamA = -99999
- Part13.LeftParamB = 99999
- Part13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.Locked = true
- Part13.Material = Enum.Material.SmoothPlastic
- Part13.RightParamA = -99999
- Part13.RightParamB = 99999
- Part13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.TopParamA = -99999
- Part13.TopParamB = 99999
- Part13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.brickColor = BrickColor.new("Bright red")
- Part13.FormFactor = Enum.FormFactor.Symmetric
- Part13.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh14.Name = "3.0 Female Head Mesh"
- SpecialMesh14.Parent = Part13
- SpecialMesh14.MeshId = "rbxassetid://82992952"
- SpecialMesh14.Scale = Vector3.new(1.25, 1.25, 1.25)
- SpecialMesh14.MeshType = Enum.MeshType.FileMesh
- Decal15.Name = "face"
- Decal15.Parent = Part13
- Decal15.Texture = "rbxassetid://912935344"
- ManualWeld16.Name = "HairWeld"
- ManualWeld16.Parent = Part13
- ManualWeld16.C1 = CFrame.new(-0.0288670063, 0.110000014, 0.00816631317, 0.962252676, 0, 0.272157729, 0, 1, 0, -0.272157729, 0, 0.962252676)
- ManualWeld16.Part0 = Part13
- ManualWeld16.Part1 = MeshPart9
- ManualWeld16.part1 = MeshPart9
- Sound17.Name = "PlasticCreak"
- Sound17.Parent = Part13
- Sound17.Looped = true
- Sound17.EmitterSize = 50
- Sound17.MinDistance = 50
- Sound17.SoundId = "rbxassetid://913163726"
- Sound17.Volume = 1
- ParticleEmitter18.Name = "BrokenHearts"
- ParticleEmitter18.Parent = Part13
- ParticleEmitter18.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
- ParticleEmitter18.Enabled = false
- ParticleEmitter18.Texture = "rbxassetid://912982766"
- ParticleEmitter18.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,1,0.30000001192093,0.30000001192093,0.5,0.061728358268738,0.12345671653748,0.37037014961243,0.18518507480621,0.30000001192093,0)
- ParticleEmitter18.Acceleration = Vector3.new(0, -10, 0)
- ParticleEmitter18.Lifetime = NumberRange.new(1.5, 1.5)
- ParticleEmitter18.Rate = 10
- ParticleEmitter18.RotSpeed = NumberRange.new(-100, 100)
- ParticleEmitter18.SpreadAngle = Vector2.new(-99999, 99999)
- ParticleEmitter18.VelocitySpread = -99999
- ParticleEmitter19.Name = "Hearts"
- ParticleEmitter19.Parent = Part13
- ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0, 0))
- ParticleEmitter19.Enabled = false
- ParticleEmitter19.Texture = "rbxassetid://912982665"
- ParticleEmitter19.Size = NumberSequence.new(0,0.30000001192093,1,0.30000001192093,0.30000001192093,1,0.30000001192093,0.30000001192093,0.5,0.061728358268738,0.12345671653748,0.37037014961243,0.18518507480621,0.30000001192093,0)
- ParticleEmitter19.Acceleration = Vector3.new(0, -2, 0)
- ParticleEmitter19.Lifetime = NumberRange.new(2, 2)
- ParticleEmitter19.Rate = 10
- ParticleEmitter19.RotSpeed = NumberRange.new(-100, 100)
- ParticleEmitter19.SpreadAngle = Vector2.new(-99999, 99999)
- ParticleEmitter19.VelocitySpread = -99999
- Weld20.Name = "HeadWeld"
- Weld20.Parent = Part13
- Weld20.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld20.C1 = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld20.Part0 = Part13
- Weld20.Part1 = Part75
- Weld20.part1 = Part75
- Weld21.Name = "HeadWeld"
- Weld21.Parent = Part13
- Weld21.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld21.C1 = CFrame.new(0, 2, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld21.Part0 = Part13
- Weld21.Part1 = Part32
- Weld21.part1 = Part32
- Sound22.Archivable = false
- Sound22.Name = "GettingUp"
- Sound22.Parent = Part13
- Sound22.archivable = false
- Sound22.EmitterSize = 20
- Sound22.MinDistance = 20
- Sound22.SoundId = "rbxasset://sounds/action_get_up.mp3"
- Sound22.Volume = 1
- Sound23.Archivable = false
- Sound23.Name = "Died"
- Sound23.Parent = Part13
- Sound23.archivable = false
- Sound23.EmitterSize = 20
- Sound23.MinDistance = 20
- Sound23.SoundId = "rbxasset://sounds/uuhhh.mp3"
- Sound23.Volume = 1
- Sound24.Archivable = false
- Sound24.Name = "FreeFalling"
- Sound24.Parent = Part13
- Sound24.archivable = false
- Sound24.Looped = true
- Sound24.EmitterSize = 20
- Sound24.MinDistance = 20
- Sound24.SoundId = "rbxasset://sounds/action_falling.mp3"
- Sound24.Volume = 1
- Sound25.Archivable = false
- Sound25.Name = "Jumping"
- Sound25.Parent = Part13
- Sound25.archivable = false
- Sound25.EmitterSize = 20
- Sound25.MinDistance = 20
- Sound25.SoundId = "rbxasset://sounds/action_jump.mp3"
- Sound25.Volume = 1
- Sound26.Archivable = false
- Sound26.Name = "Landing"
- Sound26.Parent = Part13
- Sound26.archivable = false
- Sound26.EmitterSize = 20
- Sound26.MinDistance = 20
- Sound26.SoundId = "rbxasset://sounds/action_jump_land.mp3"
- Sound26.Volume = 1
- Sound27.Archivable = false
- Sound27.Name = "Splash"
- Sound27.Parent = Part13
- Sound27.archivable = false
- Sound27.EmitterSize = 20
- Sound27.MinDistance = 20
- Sound27.SoundId = "rbxasset://sounds/impact_water.mp3"
- Sound27.Volume = 1
- Sound28.Archivable = false
- Sound28.Name = "Running"
- Sound28.Parent = Part13
- Sound28.archivable = false
- Sound28.Looped = true
- Sound28.EmitterSize = 20
- Sound28.MinDistance = 20
- Sound28.Pitch = 1.8500000238419
- Sound28.PlaybackSpeed = 1.8500000238419
- Sound28.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
- Sound28.Volume = 1
- Sound29.Archivable = false
- Sound29.Name = "Swimming"
- Sound29.Parent = Part13
- Sound29.archivable = false
- Sound29.Looped = true
- Sound29.EmitterSize = 20
- Sound29.MinDistance = 20
- Sound29.Pitch = 1.6000000238419
- Sound29.PlaybackSpeed = 1.6000000238419
- Sound29.SoundId = "rbxasset://sounds/action_swim.mp3"
- Sound29.Volume = 1
- Sound30.Archivable = false
- Sound30.Name = "Climbing"
- Sound30.Parent = Part13
- Sound30.archivable = false
- Sound30.Looped = true
- Sound30.EmitterSize = 20
- Sound30.MinDistance = 20
- Sound30.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
- Sound30.Volume = 1
- Hat31.Name = "DevilWings"
- Hat31.Parent = Model0
- Hat31.AttachmentPoint = CFrame.new(0, 2, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Hat31.AttachmentPos = Vector3.new(0, 2, -2.5)
- Part32.Name = "Handle"
- Part32.Parent = Hat31
- Part32.CFrame = CFrame.new(-56.0932503, 3.07893562, -3.66383553, 0.94810617, -0.00957884081, 0.317809314, -8.99750739e-06, 0.999545276, 0.0301533472, -0.317953616, -0.0285914335, 0.94767499)
- Part32.Orientation = Vector3.new(-1.73000002, 18.5400009, 0)
- Part32.Position = Vector3.new(-56.0932503, 3.07893562, -3.66383553)
- Part32.Rotation = Vector3.new(-1.82000005, 18.5300007, 0.579999983)
- Part32.Transparency = 0.00010001659393311
- Part32.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part32.Size = Vector3.new(7.5, 3, 3)
- Part32.BackSurface = Enum.SurfaceType.Weld
- Part32.BottomSurface = Enum.SurfaceType.Weld
- Part32.CanCollide = false
- Part32.FrontSurface = Enum.SurfaceType.Weld
- Part32.LeftSurface = Enum.SurfaceType.Weld
- Part32.RightSurface = Enum.SurfaceType.Weld
- Part32.TopSurface = Enum.SurfaceType.Weld
- Part32.FormFactor = Enum.FormFactor.Symmetric
- Part32.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh33.Parent = Part32
- SpecialMesh33.MeshId = "http://www.roblox.com/asset/?id=19367744"
- SpecialMesh33.Scale = Vector3.new(2, 2, 2)
- SpecialMesh33.TextureId = "http://www.roblox.com/asset/?id=41297679"
- SpecialMesh33.MeshType = Enum.MeshType.FileMesh
- Part34.Name = "Right Arm"
- Part34.Parent = Model0
- Part34.CFrame = CFrame.new(-55.3641243, 3.06183314, -6.22565269, 0.967132747, -0.0928623676, 0.236707985, 0.0222785249, 0.958292186, 0.284920633, -0.253293812, -0.270282596, 0.928864598)
- Part34.Orientation = Vector3.new(-16.5499992, 14.3000002, 1.33000004)
- Part34.Position = Vector3.new(-55.3641243, 3.06183314, -6.22565269)
- Part34.Rotation = Vector3.new(-17.0499992, 13.6899996, 5.48000002)
- Part34.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part34.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part34.Size = Vector3.new(1, 2, 1)
- Part34.BackParamA = -99999
- Part34.BackParamB = 99999
- Part34.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part34.BottomParamA = -99999
- Part34.BottomParamB = 99999
- Part34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part34.BrickColor = BrickColor.new("Bright red")
- Part34.CanCollide = false
- Part34.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- Part34.FrontParamA = -99999
- Part34.FrontParamB = 99999
- Part34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part34.LeftParamA = -99999
- Part34.LeftParamB = 99999
- Part34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part34.Locked = true
- Part34.Material = Enum.Material.SmoothPlastic
- Part34.RightParamA = -99999
- Part34.RightParamB = 99999
- Part34.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part34.TopParamA = -99999
- Part34.TopParamB = 99999
- Part34.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part34.brickColor = BrickColor.new("Bright red")
- Part34.FormFactor = Enum.FormFactor.Symmetric
- Part34.formFactor = Enum.FormFactor.Symmetric
- Part35.Name = "Right Leg"
- Part35.Parent = Model0
- Part35.CFrame = CFrame.new(-56.5939026, 0.949901581, -6.68724108, 0.945475936, 0.169123352, 0.278338641, 0.00283536827, 0.850301087, -0.526288867, -0.325679392, 0.498382747, 0.803459764)
- Part35.Orientation = Vector3.new(31.7600002, 19.1100006, 0.189999998)
- Part35.Position = Vector3.new(-56.5939026, 0.949901581, -6.68724108)
- Part35.Rotation = Vector3.new(33.2299995, 16.1599998, -10.1400003)
- Part35.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part35.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part35.Size = Vector3.new(1, 2, 1)
- Part35.BackParamA = -99999
- Part35.BackParamB = 99999
- Part35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.BottomParamA = -99999
- Part35.BottomParamB = 99999
- Part35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.BrickColor = BrickColor.new("Bright red")
- Part35.CanCollide = false
- Part35.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- Part35.FrontParamA = -99999
- Part35.FrontParamB = 99999
- Part35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.LeftParamA = -99999
- Part35.LeftParamB = 99999
- Part35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.Locked = true
- Part35.Material = Enum.Material.SmoothPlastic
- Part35.RightParamA = -99999
- Part35.RightParamB = 99999
- Part35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.TopParamA = -99999
- Part35.TopParamB = 99999
- Part35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part35.brickColor = BrickColor.new("Bright red")
- Part35.FormFactor = Enum.FormFactor.Symmetric
- Part35.formFactor = Enum.FormFactor.Symmetric
- Part36.Name = "Left Leg"
- Part36.Parent = Model0
- Part36.CFrame = CFrame.new(-57.2387123, 1.20217299, -5.51361847, 0.957845569, -0.132204369, 0.255056262, 0.000703905651, 0.88889879, 0.45810312, -0.287282437, -0.438612521, 0.851520836)
- Part36.Orientation = Vector3.new(-27.2600002, 16.6700001, 0.0500000007)
- Part36.Position = Vector3.new(-57.2387123, 1.20217299, -5.51361847)
- Part36.Rotation = Vector3.new(-28.2800007, 14.7799997, 7.86000013)
- Part36.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part36.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part36.Size = Vector3.new(1, 2, 1)
- Part36.BackParamA = -99999
- Part36.BackParamB = 99999
- Part36.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.BottomParamA = -99999
- Part36.BottomParamB = 99999
- Part36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.BrickColor = BrickColor.new("Bright red")
- Part36.CanCollide = false
- Part36.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
- Part36.FrontParamA = -99999
- Part36.FrontParamB = 99999
- Part36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.LeftParamA = -99999
- Part36.LeftParamB = 99999
- Part36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.Locked = true
- Part36.Material = Enum.Material.SmoothPlastic
- Part36.RightParamA = -99999
- Part36.RightParamB = 99999
- Part36.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.TopParamA = -99999
- Part36.TopParamB = 99999
- Part36.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part36.brickColor = BrickColor.new("Bright red")
- Part36.FormFactor = Enum.FormFactor.Symmetric
- Part36.formFactor = Enum.FormFactor.Symmetric
- Humanoid37.Name = "SeductiveWoman"
- Humanoid37.Parent = Model0
- Humanoid37.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- Humanoid37.Health = inf
- Humanoid37.HealthDisplayDistance = 0
- Humanoid37.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
- Humanoid37.JumpPower = 60
- Humanoid37.LeftLeg = Part36
- Humanoid37.MaxHealth = inf
- Humanoid37.MaxSlopeAngle = 89.900001525879
- Humanoid37.NameDisplayDistance = 0
- Humanoid37.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
- Humanoid37.RightLeg = Part35
- Humanoid37.Torso = Part10
- Humanoid37.WalkSpeed = 20
- Humanoid37.WalkToPart = nil
- Humanoid37.WalkToPoint = Vector3.new(-69.5740662, 3.000067, -46.9284744)
- Humanoid37.maxHealth = inf
- Model38.Name = "Status"
- Model38.Parent = Humanoid37
- Model39.Name = "AvalibleSpawns"
- Model39.Parent = Model38
- Script40.Name = "Respawn"
- Script40.Parent = Model0
- table.insert(cors,sandbox(Script40,function()
- --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
- local PlayerSpawning=true; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
- local AdvancedRespawnScript=script;
- repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
- local Laina=AdvancedRespawnScript.Parent;
- if AdvancedRespawnScript and Laina and Laina:FindFirstChild("Thumbnail")then
- Laina:FindFirstChild("Thumbnail"):Destroy();
- end;
- local GameDerbis=Game:GetService("Debris");
- local LainaHumanoid;
- for _,Child in pairs(Laina:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
- LainaHumanoid=Child;
- end;
- end;
- local Respawndant=Laina:Clone();
- if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
- coroutine.resume(coroutine.create(function()
- if Laina and LainaHumanoid and LainaHumanoid:FindFirstChild("Status")and not LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
- SpawnModel=Instance.new("Model");
- SpawnModel.Parent=LainaHumanoid.Status;
- SpawnModel.Name="AvalibleSpawns";
- else
- SpawnModel=LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
- end;
- function FindSpawn(SearchValue)
- local PartsArchivable=SearchValue:GetChildren();
- for AreaSearch=1,#PartsArchivable do
- if PartsArchivable[AreaSearch].className=="SpawnLocation"then
- local PositionValue=Instance.new("Vector3Value",SpawnModel);
- PositionValue.Value=PartsArchivable[AreaSearch].Position;
- PositionValue.Name=PartsArchivable[AreaSearch].Duration;
- end;
- FindSpawn(PartsArchivable[AreaSearch]);
- end;
- end;
- FindSpawn(Game:GetService("Workspace"));
- local SpawnChilden=SpawnModel:GetChildren();
- if#SpawnChilden>0 then
- local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
- local RespawningForceField=Instance.new("ForceField");
- RespawningForceField.Parent=Laina;
- RespawningForceField.Name="SpawnForceField";
- GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
- Laina:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
- else
- if Laina:FindFirstChild("SpawnForceField")then
- Laina:FindFirstChild("SpawnForceField"):Destroy();
- end;
- Laina:MoveTo(Vector3.new(0,115,0));
- end;
- end));
- end;
- function Respawn()
- Wait(5);
- Respawndant.Parent=Laina.Parent;
- Respawndant:makeJoints();
- Respawndant:FindFirstChild("Head"):MakeJoints();
- Respawndant:FindFirstChild("Torso"):MakeJoints();
- Laina:remove();
- end;
- if AdvancedRespawnScript and Laina and LainaHumanoid then
- LainaHumanoid.Died:connect(Respawn);
- end;
- --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
- end))
- BodyColors41.Parent = Model0
- BodyColors41.HeadColor = BrickColor.new("Bright red")
- BodyColors41.HeadColor3 = Color3.new(0.768628, 0.156863, 0.109804)
- BodyColors41.LeftArmColor = BrickColor.new("Bright red")
- BodyColors41.LeftArmColor3 = Color3.new(0.768628, 0.156863, 0.109804)
- BodyColors41.LeftLegColor = BrickColor.new("Bright red")
- BodyColors41.LeftLegColor3 = Color3.new(0.768628, 0.156863, 0.109804)
- BodyColors41.RightArmColor = BrickColor.new("Bright red")
- BodyColors41.RightArmColor3 = Color3.new(0.768628, 0.156863, 0.109804)
- BodyColors41.RightLegColor = BrickColor.new("Bright red")
- BodyColors41.RightLegColor3 = Color3.new(0.768628, 0.156863, 0.109804)
- BodyColors41.TorsoColor = BrickColor.new("Bright red")
- BodyColors41.TorsoColor3 = Color3.new(0.768628, 0.156863, 0.109804)
- Pants42.Name = "Dress"
- Pants42.Parent = Model0
- Pants42.PantsTemplate = "rbxassetid://912935270"
- Script43.Name = "LainaMain"
- Script43.Parent = Model0
- table.insert(cors,sandbox(Script43,function()
- --[[ By: Brutez. ]]--
- local LainaScript=script;
- repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
- local Laina=LainaScript.Parent;
- local LainaHumanoid;
- for _,Child in pairs(Laina:GetChildren())do
- if Child and Child:IsA("Humanoid")and Child.Health~=0 then
- LainaHumanoid=Child;
- end;
- end;
- local LeftLegC0,RightLegC0,LeftArmC0,RightArmC0,HeadC0,LeftLegC02,RightLegC02=CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0),CFrame.new(1,-1,0,0,0,1,0,1,-0,-1,0,0),CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0),CFrame.new(1,0.5,0,0,0,1,0,1,-0,-1,0,0),CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0),CFrame.new(-0.5,-1,0.5,0,0,-1,0,1,0,1,0,0),CFrame.new(0.5,-1,0.5,0,0,1,0,1,-0,-1,0,0);
- local LainaWeld;
- local LainaBodyGyro;
- RecreateThingies=function()
- LainaWeld=Instance.new("Weld");
- LainaWeld.Name="LainaWeld";
- LainaBodyGyro=Instance.new("BodyGyro");
- LainaBodyGyro.Name="LainaBodyGyro";
- LainaBodyGyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5000000,0));
- LainaBodyGyro.D=300;
- LainaBodyGyro.maxTorque=Vector3.new(99999e99999,99999e99999,0);
- LainaBodyGyro.P=7000;
- end;
- RecreateThingies();
- local IsOnTop=false;
- function RayCast(Position,Direction,MaxDistance,IgnoreList)
- return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit * (MaxDistance or 999.8699)),IgnoreList)
- end;
- while Wait(0)do
- if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health~=0 then
- local TargetPoint=LainaHumanoid.TargetPoint;
- local Blockage,BlockagePos=RayCast((Laina:FindFirstChild("Torso").CFrame+CFrame.new(Laina:FindFirstChild("Torso").Position,Vector3.new(TargetPoint.X,Laina:FindFirstChild("Torso").Position.Y,TargetPoint.Z)).lookVector*(Laina:FindFirstChild("Torso").Size.Z/2)).p,Laina:FindFirstChild("Torso").CFrame.lookVector,(Laina:FindFirstChild("Torso").Size.Z*2.5),{Laina,Laina})
- local Jumpable=false;
- if Blockage then
- Jumpable=true;
- if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
- local BlockageHumanoid;
- for _,Child in pairs(Blockage.Parent:GetChildren())do
- if Child and Child:IsA("Humanoid")and Child.Health~=0 then
- BlockageHumanoid=Child;
- end;
- end;
- if Blockage and Blockage:IsA("Terrain")then
- local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
- local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
- if CellMaterial==Enum.CellMaterial.Water then
- Jumpable=false;
- end;
- elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"then
- Jumpable=false;
- end;
- end;
- if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.Sit and not IsOnTop then
- LainaHumanoid.Jump=true;
- end;
- end;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health==0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935337";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
- Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
- end;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
- end;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")and not IsOnTop then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935344";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
- Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
- end;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
- end;
- elseif Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Head") and Laina:FindFirstChild("Head"):FindFirstChild("face")and Laina:FindFirstChild("Head"):FindFirstChild("Hearts")and Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts")and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")and IsOnTop then
- Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935342";
- Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
- Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Head")~=nil and Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak")~=nil and not Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak").IsPlaying then
- Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Play();
- end;
- local LRotation,RRotation,LARotation,RARotation,HRotation=math.sin(tick()*9.86)*0.5,math.sin(tick()*9.86)*0.5,math.sin(tick()*9.86)*-0.3,math.sin(tick()*9.86)*-0.3,math.sin(tick()*9.86)*-0.3
- if LainaScript~=nil and Laina~=nil and Laina:FindFirstChild("Torso")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Neck")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip")~=nil and Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")~=nil then
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC02*CFrame.fromEulerAnglesXYZ(1.5,1.5-LRotation,-1);
- Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0*CFrame.fromEulerAnglesXYZ(0,0,0.3+LARotation);
- Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0*CFrame.fromEulerAnglesXYZ(0.5+HRotation,0,0);
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC02*CFrame.fromEulerAnglesXYZ(1.5,-1.5+RRotation,1);
- Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0*CFrame.fromEulerAnglesXYZ(0,0,-0.3-RARotation);
- end;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoJumpEnabled then
- LainaHumanoid.AutoJumpEnabled=true;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoRotate then
- LainaHumanoid.AutoRotate=true;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.PlatformStand then
- LainaHumanoid.PlatformStand=false;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.Sit and not IsOnTop then
- LainaHumanoid.Sit=false;
- end;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
- LainaHumanoid.JumpPower=60;
- LainaHumanoid.WalkSpeed=20;
- end;
- local NoticeDistance=99999e99999;
- for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
- if TargetModel and TargetModel:IsA("Model")and TargetModel~=Laina and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
- local TargetPart=TargetModel:FindFirstChild("Torso");
- local FoundHumanoid;
- for _,Child in pairs(TargetModel:GetChildren())do
- if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
- FoundHumanoid=Child;
- end;
- end;
- if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health~=0 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<NoticeDistance and not IsOnTop then
- NoticeDistance=(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude;
- if Laina and Laina:FindFirstChild("HumanoidRootPart")and LainaHumanoid and LainaHumanoid.Health~=0 and TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and FoundHumanoid.Jump and not IsOnTop then
- LainaHumanoid.Jump=true;
- end;
- LainaHumanoid:MoveTo(TargetPart.Position+(TargetPart.Position-Laina:FindFirstChild("Torso").Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
- if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<5 and not IsOnTop then
- IsOnTop=true;
- LainaWeld.Parent=Laina:FindFirstChild("Torso");
- LainaWeld.Part1=Laina:FindFirstChild("Torso");
- LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
- LainaWeld.Part0=TargetPart;
- LainaBodyGyro.Parent=TargetPart;
- if LainaScript and LainaScript:FindFirstChild("JumpOk")and LainaScript:FindFirstChild("JumpOkNPC")and TargetModel.Parent~=nil and TargetPart.Parent~=nil and LainaBodyGyro~=nil and FoundHumanoid.Parent~=nil and LainaWeld.Parent~=nil and LainaBodyGyro.Parent~=nil and FoundHumanoid.Health~=0 and Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
- if TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Status"then
- local JumpOk=LainaScript:FindFirstChild("JumpOk"):Clone();
- JumpOk.Parent=TargetModel;
- JumpOk.Disabled=false;
- elseif TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Model"or TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and not FoundHumanoid:FindFirstChild("Status")then
- local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
- JumpOkNPC.Parent=TargetModel;
- JumpOkNPC.Disabled=false;
- end;
- end;
- Spawn(function()
- while Wait(0)do
- if TargetModel.Parent~=nil and TargetPart.Parent~=nil and FoundHumanoid.Parent~=nil and LainaWeld.Parent~=nil and LainaBodyGyro.Parent~=nil and FoundHumanoid.Health~=0 and Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
- LainaHumanoid.Sit=true;
- if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Torso")and LainaWeld then
- LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
- end;
- if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 then
- FoundHumanoid.Jump=false;
- FoundHumanoid.Sit=true;
- end;
- else
- IsOnTop=false;
- if LainaWeld then
- LainaWeld:Destroy();
- end;
- if LainaBodyGyro then
- LainaBodyGyro:Destroy();
- end;
- RecreateThingies();
- break
- end;
- end;
- end)
- end;
- end;
- end;
- end;
- end;
- --[[ By: Brutez. ]]--
- end))
- LocalScript44.Name = "JumpOk"
- LocalScript44.Parent = Script43
- table.insert(cors,sandbox(LocalScript44,function()
- --[[ By: Brutez. ]]--
- local JumpScript=script;
- repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
- local ROBLOXian=JumpScript.Parent;
- local ROBLOXianHumanoid;
- for _,Child in pairs(ROBLOXian:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
- ROBLOXianHumanoid=Child;
- end;
- end;
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
- ROBLOXianHumanoid.Changed:connect(function()
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and ROBLOXianHumanoid.Jump then
- ROBLOXianHumanoid.Jump=false;
- end;
- end);
- end;
- while Wait(0)do
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and not ROBLOXian:FindFirstChild("Torso"):FindFirstChild("LainaBodyGyro")then
- JumpScript.Disabled=true;
- JumpScript:Destroy();
- break
- end;
- end;
- --[[ By: Brutez. ]]--
- end))
- LocalScript44.Disabled = true
- Script45.Name = "JumpOkNPC"
- Script45.Parent = Script43
- table.insert(cors,sandbox(Script45,function()
- --[[ By: Brutez. ]]--
- local JumpScript=script;
- repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
- local ROBLOXian=JumpScript.Parent;
- local ROBLOXianHumanoid;
- for _,Child in pairs(ROBLOXian:GetChildren())do
- if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
- ROBLOXianHumanoid=Child;
- end;
- end;
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
- ROBLOXianHumanoid.Changed:connect(function()
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and ROBLOXianHumanoid.Jump then
- ROBLOXianHumanoid.Jump=false;
- end;
- end);
- end;
- while Wait(0)do
- if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 and not ROBLOXian:FindFirstChild("Torso"):FindFirstChild("LainaBodyGyro")then
- JumpScript.Disabled=true;
- JumpScript:Destroy();
- break
- end;
- end;
- --[[ By: Brutez. ]]--
- end))
- Script45.Disabled = true
- Decal46.Parent = Script43
- Decal46.Texture = "http://www.roblox.com/asset/?id=912935342"
- CharacterMesh47.Name = "3.0 Female Left Arm"
- CharacterMesh47.Parent = Model0
- CharacterMesh47.BodyPart = Enum.BodyPart.LeftArm
- CharacterMesh47.MeshId = 83001137
- CharacterMesh48.Name = "3.0 Female Left Leg"
- CharacterMesh48.Parent = Model0
- CharacterMesh48.BodyPart = Enum.BodyPart.LeftLeg
- CharacterMesh48.MeshId = 81628361
- CharacterMesh49.Name = "3.0 Female Right Arm"
- CharacterMesh49.Parent = Model0
- CharacterMesh49.BodyPart = Enum.BodyPart.RightArm
- CharacterMesh49.MeshId = 83001181
- CharacterMesh50.Name = "3.0 Female Right Leg"
- CharacterMesh50.Parent = Model0
- CharacterMesh50.BodyPart = Enum.BodyPart.RightLeg
- CharacterMesh50.MeshId = 81628308
- CharacterMesh51.Name = "3.0 Female Torso"
- CharacterMesh51.Parent = Model0
- CharacterMesh51.BodyPart = Enum.BodyPart.Torso
- CharacterMesh51.MeshId = 82987757
- Script52.Name = "SoundNew"
- Script52.Parent = Model0
- table.insert(cors,sandbox(Script52,function()
- --[[ Compact mode by: Brutez. ]]--
- Spawn(function()
- local SFX,Humanoid,Head,Sounds={Died=0;Running=1;Swimming=2;Climbing=3,Jumping=4;GettingUp=5;FreeFalling=6;FallingDown=7;Landing=8;Splash=9;},nil,nil,{};
- local Figure=script.Parent;Head=Figure:FindFirstChild("Head");while not Humanoid do for _,NewHumanoid in pairs(Figure:GetChildren())do if NewHumanoid:IsA("Humanoid")then Humanoid=NewHumanoid;break;end;end;Figure.ChildAdded:wait();end;Sounds[SFX.Died]=Head:FindFirstChild("Died");Sounds[SFX.Running]=Head:FindFirstChild("Running");Sounds[SFX.Swimming]=Head:FindFirstChild("Swimming");Sounds[SFX.Climbing]=Head:FindFirstChild("Climbing");Sounds[SFX.Jumping]=Head:FindFirstChild("Jumping");Sounds[SFX.GettingUp]=Head:FindFirstChild("GettingUp");Sounds[SFX.FreeFalling]=Head:FindFirstChild("FreeFalling");Sounds[SFX.Landing]=Head:FindFirstChild("Landing");Sounds[SFX.Splash]=Head:FindFirstChild("Splash");
- local Util={YForLineGivenXAndTwoPts=function(x,pt1x,pt1y,pt2x,pt2y)local m=(pt1y-pt2y)/(pt1x-pt2x);local b=(pt1y-m*pt1x);return m*x+b;end;Clamp=function(val,min,max)return math.min(max,math.max(min,val));end;HorizontalSpeed=function(Head)local hVel=Head.Velocity+Vector3.new(0,-Head.Velocity.Y,0);return hVel.magnitude;end;VerticalSpeed=function(Head)return math.abs(Head.Velocity.Y);end;Play=function(sound)if sound.TimePosition~=0 then sound.TimePosition=0;end;if not sound.IsPlaying then sound.Playing=true;end;end;Pause=function(sound)if sound.IsPlaying then sound.Playing=false;end;end;Resume=function(sound)if not sound.IsPlaying then sound.Playing=true;end;end;Stop=function(sound)if sound.IsPlaying then sound.Playing=false;end;if sound.TimePosition~=0 then sound.TimePosition=0;end;end;};
- local playingLoopedSounds={};local activeState=nil;function setSoundInPlayingLoopedSounds(sound)for i=1,#playingLoopedSounds do if playingLoopedSounds[i]==sound then return;end;end;table.insert(playingLoopedSounds,sound);end;function stopPlayingLoopedSoundsExcept(except)for i=#playingLoopedSounds,1,-1 do if playingLoopedSounds[i]~=except then Util.Pause(playingLoopedSounds[i]);table.remove(playingLoopedSounds,i);end;end;end;local stateUpdateHandler={[Enum.HumanoidStateType.Dead]=function()stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.Died];Util.Play(sound);end;[Enum.HumanoidStateType.RunningNoPhysics]=function()stateUpdated(Enum.HumanoidStateType.Running);end;[Enum.HumanoidStateType.Running]=function()local sound=Sounds[SFX.Running];stopPlayingLoopedSoundsExcept(sound);if Util.HorizontalSpeed(Head)>0.5 then Util.Resume(sound);setSoundInPlayingLoopedSounds(sound);else stopPlayingLoopedSoundsExcept();end;end;[Enum.HumanoidStateType.Swimming]=function()if activeState~=Enum.HumanoidStateType.Swimming and Util.VerticalSpeed(Head)>0.1 then local splashSound=Sounds[SFX.Splash];splashSound.Volume=Util.Clamp(Util.YForLineGivenXAndTwoPts(Util.VerticalSpeed(Head),100,0.28,350,1),0,1);Util.Play(splashSound);end;do local sound=Sounds[SFX.Swimming];stopPlayingLoopedSoundsExcept(sound);Util.Resume(sound);setSoundInPlayingLoopedSounds(sound);end;end;[Enum.HumanoidStateType.Climbing]=function()local sound=Sounds[SFX.Climbing];if Util.VerticalSpeed(Head)>0.1 then Util.Resume(sound);stopPlayingLoopedSoundsExcept(sound);else stopPlayingLoopedSoundsExcept();end;setSoundInPlayingLoopedSounds(sound);end;[Enum.HumanoidStateType.Jumping]=function()if activeState==Enum.HumanoidStateType.Jumping then return;end;stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.Jumping];Util.Play(sound);end;[Enum.HumanoidStateType.GettingUp]=function()stopPlayingLoopedSoundsExcept();local sound=Sounds[SFX.GettingUp];Util.Play(sound);end;[Enum.HumanoidStateType.Freefall]=function()if activeState==Enum.HumanoidStateType.Freefall then return;end;local sound=Sounds[SFX.FreeFalling];sound.Volume=0;stopPlayingLoopedSoundsExcept();end;[Enum.HumanoidStateType.FallingDown]=function()stopPlayingLoopedSoundsExcept();end;[Enum.HumanoidStateType.Landed]=function()stopPlayingLoopedSoundsExcept();if Util.VerticalSpeed(Head)>75 then local landingSound=Sounds[SFX.Landing];landingSound.Volume=Util.Clamp(Util.YForLineGivenXAndTwoPts(Util.VerticalSpeed(Head),50,0,100,1),0,1);Util.Play(landingSound);end;end;[Enum.HumanoidStateType.Seated]=function()stopPlayingLoopedSoundsExcept();end;};function stateUpdated(state)if stateUpdateHandler[state]~=nil then stateUpdateHandler[state]();end;activeState=state;end;Humanoid.Died:connect(function()stateUpdated(Enum.HumanoidStateType.Dead);end);Humanoid.Running:connect(function()stateUpdated(Enum.HumanoidStateType.Running);end);Humanoid.Swimming:connect(function()stateUpdated(Enum.HumanoidStateType.Swimming);end);Humanoid.Climbing:connect(function()stateUpdated(Enum.HumanoidStateType.Climbing);end);Humanoid.Jumping:connect(function()stateUpdated(Enum.HumanoidStateType.Jumping);end);Humanoid.GettingUp:connect(function()stateUpdated(Enum.HumanoidStateType.GettingUp);end);Humanoid.FreeFalling:connect(function()stateUpdated(Enum.HumanoidStateType.Freefall);end);Humanoid.FallingDown:connect(function()stateUpdated(Enum.HumanoidStateType.FallingDown);end);Humanoid.StateChanged:connect(function(old,new)stateUpdated(new);end);function onUpdate(stepDeltaSeconds,tickSpeedSeconds)local stepScale=stepDeltaSeconds/tickSpeedSeconds;do local sound=Sounds[SFX.FreeFalling];if activeState==Enum.HumanoidStateType.Freefall then if Head.Velocity.Y<0 and Util.VerticalSpeed(Head)>75 then Util.Resume(sound);local ANIMATION_LENGTH_SECONDS=1.1;local normalizedIncrement=tickSpeedSeconds/ANIMATION_LENGTH_SECONDS;sound.Volume=Util.Clamp(sound.Volume+normalizedIncrement*stepScale,0,1);else sound.Volume=0;end;else Util.Pause(sound);end;end;do local sound=Sounds[SFX.Running];if activeState==Enum.HumanoidStateType.Running then if Util.HorizontalSpeed(Head)<0.5 then Util.Pause(sound);end;end;end;end;local lastTick=tick();local TICK_SPEED_SECONDS=0.25;while true do onUpdate(tick()-lastTick,TICK_SPEED_SECONDS);lastTick=tick();wait(TICK_SPEED_SECONDS);end;
- end);
- --[[ Compact mode by: Brutez. ]]--
- function CreateNewSound(name,id,looped,pitch,parent)
- local sound=Instance.new("Sound");
- sound.SoundId=id;
- sound.Name=name;
- sound.archivable=false;
- sound.Parent=parent;
- sound.Pitch=pitch;
- sound.Looped=looped;
- sound.MinDistance=20;
- sound.MaxDistance=10000;
- sound.Volume=1;
- return sound;
- end;
- local head=script.Parent:FindFirstChild("Head");
- CreateNewSound("GettingUp","rbxasset://sounds/action_get_up.mp3",false,1,head);
- CreateNewSound("Died","rbxasset://sounds/uuhhh.mp3",false,1,head);
- CreateNewSound("FreeFalling","rbxasset://sounds/action_falling.mp3",true,1,head);
- CreateNewSound("Jumping","rbxasset://sounds/action_jump.mp3",false,1,head);
- CreateNewSound("Landing","rbxasset://sounds/action_jump_land.mp3",false,1,head);
- CreateNewSound("Splash","rbxasset://sounds/impact_water.mp3",false,1,head);
- CreateNewSound("Running","rbxasset://sounds/action_footsteps_plastic.mp3",true,1.85,head);
- CreateNewSound("Swimming","rbxasset://sounds/action_swim.mp3",true,1.6,head);
- CreateNewSound("Climbing","rbxasset://sounds/action_footsteps_plastic.mp3",true,1,head);
- end))
- Script53.Name = "AnimateNew"
- Script53.Parent = Model0
- table.insert(cors,sandbox(Script53,function()
- local Figure = script.Parent
- local Torso = Figure:FindFirstChild("Torso")
- local RightShoulder = Torso:FindFirstChild("Right Shoulder")
- local LeftShoulder = Torso:FindFirstChild("Left Shoulder")
- local RightHip = Torso:FindFirstChild("Right Hip")
- local LeftHip = Torso:FindFirstChild("Left Hip")
- local Neck = Torso:FindFirstChild("Neck")
- local Humanoid;
- for _,Child in pairs(Figure:GetChildren())do
- if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
- Humanoid=Child;
- end;
- end;
- local pose = "Standing"
- local currentAnim = ""
- local currentAnimInstance = nil
- local currentAnimTrack = nil
- local currentAnimKeyframeHandler = nil
- local currentAnimSpeed = 1.0
- local animTable = {}
- local animNames = {
- idle = {
- { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
- { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
- },
- walk = {
- { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
- },
- run = {
- { id = "run.xml", weight = 10 }
- },
- jump = {
- { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
- },
- fall = {
- { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
- },
- climb = {
- { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
- },
- sit = {
- { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
- },
- toolnone = {
- { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
- },
- toolslash = {
- { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
- -- { id = "slash.xml", weight = 10 }
- },
- toollunge = {
- { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
- },
- wave = {
- { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
- },
- point = {
- { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
- },
- dance1 = {
- { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
- },
- dance2 = {
- { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
- },
- dance3 = {
- { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
- { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
- },
- laugh = {
- { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
- },
- cheer = {
- { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
- },
- }
- local dances = {"dance1", "dance2", "dance3"}
- -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
- local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
- function configureAnimationSet(name, fileList)
- if (animTable[name] ~= nil) then
- for _, connection in pairs(animTable[name].connections) do
- connection:disconnect()
- end
- end
- animTable[name] = {}
- animTable[name].count = 0
- animTable[name].totalWeight = 0
- animTable[name].connections = {}
- -- check for config values
- local config = script:FindFirstChild(name)
- if (config ~= nil) then
- -- print("Loading anims " .. name)
- table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
- table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
- local idx = 1
- for _, childPart in pairs(config:GetChildren()) do
- if (childPart:IsA("Animation")) then
- table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
- animTable[name][idx] = {}
- animTable[name][idx].anim = childPart
- local weightObject = childPart:FindFirstChild("Weight")
- if (weightObject == nil) then
- animTable[name][idx].weight = 1
- else
- animTable[name][idx].weight = weightObject.Value
- end
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
- -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
- idx = idx + 1
- end
- end
- end
- -- fallback to defaults
- if (animTable[name].count <= 0) then
- for idx, anim in pairs(fileList) do
- animTable[name][idx] = {}
- animTable[name][idx].anim = Instance.new("Animation")
- animTable[name][idx].anim.Name = name
- animTable[name][idx].anim.AnimationId = anim.id
- animTable[name][idx].weight = anim.weight
- animTable[name].count = animTable[name].count + 1
- animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
- -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
- end
- end
- end
- -- Setup animation objects
- function scriptChildModified(child)
- local fileList = animNames[child.Name]
- if (fileList ~= nil) then
- configureAnimationSet(child.Name, fileList)
- end
- end
- script.ChildAdded:connect(scriptChildModified)
- script.ChildRemoved:connect(scriptChildModified)
- for name, fileList in pairs(animNames) do
- configureAnimationSet(name, fileList)
- end
- -- ANIMATION
- -- declarations
- local toolAnim = "None"
- local toolAnimTime = 0
- local jumpAnimTime = 0
- local jumpAnimDuration = 0.3
- local toolTransitionTime = 0.1
- local fallTransitionTime = 0.3
- local jumpMaxLimbVelocity = 0.75
- -- functions
- function stopAllAnimations()
- local oldAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
- oldAnim = "idle"
- end
- currentAnim = ""
- currentAnimInstance = nil
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop()
- currentAnimTrack:Destroy()
- currentAnimTrack = nil
- end
- return oldAnim
- end
- function setAnimationSpeed(speed)
- if speed ~= currentAnimSpeed then
- currentAnimSpeed = speed
- currentAnimTrack:AdjustSpeed(currentAnimSpeed)
- end
- end
- function keyFrameReachedFunc(frameName)
- if (frameName == "End") then
- local repeatAnim = currentAnim
- -- return to idle if finishing an emote
- if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
- repeatAnim = "idle"
- end
- local animSpeed = currentAnimSpeed
- playAnimation(repeatAnim, 0.0, Humanoid)
- setAnimationSpeed(animSpeed)
- end
- end
- -- Preload animations
- function playAnimation(animName, transitionTime, humanoid)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- -- switch animation
- if (anim ~= currentAnimInstance) then
- if (currentAnimTrack ~= nil) then
- currentAnimTrack:Stop(transitionTime)
- currentAnimTrack:Destroy()
- end
- currentAnimSpeed = 1.0
- -- load it to the humanoid; get AnimationTrack
- currentAnimTrack = humanoid:LoadAnimation(anim)
- currentAnimTrack.Priority = Enum.AnimationPriority.Core
- -- play the animation
- currentAnimTrack:Play(transitionTime)
- currentAnim = animName
- currentAnimInstance = anim
- -- set up keyframe name triggers
- if (currentAnimKeyframeHandler ~= nil) then
- currentAnimKeyframeHandler:disconnect()
- end
- currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
- end
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- local toolAnimName = ""
- local toolAnimTrack = nil
- local toolAnimInstance = nil
- local currentToolAnimKeyframeHandler = nil
- function toolKeyFrameReachedFunc(frameName)
- if (frameName == "End") then
- -- print("Keyframe : ".. frameName)
- playToolAnimation(toolAnimName, 0.0, Humanoid)
- end
- end
- function playToolAnimation(animName, transitionTime, humanoid, priority)
- local roll = math.random(1, animTable[animName].totalWeight)
- local origRoll = roll
- local idx = 1
- while (roll > animTable[animName][idx].weight) do
- roll = roll - animTable[animName][idx].weight
- idx = idx + 1
- end
- -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
- local anim = animTable[animName][idx].anim
- if (toolAnimInstance ~= anim) then
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- transitionTime = 0
- end
- -- load it to the humanoid; get AnimationTrack
- toolAnimTrack = humanoid:LoadAnimation(anim)
- if priority then
- toolAnimTrack.Priority = priority
- end
- -- play the animation
- toolAnimTrack:Play(transitionTime)
- toolAnimName = animName
- toolAnimInstance = anim
- currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
- end
- end
- function stopToolAnimations()
- local oldAnim = toolAnimName
- if (currentToolAnimKeyframeHandler ~= nil) then
- currentToolAnimKeyframeHandler:disconnect()
- end
- toolAnimName = ""
- toolAnimInstance = nil
- if (toolAnimTrack ~= nil) then
- toolAnimTrack:Stop()
- toolAnimTrack:Destroy()
- toolAnimTrack = nil
- end
- return oldAnim
- end
- -------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------
- function onRunning(speed)
- if speed > 0.01 then
- playAnimation("walk", 0.1, Humanoid)
- if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
- setAnimationSpeed(speed / 14.5)
- end
- pose = "Running"
- else
- if emoteNames[currentAnim] == nil then
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- end
- end
- end
- function onDied()
- pose = "Dead"
- end
- function onJumping()
- playAnimation("jump", 0.1, Humanoid)
- jumpAnimTime = jumpAnimDuration
- pose = "Jumping"
- end
- function onClimbing(speed)
- playAnimation("climb", 0.1, Humanoid)
- setAnimationSpeed(speed / 12.0)
- pose = "Climbing"
- end
- function onGettingUp()
- pose = "GettingUp"
- end
- function onFreeFall()
- if (jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- end
- pose = "FreeFall"
- end
- function onFallingDown()
- pose = "FallingDown"
- end
- function onSeated()
- pose = "Seated"
- end
- function onPlatformStanding()
- pose = "PlatformStanding"
- end
- function onSwimming(speed)
- if speed > 0 then
- pose = "Running"
- else
- pose = "Standing"
- end
- end
- function getTool()
- for _, kid in ipairs(Figure:GetChildren()) do
- if kid.className == "Tool" then return kid end
- end
- return nil
- end
- function getToolAnim(tool)
- for _, c in ipairs(tool:GetChildren()) do
- if c.Name == "toolanim" and c.className == "StringValue" then
- return c
- end
- end
- return nil
- end
- function animateTool()
- if (toolAnim == "None") then
- playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
- return
- end
- if (toolAnim == "Slash") then
- playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
- return
- end
- if (toolAnim == "Lunge") then
- playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
- return
- end
- end
- function moveSit()
- RightShoulder.MaxVelocity = 0.15
- LeftShoulder.MaxVelocity = 0.15
- RightShoulder:SetDesiredAngle(3.14 /2)
- LeftShoulder:SetDesiredAngle(-3.14 /2)
- RightHip:SetDesiredAngle(3.14 /2)
- LeftHip:SetDesiredAngle(-3.14 /2)
- end
- local lastTick = 0
- function move(time)
- local amplitude = 1
- local frequency = 1
- local deltaTime = time - lastTick
- lastTick = time
- local climbFudge = 0
- local setAngles = false
- if (jumpAnimTime > 0) then
- jumpAnimTime = jumpAnimTime - deltaTime
- end
- if (pose == "FreeFall" and jumpAnimTime <= 0) then
- playAnimation("fall", fallTransitionTime, Humanoid)
- elseif (pose == "Seated") then
- playAnimation("sit", 0.5, Humanoid)
- return
- elseif (pose == "Running") then
- playAnimation("walk", 0.1, Humanoid)
- elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
- -- print("Wha " .. pose)
- stopAllAnimations()
- amplitude = 0.1
- frequency = 1
- setAngles = true
- end
- if (setAngles) then
- local desiredAngle = amplitude * math.sin(time * frequency)
- RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
- LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
- RightHip:SetDesiredAngle(-desiredAngle)
- LeftHip:SetDesiredAngle(-desiredAngle)
- end
- -- Tool Animation handling
- local tool = getTool()
- if tool and tool:FindFirstChild("Handle") then
- local animStringValueObject = getToolAnim(tool)
- if animStringValueObject then
- toolAnim = animStringValueObject.Value
- -- message recieved, delete StringValue
- animStringValueObject.Parent = nil
- toolAnimTime = time + .3
- end
- if time > toolAnimTime then
- toolAnimTime = 0
- toolAnim = "None"
- end
- animateTool()
- else
- stopToolAnimations()
- toolAnim = "None"
- toolAnimInstance = nil
- toolAnimTime = 0
- end
- end
- -- connect events
- Humanoid.Died:connect(onDied)
- Humanoid.Running:connect(onRunning)
- Humanoid.Jumping:connect(onJumping)
- Humanoid.Climbing:connect(onClimbing)
- Humanoid.GettingUp:connect(onGettingUp)
- Humanoid.FreeFalling:connect(onFreeFall)
- Humanoid.FallingDown:connect(onFallingDown)
- Humanoid.Seated:connect(onSeated)
- Humanoid.PlatformStanding:connect(onPlatformStanding)
- Humanoid.Swimming:connect(onSwimming)
- playAnimation("idle", 0.1, Humanoid)
- pose = "Standing"
- while Figure.Parent ~= nil do
- local _, time = wait(0.1)
- move(time)
- end
- end))
- StringValue54.Name = "climb"
- StringValue54.Parent = Script53
- Animation55.Name = "ClimbAnim"
- Animation55.Parent = StringValue54
- Animation55.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- StringValue56.Name = "fall"
- StringValue56.Parent = Script53
- Animation57.Name = "FallAnim"
- Animation57.Parent = StringValue56
- Animation57.AnimationId = "http://www.roblox.com/asset/?id=180436148"
- StringValue58.Name = "idle"
- StringValue58.Parent = Script53
- Animation59.Name = "Animation1"
- Animation59.Parent = StringValue58
- Animation59.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- NumberValue60.Name = "Weight"
- NumberValue60.Parent = Animation59
- NumberValue60.Value = 9
- Animation61.Name = "Animation2"
- Animation61.Parent = StringValue58
- Animation61.AnimationId = "http://www.roblox.com/asset/?id=180435792"
- NumberValue62.Name = "Weight"
- NumberValue62.Parent = Animation61
- NumberValue62.Value = 1
- StringValue63.Name = "jump"
- StringValue63.Parent = Script53
- Animation64.Name = "JumpAnim"
- Animation64.Parent = StringValue63
- Animation64.AnimationId = "http://www.roblox.com/asset/?id=125750702"
- StringValue65.Name = "run"
- StringValue65.Parent = Script53
- Animation66.Name = "RunAnim"
- Animation66.Parent = StringValue65
- Animation66.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- StringValue67.Name = "sit"
- StringValue67.Parent = Script53
- Animation68.Name = "SitAnim"
- Animation68.Parent = StringValue67
- Animation68.AnimationId = "http://www.roblox.com/asset/?id=178130996"
- StringValue69.Name = "toolnone"
- StringValue69.Parent = Script53
- Animation70.Name = "ToolNoneAnim"
- Animation70.Parent = StringValue69
- Animation70.AnimationId = "http://www.roblox.com/asset/?id=182393478"
- StringValue71.Name = "walk"
- StringValue71.Parent = Script53
- Animation72.Name = "WalkAnim"
- Animation72.Parent = StringValue71
- Animation72.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- Script73.Name = "HealthNew"
- Script73.Parent = Model0
- table.insert(cors,sandbox(Script73,function()
- --[[ By: Brutez. ]]--
- local LainaHealthScript=script;
- local Laina=LainaHealthScript.Parent;
- local LainaHumanoid;
- for _,Child in pairs(Laina:GetChildren())do
- if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
- LainaHumanoid=Child;
- end;
- end;
- local Regenerating=false;
- function UpdateHealth()
- if not Regenerating then
- Regenerating=true;
- Spawn(function()
- while LainaHumanoid.Health<LainaHumanoid.MaxHealth do
- local StoredHealth=LainaHumanoid.Health;
- if StoredHealth>0 and StoredHealth<LainaHumanoid.MaxHealth then
- local AdditionalHealth=0.01*LainaHumanoid.MaxHealth;
- StoredHealth=StoredHealth+AdditionalHealth;
- LainaHumanoid.Health=math.min(StoredHealth,LainaHumanoid.MaxHealth);
- end;
- Wait(0.3);
- end;
- if LainaHumanoid.Health>LainaHumanoid.MaxHealth then
- LainaHumanoid.Health=LainaHumanoid.MaxHealth;
- end;
- Regenerating=false;
- end);
- end;
- end;
- LainaHumanoid.HealthChanged:connect(UpdateHealth);
- --[[ By: Brutez. ]]--
- end))
- Hat74.Name = "DevilHorn"
- Hat74.Parent = Model0
- Hat74.AttachmentPoint = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Hat74.AttachmentPos = Vector3.new(0, -0.25, 0)
- Part75.Name = "Handle"
- Part75.Parent = Hat74
- Part75.CFrame = CFrame.new(-56.9093246, 5.25252914, -6.09735346, 0.94810617, -0.00957884081, 0.317809314, -8.99750739e-06, 0.999545276, 0.0301533472, -0.317953616, -0.0285914335, 0.94767499)
- Part75.Orientation = Vector3.new(-1.73000002, 18.5400009, 0)
- Part75.Position = Vector3.new(-56.9093246, 5.25252914, -6.09735346)
- Part75.Rotation = Vector3.new(-1.82000005, 18.5300007, 0.579999983)
- Part75.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
- Part75.Size = Vector3.new(1, 0.5, 1)
- Part75.BottomSurface = Enum.SurfaceType.Smooth
- Part75.CanCollide = false
- Part75.TopSurface = Enum.SurfaceType.Smooth
- Part75.FormFactor = Enum.FormFactor.Symmetric
- Part75.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh76.Parent = Part75
- SpecialMesh76.MeshId = "http://www.roblox.com/asset/?id=15934744"
- SpecialMesh76.Scale = Vector3.new(1.70000005, 1.79999995, 1.79999995)
- SpecialMesh76.TextureId = "http://www.roblox.com/asset/?id=15934762"
- SpecialMesh76.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- 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