Advertisement
metilol

Untitled

Apr 28th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --hi
  2.  
  3. local player = game.Players.LocalPlayer -- Addressing the Player
  4. local char = player.Character --Addressing the player character
  5. local message = "..." -- What you want to active the transformation
  6.  
  7. player.Chatted:Connect(function(msg)
  8.     if msg == message then
  9.       for i,v in pairs(workspace:GetChildren()) do
  10. if v.ClassName == "Sound" then
  11. v:remove()
  12. end
  13. end
  14. local lighting = game:GetService("Lighting")
  15. lighting.FogEnd = 15
  16. lighting.FogColor = Color3.new(0, 0, 0)
  17. lighting.TimeOfDay = 0
  18. local sound = Instance.new("Sound", workspace)
  19. sound.SoundId = "rbxassetid://339217792"
  20. sound.Looped = true
  21. sound:Play()
  22. end
  23. end)
  24.  
  25. wait(0)
  26. local Dummy = game.Workspace:FindFirstChild("Meti2000")
  27. if Dummy == nil then
  28.     error("U cant be s4n1c m8")
  29.     return
  30. end
  31. wait(0)
  32. for i,v in pairs(Dummy:GetChildren()) do
  33.     if v.ClassName == "Part" then
  34.         v.Transparency = 10
  35.     end
  36. end
  37. local Humanoid = Dummy:FindFirstChild("Humanoid")
  38. local Head = Dummy:FindFirstChild("Head")
  39. local ishead = true
  40. if Humanoid == nil then error("404: S4n1c not found") return end
  41. if Head == nil then ishead = false end
  42. if ishead == true then
  43.     if Head:FindFirstChild("face") then
  44.         Head:FindFirstChild("face"):Destroy()
  45.     end
  46. end
  47. Humanoid.MaxHealth = math.huge
  48. Humanoid.Health = math.huge
  49. Humanoid.WalkSpeed = 70
  50. Humanoid.Name = "Zombie"
  51. local Billboard = Instance.new("BillboardGui", Dummy)
  52. Billboard.Adornee = Dummy.Torso
  53. Billboard.Size = UDim2.new(7.5, 0, 7.5, 0)
  54. local SanicImg = Instance.new("ImageLabel", Billboard)
  55. SanicImg.Size = UDim2.new(1, 0, 1, 0)
  56. SanicImg.BackgroundTransparency = 10
  57. SanicImg.Image = "http://www.roblox.com/asset/?id=190812414"
  58. local Music = Instance.new("Sound", Dummy.Head)
  59. Music.SoundId = "http://www.roblox.com/asset/?id=143545724"
  60. Music.Looped = true
  61. Music.Volume = 1
  62. Music:Play()
  63. function onTouchedDeath(part)
  64.     if part.Parent ~= nil then
  65.         local h = part.Parent:findFirstChild("Humanoid")
  66.         if h ~= nil then
  67.             local has_health = h.Health > 0
  68.             h:TakeDamage(h.MaxHealth + 10)
  69.             h.Parent:Remove()
  70.         end
  71.     end
  72. end
  73. Dummy["Left Arm"].Touched:connect(onTouchedDeath)
  74. Dummy["Right Arm"].Touched:connect(onTouchedDeath)
  75. Dummy["Torso"].Touched:connect(onTouchedDeath)
  76. Dummy["Head"].Touched:connect(onTouchedDeath)
  77. local larm = script.Parent:FindFirstChild("Left Arm")
  78. local rarm = script.Parent:FindFirstChild("Right Arm")
  79. local torso = script.Parent:FindFirstChild("Torso")
  80. local neck = script.Parent:FindFirstChild("Head")
  81. function findNearestTorso(pos)
  82.     local list = game.Workspace:children()
  83.     local torso = nil
  84.     local dist = 1000000000000000000000000000000000
  85.     local temp = nil
  86.     local human = nil
  87.     local temp2 = nil
  88.     for x = 1, #list do
  89.         temp2 = list[x]
  90.         if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  91.             temp = temp2:findFirstChild("Right Arm")
  92.             human = temp2:findFirstChild("Humanoid")
  93.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  94.                 if (temp.Position - pos).magnitude < dist then
  95.                     torso = temp
  96.                     dist = (temp.Position - pos).magnitude
  97.                 end
  98.             end
  99.         end
  100.     end
  101.     return torso
  102. end
  103. while true do
  104.     wait(0.3)
  105.     local target = findNearestTorso(Dummy["Torso"].Position)
  106.     if target ~= nil then
  107.         Humanoid:MoveTo(target.Position, target)
  108.     end
  109. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement