Advertisement
lafur

Untitled

Oct 21st, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.51 KB | None | 0 0
  1. --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
  2. --What's Added To M2S with Dittoide's Edit?
  3. --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
  4. --/ Removed Gui In Bottom-Left for when you are making guis.
  5. --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
  6. --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
  7. --Errors: Camera,Terrain
  8. local runDummyScript = function(f,scri)
  9. if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
  10. local Dummy_CoRoutine = coroutine.create(function()
  11. getfenv().script = scri
  12. ypcall(function() f() end)
  13. end)
  14. table.insert(cors,Dummy_CoRoutine);
  15. coroutine.resume(Dummy_CoRoutine);
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. mas.Name = "M2S_Model"
  20. o3 = Instance.new("Model")
  21. o4 = Instance.new("Part")
  22. o5 = Instance.new("BodyPosition")
  23. o6 = Instance.new("SpecialMesh")
  24. o7 = Instance.new("Script")
  25. o8 = Instance.new("Part")
  26. o9 = Instance.new("NumberValue")
  27. o10 = Instance.new("Script")
  28. o11 = Instance.new("BodyGyro")
  29. o12 = Instance.new("BodyPosition")
  30. o13 = Instance.new("Sound")
  31. o14 = Instance.new("Script")
  32. o15 = Instance.new("Part")
  33. o16 = Instance.new("Script")
  34. o17 = Instance.new("ScreenGui")
  35. o18 = Instance.new("Frame")
  36. o19 = Instance.new("ImageLabel")
  37. o20 = Instance.new("Sound")
  38. o21 = Instance.new("Part")
  39. o22 = Instance.new("Script")
  40. o23 = Instance.new("ScreenGui")
  41. o24 = Instance.new("Frame")
  42. o25 = Instance.new("ImageLabel")
  43. o26 = Instance.new("Sound")
  44. o27 = Instance.new("ParticleEmitter")
  45. o28 = Instance.new("Script")
  46. o29 = Instance.new("Seat")
  47. o30 = Instance.new("Script")
  48. o31 = Instance.new("Part")
  49. o32 = Instance.new("SpecialMesh")
  50. o3.Name = "JAWS"
  51. o3.Parent = mas
  52. o4.Name = "Body"
  53. o4.Parent = o3
  54. o4.BrickColor = BrickColor.new("Fossil")
  55. o4.Position = Vector3.new(-139.86145, 170.86795, -137.776306)
  56. o4.Rotation = Vector3.new(179.979996, 0.119999997, -180)
  57. o4.Size = Vector3.new(4.03216934, 5.99065161, 18.8935909)
  58. o4.CFrame = CFrame.new(-139.86145, 170.86795, -137.776306, -0.999997973, 6.66223684e-07, 0.00202500005, 0, 1, -0.000328999333, -0.00202500005, -0.000328998663, -0.999997973)
  59. o4.TopSurface = Enum.SurfaceType.Smooth
  60. o4.Color = Color3.new(0.623529, 0.631373, 0.67451)
  61. o4.Position = Vector3.new(-139.86145, 170.86795, -137.776306)
  62. o5.Parent = o4
  63. o5.Position = Vector3.new(0, 100, 0)
  64. o5.position = Vector3.new(0, 100, 0)
  65. o5.Position = Vector3.new(0, 100, 0)
  66. o6.Parent = o4
  67. o6.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  68. o6.MeshType = Enum.MeshType.FileMesh
  69. o7.Parent = o6
  70.  
  71. runDummyScript(function()
  72. while true do
  73. script.Parent.MeshId="http://www.roblox.com/asset/?id=82821384"
  74. wait(0.08)
  75. script.Parent.MeshId="http://www.roblox.com/asset/?id=82843647"
  76. wait(0.08)
  77. script.Parent.MeshId="http://www.roblox.com/asset/?id=82821384"
  78. wait(0.08)
  79. script.Parent.MeshId="http://www.roblox.com/asset/?id=82843712"
  80. wait(0.08)
  81. end
  82. end,o7)
  83.  
  84. o8.Name = "Head"
  85. o8.Parent = o3
  86. o8.BrickColor = BrickColor.new("Fossil")
  87. o8.Transparency = 1
  88. o8.Position = Vector3.new(-139.846222, 167.57753, -145.041489)
  89. o8.Rotation = Vector3.new(-0.0199999996, 0, 0)
  90. o8.FormFactor = Enum.FormFactor.Symmetric
  91. o8.Size = Vector3.new(0.576024234, 0.576024234, 0.731553137)
  92. o8.CFrame = CFrame.new(-139.846222, 167.57753, -145.041489, 1, -9.46767796e-06, 6.4358268e-05, 9.44786188e-06, 1.00000834, 0.000308936025, -6.43611056e-05, -0.000308935647, 1.00000834)
  93. o8.BottomSurface = Enum.SurfaceType.Smooth
  94. o8.TopSurface = Enum.SurfaceType.Smooth
  95. o8.Color = Color3.new(0.623529, 0.631373, 0.67451)
  96. o8.Position = Vector3.new(-139.846222, 167.57753, -145.041489)
  97. o9.Name = "Speed"
  98. o9.Parent = o8
  99. o9.Value = 10
  100. o10.Parent = o8
  101.  
  102. runDummyScript(function()
  103. bin = script.Parent
  104.  
  105. function move(target)
  106. local dir = (target.Position - bin.Position).unit
  107. local spawnPos = bin.Position
  108. local pos = spawnPos + (dir * 1)
  109. bin:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir)
  110. bin:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000,9000,9000)
  111. end
  112.  
  113. function moveTo(target)
  114. bin.BodyPosition.position = target.Position
  115. bin.BodyPosition.maxForce = Vector3.new(10000,10000,10000) * bin.Speed.Value
  116. end
  117.  
  118. function findNearestTorso(pos)
  119. local list = game.Workspace:GetChildren()
  120. local torso = nil
  121. local dist = 1000000
  122. local temp = nil
  123. local human = nil
  124. local temp2 = nil
  125. for x = 1, #list do
  126. temp2 = list[x]
  127. if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  128. temp = temp2:findFirstChild("Torso")
  129. human = temp2:findFirstChild("Humanoid")
  130. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  131. if (temp.Position - pos).magnitude < dist then
  132. torso = temp
  133. dist = (temp.Position - pos).magnitude
  134. end
  135. end
  136. end
  137. end
  138. return torso
  139. end
  140.  
  141. function shoot(pos)
  142. dir = (pos - bin.CFrame.p).unit
  143. for i = 1, 50 do
  144. local ex = Instance.new("Explosion")
  145. ex.BlastRadius = 1
  146. ex.Position = bin.Position + (dir * 10 * i) + (dir * 7)
  147. ex.Parent = game.Workspace
  148. end
  149. end
  150.  
  151. function shootAt(torso)
  152. local dir = (torso.Position - bin.Position).unit
  153. local spawnPos = bin.Position
  154. local pos = spawnPos + (dir * 1)
  155. shoot(pos)
  156. end
  157.  
  158. while true do
  159. local torso = findNearestTorso(bin.Position)
  160. if torso~=nil then
  161. move(torso)
  162. moveTo(torso)
  163. end
  164. wait()
  165. end
  166.  
  167. end,o10)
  168.  
  169. o11.Parent = o8
  170. o11.CFrame = CFrame.new(45.0327187, 0.927936018, -9.25215626, 0.252255172, 0.0270326007, 0.96728307, -0, 0.999609649, -0.027936032, -0.967660725, 0.00704700872, 0.252156705)
  171. o11.maxTorque = Vector3.new(9000, 9000, 9000)
  172. o11.MaxTorque = Vector3.new(9000, 9000, 9000)
  173. o12.Parent = o8
  174. o12.Position = Vector3.new(-37.0716858, 3.2991848, -30.6555519)
  175. o12.position = Vector3.new(-37.0716858, 3.2991848, -30.6555519)
  176. o12.Position = Vector3.new(-37.0716858, 3.2991848, -30.6555519)
  177. o13.Parent = o8
  178. o13.SoundId = "rbxassetid://146441566"
  179. o13.Volume = 1
  180. o13.Looped = true
  181. o14.Name = "qPerfectionWeld"
  182. o14.Parent = o3
  183.  
  184. runDummyScript(function()
  185. -- Created by Quenty (@Quenty, follow me on twitter).
  186. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  187. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  188.  
  189. --[[ INSTRUCTIONS
  190. - Place in the model
  191. - Make sure model is anchored
  192. - That's it. It will weld the model and all children.
  193.  
  194. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  195. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  196. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  197. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  198. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  199. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  200. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  201. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  202.  
  203. This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
  204. ]]
  205.  
  206. --[[ DOCUMENTATION
  207. - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
  208. - Will work in PBS servers
  209. - Will work as long as it starts out with the part anchored
  210. - Stores the relative CFrame as a CFrame value
  211. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  212. - Utilizes a recursive algorith to find all parts in the model
  213. - Will reweld on script reparent if the script is initially parented to a tool.
  214. - Welds as fast as possible
  215. ]]
  216.  
  217. -- qPerfectionWeld.lua
  218. -- Created 10/6/2014
  219. -- Author: Quenty
  220. -- Version 1.0.3
  221.  
  222. -- Updated 10/14/2014 - Updated to 1.0.1
  223. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  224.  
  225. -- Updated 10/14/2014 - Updated to 1.0.2
  226. --- Fixed bug fix.
  227.  
  228. -- Updated 10/14/2014 - Updated to 1.0.3
  229. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  230.  
  231. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  232.  
  233.  
  234. local function CallOnChildren(Instance, FunctionToCall)
  235. -- Calls a function on each of the children of a certain object, using recursion.
  236.  
  237. FunctionToCall(Instance)
  238.  
  239. for _, Child in next, Instance:GetChildren() do
  240. CallOnChildren(Child, FunctionToCall)
  241. end
  242. end
  243.  
  244. local function GetNearestParent(Instance, ClassName)
  245. -- Returns the nearest parent of a certain class, or returns nil
  246.  
  247. local Ancestor = Instance
  248. repeat
  249. Ancestor = Ancestor.Parent
  250. if Ancestor == nil then
  251. return nil
  252. end
  253. until Ancestor:IsA(ClassName)
  254.  
  255. return Ancestor
  256. end
  257.  
  258. local function GetBricks(StartInstance)
  259. local List = {}
  260.  
  261. -- if StartInstance:IsA("BasePart") then
  262. -- List[#List+1] = StartInstance
  263. -- end
  264.  
  265. CallOnChildren(StartInstance, function(Item)
  266. if Item:IsA("BasePart") then
  267. List[#List+1] = Item;
  268. end
  269. end)
  270.  
  271. return List
  272. end
  273.  
  274. local function Modify(Instance, Values)
  275. -- Modifies an Instance by using a table.
  276.  
  277. assert(type(Values) == "table", "Values is not a table");
  278.  
  279. for Index, Value in next, Values do
  280. if type(Index) == "number" then
  281. Value.Parent = Instance
  282. else
  283. Instance[Index] = Value
  284. end
  285. end
  286. return Instance
  287. end
  288.  
  289. local function Make(ClassType, Properties)
  290. -- Using a syntax hack to create a nice way to Make new items.
  291.  
  292. return Modify(Instance.new(ClassType), Properties)
  293. end
  294.  
  295. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  296. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  297.  
  298. local function HasWheelJoint(Part)
  299. for _, SurfaceName in pairs(Surfaces) do
  300. for _, HingSurfaceName in pairs(HingSurfaces) do
  301. if Part[SurfaceName].Name == HingSurfaceName then
  302. return true
  303. end
  304. end
  305. end
  306.  
  307. return false
  308. end
  309.  
  310. local function ShouldBreakJoints(Part)
  311. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  312. -- definitely some edge cases.
  313.  
  314. if NEVER_BREAK_JOINTS then
  315. return false
  316. end
  317.  
  318. if HasWheelJoint(Part) then
  319. return false
  320. end
  321.  
  322. local Connected = Part:GetConnectedParts()
  323.  
  324. if #Connected == 1 then
  325. return false
  326. end
  327.  
  328. for _, Item in pairs(Connected) do
  329. if HasWheelJoint(Item) then
  330. return false
  331. elseif not Item:IsDescendantOf(script.Parent) then
  332. return false
  333. end
  334. end
  335.  
  336. return true
  337. end
  338.  
  339. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  340. --- Weld's 2 parts together
  341. -- @param Part0 The first part
  342. -- @param Part1 The second part (Dependent part most of the time).
  343. -- @param [JointType] The type of joint. Defaults to weld.
  344. -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  345. -- @return The weld created.
  346.  
  347. JointType = JointType or "Weld"
  348. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  349.  
  350. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  351. Modify(NewWeld, {
  352. Name = "qCFrameWeldThingy";
  353. Part0 = Part0;
  354. Part1 = Part1;
  355. C0 = CFrame.new();--Part0.CFrame:inverse();
  356. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  357. Parent = Part1;
  358. })
  359.  
  360. if not RelativeValue then
  361. RelativeValue = Make("CFrameValue", {
  362. Parent = Part1;
  363. Name = "qRelativeCFrameWeldValue";
  364. Archivable = true;
  365. Value = NewWeld.C1;
  366. })
  367. end
  368.  
  369. return NewWeld
  370. end
  371.  
  372. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  373. -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  374. -- @param MainPart The part to weld the model to (can be in the model).
  375. -- @param [JointType] The type of joint. Defaults to weld.
  376. -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  377.  
  378. for _, Part in pairs(Parts) do
  379. if ShouldBreakJoints(Part) then
  380. Part:BreakJoints()
  381. end
  382. end
  383.  
  384. for _, Part in pairs(Parts) do
  385. if Part ~= MainPart then
  386. WeldTogether(MainPart, Part, JointType, MainPart)
  387. end
  388. end
  389.  
  390. if not DoNotUnanchor then
  391. for _, Part in pairs(Parts) do
  392. Part.Anchored = false
  393. end
  394. MainPart.Anchored = false
  395. end
  396. end
  397.  
  398. local function PerfectionWeld()
  399. local Tool = GetNearestParent(script, "Tool")
  400.  
  401. local Parts = GetBricks(script.Parent)
  402. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  403.  
  404. if PrimaryPart then
  405. WeldParts(Parts, PrimaryPart, "Weld", false)
  406. else
  407. warn("qWeld - Unable to weld part")
  408. end
  409.  
  410. return Tool
  411. end
  412.  
  413. local Tool = PerfectionWeld()
  414.  
  415.  
  416. if Tool and script.ClassName == "Script" then
  417. --- Don't bother with local scripts
  418.  
  419. script.Parent.AncestryChanged:connect(function()
  420. PerfectionWeld()
  421. end)
  422. end
  423.  
  424. -- Created by Quenty (@Quenty, follow me on twitter).
  425.  
  426. end,o14)
  427.  
  428. o15.Name = "Scary Popup"
  429. o15.Parent = o3
  430. o15.BrickColor = BrickColor.new("Fossil")
  431. o15.Transparency = 1
  432. o15.Position = Vector3.new(-139.846832, 166.425446, -161.201019)
  433. o15.Rotation = Vector3.new(-0.0199999996, 90, 0)
  434. o15.CanCollide = false
  435. o15.FormFactor = Enum.FormFactor.Custom
  436. o15.Size = Vector3.new(2.63596487, 2.99982858, 4.61085176)
  437. o15.CFrame = CFrame.new(-139.846832, 166.425446, -161.201019, -7.40245741e-05, -8.28683369e-06, 1, -0.000295343169, 1.00000834, 8.26502765e-06, -1.00000834, -0.000295342732, -7.40270261e-05)
  438. o15.Color = Color3.new(0.623529, 0.631373, 0.67451)
  439. o15.Position = Vector3.new(-139.846832, 166.425446, -161.201019)
  440. o16.Name = "ScaryScript"
  441. o16.Parent = o15
  442.  
  443. runDummyScript(function()
  444. Sound = script.Parent.Scream
  445. Popup = script.Parent.Popup
  446. Ready = true
  447. function onTouch(hit)
  448. local h = hit.Parent:FindFirstChild("Humanoid")
  449. if h ~= nil and Ready == true then
  450. Ready = false
  451. local plyr = game.Players:FindFirstChild(h.Parent.Name)
  452. local c = Popup:clone()
  453. c.Parent = plyr.PlayerGui
  454. script.Parent.Scream:play()
  455. wait(7)
  456. c:remove()
  457. wait(1)
  458. Ready = true
  459. end
  460. end
  461.  
  462. script.Parent.Touched:connect(onTouch)
  463.  
  464. end,o16)
  465.  
  466. o17.Name = "Popup"
  467. o17.Parent = o15
  468. o18.Name = "BackGround"
  469. o18.Parent = o17
  470. o18.Size = UDim2.new(1,1,1,1)
  471. o18.BackgroundColor3 = Color3.new(0.109804, 0.109804, 0.109804)
  472. o18.BackgroundTransparency = 1
  473. o19.Name = "Image"
  474. o19.Parent = o18
  475. o19.Size = UDim2.new(1,1,1,1)
  476. o19.BackgroundColor3 = Color3.new(0, 0, 0)
  477. o19.BackgroundTransparency = 1
  478. o19.ImageTransparency = 1
  479. o20.Name = "Scream"
  480. o20.Parent = o15
  481. o20.Pitch = 1.1000000238419
  482. o20.SoundId = "rbxassetid://562096943"
  483. o20.Volume = 10
  484. o21.Name = "Scary Popup"
  485. o21.Parent = o3
  486. o21.BrickColor = BrickColor.new("Fossil")
  487. o21.Transparency = 1
  488. o21.Position = Vector3.new(-139.846863, 166.272171, -161.494873)
  489. o21.Rotation = Vector3.new(-0.0199999996, 90, 0)
  490. o21.CanCollide = false
  491. o21.FormFactor = Enum.FormFactor.Custom
  492. o21.Size = Vector3.new(3.58035755, 2.33319998, 4.61085176)
  493. o21.CFrame = CFrame.new(-139.846863, 166.272171, -161.494873, -7.40245741e-05, -8.28683369e-06, 1, -0.000295343169, 1.00000834, 8.26502765e-06, -1.00000834, -0.000295342732, -7.40270261e-05)
  494. o21.Color = Color3.new(0.623529, 0.631373, 0.67451)
  495. o21.Position = Vector3.new(-139.846863, 166.272171, -161.494873)
  496. o22.Name = "ScaryScript"
  497. o22.Parent = o21
  498.  
  499. runDummyScript(function()
  500. Sound = script.Parent.Scream
  501. Popup = script.Parent.Popup
  502. Ready = true
  503. function onTouch(hit)
  504. local h = hit.Parent:FindFirstChild("Humanoid")
  505. if h ~= nil and Ready == true then
  506. Ready = false
  507. local plyr = game.Players:FindFirstChild(h.Parent.Name)
  508. local c = Popup:clone()
  509. c.Parent = plyr.PlayerGui
  510. script.Parent.Scream:play()
  511. wait(0.5)
  512. c:remove()
  513. wait(1)
  514. Ready = true
  515. end
  516. end
  517.  
  518. script.Parent.Touched:connect(onTouch)
  519.  
  520. end,o22)
  521.  
  522. o23.Name = "Popup"
  523. o23.Parent = o21
  524. o24.Name = "BackGround"
  525. o24.Parent = o23
  526. o24.Size = UDim2.new(1,1,1,1)
  527. o24.BackgroundColor3 = Color3.new(0.109804, 0.109804, 0.109804)
  528. o24.BackgroundTransparency = 1
  529. o25.Name = "Image"
  530. o25.Parent = o24
  531. o25.Size = UDim2.new(1,1,1,1)
  532. o25.BackgroundColor3 = Color3.new(0, 0, 0)
  533. o25.BackgroundTransparency = 1
  534. o25.Image = "rbxassetid://120086629"
  535. o25.ImageColor3 = Color3.new(0.352941, 0.352941, 0.352941)
  536. o25.ImageTransparency = 0.30000001192093
  537. o26.Name = "Scream"
  538. o26.Parent = o21
  539. o26.SoundId = "rbxassetid://264486467"
  540. o26.TimePosition = 0.2
  541. o26.Volume = 10
  542. o27.Parent = o21
  543. o27.Transparency = NumberSequence.new(0,1)
  544. o27.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.666667, 0, 0))
  545. o27.Enabled = false
  546. o27.Texture = "rbxassetid://251300537"
  547. o27.Acceleration = Vector3.new(0, -5, -5)
  548. o27.Lifetime = NumberRange.new(0.5,0.75)
  549. o27.Rate = 61
  550. o27.RotSpeed = NumberRange.new(260,260)
  551. o27.Speed = NumberRange.new(3,3)
  552. o27.VelocitySpread = 20
  553. o28.Parent = o21
  554.  
  555. runDummyScript(function()
  556. S = script.Parent.ParticleEmitter
  557.  
  558.  
  559. function onTouch(part)
  560. local humanoid = part.Parent:FindFirstChild("Humanoid")
  561. if (humanoid ~= nil) and humanoid.Health > 0 then
  562. wait(.1)
  563. S.Enabled = true
  564. wait(10)
  565. S.Enabled = false
  566. wait(.1) end
  567. end
  568.  
  569. script.Parent.Touched:connect(onTouch)
  570.  
  571. end,o28)
  572.  
  573. o29.Parent = o3
  574. o29.BrickColor = BrickColor.new("Fossil")
  575. o29.Transparency = 1
  576. o29.Position = Vector3.new(-139.917969, 165.697037, -160.040207)
  577. o29.Rotation = Vector3.new(89.9799957, 0.560000002, 180)
  578. o29.Shape = Enum.PartType.Ball
  579. o29.Size = Vector3.new(3.73430991, 3.73430991, 3.73430991)
  580. o29.CFrame = CFrame.new(-139.917969, 165.697037, -160.040207, -0.999952734, -3.19785868e-05, 0.00972000975, -0.00971999858, -0.000310999807, -0.999952734, 3.49999937e-05, -1, 0.000310674252)
  581. o29.Color = Color3.new(0.623529, 0.631373, 0.67451)
  582. o29.Position = Vector3.new(-139.917969, 165.697037, -160.040207)
  583. o30.Parent = o29
  584.  
  585. runDummyScript(function()
  586. function onTouched(part)
  587. local h = part.Parent:findFirstChild("Humanoid")
  588. if h~=nil then
  589. h.Health = h.Health -1
  590. wait(1)
  591. h.Health = h.Health -5
  592. wait(1)
  593. h.Health = h.Health -1
  594. wait(1)
  595. h.Health = h.Health -2
  596. wait(1)
  597. h.Health = h.Health -1
  598. wait(1)
  599. h.Health = h.Health -8
  600. wait(1)
  601. h.Health = h.Health -1
  602. wait(1)
  603. h.Health = h.Health -1
  604. wait(1)
  605. h.Health = h.Health -20
  606. wait(1)
  607. h.Health = h.Health -1
  608. wait(1)
  609. h.Health = h.Health -8
  610. wait(1)
  611. h.Health = h.Health -1
  612. wait(1)
  613. h.Health = h.Health -10
  614. wait(1)
  615. h.Health = h.Health -1
  616. wait(1)
  617. h.Health = h.Health -1
  618. wait(1)
  619. h.Health = h.Health -5
  620. wait(1)
  621. h.Health = h.Health -20
  622. wait(1)
  623. h.Health = h.Health -1
  624. wait(1)
  625. h.Health = h.Health -1
  626. wait(1)
  627. h.Health = h.Health -80
  628. wait(1)
  629. h.Health = h.Health -1
  630. wait(1)
  631. h.Health = h.Health -1
  632. wait(1)
  633. h.Health = h.Health -1
  634. wait(1)
  635. h.Health = h.Health -5
  636. wait(1)
  637. h.Health = h.Health -1
  638. wait(1)
  639. h.Health = h.Health -1
  640. wait(1)
  641. h.Health = h.Health -20
  642. wait(1)
  643. h.Health = h.Health -8
  644. wait(1)
  645. h.Health = h.Health -1
  646. wait(1)
  647. h.Health = h.Health -1
  648. wait(1)
  649. h.Health = h.Health -100
  650. wait(1)
  651. h.Health = h.Health -8
  652. wait(1)
  653. h.Health = h.Health -1
  654. wait(1)
  655. h.Health = h.Health -1
  656. wait(1)
  657. h.Health = h.Health -1
  658. wait(1)
  659. h.Health = h.Health -1
  660. wait(1)
  661. h.Health = h.Health -1
  662. wait(2)
  663. h.Health = h.Health -1
  664. wait(2)
  665. h.Health = h.Health -2
  666. wait(2)
  667. h.Health = h.Health -5
  668. wait(2)
  669. h.Health = h.Health -1
  670. wait(2)
  671. h.Health = h.Health -1
  672. wait(2)
  673. h.Health = h.Health -1
  674. wait(2)
  675. h.Health = h.Health -1
  676. wait(2)
  677. h.Health = h.Health -1
  678. wait(2)
  679. h.Health = h.Health -1
  680. wait(2)
  681. h.Health = h.Health -1
  682. wait(2)
  683. h.Health = h.Health -10000000
  684. wait(2)
  685. h.Health = h.Health -1
  686. wait(2)
  687. h.Health = h.Health -1
  688. wait(2)
  689. h.Health = h.Health -1
  690. wait(2)
  691. h.Health = h.Health -1
  692. wait(2)
  693. h.Health = h.Health -1
  694. wait(2)
  695. h.Health = h.Health -1
  696. wait(2)
  697. h.Health = h.Health -1
  698. wait(2)
  699. h.Health = h.Health -1
  700. wait(2)
  701. h.Health = h.Health -1
  702. wait(2)
  703. h.Health = h.Health -1
  704. wait(2)
  705. h.Health = h.Health -1
  706. wait(2)
  707. h.Health = h.Health -1
  708. wait(2)
  709. h.Health = h.Health -1
  710. wait(2)
  711. h.Health = h.Health -1
  712. wait(2)
  713. h.Health = h.Health -1
  714. wait(2)
  715. h.Health = h.Health -1
  716. wait(2)
  717. h.Health = h.Health -1
  718. wait(2)
  719. h.Health = h.Health -1
  720. wait(2)
  721. h.Health = h.Health -1
  722. wait(2)
  723. h.Health = h.Health -1
  724. wait(2)
  725. h.Health = h.Health -1
  726. wait(2)
  727. h.Health = h.Health -1
  728. wait(2)
  729. h.Health = h.Health -1
  730. wait(2)
  731. h.Health = h.Health -1
  732. wait(2)
  733. h.Health = h.Health -1
  734. wait(2)
  735. h.Health = h.Health -1
  736. wait(2)
  737. h.Health = h.Health -1
  738. wait(2)
  739. h.Health = h.Health -1
  740. wait(2)
  741. h.Health = h.Health -1
  742. wait(2)
  743. h.Health = h.Health -1
  744. wait(2)
  745. h.Health = h.Health -1
  746. wait(2)
  747. h.Health = h.Health -1
  748. wait(2)
  749. h.Health = h.Health -1
  750. wait(2)
  751. h.Health = h.Health -1
  752. wait(2)
  753. h.Health = h.Health -1
  754. wait(2)
  755. h.Health = h.Health -1
  756. wait(2)
  757. h.Health = h.Health -1
  758. wait(2)
  759. h.Health = h.Health -1
  760. wait(2)
  761. h.Health = h.Health -1
  762. wait(2)
  763. h.Health = h.Health -1
  764. wait(2)
  765. h.Health = h.Health -1
  766. wait(2)
  767. h.Health = h.Health -1
  768. wait(2)
  769. h.Health = h.Health -1
  770. wait(2)
  771. h.Health = h.Health -1
  772. wait(2)
  773. h.Health = h.Health -1
  774. wait(2)
  775. h.Health = h.Health -1
  776. wait(2)
  777. h.Health = h.Health -1
  778. wait(2)
  779. h.Health = h.Health -1
  780. wait(2)
  781. h.Health = h.Health -1
  782. wait(2)
  783. h.Health = h.Health -1
  784. wait(2)
  785. h.Health = h.Health -1
  786. wait(2)
  787. h.Health = h.Health -1
  788. wait(2)
  789. h.Health = h.Health -1
  790. wait(2)
  791. h.Health = h.Health -1
  792. wait(2)
  793. h.Health = h.Health -1
  794. wait(2)
  795. h.Health = h.Health -1
  796. wait(2)
  797. h.Health = h.Health -1
  798. wait(2)
  799. h.Health = h.Health -1
  800. wait(2)
  801. h.Health = h.Health -1
  802. wait(2)
  803. h.Health = h.Health -1
  804. wait(2)
  805. h.Health = h.Health -1
  806. wait(2)
  807. h.Health = h.Health -1
  808. wait(1)
  809. h.Health = h.Health -1
  810. wait(1)
  811. h.Health = h.Health -1
  812. wait(1)
  813. h.Health = h.Health -1
  814. wait(1)
  815. h.Health = h.Health -1
  816. wait(1)
  817. h.Health = h.Health -1
  818. wait(1)
  819. h.Health = h.Health -10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  820. wait(0)
  821.  
  822. end
  823. end
  824.  
  825. script.Parent.Touched:connect(onTouched)
  826.  
  827. --Copy This into The Brick You Want The Humanoide loose Hit Points When it Hitts This!
  828. --Edited by Naith, TheLegendOfStian
  829.  
  830.  
  831. end,o30)
  832.  
  833. o31.Parent = o3
  834. o31.BrickColor = BrickColor.new("Pearl")
  835. o31.Position = Vector3.new(-139.863098, 168.023483, -143.074554)
  836. o31.Rotation = Vector3.new(179.979996, -0.769999981, 180)
  837. o31.FormFactor = Enum.FormFactor.Custom
  838. o31.Shape = Enum.PartType.Ball
  839. o31.Size = Vector3.new(1.99999881, 1.99999881, 1.99999881)
  840. o31.CFrame = CFrame.new(-139.863098, 168.023483, -143.074554, -0.999909997, -7.96172171e-05, -0.0134199793, -7.59999966e-05, 1, -0.000270049408, 0.0134199997, -0.000269005162, -0.999909997)
  841. o31.BottomSurface = Enum.SurfaceType.Smooth
  842. o31.TopSurface = Enum.SurfaceType.Smooth
  843. o31.Color = Color3.new(0.905882, 0.905882, 0.92549)
  844. o31.Position = Vector3.new(-139.863098, 168.023483, -143.074554)
  845. o32.Parent = o31
  846. o32.MeshId = "rbxassetid://430072846"
  847. o32.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  848. o32.TextureId = "rbxassetid://430072921"
  849. o32.MeshType = Enum.MeshType.FileMesh
  850. mas.Parent = workspace
  851. mas:MakeJoints()
  852. local mas1 = mas:GetChildren()
  853. for i=1,#mas1 do
  854. mas1[i].Parent = workspace
  855. ypcall(function() mas1[i]:MakeJoints() end)
  856. end
  857. mas:Destroy()
  858. for i=1,#cors do
  859. coroutine.resume(cors[i])
  860. end
  861. mess_handle.Text = "Resetting"
  862. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  863. v:LoadCharacter()
  864. end
  865. wait(1)
  866. mess_handle:Remove()
  867.  
  868. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  869. game:GetService("Lighting").Brightness = 1
  870. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  871. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  872. game:GetService("Lighting").GlobalShadows = true
  873. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
  874. game:GetService("Lighting").Outlines = false
  875. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  876. game:GetService("Lighting").TimeOfDay = "14:00:00"
  877. game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
  878. game:GetService("Lighting").FogEnd = 100000
  879. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement