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 = "ball" -- What you want to active the transformation
- player.Chatted:Connect(function(msg)
- if msg == message then
- local part = Instance.new("Part",workspace) --Making a part and parenting to the workspace
- part.Material = Enum.Material.Neon --Material of the part. Note that if you do "Neon" it won't work due to invalid syntax
- part.Position = char.Torso.Position
- part.CanCollide = false --So It won't floop your roblox character
- part.Anchored = true --So it won't follow on the floor
- part.Shape = "Ball" --The Shape of the part which is going to grow
- for i = 1,1000 do --How long to do the transformation
- part.BrickColor = BrickColor.Random() ---Making it different colors to make it look nicer
- part.Size = part.Size + Vector3.new(.5,.5,.5) --Grows by Vector3
- part.Transparency = part.Transparency + .005
- wait(.05)
- end
- local function superab()
- char.Humanoid.WalkSpeed = 0
- char.Humanoid.JumpPower = 0
- end
- superab()
- end
- end)
- wait(0)
- local Dummy = game.Workspace:FindFirstChild("IceTea_Bottle")
- 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