sawgamer1

Untitled

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