Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --hi
- local player = game.Players.LocalPlayer -- Addressing the Player
- local char = player.Character --Addressing the player character
- local message = "..." -- What you want to active the transformation
- player.Chatted:Connect(function(msg)
- if msg == message then
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- end
- local lighting = game:GetService("Lighting")
- lighting.FogEnd = 15
- lighting.FogColor = Color3.new(0, 0, 0)
- lighting.TimeOfDay = 0
- local sound = Instance.new("Sound", workspace)
- sound.SoundId = "rbxassetid://339217792"
- sound.Looped = true
- sound:Play()
- end
- end)
- wait(0)
- local Dummy = game.Workspace:FindFirstChild("Meti2000")
- if Dummy == nil then
- error("U cant be s4n1c m8")
- return
- end
- wait(0)
- for i,v in pairs(Dummy:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 10
- end
- end
- local Humanoid = Dummy:FindFirstChild("Humanoid")
- local Head = Dummy:FindFirstChild("Head")
- local ishead = true
- if Humanoid == nil then error("404: S4n1c not found") return end
- if Head == nil then ishead = false end
- if ishead == true then
- if Head:FindFirstChild("face") then
- Head:FindFirstChild("face"):Destroy()
- end
- end
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- Humanoid.WalkSpeed = 70
- Humanoid.Name = "Zombie"
- local Billboard = Instance.new("BillboardGui", Dummy)
- Billboard.Adornee = Dummy.Torso
- Billboard.Size = UDim2.new(7.5, 0, 7.5, 0)
- local SanicImg = Instance.new("ImageLabel", Billboard)
- SanicImg.Size = UDim2.new(1, 0, 1, 0)
- SanicImg.BackgroundTransparency = 10
- SanicImg.Image = "http://www.roblox.com/asset/?id=190812414"
- local Music = Instance.new("Sound", Dummy.Head)
- Music.SoundId = "http://www.roblox.com/asset/?id=143545724"
- Music.Looped = true
- Music.Volume = 1
- Music:Play()
- function onTouchedDeath(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h ~= nil then
- local has_health = h.Health > 0
- h:TakeDamage(h.MaxHealth + 10)
- h.Parent:Remove()
- end
- end
- end
- Dummy["Left Arm"].Touched:connect(onTouchedDeath)
- Dummy["Right Arm"].Touched:connect(onTouchedDeath)
- Dummy["Torso"].Touched:connect(onTouchedDeath)
- Dummy["Head"].Touched:connect(onTouchedDeath)
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- local torso = script.Parent:FindFirstChild("Torso")
- local neck = script.Parent:FindFirstChild("Head")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000000000000000000000000000000000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(0.3)
- local target = findNearestTorso(Dummy["Torso"].Position)
- if target ~= nil then
- Humanoid:MoveTo(target.Position, target)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement