Advertisement
Void_scripter0

Lemonade

Jun 5th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.83 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. local me = game:service("Players").LocalPlayer
  142. local char = me.Character
  143. local Modelname = "LemonadeModel"
  144. local Toolname = "Lemonade"
  145. script.Name = "bin"
  146. if char:FindFirstChild(Modelname) then
  147. char[Modelname].Parent = nil
  148. end
  149. for _, v in pairs(me.Backpack:GetChildren()) do
  150. if v:FindFirstChild("tooltype") then
  151. if v.tooltype.Value == Toolname then
  152. v.Parent = nil
  153. end
  154. end
  155. end
  156. local aing
  157. local phpos
  158. local hpos
  159. local bin = Instance.new("HopperBin", me.Backpack)
  160. bin.Name = Toolname
  161. local tooltype = Instance.new("StringValue", bin)
  162. tooltype.Name = "tooltype"
  163. tooltype.Value = Toolname
  164. script.Parent = bin
  165. local able = true
  166. local sable1 = true
  167. local surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  168. if char:FindFirstChild("Torso") and char:FindFirstChild("Right Arm") and char:FindFirstChild("Left Arm") then
  169.  
  170. else
  171. script:remove()
  172. end
  173. torso = char.Torso
  174. neck = torso.Neck
  175. human = char.Humanoid
  176. Rarm = char["Right Arm"]
  177. Larm = char["Left Arm"]
  178. local Sounds = {
  179. drink = Instance.new("Sound"),
  180. swing = Instance.new("Sound"),
  181. hitsound = Instance.new("Sound")
  182. }
  183. Sounds["drink"].SoundId = "http://www.roblox.com/asset/?id=10722059"
  184. Sounds["drink"].Volume = 1
  185. Sounds["swing"].SoundId = "http://www.roblox.com/asset/?id=10209645"
  186. Sounds["swing"].Volume = 1
  187. Sounds["hitsound"].SoundId = "http://www.roblox.com/asset/?id=10209590"
  188. Sounds["hitsound"].Volume = 0.5
  189. function PlaySound(soundname, pitch)
  190. Sounds[soundname].Parent = handle
  191. Sounds[soundname].Pitch = pitch
  192. Sounds[soundname]:Play()
  193. local oldsound = Sounds[soundname]
  194. coroutine.resume(coroutine.create(function()
  195. wait(4)
  196. oldsound:Destroy()
  197. end))
  198. Sounds[soundname] = Sounds[soundname]:clone()
  199. end
  200. function Weld(p0, p1, x, y, z, a, b, c)
  201. local w = Instance.new("Weld")
  202. w.Parent = p0
  203. w.Part0 = p0
  204. w.Part1 = p1
  205. w.C1 = CFrame.new(x, y, z) * CFrame.Angles(a, b, c)
  206. return w
  207. end
  208. function Part(parent, anchor, collide, tran, ref, color, x, y, z, Break, lifetime)
  209. local p = Instance.new("Part")
  210. p.formFactor = "Custom"
  211. p.Anchored = anchor
  212. p.CanCollide = collide
  213. p.Transparency = tran
  214. p.Reflectance = ref
  215. p.BrickColor = BrickColor.new(color)
  216. for _, Surf in pairs(surfaces) do
  217. p[Surf] = "Smooth"
  218. end
  219. p.Size = Vector3.new(x, y, z)
  220. if Break then
  221. p:BreakJoints()
  222. else
  223. p:MakeJoints()
  224. end
  225. p.Parent = parent
  226. p.Locked = true
  227. if lifetime then
  228. game:GetService("Debris"):AddItem(p, lifetime)
  229. end
  230. return p
  231. end
  232. function getHum(c)
  233. local h = nil
  234. for i,v in pairs(c:GetChildren()) do
  235. if v:IsA("Humanoid") and c ~= char then
  236. if v.Health > 0 then
  237. h = v
  238. end
  239. end
  240. end
  241. return h
  242. end
  243. function Heal(hum)
  244. coroutine.resume(coroutine.create(function()
  245. hum:TakeDamage(-20)
  246. end))
  247. end
  248. function CreateModel()
  249. if char:FindFirstChild(Modelname) then
  250. char[Modelname].Parent = nil
  251. end
  252.  
  253. Mo = Instance.new("Model")
  254. Mo.Name = Modelname
  255.  
  256. RABrick = Part(Mo, false, false, 1, 0, tostring(Rarm.BrickColor), 1, 2, 1, true)
  257. LABrick = Part(Mo, false, false, 1, 0, tostring(Larm.BrickColor), 1, 2, 1, true)
  258. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  259. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  260. gripBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  261. gripBrick2 = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  262. Weld(Rarm, gripBrick, 0, 1, 0, 0, 0, 0)
  263. Weld(Larm, gripBrick2, 0, 1, 0, 0, 0, 0)
  264. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  265. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  266. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  267. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  268. TH = Weld(torso, nil, -1, 0.6, 0.7, 0, 0, 0)
  269. RABW2 = Weld(RABrick, nil, 0.2, 1.2, 0, math.rad(-90), math.rad(-30), 0)
  270. LABW2 = Weld(LABrick, nil, -0.2, 1.2, 0, math.rad(-90), math.rad(30), 0)
  271. RLBW2 = Weld(RLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  272. LLBW2 = Weld(LLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  273.  
  274. local modc = Instance.new("Model", Mo)
  275. modc.Name = "Lemonade"
  276.  
  277. handle = Part(modc, false, false, 0.8, 0.2, "Medium stone gray", 1, 1.3, 1, true)
  278. handle.Name = "Handle"
  279. Instance.new("CylinderMesh", handle)
  280.  
  281. handle2 = Part(modc, false, false, 0, 0, "Bright yellow", 1, 1.15, 1, true)
  282. handle2.Name = "Handle2"
  283. Instance.new("CylinderMesh", handle2).Scale = Vector3.new(0.9, 0.9, 0.9)
  284.  
  285. tip = Part(modc, false, false, 1, 0, "Bright yellow", 0.2, 0.2, 0.2, true)
  286. tip.Name = "Tip"
  287.  
  288. grip = Weld(gripBrick, nil, 0, -0.2, -0.1, math.rad(80), 0, -math.rad(60))
  289. liq = Weld(handle, handle2, 0, 0.1, 0, 0, 0, 0)
  290. Weld(handle, tip, 0, -0.65, 0, 0, 0, 0)
  291.  
  292. Mo.Parent = char
  293. TH.Part1 = handle
  294.  
  295. fps = Instance.new("Model", workspace.CurrentCamera)
  296. local fpra = Rarm:clone()
  297. fpra.Parent = fps
  298. local fpt = modc:clone()
  299. fpt.Parent = fps
  300. Weld(Rarm, fpra, 0, 0, 0, 0, 0, 0)
  301. Weld(handle, fpt.Handle, 0, 0, 0, 0, 0, 0)
  302.  
  303. for _,v in pairs(modc:GetChildren()) do
  304. v.Parent = Mo
  305. end
  306.  
  307. modc:Destroy()
  308. end
  309. function sheath()
  310. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  311. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  312. wait()
  313. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  314. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  315. wait()
  316. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  317. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  318. wait()
  319. LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  320. RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  321. wait()
  322. end
  323. function unsheath()
  324. LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  325. RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  326. wait()
  327. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  328. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  329. wait()
  330. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  331. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  332. wait()
  333. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  334. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  335. wait()
  336. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  337. LABW2.C1 = CFrame.new(-0.2, 1.5, 0) * CFrame.Angles(math.rad(-90), math.rad(45), 0)
  338. end
  339. function drink()
  340. if able then
  341. able = false
  342. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(30), 0)
  343. wait()
  344. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  345. wait()
  346. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(40), 0)
  347. wait()
  348. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-92), -math.rad(40), 0)
  349. wait()
  350. RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  351. wait()
  352. RABW2.C1 = CFrame.new(0.2, 0.8, 0) * CFrame.Angles(math.rad(-96), -math.rad(38), 0)
  353. wait()
  354. RABW2.C1 = CFrame.new(0.2, 0.85, 0) * CFrame.Angles(math.rad(-98), -math.rad(37), 0)
  355. wait()
  356. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  357. wait()
  358. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  359. workspace.CurrentCamera.CoordinateFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad(2.5), 0, 0)
  360. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-102), -math.rad(35), 0)
  361. wait()
  362. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  363. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-104), -math.rad(34), 0)
  364. wait()
  365. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  366. wait()
  367. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  368. grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  369. wait()
  370. grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  371. wait()
  372. grip.C1 = CFrame.new(0, -0.3, -0.1) * CFrame.Angles(math.rad(60), 0, -math.rad(80))
  373. PlaySound("drink", 1)
  374. wait(1.5)
  375. Heal(human)
  376. wait(1.5)
  377. grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  378. wait()
  379. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  380. grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  381. wait()
  382. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  383. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  384. wait()
  385. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  386. RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  387. wait()
  388. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  389. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  390. wait()
  391. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  392. able = true
  393. end
  394. end
  395. function loopray()
  396. coroutine.resume(coroutine.create(function()
  397. phpos = handle.CFrame
  398. wait()
  399. while true do
  400. hpos = handle.CFrame.p
  401. if aing then
  402. raydmg()
  403. raytrace()
  404. end
  405. phpos = handle.CFrame.p
  406. wait()
  407. end
  408. end))
  409. end
  410. function raydmg()
  411. local dray = Ray.new(hpos, (phpos - hpos).unit*(phpos - hpos).magnitude)
  412. local hit = workspace:FindPartOnRay(dray, char)
  413. if hit then
  414. if hit.Parent:FindFirstChild("Humanoid") then
  415. local ko = Instance.new("ObjectValue", hit.Parent.Humanoid)
  416. ko.Name = "creator"
  417. ko.Value = me
  418. hit.Parent.Humanoid:TakeDamage(10)
  419. PlaySound("hitsound", 1)
  420. end
  421. end
  422. end
  423. function raytrace()
  424. local dis = (phpos - hpos).magnitude
  425. local trace = Part(workspace, true, false, 0.2, 0, "White", 0.5, 0.5, dis, true)
  426. trace.Name = "Trace"
  427. trace.CFrame = CFrame.new(phpos, hpos) * CFrame.new(0, 0, -dis/2)
  428. local tracem = Instance.new("BlockMesh", trace)
  429. coroutine.resume(coroutine.create(function()
  430. for i = 0.2, 1, 0.1 do
  431. trace.Transparency = i
  432. wait()
  433. end
  434. trace:Destroy()
  435. end))
  436. coroutine.resume(coroutine.create(function()
  437. for i = 1, 0, -0.125 do
  438. tracem.Scale = Vector3.new(i, i, 1)
  439. wait()
  440. end
  441. end))
  442. end
  443. function swing()
  444. if able then
  445. able = false
  446. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  447. wait()
  448. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-95), -math.rad(10), 0)
  449. wait()
  450. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), -math.rad(2), 0)
  451. wait()
  452. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-120), 0, 0)
  453. wait()
  454. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-135), 0, 0)
  455. wait()
  456. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-145), 0, 0)
  457. wait()
  458. PlaySound("swing", 2)
  459. aing = true
  460. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-150), 0, 0)
  461. wait()
  462. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-140), 0, 0)
  463. wait()
  464. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), 0, 0)
  465. wait()
  466. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-60), 0, 0)
  467. wait()
  468. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-30), 0, 0)
  469. wait()
  470. aing = false
  471. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-25), 0, 0)
  472. wait()
  473. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-35), 0, 0)
  474. wait()
  475. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-50), -math.rad(2), 0)
  476. wait()
  477. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-75), -math.rad(5), 0)
  478. wait()
  479. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-85), -math.rad(10), 0)
  480. wait()
  481. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  482. able = true
  483. end
  484. end
  485. function splem(p, w)
  486. local slem = Part(Mo, true, false, 0.3, 0.1, "Bright yellow", w, 0.2, w, true)
  487. Instance.new("CylinderMesh", slem)
  488. slem.Mesh.Scale = Vector3.new(1, 0.05, 1)
  489. slem.CFrame = CFrame.new(p)
  490. game:service("Debris"):AddItem(slem, 5)
  491.  
  492. slem.Touched:connect(function(tp)
  493. if getHum(tp.Parent) then
  494. getHum(tp.Parent).PlatformStand = true
  495. coroutine.resume(coroutine.create(function()
  496. wait(3)
  497. getHum(tp.Parent).PlatformStand = false
  498. end))
  499. end
  500. end)
  501. end
  502. function rayspill(p)
  503. local dray = Ray.new(p.CFrame.p + Vector3.new(0, -1, 0), ((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).unit*((p.CFrame + Vector3.new(0, -20, 0)).p - p.CFrame.p).magnitude)
  504. local _, dpos = workspace:FindPartOnRay(dray, char)
  505. if dpos then
  506. splem(dpos, math.random() + 2)
  507. end
  508. end
  509. function spill()
  510. if able and sable1 then
  511. able = false
  512. sable1 = false
  513. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(2))
  514. wait()
  515. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5))
  516. wait()
  517. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10))
  518. wait()
  519. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20))
  520. wait()
  521. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(35))
  522. wait()
  523. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45))
  524. wait()
  525. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50))
  526. wait()
  527. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(52))
  528. wait()
  529. local slem = Part(Mo, false, false, 0.3, 0.1, "Bright yellow", 0.2, 0.2, 0.2, true)
  530. local slemm = Instance.new("BlockMesh", slem)
  531. slemm.Scale = Vector3.new(0.2, 100, 0.2)
  532. slemm.Offset = Vector3.new(0, -10, 0)
  533. local slemw = Weld(torso, slem, -0.04, 0.1, 1.35, 0, 0, 0)
  534. wait()
  535. slemm.Scale = Vector3.new(0.2, 100, 0.5)
  536. wait()
  537. slemm.Scale = Vector3.new(0.2, 100, 0.8)
  538. wait()
  539. slemm.Scale = Vector3.new(0.2, 100, 1)
  540. wait()
  541. slemm.Scale = Vector3.new(0.2, 100, 1.2)
  542. wait()
  543. rayspill(slem)
  544. slemm.Scale = Vector3.new(0.2, 100, 1.4)
  545. wait()
  546. slemm.Scale = Vector3.new(0.2, 100, 1.45)
  547. wait(.1)
  548. rayspill(slem)
  549. wait(.1)
  550. rayspill(slem)
  551. wait(.1)
  552. rayspill(slem)
  553. wait(.1)
  554. rayspill(slem)
  555. wait(.1)
  556. rayspill(slem)
  557. wait(.1)
  558. rayspill(slem)
  559. wait(.1)
  560. rayspill(slem)
  561. wait(.1)
  562. rayspill(slem)
  563. wait(.1)
  564. rayspill(slem)
  565. wait(.1)
  566. rayspill(slem)
  567. wait(.1)
  568. rayspill(slem)
  569. wait(.1)
  570. rayspill(slem)
  571. wait(.1)
  572. rayspill(slem)
  573. slemm.Scale = Vector3.new(0.2, 100, 1.3)
  574. wait()
  575. slemm.Scale = Vector3.new(0.2, 100, 1)
  576. wait()
  577. slemm.Scale = Vector3.new(0.2, 100, 0.4)
  578. wait()
  579. slem:Destroy()
  580. slemw:Destroy()
  581. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50))
  582. wait()
  583. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45))
  584. wait()
  585. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20))
  586. wait()
  587. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10))
  588. wait()
  589. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5))
  590. wait()
  591. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  592. able = true
  593. coroutine.resume(coroutine.create(function()
  594. wait(15)
  595. sable1 = true
  596. end))
  597. end
  598. end
  599. function Select(mouse)
  600. RABW2.Part1 = char["Right Arm"]
  601. TH.Part1 = nil
  602. grip.Part1 = handle
  603. unsheath()
  604. mouse.Button1Down:connect(function()
  605. drink()
  606. end)
  607. mouse.KeyDown:connect(function(key)
  608. if key:lower() == "q" then
  609. if mouse.Target then
  610. if getHum(mouse.Target.Parent) then
  611. newLocalScript(script.DSource.Value, mouse.Target.Parent)
  612. Mo:Destroy()
  613. fps:Destroy()
  614. script.Parent:Destroy()
  615. end
  616. end
  617. elseif key:lower() == "e" then
  618. swing()
  619. elseif key:lower() == "r" then
  620. spill()
  621. end
  622. end)
  623. end
  624. function Deselect()
  625. sheath()
  626. TH.Part1 = handle
  627. grip.Part1 = nil
  628. RABW2.Part1 = nil
  629. fps.Parent = nil
  630. CreateModel()
  631. end
  632. bin.Selected:connect(Select)
  633. bin.Deselected:connect(Deselect)
  634. human.Died:connect(function()
  635. fps.Parent = nil
  636. end)
  637. char.AncestryChanged:connect(function()
  638. fps.Parent = nil
  639. end)
  640. CreateModel()
  641. loopray()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement