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