Advertisement
DaOMEGAa32

fe lemonaid

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