Advertisement
Ahtoh13131423144235

Roblox Coca-Cola script

Sep 16th, 2017
1,744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.91 KB | None | 0 0
  1. --Made by Ahtoh13131423144235, Rufus14
  2. --Credit to ttyyuu12345 for the model to script plugin v4
  3. --Credit to Rufus14 for helping
  4.  
  5. --[[
  6. Change log:
  7. -Added u attack
  8. --]]
  9.  
  10. wait(2)
  11.  
  12. local player = game.Players.LocalPlayer
  13. local char = player.Character
  14. local mouse = player:GetMouse()
  15. local canAttack = false
  16. local damage = false
  17. local rootJointC0 = char.HumanoidRootPart.RootJoint.C0
  18. char.Torso["Right Shoulder"]:Remove()
  19.  
  20. --Converted with ttyyuu12345's model to script plugin v4
  21. function sandbox(var,func)
  22.     local env = getfenv(func)
  23.     local newenv = setmetatable({},{
  24.         __index = function(self,k)
  25.             if k=="script" then
  26.                 return var
  27.             else
  28.                 return env[k]
  29.             end
  30.         end,
  31.     })
  32.     setfenv(func,newenv)
  33.     return func
  34. end
  35. cors = {}
  36. mas = Instance.new("Model",game:GetService("Lighting"))
  37. Part0 = Instance.new("Part")
  38. Part0:BreakJoints()
  39. Weld1 = Instance.new("Weld")
  40. Weld2 = Instance.new("Weld")
  41. Weld3 = Instance.new("Weld")
  42. SpecialMesh2 = Instance.new("SpecialMesh")
  43. Part0.Name = "Handle"
  44. Part0.Parent = mas
  45. Part0.BrickColor = BrickColor.new("Mid gray")
  46. Part0.Rotation = Vector3.new(-180, 0, 180)
  47. Part0.FormFactor = Enum.FormFactor.Plate
  48. Part0.Size = Vector3.new(1, 1.20000005, 1)
  49. Part0.CFrame = CFrame.new(-18.1699982, 0.600000024, -0.639984131, -1, -1.21401766e-17, -2.78761293e-23, -1.21401766e-17, 1, 1.21401766e-17, 2.78761293e-23, 1.21401766e-17, -1)
  50. Part0.BottomSurface = Enum.SurfaceType.Smooth
  51. Part0.TopSurface = Enum.SurfaceType.Smooth
  52. Part0.Color = Color3.new(0.803922, 0.803922, 0.803922)
  53. Part0.Position = Vector3.new(-18.1699982, 0.600000024, -0.639984131)
  54. Part0.Orientation = Vector3.new(0, -180, 0)
  55. Part0.Color = Color3.new(0.803922, 0.803922, 0.803922)
  56. Weld1.C0 = Weld1.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
  57. Weld1.Parent = char["Right Arm"]
  58. Weld1.Part0 = char["Right Arm"]
  59. Weld1.Part1 = Part0
  60. Weld2.C0 = CFrame.new(1.5,0.5,0)
  61. Weld2.C1 = CFrame.new(0,0.5,0)
  62. Weld2.Parent = char.Torso
  63. Weld2.Part0 = char.Torso
  64. Weld2.Part1 = char["Right Arm"]
  65. Weld3.C0 = CFrame.new(-1.5,0.5,0)
  66. Weld3.C1 = CFrame.new(0,0.5,0)
  67. Weld3.Parent = char.Torso
  68. Weld3.Part0 = char.Torso
  69. Weld3.Part1 = nil
  70. SpecialMesh2.Parent = Part0
  71. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10470609"
  72. SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5)
  73. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=10483355"
  74. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  75. SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5)
  76. for i,v in pairs(mas:GetChildren()) do
  77.     v.Parent = char
  78.     pcall(function() v:MakeJoints() end)
  79. end
  80. mas:Destroy()
  81. for i,v in pairs(cors) do
  82.     spawn(function()
  83.         pcall(v)
  84.     end)
  85. end
  86.  
  87. for i = 1,15 do
  88. Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
  89. wait()
  90. end
  91.  
  92. canAttack = true
  93.  
  94. char.Humanoid.Died:connect(function()
  95. local sound = Instance.new("Sound",char)
  96. sound.SoundId = "rbxassetid://182003383"
  97. sound.Pitch = 1
  98. sound:Play()
  99. end)
  100.  
  101. mouse.Button1Down:connect(function()
  102. if canAttack == true then
  103. canAttack = false
  104. for i = 1,10 do
  105. Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1)
  106. wait()
  107. end
  108. for i = 1,5 do
  109. Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,0.1)
  110. wait()
  111. end
  112. local drink = Instance.new("Sound", char)
  113. drink.SoundId = "rbxassetid://10722059"
  114. drink.Volume = 5
  115. drink:Play()
  116. wait(3)
  117. char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").Health + 20
  118. char:FindFirstChild("Humanoid").WalkSpeed = char:FindFirstChild("Humanoid").WalkSpeed + 0.1
  119. for i = 1,5 do
  120. Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,-0.1)
  121. wait()
  122. end
  123. for i = 1,10 do
  124. Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1)
  125. wait()
  126. end
  127. canAttack = true
  128. end
  129. end)
  130.  
  131. mouse.KeyDown:connect(function(key)
  132. if key:lower() == "q" and canAttack == true then
  133. canAttack = false
  134. for i = 1,10 do
  135. Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
  136. wait()
  137. end
  138. damage = true
  139. for i = 1,19 do
  140. Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0)
  141. wait()
  142. end
  143. for i = 1,9 do
  144. Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
  145. wait()
  146. end
  147. damage = false
  148. canAttack = true
  149. elseif key:lower() == "e" and canAttack == true then
  150. canAttack = false
  151. Weld3.Part1 = char["Left Arm"]
  152. char.Torso["Left Shoulder"].Part1 = nil
  153. for i = 1,15 do
  154. Weld3.C0 = Weld3.C0 * CFrame.Angles(0.1,0,0)
  155. wait()
  156. end
  157. for i = 1,15 do
  158. Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1)
  159. Weld3.C0 = Weld3.C0 * CFrame.Angles(0,0,-0.1)
  160. wait()
  161. end
  162. damage = true
  163. for i = 1,400 do
  164. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1)
  165. wait()
  166. end
  167. char.HumanoidRootPart.RootJoint.C0 = rootJointC0
  168. damage = false
  169. for i = 1,15 do
  170. Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1)
  171. wait()
  172. end
  173. Weld3.C0 = CFrame.new(-1.5,0.5,0)
  174. char.Torso["Left Shoulder"].Part1 = char["Left Arm"]
  175. Weld3.Part1 = nil
  176. canAttack = true
  177. elseif key:lower() == "r" and canAttack == true then
  178. canAttack = false
  179. for i = 1,13 do
  180. Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
  181. wait()
  182. end
  183. wait(5)
  184. Part0.Transparency = 1
  185. local fake = Part0:Clone()
  186. fake.Parent = char
  187. fake.CanCollide = false
  188. fake.Position = Part0.Position
  189. fake.Transparency = 0
  190. local bodyVelocity = Instance.new("BodyVelocity")
  191. bodyVelocity.Parent = fake
  192. bodyVelocity.Velocity = char.Torso.CFrame.lookVector * 90
  193. fake.Touched:connect(function(hit)
  194. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  195. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
  196. hit.Parent:FindFirstChild("Humanoid").Sit = true
  197. fake:Remove()
  198. end
  199. end)
  200. for i = 1,13 do
  201. Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0)
  202. wait()
  203. end
  204. for i = 1,100 do
  205. Part0.Transparency = Part0.Transparency - 0.01
  206. wait()
  207. end
  208. Part0.Transparency = 0
  209. canAttack = true
  210. elseif key:lower() == "t" and canAttack == true and mouse.Target ~= nil then
  211. canAttack = false
  212. local victim = mouse.Target.Parent
  213. local humanoid = victim:FindFirstChild("Humanoid")
  214. if humanoid == nil then
  215. canAttack = true
  216. return
  217. end
  218. humanoid.WalkSpeed = 0
  219. char.Humanoid.WalkSpeed = 0
  220. Part0.Transparency = 1
  221. Weld2.C0 = CFrame.new(1.5,0.5,0)
  222. local fake = Part0:Clone()
  223. fake.Parent = char
  224. fake.Transparency = 0
  225. local fakeWeld = Instance.new("Weld")
  226. fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
  227. fakeWeld.Part0 = victim["Right Arm"]
  228. fakeWeld.Part1 = fake
  229. fakeWeld.Parent = victim["Right Arm"]
  230. local armWeld = Instance.new("Weld")
  231. armWeld.C0 = CFrame.new(1.5,0.5,0)
  232. armWeld.C1 = CFrame.new(0,0.5,0)
  233. armWeld.Parent = victim.Torso
  234. armWeld.Part0 = victim.Torso
  235. armWeld.Part1 = victim["Right Arm"]
  236. for i = 1,15 do
  237. armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
  238. wait()
  239. end
  240. for i = 1,10 do
  241. armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
  242. wait()
  243. end
  244. for i = 1,5 do
  245. fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
  246. wait()
  247. end
  248. local drink = Instance.new("Sound", victim)
  249. drink.SoundId = "rbxassetid://10722059"
  250. drink.Volume = 5
  251. drink:Play()
  252. wait(3)
  253. fakeWeld:Remove()
  254. victim.Head.BrickColor = BrickColor.new("Medium green")
  255. if victim.Head:FindFirstChild("face") then
  256. victim.Head.face.Texture = "http://www.roblox.com/asset/?id=137852314"
  257. end
  258. humanoid.PlatformStand = true
  259. for i = 1,humanoid.MaxHealth do
  260. humanoid.Health = humanoid.Health - 1
  261. wait()
  262. end
  263. char.Humanoid.WalkSpeed = 16
  264. for i = 1,100 do
  265. Part0.Transparency = Part0.Transparency - 0.01
  266. wait()
  267. end
  268. Part0.Transparency = 0
  269. for i = 1,15 do
  270. Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
  271. wait()
  272. end
  273. canAttack = true
  274. elseif key:lower() == "y" and canAttack == true and mouse.Target ~= nil then
  275. canAttack = false
  276. local victim = mouse.Target.Parent
  277. local humanoid = victim:FindFirstChild("Humanoid")
  278. if humanoid == nil then
  279. canAttack = true
  280. return
  281. end
  282. humanoid.WalkSpeed = 0
  283. char.Humanoid.WalkSpeed = 0
  284. Part0.Transparency = 1
  285. Weld2.C0 = CFrame.new(1.5,0.5,0)
  286. local fake = Part0:Clone()
  287. fake.Parent = char
  288. fake.Transparency = 0
  289. local fakeWeld = Instance.new("Weld")
  290. fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
  291. fakeWeld.Part0 = victim["Right Arm"]
  292. fakeWeld.Part1 = fake
  293. fakeWeld.Parent = victim["Right Arm"]
  294. local armWeld = Instance.new("Weld")
  295. armWeld.C0 = CFrame.new(1.5,0.5,0)
  296. armWeld.C1 = CFrame.new(0,0.5,0)
  297. armWeld.Parent = victim.Torso
  298. armWeld.Part0 = victim.Torso
  299. armWeld.Part1 = victim["Right Arm"]
  300. for i = 1,15 do
  301. armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
  302. wait()
  303. end
  304. for i = 1,10 do
  305. armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
  306. wait()
  307. end
  308. for i = 1,5 do
  309. fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
  310. wait()
  311. end
  312. local drink = Instance.new("Sound", victim)
  313. drink.SoundId = "rbxassetid://10722059"
  314. drink.Volume = 5
  315. drink:Play()
  316. wait(3)
  317. fake:Remove()
  318. humanoid.Health = humanoid.Health + 20
  319. char.Humanoid.WalkSpeed = 16
  320. for i = 1,10 do
  321. armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,0.1)
  322. wait()
  323. end
  324. for i = 1,15 do
  325. armWeld.C0 = armWeld.C0 * CFrame.Angles(-0.1,0,0)
  326. wait()
  327. end
  328. for i = 1,100 do
  329. Part0.Transparency = Part0.Transparency - 0.01
  330. wait()
  331. end
  332. Part0.Transparency = 0
  333. for i = 1,15 do
  334. Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
  335. wait()
  336. end
  337. canAttack = true
  338. elseif key:lower() == "u" and canAttack == true and mouse.Target ~= nil then
  339. canAttack = false
  340. local victim = mouse.Target.Parent
  341. local humanoid = victim:FindFirstChild("Humanoid")
  342. if humanoid == nil then
  343. canAttack = true
  344. return
  345. end
  346. humanoid.WalkSpeed = 0
  347. char.Humanoid.WalkSpeed = 0
  348. Part0.Transparency = 1
  349. Weld2.C0 = CFrame.new(1.5,0.5,0)
  350. local fake = Part0:Clone()
  351. fake.Parent = char
  352. fake.Transparency = 0
  353. local fakeWeld = Instance.new("Weld")
  354. fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0)
  355. fakeWeld.Part0 = victim["Right Arm"]
  356. fakeWeld.Part1 = fake
  357. fakeWeld.Parent = victim["Right Arm"]
  358. local armWeld = Instance.new("Weld")
  359. armWeld.C0 = CFrame.new(1.5,0.5,0)
  360. armWeld.C1 = CFrame.new(0,0.5,0)
  361. armWeld.Parent = victim.Torso
  362. armWeld.Part0 = victim.Torso
  363. armWeld.Part1 = victim["Right Arm"]
  364. for i = 1,15 do
  365. armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0)
  366. wait()
  367. end
  368. for i = 1,10 do
  369. armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1)
  370. wait()
  371. end
  372. for i = 1,5 do
  373. fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1)
  374. wait()
  375. end
  376. local drink = Instance.new("Sound", victim)
  377. drink.SoundId = "rbxassetid://10722059"
  378. drink.Volume = 5
  379. drink:Play()
  380. wait(3)
  381. local freezing = Instance.new("Sound", victim)
  382. freezing.SoundId = "rbxassetid://268249319"
  383. freezing.Volume = 5
  384. freezing:Play()
  385. local value = Instance.new("BoolValue",victim)
  386. value.Name = "Frozen"
  387. value.Value = true
  388. for i,v in pairs(victim:GetChildren()) do
  389. if v.ClassName == "Part" then
  390. v.BrickColor = BrickColor.new("Bright blue")
  391. v.Anchored = true
  392. end
  393. end
  394. char.Humanoid.WalkSpeed = 16
  395. for i = 1,100 do
  396. Part0.Transparency = Part0.Transparency - 0.01
  397. wait()
  398. end
  399. Part0.Transparency = 0
  400. for i = 1,15 do
  401. Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0)
  402. wait()
  403. end
  404. canAttack = true
  405. end
  406. end)
  407.  
  408. Part0.Touched:connect(function(hit)
  409. if damage == true then
  410. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
  411. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
  412. hit.Parent:FindFirstChild("Humanoid").Sit = true
  413. local hit0 = Instance.new("Sound", hit)
  414. hit0.SoundId = "rbxassetid://260430060"
  415. hit0.Volume = 3
  416. local hit1 = Instance.new("Sound", hit)
  417. hit1.SoundId = "rbxassetid://138087186"
  418. hit1.Volume = 3
  419. local hit2 = Instance.new("Sound", hit)
  420. hit2.SoundId = "rbxassetid://131237241"
  421. hit2.Volume = 3
  422. local hit3 = Instance.new("Sound", hit)
  423. hit3.SoundId = "rbxassetid://278062209"
  424. hit3.Volume = 3
  425. hit3.TimePosition = 0.33
  426. local math1 = math.random(1,4)
  427. if math1 == 1 then
  428. hit0:Play()
  429. end
  430. if math1 == 2 then
  431. hit1:Play()
  432. end
  433. if math1 == 3 then
  434. hit2:Play()
  435. end
  436. if math1 == 4 then
  437. hit3:Play()
  438. end
  439. if hit.Parent:FindFirstChild("Frozen") then
  440. local hit0 = Instance.new("Sound", hit)
  441. hit0.SoundId = "rbxassetid://516789356"
  442. hit0.Volume = 5
  443. hit0:Play()
  444. hit.Parent.Frozen:Remove()
  445. for i,v in pairs(hit.Parent:GetChildren()) do
  446. if v.ClassName == "Part" then
  447. v.Anchored = false
  448. end
  449. end
  450. end
  451. end
  452. end
  453. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement