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 = "..." -- 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 = 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,1000 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 = 70 | |
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=190812414" | |
60 | local Music = Instance.new("Sound", Dummy.Head) | |
61 | Music.SoundId = "http://www.roblox.com/asset/?id=143545724" | |
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 | h.Parent:Remove() | |
72 | end | |
73 | end | |
74 | end | |
75 | Dummy["Left Arm"].Touched:connect(onTouchedDeath) | |
76 | Dummy["Right Arm"].Touched:connect(onTouchedDeath) | |
77 | Dummy["Torso"].Touched:connect(onTouchedDeath) | |
78 | Dummy["Head"].Touched:connect(onTouchedDeath) | |
79 | local larm = script.Parent:FindFirstChild("Left Arm") | |
80 | local rarm = script.Parent:FindFirstChild("Right Arm") | |
81 | local torso = script.Parent:FindFirstChild("Torso") | |
82 | local neck = script.Parent:FindFirstChild("Head") | |
83 | function findNearestTorso(pos) | |
84 | local list = game.Workspace:children() | |
85 | local torso = nil | |
86 | - | local dist = 1000 |
86 | + | local dist = 1000000000000000000000000000000000 |
87 | local temp = nil | |
88 | local human = nil | |
89 | local temp2 = nil | |
90 | for x = 1, #list do | |
91 | temp2 = list[x] | |
92 | if (temp2.className == "Model") and (temp2 ~= script.Parent) then | |
93 | temp = temp2:findFirstChild("Right Arm") | |
94 | human = temp2:findFirstChild("Humanoid") | |
95 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
96 | if (temp.Position - pos).magnitude < dist then | |
97 | torso = temp | |
98 | dist = (temp.Position - pos).magnitude | |
99 | end | |
100 | end | |
101 | end | |
102 | end | |
103 | return torso | |
104 | end | |
105 | while true do | |
106 | wait(0.3) | |
107 | - | local target = findNearestTorso(Dummy["Right Arm"].Position) |
107 | + | local target = findNearestTorso(Dummy["Torso"].Position) |
108 | if target ~= nil then | |
109 | Humanoid:MoveTo(target.Position, target) | |
110 | end | |
111 | - | end |
111 | + | |
112 | ||
113 | repeat wait() until game.Players.LocalPlayer | |
114 | local Mouse = game.Players.LocalPlayer:GetMouse() | |
115 | local Plr = game.Players.LocalPlayer | |
116 | ||
117 | Mouse.KeyDown:connect(function(KeyDown) | |
118 | if KeyDown == "0" then | |
119 | Plr.Character.Humanoid.WalkSpeed = 190 | |
120 | end | |
121 | end) | |
122 | ||
123 | Mouse.KeyUp:connect(function(KeyUp) | |
124 | if KeyUp == "0" then | |
125 | Plr.Character.Humanoid.WalkSpeed = 16 | |
126 | end | |
127 | end) | |
128 | ||
129 | game.Lighting.ClockTime = 22 | |
130 | ||
131 | Sky.Parent = game.Lighting | |
132 | game.Lighting.ClockTime = 22 |