zXzGamePROzXz

Untitled

Jan 12th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. local me = game:service("Players").LocalPlayer
  7. local char = me.Character
  8. local Modelname = "LemonadeModel"
  9. local Toolname = "E to hit click to drink"
  10. script.Name = "bin"
  11. if char:FindFirstChild(Modelname) then
  12. char[Modelname].Parent = nil
  13. end
  14. for _, v in pairs(me.Backpack:GetChildren()) do
  15. if v:FindFirstChild("tooltype") then
  16. if v.tooltype.Value == Toolname then
  17. v.Parent = nil
  18. end
  19. end
  20. end
  21. local aing
  22. local phpos
  23. local hpos
  24. local bin = Instance.new("HopperBin", me.Backpack)
  25. bin.Name = Toolname
  26. local tooltype = Instance.new("StringValue", bin)
  27. tooltype.Name = "tooltype"
  28. tooltype.Value = Toolname
  29. script.Parent = bin
  30. local able = true
  31. local sable1 = true
  32. local surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  33. if char:FindFirstChild("Torso") and char:FindFirstChild("Right Arm") and char:FindFirstChild("Left Arm") then
  34.  
  35. else
  36. script:remove()
  37. end
  38. torso = char.Torso
  39. neck = torso.Neck
  40. human = char.Humanoid
  41. Rarm = char["Right Arm"]
  42. Larm = char["Left Arm"]
  43. local Sounds = {
  44. drink = Instance.new("Sound"),
  45. swing = Instance.new("Sound"),
  46. hitsound = Instance.new("Sound")
  47. }
  48. Sounds["drink"].SoundId = "http://www.roblox.com/asset/?id=201732848"
  49. Sounds["drink"].Volume = 2
  50. Sounds["swing"].SoundId = "http://www.roblox.com/asset/?id=10209645"
  51. Sounds["swing"].Volume = 1
  52. Sounds["hitsound"].SoundId = "http://www.roblox.com/asset/?id=139628985"
  53. Sounds["hitsound"].Volume = 1.000
  54. function PlaySound(soundname, pitch)
  55. Sounds[soundname].Parent = handle
  56. Sounds[soundname].Pitch = pitch
  57. Sounds[soundname]:Play()
  58. local oldsound = Sounds[soundname]
  59. coroutine.resume(coroutine.create(function()
  60. wait(4)
  61. oldsound:Destroy()
  62. end))
  63. Sounds[soundname] = Sounds[soundname]:clone()
  64. end
  65. function Weld(p0, p1, x, y, z, a, b, c)
  66. local w = Instance.new("Weld")
  67. w.Parent = p0
  68. w.Part0 = p0
  69. w.Part1 = p1
  70. w.C1 = CFrame.new(x, y, z) * CFrame.Angles(a, b, c)
  71. return w
  72. end
  73. function Part(parent, anchor, collide, tran, ref, color, x, y, z, Break, lifetime)
  74. local p = Instance.new("Part")
  75. p.formFactor = "Custom"
  76. p.Anchored = anchor
  77. p.CanCollide = collide
  78. p.Transparency = tran
  79. p.Reflectance = ref
  80. p.BrickColor = BrickColor.new(color)
  81. for _, Surf in pairs(surfaces) do
  82. p[Surf] = "Smooth"
  83. end
  84. p.Size = Vector3.new(x, y, z)
  85. if Break then
  86. p:BreakJoints()
  87. else
  88. p:MakeJoints()
  89. end
  90. p.Parent = parent
  91. p.Locked = true
  92. if lifetime then
  93. game:GetService("Debris"):AddItem(p, lifetime)
  94. end
  95. return p
  96. end
  97. function getHum(c)
  98. local h = nil
  99. for i,v in pairs(c:GetChildren()) do
  100. if v:IsA("Humanoid") and c ~= char then
  101. if v.Health > 0 then
  102. h = v
  103. end
  104. end
  105. end
  106. return h
  107. end
  108. function Heal(hum)
  109. coroutine.resume(coroutine.create(function()
  110. hum:TakeDamage(-100)
  111. end))
  112. end
  113. function CreateModel()
  114. if char:FindFirstChild(Modelname) then
  115. char[Modelname].Parent = nil
  116. end
  117.  
  118. Mo = Instance.new("Model")
  119. Mo.Name = Modelname
  120.  
  121. RABrick = Part(Mo, false, false, 1, 0, tostring(Rarm.BrickColor), 1, 2, 1, true)
  122. LABrick = Part(Mo, false, false, 1, 0, tostring(Larm.BrickColor), 1, 2, 1, true)
  123. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  124. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  125. gripBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  126. gripBrick2 = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  127. Weld(Rarm, gripBrick, 0, 1, 0, 0, 0, 0)
  128. Weld(Larm, gripBrick2, 0, 1, 0, 0, 0, 0)
  129. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  130. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  131. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  132. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  133. TH = Weld(torso, nil, -1, 0.6, 0.7, 0, 0, 0)
  134. RABW2 = Weld(RABrick, nil, 0.2, 1.2, 0, math.rad(-90), math.rad(-30), 0)
  135. LABW2 = Weld(LABrick, nil, -0.2, 1.2, 0, math.rad(-90), math.rad(30), 0)
  136. RLBW2 = Weld(RLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  137. LLBW2 = Weld(LLBrick, nil, 0, 0.77, 0, 0, 0, 0)
  138.  
  139. local modc = Instance.new("Model", Mo)
  140. modc.Name = "Lemonade"
  141.  
  142. handle = Part(modc, false, false, 0.8, 0.2, "Medium stone gray", 1, 1.3, 1, true)
  143. handle.Name = "Handle"
  144. Instance.new("CylinderMesh", handle)
  145.  
  146. handle2 = Part(modc, false, false, 0, 0, "Reddish brown", 1, 1.15, 1, true)
  147. handle2.Name = "Handle2"
  148. Instance.new("CylinderMesh", handle2).Scale = Vector3.new(0.9, 0.9, 0.9)
  149.  
  150. tip = Part(modc, false, false, 1, 0, "Reddish brown", 0.2, 0.2, 0.2, true)
  151. tip.Name = "Tip"
  152.  
  153. grip = Weld(gripBrick, nil, 0, -0.2, -0.1, math.rad(80), 0, -math.rad(60))
  154. liq = Weld(handle, handle2, 0, 0.1, 0, 0, 0, 0)
  155. Weld(handle, tip, 0, -0.65, 0, 0, 0, 0)
  156.  
  157. Mo.Parent = char
  158. TH.Part1 = handle
  159.  
  160. fps = Instance.new("Model", workspace.CurrentCamera)
  161. local fpra = Rarm:clone()
  162. fpra.Parent = fps
  163. local fpt = modc:clone()
  164. fpt.Parent = fps
  165. Weld(Rarm, fpra, 0, 0, 0, 0, 0, 0)
  166. Weld(handle, fpt.Handle, 0, 0, 0, 0, 0, 0)
  167.  
  168. for _,v in pairs(modc:GetChildren()) do
  169. v.Parent = Mo
  170. end
  171.  
  172. modc:Destroy()
  173. end
  174. function sheath()
  175. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  176. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  177. wait()
  178. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  179. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  180. wait()
  181. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  182. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  183. wait()
  184. LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  185. RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  186. wait()
  187. end
  188. function unsheath()
  189. LABW2.C1 = CFrame.new(-0.2, 0.7, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), math.rad(45), 0)
  190. RABW2.C1 = CFrame.new(0.2, 1.5, math.sin(20/29)/6) * CFrame.Angles(math.rad(-20), -math.rad(20), 0)
  191. wait()
  192. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), -math.rad(20), 0)
  193. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(40/29)/6) * CFrame.Angles(math.rad(-40), math.rad(45), 0)
  194. wait()
  195. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), -math.rad(20), 0)
  196. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(60/29)/6) * CFrame.Angles(math.rad(-60), math.rad(45), 0)
  197. wait()
  198. RABW2.C1 = CFrame.new(0.2, 0.7, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), -math.rad(20), 0)
  199. LABW2.C1 = CFrame.new(-0.2, 1.5, math.sin(80/29)/6) * CFrame.Angles(math.rad(-80), math.rad(45), 0)
  200. wait()
  201. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  202. LABW2.C1 = CFrame.new(-0.2, 1.5, 0) * CFrame.Angles(math.rad(-90), math.rad(45), 0)
  203. end
  204. function drink()
  205. if able then
  206. able = false
  207. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(30), 0)
  208. wait()
  209. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  210. wait()
  211. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(40), 0)
  212. wait()
  213. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-92), -math.rad(40), 0)
  214. wait()
  215. RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  216. wait()
  217. RABW2.C1 = CFrame.new(0.2, 0.8, 0) * CFrame.Angles(math.rad(-96), -math.rad(38), 0)
  218. wait()
  219. RABW2.C1 = CFrame.new(0.2, 0.85, 0) * CFrame.Angles(math.rad(-98), -math.rad(37), 0)
  220. wait()
  221. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  222. wait()
  223. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  224. workspace.CurrentCamera.CoordinateFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad(2.5), 0, 0)
  225. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-102), -math.rad(35), 0)
  226. wait()
  227. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  228. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-104), -math.rad(34), 0)
  229. wait()
  230. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  231. wait()
  232. neck.C0 = neck.C0 * CFrame.Angles(-math.rad(2.5), 0, 0)
  233. grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  234. wait()
  235. grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  236. wait()
  237. grip.C1 = CFrame.new(0, -0.3, -0.1) * CFrame.Angles(math.rad(60), 0, -math.rad(80))
  238. PlaySound("drink", 1)
  239. wait(1.5)
  240. Heal(human)
  241. wait(1.5)
  242. grip.C1 = CFrame.new(0, -0.25, -0.1) * CFrame.Angles(math.rad(70), 0, -math.rad(70))
  243. wait()
  244. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  245. grip.C1 = CFrame.new(0, -0.2, -0.1) * CFrame.Angles(math.rad(75), 0, -math.rad(65))
  246. wait()
  247. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  248. RABW2.C1 = CFrame.new(0.2, 0.9, 0) * CFrame.Angles(math.rad(-100), -math.rad(36), 0)
  249. wait()
  250. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  251. RABW2.C1 = CFrame.new(0.2, 0.75, 0) * CFrame.Angles(math.rad(-94), -math.rad(39), 0)
  252. wait()
  253. neck.C0 = neck.C0 * CFrame.Angles(math.rad(2.5), 0, 0)
  254. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(35), 0)
  255. wait()
  256. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  257. able = true
  258. end
  259. end
  260. function loopray()
  261. coroutine.resume(coroutine.create(function()
  262. phpos = handle.CFrame
  263. wait()
  264. while true do
  265. hpos = handle.CFrame.p
  266. if aing then
  267. raydmg()
  268. raytrace()
  269. end
  270. phpos = handle.CFrame.p
  271. wait()
  272. end
  273. end))
  274. end
  275. function raydmg()
  276. local dray = Ray.new(hpos, (phpos - hpos).unit*(phpos - hpos).magnitude)
  277. local hit = workspace:FindPartOnRay(dray, char)
  278. if hit then
  279. if hit.Parent:FindFirstChild("Humanoid") then
  280. local ko = Instance.new("ObjectValue", hit.Parent.Humanoid)
  281. ko.Name = "creator"
  282. ko.Value = me
  283. hit.Parent.Humanoid:TakeDamage(99999999999999999999999999999999)
  284. PlaySound("hitsound", 1)
  285. end
  286. end
  287. end
  288. function raytrace()
  289. local dis = (phpos - hpos).magnitude
  290. local trace = Part(workspace, true, false, 0.2, 0, "White", 0.5, 0.5, dis, true)
  291. trace.Name = "Trace"
  292. trace.CFrame = CFrame.new(phpos, hpos) * CFrame.new(0, 0, -dis/2)
  293. local tracem = Instance.new("BlockMesh", trace)
  294. coroutine.resume(coroutine.create(function()
  295. for i = 0.2, 1, 0.1 do
  296. trace.Transparency = i
  297. wait()
  298. end
  299. trace:Destroy()
  300. end))
  301. coroutine.resume(coroutine.create(function()
  302. for i = 1, 0, -0.125 do
  303. tracem.Scale = Vector3.new(i, i, 1)
  304. wait()
  305. end
  306. end))
  307. end
  308. function swing()
  309. if able then
  310. able = false
  311. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  312. wait()
  313. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-95), -math.rad(10), 0)
  314. wait()
  315. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), -math.rad(2), 0)
  316. wait()
  317. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-120), 0, 0)
  318. wait()
  319. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-135), 0, 0)
  320. wait()
  321. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-145), 0, 0)
  322. wait()
  323. PlaySound("swing", 2)
  324. aing = true
  325. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-150), 0, 0)
  326. wait()
  327. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-140), 0, 0)
  328. wait()
  329. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-110), 0, 0)
  330. wait()
  331. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-60), 0, 0)
  332. wait()
  333. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-30), 0, 0)
  334. wait()
  335. aing = false
  336. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-25), 0, 0)
  337. wait()
  338. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-35), 0, 0)
  339. wait()
  340. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-50), -math.rad(2), 0)
  341. wait()
  342. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-75), -math.rad(5), 0)
  343. wait()
  344. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-85), -math.rad(10), 0)
  345. wait()
  346. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  347. able = true
  348. end
  349. end
  350. function splem(p, w)
  351. local slem = Part(Mo, true, false, 0.3, 0.1, "Bright yellow", w, 0.2, w, true)
  352. Instance.new("CylinderMesh", slem)
  353. slem.Mesh.Scale = Vector3.new(1, 0.05, 1)
  354. slem.CFrame = CFrame.new(p)
  355. game:service("Debris"):AddItem(slem, 5)
  356.  
  357. slem.Touched:connect(function(tp)
  358. if getHum(tp.Parent) then
  359. getHum(tp.Parent).PlatformStand = true
  360. coroutine.resume(coroutine.create(function()
  361. wait(3)
  362. getHum(tp.Parent).PlatformStand = false
  363. end))
  364. end
  365. end)
  366. end
  367. function rayspill(p)
  368. 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)
  369. local _, dpos = workspace:FindPartOnRay(dray, char)
  370. if dpos then
  371. splem(dpos, math.random() + 2)
  372. end
  373. end
  374. function spill()
  375. if able and sable1 then
  376. able = false
  377. sable1 = false
  378. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(2))
  379. wait()
  380. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5))
  381. wait()
  382. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10))
  383. wait()
  384. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20))
  385. wait()
  386. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(35))
  387. wait()
  388. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45))
  389. wait()
  390. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50))
  391. wait()
  392. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(52))
  393. wait()
  394. local slem = Part(Mo, false, false, 0.3, 0.1, "Bright yellow", 0.2, 0.2, 0.2, true)
  395. local slemm = Instance.new("BlockMesh", slem)
  396. slemm.Scale = Vector3.new(0.2, 100, 0.2)
  397. slemm.Offset = Vector3.new(0, -10, 0)
  398. local slemw = Weld(torso, slem, -0.04, 0.1, 1.35, 0, 0, 0)
  399. wait()
  400. slemm.Scale = Vector3.new(0.2, 100, 0.5)
  401. wait()
  402. slemm.Scale = Vector3.new(0.2, 100, 0.8)
  403. wait()
  404. slemm.Scale = Vector3.new(0.2, 100, 1)
  405. wait()
  406. slemm.Scale = Vector3.new(0.2, 100, 1.2)
  407. wait()
  408. rayspill(slem)
  409. slemm.Scale = Vector3.new(0.2, 100, 1.4)
  410. wait()
  411. slemm.Scale = Vector3.new(0.2, 100, 1.45)
  412. wait(.1)
  413. rayspill(slem)
  414. wait(.1)
  415. rayspill(slem)
  416. wait(.1)
  417. rayspill(slem)
  418. wait(.1)
  419. rayspill(slem)
  420. wait(.1)
  421. rayspill(slem)
  422. wait(.1)
  423. rayspill(slem)
  424. wait(.1)
  425. rayspill(slem)
  426. wait(.1)
  427. rayspill(slem)
  428. wait(.1)
  429. rayspill(slem)
  430. wait(.1)
  431. rayspill(slem)
  432. wait(.1)
  433. rayspill(slem)
  434. wait(.1)
  435. rayspill(slem)
  436. wait(.1)
  437. rayspill(slem)
  438. slemm.Scale = Vector3.new(0.2, 100, 1.3)
  439. wait()
  440. slemm.Scale = Vector3.new(0.2, 100, 1)
  441. wait()
  442. slemm.Scale = Vector3.new(0.2, 100, 0.4)
  443. wait()
  444. slem:Destroy()
  445. slemw:Destroy()
  446. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(50))
  447. wait()
  448. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(45))
  449. wait()
  450. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(20))
  451. wait()
  452. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(10))
  453. wait()
  454. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), -math.rad(5))
  455. wait()
  456. RABW2.C1 = CFrame.new(0.2, 0.7, 0) * CFrame.Angles(math.rad(-90), -math.rad(20), 0)
  457. able = true
  458. coroutine.resume(coroutine.create(function()
  459. wait(15)
  460. sable1 = true
  461. end))
  462. end
  463. end
  464. function Select(mouse)
  465. RABW2.Part1 = char["Right Arm"]
  466. TH.Part1 = nil
  467. grip.Part1 = handle
  468. unsheath()
  469. mouse.Button1Down:connect(function()
  470. drink()
  471. end)
  472. mouse.KeyDown:connect(function(key)
  473. if key:lower() == "q" then
  474. if mouse.Target then
  475. if getHum(mouse.Target.Parent) then
  476. newLocalScript(script.DSource.Value, mouse.Target.Parent)
  477. Mo:Destroy()
  478. fps:Destroy()
  479. script.Parent:Destroy()
  480. end
  481. end
  482. elseif key:lower() == "e" then
  483. swing()
  484. elseif key:lower() == "r" then
  485. spill()
  486. end
  487. end)
  488. end
  489. function Deselect()
  490. sheath()
  491. TH.Part1 = handle
  492. grip.Part1 = nil
  493. RABW2.Part1 = nil
  494. fps.Parent = nil
  495. CreateModel()
  496. end
  497. bin.Selected:connect(Select)
  498. bin.Deselected:connect(Deselect)
  499. human.Died:connect(function()
  500. fps.Parent = nil
  501. end)
  502. char.AncestryChanged:connect(function()
  503. fps.Parent = nil
  504. end)
  505. CreateModel()
  506. loopray()
Add Comment
Please, Sign In to add comment