Advertisement
Guest User

fdg

a guest
Apr 26th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  repeat wait() until game.Players.LocalPlayer
  2. local Mouse = game.Players.LocalPlayer:GetMouse()
  3. local Plr = game.Players.LocalPlayer
  4.  
  5. Mouse.KeyDown:connect(function(KeyDown)
  6. if KeyDown == "0" then
  7. Plr.Character.Humanoid.WalkSpeed = 190
  8. end
  9. end)
  10.  
  11. Mouse.KeyUp:connect(function(KeyUp)
  12. if KeyUp == "0" then
  13. Plr.Character.Humanoid.WalkSpeed = 16
  14. end
  15. end)
  16.  
  17. local player = game.Players.LocalPlayer -- Addressing the Player
  18. local char = player.Character --Addressing the player character
  19. local message = "..." -- What you want to active the transformation
  20.  
  21. player.Chatted:Connect(function(msg)
  22.     if msg == message then
  23.     local part = Instance.new("Part",workspace) --Making a part and parenting to the workspace
  24.     part.Material = Enum.Material.Neon --Material of the part. Note that if you do "Neon" it won't work due to invalid syntax
  25.     part.Position = char.Torso.Position
  26.     part.CanCollide = false --So It won't floop your roblox character
  27.     part.Anchored = true --So it won't follow on the floor
  28.     part.Shape = "Ball" --The Shape of the part which is going to grow
  29.     for i = 1,1000 do --How long to do the transformation
  30.     part.BrickColor = BrickColor.Random() ---Making it different colors to make it look nicer
  31.     part.Size = part.Size + Vector3.new(.5,.5,.5) --Grows by Vector3
  32.     part.Transparency = part.Transparency + .005
  33.     wait(.05)
  34.     end
  35.     local function superab()
  36.     char.Humanoid.WalkSpeed = 0
  37.     char.Humanoid.JumpPower = 0
  38.     end
  39. superab()
  40. end
  41. end)
  42.  
  43. wait(0)
  44. local Dummy = game.Workspace:FindFirstChild("IceTea_Bottle")
  45. if Dummy == nil then
  46.     error("U cant be s4n1c m8")
  47.     return
  48. end
  49. wait(0)
  50. for i,v in pairs(Dummy:GetChildren()) do
  51.     if v.ClassName == "Part" then
  52.         v.Transparency = 10
  53.     end
  54. end
  55. local Humanoid = Dummy:FindFirstChild("Humanoid")
  56. local Head = Dummy:FindFirstChild("Head")
  57. local ishead = true
  58. if Humanoid == nil then error("404: S4n1c not found") return end
  59. if Head == nil then ishead = false end
  60. if ishead == true then
  61.     if Head:FindFirstChild("face") then
  62.         Head:FindFirstChild("face"):Destroy()
  63.     end
  64. end
  65. Humanoid.MaxHealth = math.huge
  66. Humanoid.Health = math.huge
  67. Humanoid.WalkSpeed = 70
  68. Humanoid.Name = "Zombie"
  69. local Billboard = Instance.new("BillboardGui", Dummy)
  70. Billboard.Adornee = Dummy.Torso
  71. Billboard.Size = UDim2.new(7.5, 0, 7.5, 0)
  72. local SanicImg = Instance.new("ImageLabel", Billboard)
  73. SanicImg.Size = UDim2.new(1, 0, 1, 0)
  74. SanicImg.BackgroundTransparency = 10
  75. SanicImg.Image = "http://www.roblox.com/asset/?id=190812414"
  76. local Music = Instance.new("Sound", Dummy.Head)
  77. Music.SoundId = "http://www.roblox.com/asset/?id=143545724"
  78. Music.Looped = true
  79. Music.Volume = 1
  80. Music:Play()
  81. function onTouchedDeath(part)
  82.     if part.Parent ~= nil then
  83.         local h = part.Parent:findFirstChild("Humanoid")
  84.         if h ~= nil then
  85.             local has_health = h.Health > 0
  86.             h:TakeDamage(h.MaxHealth + 10)
  87.             h.Parent:Remove()
  88.         end
  89.     end
  90. end
  91. Dummy["Left Arm"].Touched:connect(onTouchedDeath)
  92. Dummy["Right Arm"].Touched:connect(onTouchedDeath)
  93. Dummy["Torso"].Touched:connect(onTouchedDeath)
  94. Dummy["Head"].Touched:connect(onTouchedDeath)
  95. local larm = script.Parent:FindFirstChild("Left Arm")
  96. local rarm = script.Parent:FindFirstChild("Right Arm")
  97. local torso = script.Parent:FindFirstChild("Torso")
  98. local neck = script.Parent:FindFirstChild("Head")
  99. function findNearestTorso(pos)
  100.     local list = game.Workspace:children()
  101.     local torso = nil
  102.     local dist = 1000000000000000000000000000000000
  103.     local temp = nil
  104.     local human = nil
  105.     local temp2 = nil
  106.     for x = 1, #list do
  107.         temp2 = list[x]
  108.         if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  109.             temp = temp2:findFirstChild("Right Arm")
  110.             human = temp2:findFirstChild("Humanoid")
  111.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  112.                 if (temp.Position - pos).magnitude < dist then
  113.                     torso = temp
  114.                     dist = (temp.Position - pos).magnitude
  115.                 end
  116.             end
  117.         end
  118.     end
  119.     return torso
  120. end
  121. while true do
  122.     wait(0.3)
  123.     local target = findNearestTorso(Dummy["Torso"].Position)
  124.     if target ~= nil then
  125.         Humanoid:MoveTo(target.Position, target)
  126.     end
  127. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement