SHOW:
|
|
- or go back to the newest paste.
| 1 | local player = game:GetService("Players").LocalPlayer
| |
| 2 | repeat | |
| 3 | wait() | |
| 4 | until player.Character | |
| 5 | local char = player.Character | |
| 6 | local torso = char:WaitForChild("Torso")
| |
| 7 | local mouse = player:GetMouse() | |
| 8 | local color = BrickColor.new("Really black")
| |
| 9 | local material = "Neon" | |
| 10 | local trans = 0.5 | |
| 11 | local debounce = false | |
| 12 | for u,c in pairs(player.Character:GetChildren()) do | |
| 13 | if c.className == "Hat" and c.Name ~= "Hybrid Goggles" then | |
| 14 | c.Handle.BrickColor = BrickColor.new("Really black")
| |
| 15 | c.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=0" | |
| 16 | end | |
| 17 | end | |
| 18 | blast = function() | |
| 19 | ||
| 20 | local b = Instance.new("Part", workspace)
| |
| 21 | game.Debris:AddItem(b, 2) | |
| 22 | b.Size = Vector3.new(5, 5, 5) | |
| 23 | b.CFrame = torso.CFrame * CFrame.new(0, 0, -5) | |
| 24 | b.TopSurface = "Smooth" | |
| 25 | b.BottomSurface = "Smooth" | |
| 26 | b.CanCollide = false | |
| 27 | b.BrickColor = color | |
| 28 | b.Transparency = trans | |
| 29 | b.Material = material | |
| 30 | local v = Instance.new("BodyVelocity", b)
| |
| 31 | v.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 32 | v.Velocity = torso.CFrame.lookVector * 50 | |
| 33 | r = Instance.new("BodyAngularVelocity", b)
| |
| 34 | r.AngularVelocity = Vector3.new(25, 25, 25) | |
| 35 | b.Touched:connect(function(hit) | |
| 36 | ||
| 37 | p = hit.Parent | |
| 38 | if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
| |
| 39 | b:Remove() | |
| 40 | p.Humanoid:TakeDamage(35) | |
| 41 | end | |
| 42 | end | |
| 43 | ) | |
| 44 | end | |
| 45 | ||
| 46 | death = function() | |
| 47 | ||
| 48 | local b = Instance.new("Part", workspace)
| |
| 49 | game.Debris:AddItem(b, 2) | |
| 50 | b.Size = Vector3.new(5, 5, 5) | |
| 51 | b.CFrame = torso.CFrame * CFrame.new(0, 0, -5) | |
| 52 | b.TopSurface = "Smooth" | |
| 53 | b.BottomSurface = "Smooth" | |
| 54 | b.CanCollide = false | |
| 55 | b.BrickColor = color | |
| 56 | b.Transparency = trans | |
| 57 | b.Material = material | |
| 58 | local v = Instance.new("BodyVelocity", b)
| |
| 59 | v.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 60 | v.Velocity = torso.CFrame.lookVector * 50 | |
| 61 | r = Instance.new("BodyAngularVelocity", b)
| |
| 62 | r.AngularVelocity = Vector3.new(25, 25, 25) | |
| 63 | b.Touched:connect(function(hit) | |
| 64 | ||
| 65 | p = hit | |
| 66 | if p and p.Name ~= "Base" and p.Name ~= player.Name then | |
| 67 | p:Remove() | |
| 68 | end | |
| 69 | end | |
| 70 | ) | |
| 71 | end | |
| 72 | ||
| 73 | wall = function() | |
| 74 | ||
| 75 | local b = Instance.new("Part", workspace)
| |
| 76 | game.Debris:AddItem(b, 5) | |
| 77 | b.Size = Vector3.new(1, 1, 1) | |
| 78 | b.CFrame = torso.CFrame * CFrame.new(0, 0, -5) | |
| 79 | b.TopSurface = "Smooth" | |
| 80 | b.BottomSurface = "Smooth" | |
| 81 | b.CanCollide = false | |
| 82 | b.Anchored = true | |
| 83 | b.BrickColor = color | |
| 84 | b.Transparency = trans | |
| 85 | b.Material = material | |
| 86 | for i = 1, 50 do | |
| 87 | wait() | |
| 88 | b.CFrame = torso.CFrame * CFrame.new(0, 0, -5) | |
| 89 | b.Size = b.Size + Vector3.new(0.5, 0.5, 0) | |
| 90 | end | |
| 91 | b.CanCollide = true | |
| 92 | b.Touched:connect(function(hit) | |
| 93 | ||
| 94 | p = hit.Parent | |
| 95 | if p and p:FindFirstChild("Humanoid") and p.Name ~= player.Name then
| |
| 96 | p.Humanoid:TakeDamage(5) | |
| 97 | end | |
| 98 | end | |
| 99 | ) | |
| 100 | end | |
| 101 | ||
| 102 | fade = function() | |
| 103 | ||
| 104 | for i,v in pairs(char:GetChildren()) do | |
| 105 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 106 | v.Transparency = 0.5 | |
| 107 | end | |
| 108 | end | |
| 109 | for i,v in pairs(char:GetChildren()) do | |
| 110 | if v.className == "Hat" then | |
| 111 | v.Handle.Transparency = 0.5 | |
| 112 | end | |
| 113 | end | |
| 114 | end | |
| 115 | ||
| 116 | unfade = function() | |
| 117 | ||
| 118 | for i,v in pairs(char:GetChildren()) do | |
| 119 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 120 | v.Transparency = 0 | |
| 121 | end | |
| 122 | end | |
| 123 | for i,v in pairs(char:GetChildren()) do | |
| 124 | if v.className == "Hat" then | |
| 125 | v.Handle.Transparency = 0 | |
| 126 | end | |
| 127 | end | |
| 128 | end | |
| 129 | ||
| 130 | dash = function(x) | |
| 131 | ||
| 132 | b = Instance.new("Part", workspace)
| |
| 133 | game.Debris:AddItem(b, 0.7) | |
| 134 | b.Size = Vector3.new(3, 3, 3) | |
| 135 | b.BrickColor = color | |
| 136 | b.Material = material | |
| 137 | b.CanCollide = false | |
| 138 | b.CFrame = torso.CFrame * x | |
| 139 | t = Instance.new("BodyVelocity", b)
| |
| 140 | r = Instance.new("BodyAngularVelocity", b)
| |
| 141 | r.AngularVelocity = Vector3.new(15, 15, 15) | |
| 142 | for i = 1, 5 do | |
| 143 | wait() | |
| 144 | b.Transparency = b.Transparency + 0.1 | |
| 145 | torso.CFrame = torso.CFrame * CFrame.new(0, 0, -1) | |
| 146 | end | |
| 147 | end | |
| 148 | ||
| 149 | mouse.KeyDown:connect(function(key) | |
| 150 | ||
| 151 | if key == "v" then | |
| 152 | holding = true | |
| 153 | fade() | |
| 154 | while holding and wait(0.01) do | |
| 155 | dash(CFrame.new(2, 1, 0)) | |
| 156 | dash(CFrame.new(-2, -1, 1)) | |
| 157 | dash(CFrame.new(0, 1, 3)) | |
| 158 | end | |
| 159 | end | |
| 160 | end | |
| 161 | ) | |
| 162 | mouse.KeyUp:connect(function(key) | |
| 163 | ||
| 164 | if key == "v" then | |
| 165 | unfade() | |
| 166 | holding = false | |
| 167 | end | |
| 168 | end | |
| 169 | ) | |
| 170 | mouse.KeyDown:connect(function(key) | |
| 171 | ||
| 172 | if key == "e" and debounce == false then | |
| 173 | debounce = true | |
| 174 | blast() | |
| 175 | wait(0.5) | |
| 176 | debounce = false | |
| 177 | end | |
| 178 | end | |
| 179 | ) | |
| 180 | mouse.KeyDown:connect(function(key) | |
| 181 | ||
| 182 | if key == "q" and debounce == false then | |
| 183 | debounce = true | |
| 184 | wall() | |
| 185 | wait(0.5) | |
| 186 | debounce = false | |
| 187 | end | |
| 188 | end | |
| 189 | ) | |
| 190 | mouse.KeyDown:connect(function(key) | |
| 191 | ||
| 192 | if key == "t" and debounce == false then | |
| 193 | debounce = true | |
| 194 | death() | |
| 195 | wait(0.5) | |
| 196 | debounce = false | |
| 197 | end | |
| 198 | end | |
| 199 | ) | |
| 200 | ||
| 201 | - | local player = game.Players.LocalPlayer |
| 201 | + | |
| 202 | - | repeat wait() until player.Character; |
| 202 | + | |
| 203 | - | local rs = game:GetService("RunService").RenderStepped
|
| 203 | + | |
| 204 | - | local char = player.Character |
| 204 | + | |
| 205 | - | local HRP = char.HumanoidRootPart |
| 205 | + | |
| 206 | - | local Head = char.Head |
| 206 | + | |
| 207 | - | local tents = {}
|
| 207 | + | |
| 208 | - | function getValue(p, x) |
| 208 | + | |
| 209 | - | return p[2] + 0.5 * x*(p[3] - p[1] + x*(2.0*p[1] - 5.0*p[2] + 4.0*p[3] - p[4] + x*(3.0*(p[2] - p[3]) + p[4] - p[1]))) |
| 209 | + | |
| 210 | - | end |
| 210 | + | |
| 211 | - | function getV3Cubic(tabl,perc) |
| 211 | + | |
| 212 | - | local x,y,z = {},{},{}
|
| 212 | + | |
| 213 | - | if perc >= 2 then |
| 213 | + | |
| 214 | - | perc = perc %1 |
| 214 | + | |
| 215 | - | for i = 3, 6 do |
| 215 | + | |
| 216 | - | table.insert(x,tabl[i].x) |
| 216 | + | |
| 217 | - | table.insert(y,tabl[i].y) |
| 217 | + | |
| 218 | - | table.insert(z,tabl[i].z) |
| 218 | + | |
| 219 | - | end |
| 219 | + | |
| 220 | - | elseif perc >= 1 then |
| 220 | + | |
| 221 | - | perc = perc %1 |
| 221 | + | |
| 222 | - | for i = 2, 5 do |
| 222 | + | |
| 223 | - | table.insert(x,tabl[i].x) |
| 223 | + | |
| 224 | - | table.insert(y,tabl[i].y) |
| 224 | + | |
| 225 | - | table.insert(z,tabl[i].z) |
| 225 | + | |
| 226 | - | end |
| 226 | + | |
| 227 | - | else |
| 227 | + | |
| 228 | - | for i = 1, 4 do |
| 228 | + | |
| 229 | - | table.insert(x,tabl[i].x) |
| 229 | + | |
| 230 | - | table.insert(y,tabl[i].y) |
| 230 | + | |
| 231 | - | table.insert(z,tabl[i].z) |
| 231 | + | |
| 232 | - | end |
| 232 | + | |
| 233 | - | end |
| 233 | + | |
| 234 | - | local X,Y,Z = getValue(x,perc),getValue(y,perc),getValue(z,perc) |
| 234 | + | |
| 235 | - | return Vector3.new(X,Y,Z) |
| 235 | + | |
| 236 | - | end |
| 236 | + | |
| 237 | - | local rainbow = {"Institutional white","Institutional white","Institutional white","Institutional white","Institutional white","Institutional white","Institutional white","Institutional white","Institutional white"}
|
| 237 | + | |
| 238 | - | local rainbowCount = 1 |
| 238 | + | |
| 239 | - | local isRainbow = true |
| 239 | + | |
| 240 | - | for i = 0, 4 do |
| 240 | + | |
| 241 | - | local m = Instance.new("Model",char)
|
| 241 | + | |
| 242 | - | m.Name = "Tentac00l" |
| 242 | + | |
| 243 | - | local parts = {}
|
| 243 | + | |
| 244 | - | local lastpart = Head |
| 244 | + | |
| 245 | - | local defC0 |
| 245 | + | |
| 246 | - | rainbowCount = 1 |
| 246 | + | |
| 247 | - | for j = 0, 8 do |
| 247 | + | |
| 248 | - | local sizex = 0.25 - 0.2 * (j/8) |
| 248 | + | |
| 249 | - | local sizey = (15/8) - (9/8) * (j/8) |
| 249 | + | |
| 250 | - | local p = Instance.new("Part")
|
| 250 | + | |
| 251 | - | p.Size = Vector3.new(0.2,0.2,0.2) |
| 251 | + | |
| 252 | - | p.BrickColor = BrickColor.new("Really black")
|
| 252 | + | PartClone.BrickColor = BrickColor.new("Really black")
|
| 253 | - | p.TopSurface = 0 |
| 253 | + | |
| 254 | - | p.BottomSurface = 0 |
| 254 | + | |
| 255 | - | p.CanCollide = false |
| 255 | + | |
| 256 | - | p.Material = "SmoothPlastic" |
| 256 | + | |
| 257 | - | p.TopSurface = 0 |
| 257 | + | |
| 258 | - | p.BottomSurface = 0 |
| 258 | + | |
| 259 | - | local mesh = Instance.new("CylinderMesh",p)
|
| 259 | + | |
| 260 | - | mesh.Name = "CyMesh" |
| 260 | + | |
| 261 | - | mesh.Scale = Vector3.new(sizex,sizey,sizex) *5 |
| 261 | + | |
| 262 | - | p.Parent = m |
| 262 | + | |
| 263 | - | local p2 = p:Clone() |
| 263 | + | |
| 264 | - | p2.Parent = m |
| 264 | + |