sawgamer1

Untitled

Apr 30th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.31 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  6.  
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Model0 = Instance.new("Model")
  25. Part1 = Instance.new("Part")
  26. Decal2 = Instance.new("Decal")
  27. Motor6D3 = Instance.new("Motor6D")
  28. Motor6D4 = Instance.new("Motor6D")
  29. Motor6D5 = Instance.new("Motor6D")
  30. Motor6D6 = Instance.new("Motor6D")
  31. Motor6D7 = Instance.new("Motor6D")
  32. ParticleEmitter8 = Instance.new("ParticleEmitter")
  33. MeshPart9 = Instance.new("MeshPart")
  34. Part10 = Instance.new("Part")
  35. Motor6D11 = Instance.new("Motor6D")
  36. Part12 = Instance.new("Part")
  37. Part13 = Instance.new("Part")
  38. SpecialMesh14 = Instance.new("SpecialMesh")
  39. Decal15 = Instance.new("Decal")
  40. ManualWeld16 = Instance.new("ManualWeld")
  41. Sound17 = Instance.new("Sound")
  42. ParticleEmitter18 = Instance.new("ParticleEmitter")
  43. ParticleEmitter19 = Instance.new("ParticleEmitter")
  44. Weld20 = Instance.new("Weld")
  45. Weld21 = Instance.new("Weld")
  46. Sound22 = Instance.new("Sound")
  47. Sound23 = Instance.new("Sound")
  48. Sound24 = Instance.new("Sound")
  49. Sound25 = Instance.new("Sound")
  50. Sound26 = Instance.new("Sound")
  51. Sound27 = Instance.new("Sound")
  52. Sound28 = Instance.new("Sound")
  53. Sound29 = Instance.new("Sound")
  54. Sound30 = Instance.new("Sound")
  55. Hat31 = Instance.new("Hat")
  56. Part32 = Instance.new("Part")
  57. SpecialMesh33 = Instance.new("SpecialMesh")
  58. Part34 = Instance.new("Part")
  59. Part35 = Instance.new("Part")
  60. Part36 = Instance.new("Part")
  61. Humanoid37 = Instance.new("Humanoid")
  62. Model38 = Instance.new("Model")
  63. Model39 = Instance.new("Model")
  64. Script40 = Instance.new("Script")
  65. BodyColors41 = Instance.new("BodyColors")
  66. Pants42 = Instance.new("Pants")
  67. Script43 = Instance.new("Script")
  68. LocalScript44 = Instance.new("LocalScript")
  69. Script45 = Instance.new("Script")
  70. Decal46 = Instance.new("Decal")
  71. CharacterMesh47 = Instance.new("CharacterMesh")
  72. CharacterMesh48 = Instance.new("CharacterMesh")
  73. CharacterMesh49 = Instance.new("CharacterMesh")
  74. CharacterMesh50 = Instance.new("CharacterMesh")
  75. CharacterMesh51 = Instance.new("CharacterMesh")
  76. Script52 = Instance.new("Script")
  77. Script53 = Instance.new("Script")
  78. StringValue54 = Instance.new("StringValue")
  79. Animation55 = Instance.new("Animation")
  80. StringValue56 = Instance.new("StringValue")
  81. Animation57 = Instance.new("Animation")
  82. StringValue58 = Instance.new("StringValue")
  83. Animation59 = Instance.new("Animation")
  84. NumberValue60 = Instance.new("NumberValue")
  85. Animation61 = Instance.new("Animation")
  86. NumberValue62 = Instance.new("NumberValue")
  87. StringValue63 = Instance.new("StringValue")
  88. Animation64 = Instance.new("Animation")
  89. StringValue65 = Instance.new("StringValue")
  90. Animation66 = Instance.new("Animation")
  91. StringValue67 = Instance.new("StringValue")
  92. Animation68 = Instance.new("Animation")
  93. StringValue69 = Instance.new("StringValue")
  94. Animation70 = Instance.new("Animation")
  95. StringValue71 = Instance.new("StringValue")
  96. Animation72 = Instance.new("Animation")
  97. Script73 = Instance.new("Script")
  98. Hat74 = Instance.new("Hat")
  99. Part75 = Instance.new("Part")
  100. SpecialMesh76 = Instance.new("SpecialMesh")
  101. Model0.Name = "devil Laina"
  102. Model0.Parent = mas
  103. Model0.PrimaryPart = Part13
  104. Part1.Name = "Torso"
  105. Part1.Parent = Model0
  106. Part1.CFrame = CFrame.new(-56.8973503, 3.00309753, -6.06161451, 0.957605481, 0, 0.288082659, 0, 1, 0, -0.288082659, 0, 0.957605481)
  107. Part1.Orientation = Vector3.new(0, 16.7399998, 0)
  108. Part1.Position = Vector3.new(-56.8973503, 3.00309753, -6.06161451)
  109. Part1.Rotation = Vector3.new(0, 16.7399998, 0)
  110. Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
  111. Part1.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  112. Part1.Size = Vector3.new(2, 2, 1)
  113. Part1.BackParamA = -99999
  114. Part1.BackParamB = 99999
  115. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  116. Part1.BottomParamA = -99999
  117. Part1.BottomParamB = 99999
  118. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  119. Part1.BrickColor = BrickColor.new("Bright red")
  120. Part1.CustomPhysicalProperties = 1.699999988, 2, 1, 100, 1
  121. Part1.FrontParamA = -99999
  122. Part1.FrontParamB = 99999
  123. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  124. Part1.LeftParamA = -99999
  125. Part1.LeftParamB = 99999
  126. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  127. Part1.Locked = true
  128. Part1.Material = Enum.Material.SmoothPlastic
  129. Part1.RightParamA = -99999
  130. Part1.RightParamB = 99999
  131. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  132. Part1.TopParamA = -99999
  133. Part1.TopParamB = 99999
  134. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  135. Part1.brickColor = BrickColor.new("Bright red")
  136. Part1.FormFactor = Enum.FormFactor.Symmetric
  137. Part1.formFactor = Enum.FormFactor.Symmetric
  138. Decal2.Name = "roblox"
  139. Decal2.Parent = Part1
  140. Motor6D3.Name = "Right Shoulder"
  141. Motor6D3.Parent = Part1
  142. Motor6D3.MaxVelocity = 0.10000000149012
  143. Motor6D3.CurrentAngle = -0.28935590386391
  144. Motor6D3.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  145. Motor6D3.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  146. Motor6D3.Part0 = Part1
  147. Motor6D3.Part1 = Part34
  148. Motor6D3.part1 = Part34
  149. 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)
  150. Motor6D4.Name = "Left Shoulder"
  151. Motor6D4.Parent = Part1
  152. Motor6D4.MaxVelocity = 0.10000000149012
  153. Motor6D4.CurrentAngle = -0.46447086334229
  154. Motor6D4.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  155. Motor6D4.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  156. Motor6D4.Part0 = Part1
  157. Motor6D4.Part1 = Part12
  158. Motor6D4.part1 = Part12
  159. 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)
  160. Motor6D5.Name = "Right Hip"
  161. Motor6D5.Parent = Part1
  162. Motor6D5.MaxVelocity = 0.10000000149012
  163. Motor6D5.CurrentAngle = 0.55421549081802
  164. Motor6D5.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  165. Motor6D5.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  166. Motor6D5.Part0 = Part1
  167. Motor6D5.Part1 = Part35
  168. Motor6D5.part1 = Part35
  169. 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)
  170. Motor6D6.Name = "Left Hip"
  171. Motor6D6.Parent = Part1
  172. Motor6D6.MaxVelocity = 0.10000000149012
  173. Motor6D6.CurrentAngle = 0.47586044669151
  174. Motor6D6.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  175. Motor6D6.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  176. Motor6D6.Part0 = Part1
  177. Motor6D6.Part1 = Part36
  178. Motor6D6.part1 = Part36
  179. 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)
  180. Motor6D7.Name = "Neck"
  181. Motor6D7.Parent = Part1
  182. Motor6D7.MaxVelocity = 0.10000000149012
  183. Motor6D7.CurrentAngle = 0.031344093382359
  184. Motor6D7.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  185. Motor6D7.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  186. Motor6D7.Part0 = Part1
  187. Motor6D7.Part1 = Part13
  188. Motor6D7.part1 = Part13
  189. 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)
  190. ParticleEmitter8.Name = "Smoke"
  191. ParticleEmitter8.Parent = Part1
  192. ParticleEmitter8.Color = ColorSequence.new(Color3.new(0.498039, 0, 0),Color3.new(0.337255, 0, 0),Color3.new(0, 0, 0))
  193. ParticleEmitter8.LightEmission = 1
  194. ParticleEmitter8.Texture = "rbxassetid://494864527"
  195. ParticleEmitter8.Transparency = NumberSequence.new(0.50625002384186,0.78125,1)
  196. ParticleEmitter8.Size = NumberSequence.new(0,2.5,0,0)
  197. ParticleEmitter8.Lifetime = NumberRange.new(0.80000001192093, 1.5)
  198. ParticleEmitter8.Rate = 100
  199. ParticleEmitter8.RotSpeed = NumberRange.new(-180, 180)
  200. ParticleEmitter8.SpreadAngle = Vector2.new(180, 180)
  201. ParticleEmitter8.VelocitySpread = 180
  202. MeshPart9.Name = "Hair"
  203. MeshPart9.Parent = Model0
  204. 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)
  205. MeshPart9.Orientation = Vector3.new(-1.65999997, 2.74000001, 0.469999999)
  206. MeshPart9.Position = Vector3.new(-56.8726463, 4.39291954, -6.08230495)
  207. MeshPart9.Rotation = Vector3.new(-1.65999997, 2.74000001, 0.550000012)
  208. MeshPart9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  209. MeshPart9.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  210. MeshPart9.Size = Vector3.new(2.0769999, 3.17400002, 2.16000009)
  211. MeshPart9.BackParamA = -99999
  212. MeshPart9.BackParamB = 99999
  213. MeshPart9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  214. MeshPart9.BottomParamA = -99999
  215. MeshPart9.BottomParamB = 99999
  216. MeshPart9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  217. MeshPart9.BrickColor = BrickColor.new("Really black")
  218. MeshPart9.CanCollide = false
  219. MeshPart9.CustomPhysicalProperties = 0.699999988, 2, 0, 100, 0
  220. MeshPart9.FrontParamA = -99999
  221. MeshPart9.FrontParamB = 99999
  222. MeshPart9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  223. MeshPart9.LeftParamA = -99999
  224. MeshPart9.LeftParamB = 99999
  225. MeshPart9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  226. MeshPart9.Locked = true
  227. MeshPart9.Material = Enum.Material.SmoothPlastic
  228. MeshPart9.RightParamA = -99999
  229. MeshPart9.RightParamB = 99999
  230. MeshPart9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  231. MeshPart9.TopParamA = -99999
  232. MeshPart9.TopParamB = 99999
  233. MeshPart9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  234. MeshPart9.brickColor = BrickColor.new("Really black")
  235. Part10.Name = "HumanoidRootPart"
  236. Part10.Parent = Model0
  237. Part10.CFrame = CFrame.new(-56.8973503, 3.00004578, -6.06161451, 0.955112815, 0, 0.296242297, 0, 1, 0, -0.296242297, 0, 0.955112815)
  238. Part10.Orientation = Vector3.new(0, 17.2299995, 0)
  239. Part10.Position = Vector3.new(-56.8973503, 3.00004578, -6.06161451)
  240. Part10.Rotation = Vector3.new(0, 17.2299995, 0)
  241. Part10.Transparency = 1
  242. Part10.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  243. Part10.Size = Vector3.new(2, 2, 1)
  244. Part10.BackParamA = -99999
  245. Part10.BackParamB = 99999
  246. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  247. Part10.BottomParamA = -99999
  248. Part10.BottomParamB = 99999
  249. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  250. Part10.CanCollide = false
  251. Part10.CustomPhysicalProperties = 0.699999988, 2, 0, 100, 0
  252. Part10.FrontParamA = -99999
  253. Part10.FrontParamB = 99999
  254. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  255. Part10.LeftParamA = -99999
  256. Part10.LeftParamB = 99999
  257. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  258. Part10.Locked = true
  259. Part10.Material = Enum.Material.SmoothPlastic
  260. Part10.RightParamA = -99999
  261. Part10.RightParamB = 99999
  262. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  263. Part10.TopParamA = -99999
  264. Part10.TopParamB = 99999
  265. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  266. Part10.FormFactor = Enum.FormFactor.Symmetric
  267. Part10.formFactor = Enum.FormFactor.Symmetric
  268. Motor6D11.Name = "RootJoint"
  269. Motor6D11.Parent = Part10
  270. Motor6D11.MaxVelocity = 0.10000000149012
  271. Motor6D11.CurrentAngle = -0.0085319308564067
  272. Motor6D11.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  273. Motor6D11.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  274. Motor6D11.Part0 = Part10
  275. Motor6D11.Part1 = Part1
  276. Motor6D11.part1 = Part1
  277. Motor6D11.Transform = CFrame.new(0, 0, 0.00305164163, 0.999963582, 0.00853182748, 0, -0.00853182748, 0.999963582, -0, -0, 0, 1)
  278. Part12.Name = "Left Arm"
  279. Part12.Parent = Model0
  280. 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)
  281. Part12.Orientation = Vector3.new(26.6200008, 16.1800003, -7.80000019)
  282. Part12.Position = Vector3.new(-58.5042763, 3.09905386, -5.94387674)
  283. Part12.Rotation = Vector3.new(27.5499992, 14.4200001, -15.1999998)
  284. Part12.Color = Color3.new(0.768628, 0.156863, 0.109804)
  285. Part12.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  286. Part12.Size = Vector3.new(1, 2, 1)
  287. Part12.BackParamA = -99999
  288. Part12.BackParamB = 99999
  289. Part12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  290. Part12.BottomParamA = -99999
  291. Part12.BottomParamB = 99999
  292. Part12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  293. Part12.BrickColor = BrickColor.new("Bright red")
  294. Part12.CanCollide = false
  295. Part12.CustomPhysicalProperties = 0.699999988, 2, 0, 100, 0
  296. Part12.FrontParamA = -99999
  297. Part12.FrontParamB = 99999
  298. Part12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  299. Part12.LeftParamA = -99999
  300. Part12.LeftParamB = 99999
  301. Part12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  302. Part12.Locked = true
  303. Part12.Material = Enum.Material.SmoothPlastic
  304. Part12.RightParamA = -99999
  305. Part12.RightParamB = 99999
  306. Part12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  307. Part12.TopParamA = -99999
  308. Part12.TopParamB = 99999
  309. Part12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  310. Part12.brickColor = BrickColor.new("Bright red")
  311. Part12.FormFactor = Enum.FormFactor.Symmetric
  312. Part12.formFactor = Enum.FormFactor.Symmetric
  313. Part13.Name = "Head"
  314. Part13.Parent = Model0
  315. 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)
  316. Part13.Orientation = Vector3.new(-1.73000002, 18.5400009, 0)
  317. Part13.Position = Vector3.new(-56.9021416, 4.50287008, -6.07591009)
  318. Part13.Rotation = Vector3.new(-1.82000005, 18.5300007, 0.579999983)
  319. Part13.Color = Color3.new(0.768628, 0.156863, 0.109804)
  320. Part13.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  321. Part13.Size = Vector3.new(2, 1, 1)
  322. Part13.BackParamA = -99999
  323. Part13.BackParamB = 99999
  324. Part13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  325. Part13.BottomParamA = -99999
  326. Part13.BottomParamB = 99999
  327. Part13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  328. Part13.BrickColor = BrickColor.new("Bright red")
  329. Part13.CustomPhysicalProperties = 0.699999988, 2, 0, 100, 0
  330. Part13.FrontParamA = -99999
  331. Part13.FrontParamB = 99999
  332. Part13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  333. Part13.LeftParamA = -99999
  334. Part13.LeftParamB = 99999
  335. Part13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  336. Part13.Locked = true
  337. Part13.Material = Enum.Material.SmoothPlastic
  338. Part13.RightParamA = -99999
  339. Part13.RightParamB = 99999
  340. Part13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  341. Part13.TopParamA = -99999
  342. Part13.TopParamB = 99999
  343. Part13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  344. Part13.brickColor = BrickColor.new("Bright red")
  345. Part13.FormFactor = Enum.FormFactor.Symmetric
  346. Part13.formFactor = Enum.FormFactor.Symmetric
  347. SpecialMesh14.Name = "3.0 Female Head Mesh"
  348. SpecialMesh14.Parent = Part13
  349. SpecialMesh14.MeshId = "rbxassetid://82992952"
  350. SpecialMesh14.Scale = Vector3.new(1.25, 1.25, 1.25)
  351. SpecialMesh14.MeshType = Enum.MeshType.FileMesh
  352. Decal15.Name = "face"
  353. Decal15.Parent = Part13
  354. Decal15.Texture = "rbxassetid://912935344"
  355. ManualWeld16.Name = "HairWeld"
  356. ManualWeld16.Parent = Part13
  357. ManualWeld16.C1 = CFrame.new(-0.0288670063, 0.110000014, 0.00816631317, 0.962252676, 0, 0.272157729, 0, 1, 0, -0.272157729, 0, 0.962252676)
  358. ManualWeld16.Part0 = Part13
  359. ManualWeld16.Part1 = MeshPart9
  360. ManualWeld16.part1 = MeshPart9
  361. Sound17.Name = "PlasticCreak"
  362. Sound17.Parent = Part13
  363. Sound17.Looped = true
  364. Sound17.EmitterSize = 50
  365. Sound17.MinDistance = 50
  366. Sound17.SoundId = "rbxassetid://913163726"
  367. Sound17.Volume = 1
  368. ParticleEmitter18.Name = "BrokenHearts"
  369. ParticleEmitter18.Parent = Part13
  370. ParticleEmitter18.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
  371. ParticleEmitter18.Enabled = false
  372. ParticleEmitter18.Texture = "rbxassetid://912982766"
  373. 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)
  374. ParticleEmitter18.Acceleration = Vector3.new(0, -10, 0)
  375. ParticleEmitter18.Lifetime = NumberRange.new(1.5, 1.5)
  376. ParticleEmitter18.Rate = 10
  377. ParticleEmitter18.RotSpeed = NumberRange.new(-100, 100)
  378. ParticleEmitter18.SpreadAngle = Vector2.new(-99999, 99999)
  379. ParticleEmitter18.VelocitySpread = -99999
  380. ParticleEmitter19.Name = "Hearts"
  381. ParticleEmitter19.Parent = Part13
  382. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0, 0))
  383. ParticleEmitter19.Enabled = false
  384. ParticleEmitter19.Texture = "rbxassetid://912982665"
  385. 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)
  386. ParticleEmitter19.Acceleration = Vector3.new(0, -2, 0)
  387. ParticleEmitter19.Lifetime = NumberRange.new(2, 2)
  388. ParticleEmitter19.Rate = 10
  389. ParticleEmitter19.RotSpeed = NumberRange.new(-100, 100)
  390. ParticleEmitter19.SpreadAngle = Vector2.new(-99999, 99999)
  391. ParticleEmitter19.VelocitySpread = -99999
  392. Weld20.Name = "HeadWeld"
  393. Weld20.Parent = Part13
  394. Weld20.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  395. Weld20.C1 = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  396. Weld20.Part0 = Part13
  397. Weld20.Part1 = Part75
  398. Weld20.part1 = Part75
  399. Weld21.Name = "HeadWeld"
  400. Weld21.Parent = Part13
  401. Weld21.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  402. Weld21.C1 = CFrame.new(0, 2, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  403. Weld21.Part0 = Part13
  404. Weld21.Part1 = Part32
  405. Weld21.part1 = Part32
  406. Sound22.Archivable = false
  407. Sound22.Name = "GettingUp"
  408. Sound22.Parent = Part13
  409. Sound22.archivable = false
  410. Sound22.EmitterSize = 20
  411. Sound22.MinDistance = 20
  412. Sound22.SoundId = "rbxasset://sounds/action_get_up.mp3"
  413. Sound22.Volume = 1
  414. Sound23.Archivable = false
  415. Sound23.Name = "Died"
  416. Sound23.Parent = Part13
  417. Sound23.archivable = false
  418. Sound23.EmitterSize = 20
  419. Sound23.MinDistance = 20
  420. Sound23.SoundId = "rbxasset://sounds/uuhhh.mp3"
  421. Sound23.Volume = 1
  422. Sound24.Archivable = false
  423. Sound24.Name = "FreeFalling"
  424. Sound24.Parent = Part13
  425. Sound24.archivable = false
  426. Sound24.Looped = true
  427. Sound24.EmitterSize = 20
  428. Sound24.MinDistance = 20
  429. Sound24.SoundId = "rbxasset://sounds/action_falling.mp3"
  430. Sound24.Volume = 1
  431. Sound25.Archivable = false
  432. Sound25.Name = "Jumping"
  433. Sound25.Parent = Part13
  434. Sound25.archivable = false
  435. Sound25.EmitterSize = 20
  436. Sound25.MinDistance = 20
  437. Sound25.SoundId = "rbxasset://sounds/action_jump.mp3"
  438. Sound25.Volume = 1
  439. Sound26.Archivable = false
  440. Sound26.Name = "Landing"
  441. Sound26.Parent = Part13
  442. Sound26.archivable = false
  443. Sound26.EmitterSize = 20
  444. Sound26.MinDistance = 20
  445. Sound26.SoundId = "rbxasset://sounds/action_jump_land.mp3"
  446. Sound26.Volume = 1
  447. Sound27.Archivable = false
  448. Sound27.Name = "Splash"
  449. Sound27.Parent = Part13
  450. Sound27.archivable = false
  451. Sound27.EmitterSize = 20
  452. Sound27.MinDistance = 20
  453. Sound27.SoundId = "rbxasset://sounds/impact_water.mp3"
  454. Sound27.Volume = 1
  455. Sound28.Archivable = false
  456. Sound28.Name = "Running"
  457. Sound28.Parent = Part13
  458. Sound28.archivable = false
  459. Sound28.Looped = true
  460. Sound28.EmitterSize = 20
  461. Sound28.MinDistance = 20
  462. Sound28.Pitch = 1.8500000238419
  463. Sound28.PlaybackSpeed = 1.8500000238419
  464. Sound28.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  465. Sound28.Volume = 1
  466. Sound29.Archivable = false
  467. Sound29.Name = "Swimming"
  468. Sound29.Parent = Part13
  469. Sound29.archivable = false
  470. Sound29.Looped = true
  471. Sound29.EmitterSize = 20
  472. Sound29.MinDistance = 20
  473. Sound29.Pitch = 1.6000000238419
  474. Sound29.PlaybackSpeed = 1.6000000238419
  475. Sound29.SoundId = "rbxasset://sounds/action_swim.mp3"
  476. Sound29.Volume = 1
  477. Sound30.Archivable = false
  478. Sound30.Name = "Climbing"
  479. Sound30.Parent = Part13
  480. Sound30.archivable = false
  481. Sound30.Looped = true
  482. Sound30.EmitterSize = 20
  483. Sound30.MinDistance = 20
  484. Sound30.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  485. Sound30.Volume = 1
  486. Hat31.Name = "DevilWings"
  487. Hat31.Parent = Model0
  488. Hat31.AttachmentPoint = CFrame.new(0, 2, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  489. Hat31.AttachmentPos = Vector3.new(0, 2, -2.5)
  490. Part32.Name = "Handle"
  491. Part32.Parent = Hat31
  492. 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)
  493. Part32.Orientation = Vector3.new(-1.73000002, 18.5400009, 0)
  494. Part32.Position = Vector3.new(-56.0932503, 3.07893562, -3.66383553)
  495. Part32.Rotation = Vector3.new(-1.82000005, 18.5300007, 0.579999983)
  496. Part32.Transparency = 0.00010001659393311
  497. Part32.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  498. Part32.Size = Vector3.new(7.5, 3, 3)
  499. Part32.BackSurface = Enum.SurfaceType.Weld
  500. Part32.BottomSurface = Enum.SurfaceType.Weld
  501. Part32.CanCollide = false
  502. Part32.FrontSurface = Enum.SurfaceType.Weld
  503. Part32.LeftSurface = Enum.SurfaceType.Weld
  504. Part32.RightSurface = Enum.SurfaceType.Weld
  505. Part32.TopSurface = Enum.SurfaceType.Weld
  506. Part32.FormFactor = Enum.FormFactor.Symmetric
  507. Part32.formFactor = Enum.FormFactor.Symmetric
  508. SpecialMesh33.Parent = Part32
  509. SpecialMesh33.MeshId = "http://www.roblox.com/asset/?id=19367744"
  510. SpecialMesh33.Scale = Vector3.new(2, 2, 2)
  511. SpecialMesh33.TextureId = "http://www.roblox.com/asset/?id=41297679"
  512. SpecialMesh33.MeshType = Enum.MeshType.FileMesh
  513. Part34.Name = "Right Arm"
  514. Part34.Parent = Model0
  515. 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)
  516. Part34.Orientation = Vector3.new(-16.5499992, 14.3000002, 1.33000004)
  517. Part34.Position = Vector3.new(-55.3641243, 3.06183314, -6.22565269)
  518. Part34.Rotation = Vector3.new(-17.0499992, 13.6899996, 5.48000002)
  519. Part34.Color = Color3.new(0.768628, 0.156863, 0.109804)
  520. Part34.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  521. Part34.Size = Vector3.new(1, 2, 1)
  522. Part34.BackParamA = -99999
  523. Part34.BackParamB = 99999
  524. Part34.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  525. Part34.BottomParamA = -99999
  526. Part34.BottomParamB = 99999
  527. Part34.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  528. Part34.BrickColor = BrickColor.new("Bright red")
  529. Part34.CanCollide = false
  530. Part34.CustomPhysicalProperties = 0.699999988, 2, 0, 100, 0
  531. Part34.FrontParamA = -99999
  532. Part34.FrontParamB = 99999
  533. Part34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  534. Part34.LeftParamA = -99999
  535. Part34.LeftParamB = 99999
  536. Part34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  537. Part34.Locked = true
  538. Part34.Material = Enum.Material.SmoothPlastic
  539. Part34.RightParamA = -99999
  540. Part34.RightParamB = 99999
  541. Part34.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  542. Part34.TopParamA = -99999
  543. Part34.TopParamB = 99999
  544. Part34.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  545. Part34.brickColor = BrickColor.new("Bright red")
  546. Part34.FormFactor = Enum.FormFactor.Symmetric
  547. Part34.formFactor = Enum.FormFactor.Symmetric
  548. Part35.Name = "Right Leg"
  549. Part35.Parent = Model0
  550. 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)
  551. Part35.Orientation = Vector3.new(31.7600002, 19.1100006, 0.189999998)
  552. Part35.Position = Vector3.new(-56.5939026, 0.949901581, -6.68724108)
  553. Part35.Rotation = Vector3.new(33.2299995, 16.1599998, -10.1400003)
  554. Part35.Color = Color3.new(0.768628, 0.156863, 0.109804)
  555. Part35.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  556. Part35.Size = Vector3.new(1, 2, 1)
  557. Part35.BackParamA = -99999
  558. Part35.BackParamB = 99999
  559. Part35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  560. Part35.BottomParamA = -99999
  561. Part35.BottomParamB = 99999
  562. Part35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  563. Part35.BrickColor = BrickColor.new("Bright red")
  564. Part35.CanCollide = false
  565. Part35.CustomPhysicalProperties = 0.699999988, 2, 0, 100, 0
  566. Part35.FrontParamA = -99999
  567. Part35.FrontParamB = 99999
  568. Part35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  569. Part35.LeftParamA = -99999
  570. Part35.LeftParamB = 99999
  571. Part35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  572. Part35.Locked = true
  573. Part35.Material = Enum.Material.SmoothPlastic
  574. Part35.RightParamA = -99999
  575. Part35.RightParamB = 99999
  576. Part35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  577. Part35.TopParamA = -99999
  578. Part35.TopParamB = 99999
  579. Part35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  580. Part35.brickColor = BrickColor.new("Bright red")
  581. Part35.FormFactor = Enum.FormFactor.Symmetric
  582. Part35.formFactor = Enum.FormFactor.Symmetric
  583. Part36.Name = "Left Leg"
  584. Part36.Parent = Model0
  585. 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)
  586. Part36.Orientation = Vector3.new(-27.2600002, 16.6700001, 0.0500000007)
  587. Part36.Position = Vector3.new(-57.2387123, 1.20217299, -5.51361847)
  588. Part36.Rotation = Vector3.new(-28.2800007, 14.7799997, 7.86000013)
  589. Part36.Color = Color3.new(0.768628, 0.156863, 0.109804)
  590. Part36.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  591. Part36.Size = Vector3.new(1, 2, 1)
  592. Part36.BackParamA = -99999
  593. Part36.BackParamB = 99999
  594. Part36.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  595. Part36.BottomParamA = -99999
  596. Part36.BottomParamB = 99999
  597. Part36.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  598. Part36.BrickColor = BrickColor.new("Bright red")
  599. Part36.CanCollide = false
  600. Part36.CustomPhysicalProperties = 0.699999988, 2, 0, 100, 0
  601. Part36.FrontParamA = -99999
  602. Part36.FrontParamB = 99999
  603. Part36.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  604. Part36.LeftParamA = -99999
  605. Part36.LeftParamB = 99999
  606. Part36.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  607. Part36.Locked = true
  608. Part36.Material = Enum.Material.SmoothPlastic
  609. Part36.RightParamA = -99999
  610. Part36.RightParamB = 99999
  611. Part36.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  612. Part36.TopParamA = -99999
  613. Part36.TopParamB = 99999
  614. Part36.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  615. Part36.brickColor = BrickColor.new("Bright red")
  616. Part36.FormFactor = Enum.FormFactor.Symmetric
  617. Part36.formFactor = Enum.FormFactor.Symmetric
  618. Humanoid37.Name = "SeductiveWoman"
  619. Humanoid37.Parent = Model0
  620. Humanoid37.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  621. Humanoid37.Health = inf
  622. Humanoid37.HealthDisplayDistance = 0
  623. Humanoid37.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  624. Humanoid37.JumpPower = 60
  625. Humanoid37.LeftLeg = Part36
  626. Humanoid37.MaxHealth = inf
  627. Humanoid37.MaxSlopeAngle = 89.900001525879
  628. Humanoid37.NameDisplayDistance = 0
  629. Humanoid37.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  630. Humanoid37.RightLeg = Part35
  631. Humanoid37.Torso = Part10
  632. Humanoid37.WalkSpeed = 20
  633. Humanoid37.WalkToPart = nil
  634. Humanoid37.WalkToPoint = Vector3.new(-69.5740662, 3.000067, -46.9284744)
  635. Humanoid37.maxHealth = inf
  636. Model38.Name = "Status"
  637. Model38.Parent = Humanoid37
  638. Model39.Name = "AvalibleSpawns"
  639. Model39.Parent = Model38
  640. Script40.Name = "Respawn"
  641. Script40.Parent = Model0
  642. table.insert(cors,sandbox(Script40,function()
  643. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  644. local PlayerSpawning=false; --[[ 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. ]]--
  645. local AdvancedRespawnScript=script;
  646. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  647. local Laina=AdvancedRespawnScript.Parent;
  648. if AdvancedRespawnScript and Laina and Laina:FindFirstChild("Thumbnail")then
  649. Laina:FindFirstChild("Thumbnail"):Destroy();
  650. end;
  651. local GameDerbis=Game:GetService("Debris");
  652. local LainaHumanoid;
  653. for _,Child in pairs(Laina:GetChildren())do
  654. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  655. LainaHumanoid=Child;
  656. end;
  657. end;
  658. local Respawndant=Laina:Clone();
  659. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  660. coroutine.resume(coroutine.create(function()
  661. if Laina and LainaHumanoid and LainaHumanoid:FindFirstChild("Status")and not LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  662. SpawnModel=Instance.new("Model");
  663. SpawnModel.Parent=LainaHumanoid.Status;
  664. SpawnModel.Name="AvalibleSpawns";
  665. else
  666. SpawnModel=LainaHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  667. end;
  668. function FindSpawn(SearchValue)
  669. local PartsArchivable=SearchValue:GetChildren();
  670. for AreaSearch=1,#PartsArchivable do
  671. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  672. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  673. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  674. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  675. end;
  676. FindSpawn(PartsArchivable[AreaSearch]);
  677. end;
  678. end;
  679. FindSpawn(Game:GetService("Workspace"));
  680. local SpawnChilden=SpawnModel:GetChildren();
  681. if#SpawnChilden>0 then
  682. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  683. local RespawningForceField=Instance.new("ForceField");
  684. RespawningForceField.Parent=Laina;
  685. RespawningForceField.Name="SpawnForceField";
  686. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  687. Laina:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  688. else
  689. if Laina:FindFirstChild("SpawnForceField")then
  690. Laina:FindFirstChild("SpawnForceField"):Destroy();
  691. end;
  692. Laina:MoveTo(Vector3.new(0,115,0));
  693. end;
  694. end));
  695. end;
  696. function Respawn()
  697. Wait(5);
  698. Respawndant.Parent=Laina.Parent;
  699. Respawndant:makeJoints();
  700. Respawndant:FindFirstChild("Head"):MakeJoints();
  701. Respawndant:FindFirstChild("Torso"):MakeJoints();
  702. Laina:remove();
  703. end;
  704. if AdvancedRespawnScript and Laina and LainaHumanoid then
  705. LainaHumanoid.Died:connect(Respawn);
  706. end;
  707. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  708. end))
  709. BodyColors41.Parent = Model0
  710. BodyColors41.HeadColor = BrickColor.new("Bright red")
  711. BodyColors41.HeadColor3 = Color3.new(0.768628, 0.156863, 0.109804)
  712. BodyColors41.LeftArmColor = BrickColor.new("Bright red")
  713. BodyColors41.LeftArmColor3 = Color3.new(0.768628, 0.156863, 0.109804)
  714. BodyColors41.LeftLegColor = BrickColor.new("Bright red")
  715. BodyColors41.LeftLegColor3 = Color3.new(0.768628, 0.156863, 0.109804)
  716. BodyColors41.RightArmColor = BrickColor.new("Bright red")
  717. BodyColors41.RightArmColor3 = Color3.new(0.768628, 0.156863, 0.109804)
  718. BodyColors41.RightLegColor = BrickColor.new("Bright red")
  719. BodyColors41.RightLegColor3 = Color3.new(0.768628, 0.156863, 0.109804)
  720. BodyColors41.TorsoColor = BrickColor.new("Bright red")
  721. BodyColors41.TorsoColor3 = Color3.new(0.768628, 0.156863, 0.109804)
  722. Pants42.Name = "Dress"
  723. Pants42.Parent = Model0
  724. Pants42.PantsTemplate = "rbxassetid://912935270"
  725. Script43.Name = "LainaMain"
  726. Script43.Parent = Model0
  727. table.insert(cors,sandbox(Script43,function()
  728. --[[ By: Brutez. ]]--
  729. local LainaScript=script;
  730. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  731. local Laina=LainaScript.Parent;
  732. local LainaHumanoid;
  733. for _,Child in pairs(Laina:GetChildren())do
  734. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  735. LainaHumanoid=Child;
  736. end;
  737. end;
  738. 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);
  739. local LainaWeld;
  740. local LainaBodyGyro;
  741. RecreateThingies=function()
  742. LainaWeld=Instance.new("Weld");
  743. LainaWeld.Name="LainaWeld";
  744. LainaBodyGyro=Instance.new("BodyGyro");
  745. LainaBodyGyro.Name="LainaBodyGyro";
  746. LainaBodyGyro.cframe=CFrame.new(Vector3.new(0,0,0),Vector3.new(0,5000000,0));
  747. LainaBodyGyro.D=300;
  748. LainaBodyGyro.maxTorque=Vector3.new(99999e99999,99999e99999,0);
  749. LainaBodyGyro.P=7000;
  750. end;
  751. RecreateThingies();
  752. local IsOnTop=false;
  753. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  754. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit * (MaxDistance or 999.8699)),IgnoreList)
  755. end;
  756. while Wait(0)do
  757. if LainaScript and Laina and Laina:FindFirstChild("Torso") and LainaHumanoid and LainaHumanoid.Health~=0 then
  758. local TargetPoint=LainaHumanoid.TargetPoint;
  759. 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})
  760. local Jumpable=false;
  761. if Blockage then
  762. Jumpable=true;
  763. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  764. local BlockageHumanoid;
  765. for _,Child in pairs(Blockage.Parent:GetChildren())do
  766. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  767. BlockageHumanoid=Child;
  768. end;
  769. end;
  770. if Blockage and Blockage:IsA("Terrain")then
  771. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  772. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  773. if CellMaterial==Enum.CellMaterial.Water then
  774. Jumpable=false;
  775. end;
  776. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"then
  777. Jumpable=false;
  778. end;
  779. end;
  780. if Jumpable and LainaScript and Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.Sit and not IsOnTop then
  781. LainaHumanoid.Jump=true;
  782. end;
  783. end;
  784. end;
  785. 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
  786. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935337";
  787. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  788. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=true;
  789. 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
  790. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  791. end;
  792. 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
  793. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  794. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  795. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  796. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  797. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  798. end;
  799. end;
  800. 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
  801. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935344";
  802. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=false;
  803. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  804. 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
  805. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Stop();
  806. end;
  807. 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
  808. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC0;
  809. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0;
  810. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0;
  811. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC0;
  812. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0;
  813. end;
  814. 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
  815. Laina:FindFirstChild("Head"):FindFirstChild("face").Texture="rbxassetid://912935342";
  816. Laina:FindFirstChild("Head"):FindFirstChild("Hearts").Enabled=true;
  817. Laina:FindFirstChild("Head"):FindFirstChild("BrokenHearts").Enabled=false;
  818. 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
  819. Laina:FindFirstChild("Head"):FindFirstChild("PlasticCreak"):Play();
  820. end;
  821. 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
  822. 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
  823. Laina:FindFirstChild("Torso"):FindFirstChild("Left Hip").C0=LeftLegC02*CFrame.fromEulerAnglesXYZ(1.5,1.5-LRotation,-1);
  824. Laina:FindFirstChild("Torso"):FindFirstChild("Left Shoulder").C0=LeftArmC0*CFrame.fromEulerAnglesXYZ(0,0,0.3+LARotation);
  825. Laina:FindFirstChild("Torso"):FindFirstChild("Neck").C0=HeadC0*CFrame.fromEulerAnglesXYZ(0.5+HRotation,0,0);
  826. Laina:FindFirstChild("Torso"):FindFirstChild("Right Hip").C0=RightLegC02*CFrame.fromEulerAnglesXYZ(1.5,-1.5+RRotation,1);
  827. Laina:FindFirstChild("Torso"):FindFirstChild("Right Shoulder").C0=RightArmC0*CFrame.fromEulerAnglesXYZ(0,0,-0.3-RARotation);
  828. end;
  829. end;
  830. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoJumpEnabled then
  831. LainaHumanoid.AutoJumpEnabled=true;
  832. end;
  833. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and not LainaHumanoid.AutoRotate then
  834. LainaHumanoid.AutoRotate=true;
  835. end;
  836. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.PlatformStand then
  837. LainaHumanoid.PlatformStand=false;
  838. end;
  839. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and LainaHumanoid.Sit and not IsOnTop then
  840. LainaHumanoid.Sit=false;
  841. end;
  842. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 then
  843. LainaHumanoid.JumpPower=60;
  844. LainaHumanoid.WalkSpeed=20;
  845. end;
  846. local NoticeDistance=99999e99999;
  847. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  848. if TargetModel and TargetModel:IsA("Model")and TargetModel~=Laina and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  849. local TargetPart=TargetModel:FindFirstChild("Torso");
  850. local FoundHumanoid;
  851. for _,Child in pairs(TargetModel:GetChildren())do
  852. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  853. FoundHumanoid=Child;
  854. end;
  855. end;
  856. 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
  857. NoticeDistance=(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude;
  858. 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
  859. LainaHumanoid.Jump=true;
  860. end;
  861. LainaHumanoid:MoveTo(TargetPart.Position+(TargetPart.Position-Laina:FindFirstChild("Torso").Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  862. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-Laina:FindFirstChild("HumanoidRootPart").Position).magnitude<5 and not IsOnTop then
  863. IsOnTop=true;
  864. LainaWeld.Parent=Laina:FindFirstChild("Torso");
  865. LainaWeld.Part1=Laina:FindFirstChild("Torso");
  866. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  867. LainaWeld.Part0=TargetPart;
  868. LainaBodyGyro.Parent=TargetPart;
  869. 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
  870. if TargetModel and FoundHumanoid and FoundHumanoid.Health~=0 and FoundHumanoid:FindFirstChild("Status")and FoundHumanoid:FindFirstChild("Status").ClassName=="Status"then
  871. local JumpOk=LainaScript:FindFirstChild("JumpOk"):Clone();
  872. JumpOk.Parent=TargetModel;
  873. JumpOk.Disabled=false;
  874. 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
  875. local JumpOkNPC=LainaScript:FindFirstChild("JumpOkNPC"):Clone();
  876. JumpOkNPC.Parent=TargetModel;
  877. JumpOkNPC.Disabled=false;
  878. end;
  879. end;
  880. Spawn(function()
  881. while Wait(0)do
  882. 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
  883. LainaHumanoid.Sit=true;
  884. if Laina and LainaHumanoid and LainaHumanoid.Health~=0 and Laina:FindFirstChild("Torso")and LainaWeld then
  885. LainaWeld.C0=CFrame.new(0,-0.1,-1.4)*CFrame.fromEulerAnglesXYZ(-0.7+math.sin(tick()*9.86)*0.3,math.pi,0);
  886. end;
  887. if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 then
  888. FoundHumanoid.Jump=false;
  889. FoundHumanoid.Sit=true;
  890. end;
  891. else
  892. IsOnTop=false;
  893. if LainaWeld then
  894. LainaWeld:Destroy();
  895. end;
  896. if LainaBodyGyro then
  897. LainaBodyGyro:Destroy();
  898. end;
  899. RecreateThingies();
  900. break
  901. end;
  902. end;
  903. end)
  904. end;
  905. end;
  906. end;
  907. end;
  908. end;
  909. --[[ By: Brutez. ]]--
  910. end))
  911. LocalScript44.Name = "JumpOk"
  912. LocalScript44.Parent = Script43
  913. table.insert(cors,sandbox(LocalScript44,function()
  914. --[[ By: Brutez. ]]--
  915. local JumpScript=script;
  916. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  917. local ROBLOXian=JumpScript.Parent;
  918. local ROBLOXianHumanoid;
  919. for _,Child in pairs(ROBLOXian:GetChildren())do
  920. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  921. ROBLOXianHumanoid=Child;
  922. end;
  923. end;
  924. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  925. ROBLOXianHumanoid.Changed:connect(function()
  926. 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
  927. ROBLOXianHumanoid.Jump=false;
  928. end;
  929. end);
  930. end;
  931. while Wait(0)do
  932. 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
  933. JumpScript.Disabled=true;
  934. JumpScript:Destroy();
  935. break
  936. end;
  937. end;
  938. --[[ By: Brutez. ]]--
  939. end))
  940. LocalScript44.Disabled = true
  941. Script45.Name = "JumpOkNPC"
  942. Script45.Parent = Script43
  943. table.insert(cors,sandbox(Script45,function()
  944. --[[ By: Brutez. ]]--
  945. local JumpScript=script;
  946. repeat Wait(0);until script and script.Parent and script.Parent.ClassName=="Model"and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  947. local ROBLOXian=JumpScript.Parent;
  948. local ROBLOXianHumanoid;
  949. for _,Child in pairs(ROBLOXian:GetChildren())do
  950. if Child and Child.ClassName=="Humanoid"and Child.Health>0.001 then
  951. ROBLOXianHumanoid=Child;
  952. end;
  953. end;
  954. if JumpScript and ROBLOXian and ROBLOXian.ClassName=="Model"and ROBLOXian:FindFirstChild("Head")and ROBLOXian:FindFirstChild("Torso")and ROBLOXianHumanoid and ROBLOXianHumanoid.Health>0.001 then
  955. ROBLOXianHumanoid.Changed:connect(function()
  956. 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
  957. ROBLOXianHumanoid.Jump=false;
  958. end;
  959. end);
  960. end;
  961. while Wait(0)do
  962. 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
  963. JumpScript.Disabled=true;
  964. JumpScript:Destroy();
  965. break
  966. end;
  967. end;
  968. --[[ By: Brutez. ]]--
  969. end))
  970. Script45.Disabled = true
  971. Decal46.Parent = Script43
  972. Decal46.Texture = "http://www.roblox.com/asset/?id=912935342"
  973. CharacterMesh47.Name = "3.0 Female Left Arm"
  974. CharacterMesh47.Parent = Model0
  975. CharacterMesh47.BodyPart = Enum.BodyPart.LeftArm
  976. CharacterMesh47.MeshId = 83001137
  977. CharacterMesh48.Name = "3.0 Female Left Leg"
  978. CharacterMesh48.Parent = Model0
  979. CharacterMesh48.BodyPart = Enum.BodyPart.LeftLeg
  980. CharacterMesh48.MeshId = 81628361
  981. CharacterMesh49.Name = "3.0 Female Right Arm"
  982. CharacterMesh49.Parent = Model0
  983. CharacterMesh49.BodyPart = Enum.BodyPart.RightArm
  984. CharacterMesh49.MeshId = 83001181
  985. CharacterMesh50.Name = "3.0 Female Right Leg"
  986. CharacterMesh50.Parent = Model0
  987. CharacterMesh50.BodyPart = Enum.BodyPart.RightLeg
  988. CharacterMesh50.MeshId = 81628308
  989. CharacterMesh51.Name = "3.0 Female Torso"
  990. CharacterMesh51.Parent = Model0
  991. CharacterMesh51.BodyPart = Enum.BodyPart.Torso
  992. CharacterMesh51.MeshId = 82987757
  993. Script52.Name = "SoundNew"
  994. Script52.Parent = Model0
  995. table.insert(cors,sandbox(Script52,function()
  996. --[[ Compact mode by: Brutez. ]]--
  997. Spawn(function()
  998. 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,{};
  999. 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");
  1000. 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;};
  1001. 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;
  1002. end);
  1003. --[[ Compact mode by: Brutez. ]]--
  1004. function CreateNewSound(name,id,looped,pitch,parent)
  1005. local sound=Instance.new("Sound");
  1006. sound.SoundId=id;
  1007. sound.Name=name;
  1008. sound.archivable=false;
  1009. sound.Parent=parent;
  1010. sound.Pitch=pitch;
  1011. sound.Looped=looped;
  1012. sound.MinDistance=20;
  1013. sound.MaxDistance=10000;
  1014. sound.Volume=1;
  1015. return sound;
  1016. end;
  1017. local head=script.Parent:FindFirstChild("Head");
  1018. CreateNewSound("GettingUp","rbxasset://sounds/action_get_up.mp3",false,1,head);
  1019. CreateNewSound("Died","rbxasset://sounds/uuhhh.mp3",false,1,head);
  1020. CreateNewSound("FreeFalling","rbxasset://sounds/action_falling.mp3",true,1,head);
  1021. CreateNewSound("Jumping","rbxasset://sounds/action_jump.mp3",false,1,head);
  1022. CreateNewSound("Landing","rbxasset://sounds/action_jump_land.mp3",false,1,head);
  1023. CreateNewSound("Splash","rbxasset://sounds/impact_water.mp3",false,1,head);
  1024. CreateNewSound("Running","rbxasset://sounds/action_footsteps_plastic.mp3",true,1.85,head);
  1025. CreateNewSound("Swimming","rbxasset://sounds/action_swim.mp3",true,1.6,head);
  1026. CreateNewSound("Climbing","rbxasset://sounds/action_footsteps_plastic.mp3",true,1,head);
  1027. end))
  1028. Script53.Name = "AnimateNew"
  1029. Script53.Parent = Model0
  1030. table.insert(cors,sandbox(Script53,function()
  1031. local Figure = script.Parent
  1032. local Torso = Figure:FindFirstChild("Torso")
  1033. local RightShoulder = Torso:FindFirstChild("Right Shoulder")
  1034. local LeftShoulder = Torso:FindFirstChild("Left Shoulder")
  1035. local RightHip = Torso:FindFirstChild("Right Hip")
  1036. local LeftHip = Torso:FindFirstChild("Left Hip")
  1037. local Neck = Torso:FindFirstChild("Neck")
  1038. local Humanoid;
  1039. for _,Child in pairs(Figure:GetChildren())do
  1040. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  1041. Humanoid=Child;
  1042. end;
  1043. end;
  1044. local pose = "Standing"
  1045.  
  1046. local currentAnim = ""
  1047. local currentAnimInstance = nil
  1048. local currentAnimTrack = nil
  1049. local currentAnimKeyframeHandler = nil
  1050. local currentAnimSpeed = 1.0
  1051. local animTable = {}
  1052. local animNames = {
  1053. idle = {
  1054. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  1055. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  1056. },
  1057. walk = {
  1058. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  1059. },
  1060. run = {
  1061. { id = "run.xml", weight = 10 }
  1062. },
  1063. jump = {
  1064. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  1065. },
  1066. fall = {
  1067. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  1068. },
  1069. climb = {
  1070. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  1071. },
  1072. sit = {
  1073. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  1074. },
  1075. toolnone = {
  1076. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  1077. },
  1078. toolslash = {
  1079. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  1080. -- { id = "slash.xml", weight = 10 }
  1081. },
  1082. toollunge = {
  1083. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  1084. },
  1085. wave = {
  1086. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  1087. },
  1088. point = {
  1089. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  1090. },
  1091. dance1 = {
  1092. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  1093. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  1094. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  1095. },
  1096. dance2 = {
  1097. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  1098. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  1099. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  1100. },
  1101. dance3 = {
  1102. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  1103. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  1104. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  1105. },
  1106. laugh = {
  1107. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  1108. },
  1109. cheer = {
  1110. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  1111. },
  1112. }
  1113. local dances = {"dance1", "dance2", "dance3"}
  1114.  
  1115. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  1116. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  1117.  
  1118. function configureAnimationSet(name, fileList)
  1119. if (animTable[name] ~= nil) then
  1120. for _, connection in pairs(animTable[name].connections) do
  1121. connection:disconnect()
  1122. end
  1123. end
  1124. animTable[name] = {}
  1125. animTable[name].count = 0
  1126. animTable[name].totalWeight = 0
  1127. animTable[name].connections = {}
  1128.  
  1129. -- check for config values
  1130. local config = script:FindFirstChild(name)
  1131. if (config ~= nil) then
  1132. -- print("Loading anims " .. name)
  1133. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  1134. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  1135. local idx = 1
  1136. for _, childPart in pairs(config:GetChildren()) do
  1137. if (childPart:IsA("Animation")) then
  1138. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  1139. animTable[name][idx] = {}
  1140. animTable[name][idx].anim = childPart
  1141. local weightObject = childPart:FindFirstChild("Weight")
  1142. if (weightObject == nil) then
  1143. animTable[name][idx].weight = 1
  1144. else
  1145. animTable[name][idx].weight = weightObject.Value
  1146. end
  1147. animTable[name].count = animTable[name].count + 1
  1148. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  1149. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  1150. idx = idx + 1
  1151. end
  1152. end
  1153. end
  1154.  
  1155. -- fallback to defaults
  1156. if (animTable[name].count <= 0) then
  1157. for idx, anim in pairs(fileList) do
  1158. animTable[name][idx] = {}
  1159. animTable[name][idx].anim = Instance.new("Animation")
  1160. animTable[name][idx].anim.Name = name
  1161. animTable[name][idx].anim.AnimationId = anim.id
  1162. animTable[name][idx].weight = anim.weight
  1163. animTable[name].count = animTable[name].count + 1
  1164. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  1165. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  1166. end
  1167. end
  1168. end
  1169.  
  1170. -- Setup animation objects
  1171. function scriptChildModified(child)
  1172. local fileList = animNames[child.Name]
  1173. if (fileList ~= nil) then
  1174. configureAnimationSet(child.Name, fileList)
  1175. end
  1176. end
  1177.  
  1178. script.ChildAdded:connect(scriptChildModified)
  1179. script.ChildRemoved:connect(scriptChildModified)
  1180.  
  1181.  
  1182. for name, fileList in pairs(animNames) do
  1183. configureAnimationSet(name, fileList)
  1184. end
  1185.  
  1186. -- ANIMATION
  1187.  
  1188. -- declarations
  1189. local toolAnim = "None"
  1190. local toolAnimTime = 0
  1191.  
  1192. local jumpAnimTime = 0
  1193. local jumpAnimDuration = 0.3
  1194.  
  1195. local toolTransitionTime = 0.1
  1196. local fallTransitionTime = 0.3
  1197. local jumpMaxLimbVelocity = 0.75
  1198.  
  1199. -- functions
  1200.  
  1201. function stopAllAnimations()
  1202. local oldAnim = currentAnim
  1203.  
  1204. -- return to idle if finishing an emote
  1205. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  1206. oldAnim = "idle"
  1207. end
  1208.  
  1209. currentAnim = ""
  1210. currentAnimInstance = nil
  1211. if (currentAnimKeyframeHandler ~= nil) then
  1212. currentAnimKeyframeHandler:disconnect()
  1213. end
  1214.  
  1215. if (currentAnimTrack ~= nil) then
  1216. currentAnimTrack:Stop()
  1217. currentAnimTrack:Destroy()
  1218. currentAnimTrack = nil
  1219. end
  1220. return oldAnim
  1221. end
  1222.  
  1223. function setAnimationSpeed(speed)
  1224. if speed ~= currentAnimSpeed then
  1225. currentAnimSpeed = speed
  1226. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  1227. end
  1228. end
  1229.  
  1230. function keyFrameReachedFunc(frameName)
  1231. if (frameName == "End") then
  1232.  
  1233. local repeatAnim = currentAnim
  1234. -- return to idle if finishing an emote
  1235. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  1236. repeatAnim = "idle"
  1237. end
  1238.  
  1239. local animSpeed = currentAnimSpeed
  1240. playAnimation(repeatAnim, 0.0, Humanoid)
  1241. setAnimationSpeed(animSpeed)
  1242. end
  1243. end
  1244.  
  1245. -- Preload animations
  1246. function playAnimation(animName, transitionTime, humanoid)
  1247.  
  1248. local roll = math.random(1, animTable[animName].totalWeight)
  1249. local origRoll = roll
  1250. local idx = 1
  1251. while (roll > animTable[animName][idx].weight) do
  1252. roll = roll - animTable[animName][idx].weight
  1253. idx = idx + 1
  1254. end
  1255. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  1256. local anim = animTable[animName][idx].anim
  1257.  
  1258. -- switch animation
  1259. if (anim ~= currentAnimInstance) then
  1260.  
  1261. if (currentAnimTrack ~= nil) then
  1262. currentAnimTrack:Stop(transitionTime)
  1263. currentAnimTrack:Destroy()
  1264. end
  1265.  
  1266. currentAnimSpeed = 1.0
  1267.  
  1268. -- load it to the humanoid; get AnimationTrack
  1269. currentAnimTrack = humanoid:LoadAnimation(anim)
  1270. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  1271.  
  1272. -- play the animation
  1273. currentAnimTrack:Play(transitionTime)
  1274. currentAnim = animName
  1275. currentAnimInstance = anim
  1276.  
  1277. -- set up keyframe name triggers
  1278. if (currentAnimKeyframeHandler ~= nil) then
  1279. currentAnimKeyframeHandler:disconnect()
  1280. end
  1281. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1282.  
  1283. end
  1284.  
  1285. end
  1286.  
  1287. -------------------------------------------------------------------------------------------
  1288. -------------------------------------------------------------------------------------------
  1289.  
  1290. local toolAnimName = ""
  1291. local toolAnimTrack = nil
  1292. local toolAnimInstance = nil
  1293. local currentToolAnimKeyframeHandler = nil
  1294.  
  1295. function toolKeyFrameReachedFunc(frameName)
  1296. if (frameName == "End") then
  1297. -- print("Keyframe : ".. frameName)
  1298. playToolAnimation(toolAnimName, 0.0, Humanoid)
  1299. end
  1300. end
  1301.  
  1302.  
  1303. function playToolAnimation(animName, transitionTime, humanoid, priority)
  1304.  
  1305. local roll = math.random(1, animTable[animName].totalWeight)
  1306. local origRoll = roll
  1307. local idx = 1
  1308. while (roll > animTable[animName][idx].weight) do
  1309. roll = roll - animTable[animName][idx].weight
  1310. idx = idx + 1
  1311. end
  1312. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1313. local anim = animTable[animName][idx].anim
  1314.  
  1315. if (toolAnimInstance ~= anim) then
  1316.  
  1317. if (toolAnimTrack ~= nil) then
  1318. toolAnimTrack:Stop()
  1319. toolAnimTrack:Destroy()
  1320. transitionTime = 0
  1321. end
  1322.  
  1323. -- load it to the humanoid; get AnimationTrack
  1324. toolAnimTrack = humanoid:LoadAnimation(anim)
  1325. if priority then
  1326. toolAnimTrack.Priority = priority
  1327. end
  1328.  
  1329. -- play the animation
  1330. toolAnimTrack:Play(transitionTime)
  1331. toolAnimName = animName
  1332. toolAnimInstance = anim
  1333.  
  1334. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1335. end
  1336. end
  1337.  
  1338. function stopToolAnimations()
  1339. local oldAnim = toolAnimName
  1340.  
  1341. if (currentToolAnimKeyframeHandler ~= nil) then
  1342. currentToolAnimKeyframeHandler:disconnect()
  1343. end
  1344.  
  1345. toolAnimName = ""
  1346. toolAnimInstance = nil
  1347. if (toolAnimTrack ~= nil) then
  1348. toolAnimTrack:Stop()
  1349. toolAnimTrack:Destroy()
  1350. toolAnimTrack = nil
  1351. end
  1352.  
  1353.  
  1354. return oldAnim
  1355. end
  1356.  
  1357. -------------------------------------------------------------------------------------------
  1358. -------------------------------------------------------------------------------------------
  1359.  
  1360.  
  1361. function onRunning(speed)
  1362. if speed > 0.01 then
  1363. playAnimation("walk", 0.1, Humanoid)
  1364. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  1365. setAnimationSpeed(speed / 14.5)
  1366. end
  1367. pose = "Running"
  1368. else
  1369. if emoteNames[currentAnim] == nil then
  1370. playAnimation("idle", 0.1, Humanoid)
  1371. pose = "Standing"
  1372. end
  1373. end
  1374. end
  1375.  
  1376. function onDied()
  1377. pose = "Dead"
  1378. end
  1379.  
  1380. function onJumping()
  1381. playAnimation("jump", 0.1, Humanoid)
  1382. jumpAnimTime = jumpAnimDuration
  1383. pose = "Jumping"
  1384. end
  1385.  
  1386. function onClimbing(speed)
  1387. playAnimation("climb", 0.1, Humanoid)
  1388. setAnimationSpeed(speed / 12.0)
  1389. pose = "Climbing"
  1390. end
  1391.  
  1392. function onGettingUp()
  1393. pose = "GettingUp"
  1394. end
  1395.  
  1396. function onFreeFall()
  1397. if (jumpAnimTime <= 0) then
  1398. playAnimation("fall", fallTransitionTime, Humanoid)
  1399. end
  1400. pose = "FreeFall"
  1401. end
  1402.  
  1403. function onFallingDown()
  1404. pose = "FallingDown"
  1405. end
  1406.  
  1407. function onSeated()
  1408. pose = "Seated"
  1409. end
  1410.  
  1411. function onPlatformStanding()
  1412. pose = "PlatformStanding"
  1413. end
  1414.  
  1415. function onSwimming(speed)
  1416. if speed > 0 then
  1417. pose = "Running"
  1418. else
  1419. pose = "Standing"
  1420. end
  1421. end
  1422.  
  1423. function getTool()
  1424. for _, kid in ipairs(Figure:GetChildren()) do
  1425. if kid.className == "Tool" then return kid end
  1426. end
  1427. return nil
  1428. end
  1429.  
  1430. function getToolAnim(tool)
  1431. for _, c in ipairs(tool:GetChildren()) do
  1432. if c.Name == "toolanim" and c.className == "StringValue" then
  1433. return c
  1434. end
  1435. end
  1436. return nil
  1437. end
  1438.  
  1439. function animateTool()
  1440.  
  1441. if (toolAnim == "None") then
  1442. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  1443. return
  1444. end
  1445.  
  1446. if (toolAnim == "Slash") then
  1447. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  1448. return
  1449. end
  1450.  
  1451. if (toolAnim == "Lunge") then
  1452. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  1453. return
  1454. end
  1455. end
  1456.  
  1457. function moveSit()
  1458. RightShoulder.MaxVelocity = 0.15
  1459. LeftShoulder.MaxVelocity = 0.15
  1460. RightShoulder:SetDesiredAngle(3.14 /2)
  1461. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1462. RightHip:SetDesiredAngle(3.14 /2)
  1463. LeftHip:SetDesiredAngle(-3.14 /2)
  1464. end
  1465.  
  1466. local lastTick = 0
  1467.  
  1468. function move(time)
  1469. local amplitude = 1
  1470. local frequency = 1
  1471. local deltaTime = time - lastTick
  1472. lastTick = time
  1473.  
  1474. local climbFudge = 0
  1475. local setAngles = false
  1476.  
  1477. if (jumpAnimTime > 0) then
  1478. jumpAnimTime = jumpAnimTime - deltaTime
  1479. end
  1480.  
  1481. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1482. playAnimation("fall", fallTransitionTime, Humanoid)
  1483. elseif (pose == "Seated") then
  1484. playAnimation("sit", 0.5, Humanoid)
  1485. return
  1486. elseif (pose == "Running") then
  1487. playAnimation("walk", 0.1, Humanoid)
  1488. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1489. -- print("Wha " .. pose)
  1490. stopAllAnimations()
  1491. amplitude = 0.1
  1492. frequency = 1
  1493. setAngles = true
  1494. end
  1495.  
  1496. if (setAngles) then
  1497. local desiredAngle = amplitude * math.sin(time * frequency)
  1498.  
  1499. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1500. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1501. RightHip:SetDesiredAngle(-desiredAngle)
  1502. LeftHip:SetDesiredAngle(-desiredAngle)
  1503. end
  1504.  
  1505. -- Tool Animation handling
  1506. local tool = getTool()
  1507. if tool and tool:FindFirstChild("Handle") then
  1508.  
  1509. local animStringValueObject = getToolAnim(tool)
  1510.  
  1511. if animStringValueObject then
  1512. toolAnim = animStringValueObject.Value
  1513. -- message recieved, delete StringValue
  1514. animStringValueObject.Parent = nil
  1515. toolAnimTime = time + .3
  1516. end
  1517.  
  1518. if time > toolAnimTime then
  1519. toolAnimTime = 0
  1520. toolAnim = "None"
  1521. end
  1522.  
  1523. animateTool()
  1524. else
  1525. stopToolAnimations()
  1526. toolAnim = "None"
  1527. toolAnimInstance = nil
  1528. toolAnimTime = 0
  1529. end
  1530. end
  1531.  
  1532. -- connect events
  1533. Humanoid.Died:connect(onDied)
  1534. Humanoid.Running:connect(onRunning)
  1535. Humanoid.Jumping:connect(onJumping)
  1536. Humanoid.Climbing:connect(onClimbing)
  1537. Humanoid.GettingUp:connect(onGettingUp)
  1538. Humanoid.FreeFalling:connect(onFreeFall)
  1539. Humanoid.FallingDown:connect(onFallingDown)
  1540. Humanoid.Seated:connect(onSeated)
  1541. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1542. Humanoid.Swimming:connect(onSwimming)
  1543. playAnimation("idle", 0.1, Humanoid)
  1544. pose = "Standing"
  1545. while Figure.Parent ~= nil do
  1546. local _, time = wait(0.1)
  1547. move(time)
  1548. end
  1549. end))
  1550. StringValue54.Name = "climb"
  1551. StringValue54.Parent = Script53
  1552. Animation55.Name = "ClimbAnim"
  1553. Animation55.Parent = StringValue54
  1554. Animation55.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1555. StringValue56.Name = "fall"
  1556. StringValue56.Parent = Script53
  1557. Animation57.Name = "FallAnim"
  1558. Animation57.Parent = StringValue56
  1559. Animation57.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1560. StringValue58.Name = "idle"
  1561. StringValue58.Parent = Script53
  1562. Animation59.Name = "Animation1"
  1563. Animation59.Parent = StringValue58
  1564. Animation59.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1565. NumberValue60.Name = "Weight"
  1566. NumberValue60.Parent = Animation59
  1567. NumberValue60.Value = 9
  1568. Animation61.Name = "Animation2"
  1569. Animation61.Parent = StringValue58
  1570. Animation61.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  1571. NumberValue62.Name = "Weight"
  1572. NumberValue62.Parent = Animation61
  1573. NumberValue62.Value = 1
  1574. StringValue63.Name = "jump"
  1575. StringValue63.Parent = Script53
  1576. Animation64.Name = "JumpAnim"
  1577. Animation64.Parent = StringValue63
  1578. Animation64.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1579. StringValue65.Name = "run"
  1580. StringValue65.Parent = Script53
  1581. Animation66.Name = "RunAnim"
  1582. Animation66.Parent = StringValue65
  1583. Animation66.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1584. StringValue67.Name = "sit"
  1585. StringValue67.Parent = Script53
  1586. Animation68.Name = "SitAnim"
  1587. Animation68.Parent = StringValue67
  1588. Animation68.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1589. StringValue69.Name = "toolnone"
  1590. StringValue69.Parent = Script53
  1591. Animation70.Name = "ToolNoneAnim"
  1592. Animation70.Parent = StringValue69
  1593. Animation70.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1594. StringValue71.Name = "walk"
  1595. StringValue71.Parent = Script53
  1596. Animation72.Name = "WalkAnim"
  1597. Animation72.Parent = StringValue71
  1598. Animation72.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1599. Script73.Name = "HealthNew"
  1600. Script73.Parent = Model0
  1601. table.insert(cors,sandbox(Script73,function()
  1602. --[[ By: Brutez. ]]--
  1603. local LainaHealthScript=script;
  1604. local Laina=LainaHealthScript.Parent;
  1605. local LainaHumanoid;
  1606. for _,Child in pairs(Laina:GetChildren())do
  1607. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  1608. LainaHumanoid=Child;
  1609. end;
  1610. end;
  1611. local Regenerating=false;
  1612. function UpdateHealth()
  1613. if not Regenerating then
  1614. Regenerating=true;
  1615. Spawn(function()
  1616. while LainaHumanoid.Health<LainaHumanoid.MaxHealth do
  1617. local StoredHealth=LainaHumanoid.Health;
  1618. if StoredHealth>0 and StoredHealth<LainaHumanoid.MaxHealth then
  1619. local AdditionalHealth=0.01*LainaHumanoid.MaxHealth;
  1620. StoredHealth=StoredHealth+AdditionalHealth;
  1621. LainaHumanoid.Health=math.min(StoredHealth,LainaHumanoid.MaxHealth);
  1622. end;
  1623. Wait(0.3);
  1624. end;
  1625. if LainaHumanoid.Health>LainaHumanoid.MaxHealth then
  1626. LainaHumanoid.Health=LainaHumanoid.MaxHealth;
  1627. end;
  1628. Regenerating=false;
  1629. end);
  1630. end;
  1631. end;
  1632. LainaHumanoid.HealthChanged:connect(UpdateHealth);
  1633. --[[ By: Brutez. ]]--
  1634. end))
  1635. Hat74.Name = "DevilHorn"
  1636. Hat74.Parent = Model0
  1637. Hat74.AttachmentPoint = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1638. Hat74.AttachmentPos = Vector3.new(0, -0.25, 0)
  1639. Part75.Name = "Handle"
  1640. Part75.Parent = Hat74
  1641. 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)
  1642. Part75.Orientation = Vector3.new(-1.73000002, 18.5400009, 0)
  1643. Part75.Position = Vector3.new(-56.9093246, 5.25252914, -6.09735346)
  1644. Part75.Rotation = Vector3.new(-1.82000005, 18.5300007, 0.579999983)
  1645. Part75.Velocity = Vector3.new(-5.92476797, 0, -19.1030769)
  1646. Part75.Size = Vector3.new(1, 0.5, 1)
  1647. Part75.BottomSurface = Enum.SurfaceType.Smooth
  1648. Part75.CanCollide = false
  1649. Part75.TopSurface = Enum.SurfaceType.Smooth
  1650. Part75.FormFactor = Enum.FormFactor.Symmetric
  1651. Part75.formFactor = Enum.FormFactor.Symmetric
  1652. SpecialMesh76.Parent = Part75
  1653. SpecialMesh76.MeshId = "http://www.roblox.com/asset/?id=15934744"
  1654. SpecialMesh76.Scale = Vector3.new(1.70000005, 1.79999995, 1.79999995)
  1655. SpecialMesh76.TextureId = "http://www.roblox.com/asset/?id=15934762"
  1656. SpecialMesh76.MeshType = Enum.MeshType.FileMesh
  1657. for i,v in pairs(mas:GetChildren()) do
  1658. v.Parent = script
  1659. pcall(function() v:MakeJoints() end)
  1660. end
  1661. mas:Destroy()
  1662. for i,v in pairs(cors) do
  1663. spawn(function()
  1664. pcall(v)
  1665. end)
  1666. end
Advertisement
Add Comment
Please, Sign In to add comment