Advertisement
FDmaster

Untitled

Jun 19th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.33 KB | None | 0 0
  1. --[[ By: Brutez. ]]--
  2. local LainaScript=script;
  3. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  4. local Laina=LainaScript.Parent;
  5. local LainaHumanoid;
  6. for _,Child in pairs(Laina:GetChildren())do
  7. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  8. LainaHumanoid=Child;
  9. end;
  10. end;
  11. 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);
  12. local LainaWeld;
  13. local LainaBodyGyro;
  14. RecreateThingies=function()
  15. LainaWeld=Instance.new("Weld");
  16. LainaWeld.Name="LainaWeld";
  17. LainaBodyGyro=Instance.new("BodyGyro");
  18. LainaBodyGyro.Name="LainaBodyGyro";
  19. LainaBodyGyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5000000,0));
  20. LainaBodyGyro.D=300;
  21. LainaBodyGyro.maxTorque=Vector3.new(99999e99999,99999e99999,0);
  22. LainaBodyGyro.P=7000;
  23. end;
  24. RecreateThingies();
  25. local IsOnTop=false;
  26. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  27. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit * (MaxDistance or 999.8699)),IgnoreList)
  28. end;
  29. while Wait(0)do
  30. if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health~=0 then
  31. local TargetPoint=LainaHumanoid.TargetPoint;
  32. 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})
  33. local Jumpable=false;
  34. if Blockage then
  35. Jumpable=true;
  36. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  37. local BlockageHumanoid;
  38. for _,Child in pairs(Blockage.Parent:GetChildren())do
  39. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  40. BlockageHumanoid=Child;
  41. end;
  42. end;
  43. if Blockage and Blockage:IsA("Terrain")then
  44. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  45. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  46. if CellMaterial==Enum.CellMaterial.Water then
  47. Jumpable=false;
  48. end;
  49. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"then
  50. Jumpable=false;
  51. end;
  52. end;
  53. if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.Sit and not IsOnTop then
  54. LainaHumanoid.Jump=true;
  55. end;
  56. end;
  57. end;
  58. 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
  59. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935337";
  60. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  61. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
  62. 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
  63. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  64. end;
  65. 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
  66. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  67. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  68. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  69. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  70. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  71. end;
  72. end;
  73. 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
  74. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935344";
  75. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  76. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  77. 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
  78. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  79. end;
  80. 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
  81. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  82. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  83. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  84. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  85. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  86. end;
  87. 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
  88. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935342";
  89. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
  90. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  91. 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
  92. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Play();
  93. end;
  94. 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
  95. 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
  96. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC02*CFrame.fromEulerAnglesXYZ(1.5,1.5-LRotation,-1);
  97. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0*CFrame.fromEulerAnglesXYZ(0,0,0.3+LARotation);
  98. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0*CFrame.fromEulerAnglesXYZ(0.5+HRotation,0,0);
  99. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC02*CFrame.fromEulerAnglesXYZ(1.5,-1.5+RRotation,1);
  100. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0*CFrame.fromEulerAnglesXYZ(0,0,-0.3-RARotation);
  101. end;
  102. end;
  103. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoJumpEnabled then
  104. LainaHumanoid.AutoJumpEnabled=true;
  105. end;
  106. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoRotate then
  107. LainaHumanoid.AutoRotate=true;
  108. end;
  109. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.PlatformStand then
  110. LainaHumanoid.PlatformStand=false;
  111. end;
  112. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.Sit and not IsOnTop then
  113. LainaHumanoid.Sit=false;
  114. end;
  115. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
  116. LainaHumanoid.JumpPower=60;
  117. LainaHumanoid.WalkSpeed=20;
  118. end;
  119. local NoticeDistance=99999e99999;
  120. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  121. if TargetModel and TargetModel:IsA("Model")and TargetModel~=Laina and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  122. local TargetPart=TargetModel:FindFirstChild("Torso");
  123. local FoundHumanoid;
  124. for _,Child in pairs(TargetModel:GetChildren())do
  125. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  126. FoundHumanoid=Child;
  127. end;
  128. end;
  129. 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
  130. NoticeDistance=(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude;
  131. 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
  132. LainaHumanoid.Jump=true;
  133. end;
  134. LainaHumanoid:MoveTo(TargetPart.Position+(TargetPart.Position-Laina:FindFirstChild("Torso").Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  135. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<5 and not IsOnTop then
  136. IsOnTop=true;
  137. LainaWeld.Parent=Laina:FindFirstChild("Torso");
  138. LainaWeld.Part1=Laina:FindFirstChild("Torso");
  139. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  140. LainaWeld.Part0=TargetPart;
  141. LainaBodyGyro.Parent=TargetPart;
  142. 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
  143. if TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Status"then
  144. local JumpOk=LainaScript:FindFirstChild("JumpOk"):Clone();
  145. JumpOk.Parent=TargetModel;
  146. JumpOk.Disabled=false;
  147. 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
  148. local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
  149. JumpOkNPC.Parent=TargetModel;
  150. JumpOkNPC.Disabled=false;
  151. end;
  152. end;
  153. Spawn(function()
  154. while Wait(0)do
  155. 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
  156. LainaHumanoid.Sit=true;
  157. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Torso")and LainaWeld then
  158. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  159. end;
  160. if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 then
  161. FoundHumanoid.Jump=false;
  162. FoundHumanoid.Sit=true;
  163. end;
  164. else
  165. IsOnTop=false;
  166. if LainaWeld then
  167. LainaWeld:Destroy();
  168. end;
  169. if LainaBodyGyro then
  170. LainaBodyGyro:Destroy();
  171. end;
  172. RecreateThingies();
  173. break
  174. end;
  175. end;
  176. end)
  177. end;
  178. end;
  179. end;
  180. end;
  181. end;
  182. --[[ By: Brutez. ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement