Advertisement
lafur

Untitled

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