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