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