Advertisement
vallentganteng

fruit launcher

Apr 22nd, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.77 KB | None | 0 0
  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. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. local plrs = game:GetService("Players")
  85. local plr = owner
  86. local char = plr.Character
  87. local tweenserv = game:GetService("TweenService")
  88. local lighting = game:GetService("Lighting")
  89. local hum = char:FindFirstChildOfClass("Humanoid")
  90. z = Instance.new("Sound", Torso)
  91. z.SoundId = "rbxassetid://1384229312" -- Put Music ID Here.
  92. z.Looped = true
  93. z.Volume = 10
  94. wait(.1)
  95. z:Play()
  96. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  97. local root = char:FindFirstChild("HumanoidRootPart")
  98. local head = char:FindFirstChild("Head")
  99. local face = head:FindFirstChildOfClass("Decal")
  100. local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
  101. local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
  102. local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
  103. local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
  104. local neck = tor:FindFirstChild("Neck")
  105. local rootj = root:FindFirstChild("RootJoint")
  106. local LS = tor:FindFirstChild("Left Shoulder")
  107. local RS = tor:FindFirstChild("Right Shoulder")
  108. local LH = tor:FindFirstChild("Left Hip")
  109. local RH = tor:FindFirstChild("Right Hip")
  110. local bp = plr:FindFirstChild("Backpack")
  111. local cam = workspace.CurrentCamera
  112. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  113. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  114. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  115. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  116.  
  117. hum:ClearAllChildren()
  118. char.Animate:remove()
  119.  
  120. --Converted with ttyyuu12345's model to script plugin v4
  121. function sandbox(var,func)
  122. local env = getfenv(func)
  123. local newenv = setmetatable({},{
  124. __index = function(self,k)
  125. if k=="script" then
  126. return var
  127. else
  128. return env[k]
  129. end
  130. end,
  131. })
  132. setfenv(func,newenv)
  133. return func
  134. end
  135. cors = {}
  136. mas = Instance.new("Model",game:GetService("Lighting"))
  137. Model0 = Instance.new("Model")
  138. Model1 = Instance.new("Model")
  139. Part2 = Instance.new("Part")
  140. ManualWeld3 = Instance.new("ManualWeld")
  141. Part4 = Instance.new("Part")
  142. ManualWeld5 = Instance.new("ManualWeld")
  143. Part6 = Instance.new("Part")
  144. ManualWeld7 = Instance.new("ManualWeld")
  145. Part8 = Instance.new("Part")
  146. ManualWeld9 = Instance.new("ManualWeld")
  147. Part10 = Instance.new("Part")
  148. ManualWeld11 = Instance.new("ManualWeld")
  149. Model12 = Instance.new("Model")
  150. Part13 = Instance.new("Part")
  151. ManualWeld14 = Instance.new("ManualWeld")
  152. Part15 = Instance.new("Part")
  153. ManualWeld16 = Instance.new("ManualWeld")
  154. Part17 = Instance.new("Part")
  155. ManualWeld18 = Instance.new("ManualWeld")
  156. Part19 = Instance.new("Part")
  157. ManualWeld20 = Instance.new("ManualWeld")
  158. Part21 = Instance.new("Part")
  159. ManualWeld22 = Instance.new("ManualWeld")
  160. Part23 = Instance.new("Part")
  161. ManualWeld24 = Instance.new("ManualWeld")
  162. Part25 = Instance.new("Part")
  163. ManualWeld26 = Instance.new("ManualWeld")
  164. Part27 = Instance.new("Part")
  165. ManualWeld28 = Instance.new("ManualWeld")
  166. Part29 = Instance.new("Part")
  167. ManualWeld30 = Instance.new("ManualWeld")
  168. Part31 = Instance.new("Part")
  169. ManualWeld32 = Instance.new("ManualWeld")
  170. Part33 = Instance.new("Part")
  171. ManualWeld34 = Instance.new("ManualWeld")
  172. Part35 = Instance.new("Part")
  173. ManualWeld36 = Instance.new("ManualWeld")
  174. Part37 = Instance.new("Part")
  175. ManualWeld38 = Instance.new("ManualWeld")
  176. Part39 = Instance.new("Part")
  177. ManualWeld40 = Instance.new("ManualWeld")
  178. Part41 = Instance.new("Part")
  179. ManualWeld42 = Instance.new("ManualWeld")
  180. Part43 = Instance.new("Part")
  181. ManualWeld44 = Instance.new("ManualWeld")
  182. Part45 = Instance.new("Part")
  183. ManualWeld46 = Instance.new("ManualWeld")
  184. Part47 = Instance.new("Part")
  185. ManualWeld48 = Instance.new("ManualWeld")
  186. Part49 = Instance.new("Part")
  187. Model0.Name = "fruitgun"
  188. Model0.Parent = mas
  189. Model1.Name = "placer2"
  190. Model1.Parent = Model0
  191. Part2.Name = "boltb"
  192. Part2.Parent = Model1
  193. Part2.Material = Enum.Material.Glass
  194. Part2.BrickColor = BrickColor.new("Gold")
  195. Part2.Rotation = Vector3.new(-180, 0, -45)
  196. Part2.CanCollide = false
  197. Part2.Shape = Enum.PartType.Cylinder
  198. Part2.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  199. Part2.CFrame = CFrame.new(-159.454483, 116.303047, -62.8337746, 0.70710665, 0.707106769, 6.18172464e-08, 0.70710659, -0.707106471, 6.1817218e-08, 8.74227766e-08, 0, -0.99999994)
  200. Part2.BottomSurface = Enum.SurfaceType.Smooth
  201. Part2.TopSurface = Enum.SurfaceType.Smooth
  202. Part2.Color = Color3.new(0.937255, 0.721569, 0.219608)
  203. Part2.Position = Vector3.new(-159.454483, 116.303047, -62.8337746)
  204. Part2.Orientation = Vector3.new(0, 180, 135)
  205. Part2.Color = Color3.new(0.937255, 0.721569, 0.219608)
  206. ManualWeld3.Name = "Weld"
  207. ManualWeld3.Parent = Part2
  208. ManualWeld3.C0 = CFrame.new(0, 0, 0, 0.70710665, 0.707106769, 8.74227695e-08, 0.707106769, -0.70710665, 0, 6.18172393e-08, 6.18172393e-08, -0.99999994)
  209. ManualWeld3.C1 = CFrame.new(0.800003052, 0.403038025, 0.403045654, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  210. ManualWeld3.Part0 = Part2
  211. ManualWeld3.Part1 = Part21
  212. Part4.Name = "boltl"
  213. Part4.Parent = Model1
  214. Part4.Material = Enum.Material.Glass
  215. Part4.BrickColor = BrickColor.new("Gold")
  216. Part4.Rotation = Vector3.new(180, 0, 45)
  217. Part4.CanCollide = false
  218. Part4.Shape = Enum.PartType.Cylinder
  219. Part4.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  220. Part4.CFrame = CFrame.new(-160.260574, 116.303055, -62.8337746, 0.707106709, -0.707106709, 6.18172393e-08, -0.707106531, -0.707106531, -6.1817218e-08, 8.74227766e-08, 0, -1)
  221. Part4.BottomSurface = Enum.SurfaceType.Smooth
  222. Part4.TopSurface = Enum.SurfaceType.Smooth
  223. Part4.Color = Color3.new(0.937255, 0.721569, 0.219608)
  224. Part4.Position = Vector3.new(-160.260574, 116.303055, -62.8337746)
  225. Part4.Orientation = Vector3.new(0, 180, -135)
  226. Part4.Color = Color3.new(0.937255, 0.721569, 0.219608)
  227. ManualWeld5.Name = "Weld"
  228. ManualWeld5.Parent = Part4
  229. ManualWeld5.C0 = CFrame.new(0, 0, 0, 0.707106709, -0.707106709, 8.74227766e-08, -0.707106709, -0.707106709, 0, 6.18172393e-08, -6.18172393e-08, -1)
  230. ManualWeld5.C1 = CFrame.new(0.800003052, 0.403045654, -0.403045654, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  231. ManualWeld5.Part0 = Part4
  232. ManualWeld5.Part1 = Part21
  233. Part6.Name = "boltr"
  234. Part6.Parent = Model1
  235. Part6.Material = Enum.Material.Glass
  236. Part6.BrickColor = BrickColor.new("Gold")
  237. Part6.Rotation = Vector3.new(180, 0, 45)
  238. Part6.CanCollide = false
  239. Part6.Shape = Enum.PartType.Cylinder
  240. Part6.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  241. Part6.CFrame = CFrame.new(-159.454483, 115.496948, -62.8337746, 0.707106709, -0.707106709, 6.18172393e-08, -0.707106531, -0.707106531, -6.1817218e-08, 8.74227766e-08, 0, -1)
  242. Part6.BottomSurface = Enum.SurfaceType.Smooth
  243. Part6.TopSurface = Enum.SurfaceType.Smooth
  244. Part6.Color = Color3.new(0.937255, 0.721569, 0.219608)
  245. Part6.Position = Vector3.new(-159.454483, 115.496948, -62.8337746)
  246. Part6.Orientation = Vector3.new(0, 180, -135)
  247. Part6.Color = Color3.new(0.937255, 0.721569, 0.219608)
  248. ManualWeld7.Name = "Weld"
  249. ManualWeld7.Parent = Part6
  250. ManualWeld7.C0 = CFrame.new(0, 0, 0, 0.707106709, -0.707106709, 8.74227766e-08, -0.707106709, -0.707106709, 0, 6.18172393e-08, -6.18172393e-08, -1)
  251. ManualWeld7.C1 = CFrame.new(0.800003052, -0.403060913, 0.403045654, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  252. ManualWeld7.Part0 = Part6
  253. ManualWeld7.Part1 = Part21
  254. Part8.Name = "boltt"
  255. Part8.Parent = Model1
  256. Part8.Material = Enum.Material.Glass
  257. Part8.BrickColor = BrickColor.new("Gold")
  258. Part8.Rotation = Vector3.new(-180, 0, -45)
  259. Part8.CanCollide = false
  260. Part8.Shape = Enum.PartType.Cylinder
  261. Part8.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  262. Part8.CFrame = CFrame.new(-160.26059, 115.496964, -62.8337746, 0.70710665, 0.707106769, 6.18172464e-08, 0.70710659, -0.707106471, 6.1817218e-08, 8.74227766e-08, 0, -0.99999994)
  263. Part8.BottomSurface = Enum.SurfaceType.Smooth
  264. Part8.TopSurface = Enum.SurfaceType.Smooth
  265. Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
  266. Part8.Position = Vector3.new(-160.26059, 115.496964, -62.8337746)
  267. Part8.Orientation = Vector3.new(0, 180, 135)
  268. Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
  269. ManualWeld9.Name = "Weld"
  270. ManualWeld9.Parent = Part8
  271. ManualWeld9.C0 = CFrame.new(0, 0, 0, 0.70710665, 0.707106769, 8.74227695e-08, 0.707106769, -0.70710665, 0, 6.18172393e-08, 6.18172393e-08, -0.99999994)
  272. ManualWeld9.C1 = CFrame.new(0.800003052, -0.403045654, -0.403060913, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  273. ManualWeld9.Part0 = Part8
  274. ManualWeld9.Part1 = Part21
  275. Part10.Parent = Model1
  276. Part10.Material = Enum.Material.Wood
  277. Part10.BrickColor = BrickColor.new("CGA brown")
  278. Part10.Rotation = Vector3.new(-90, -45, 90)
  279. Part10.CanCollide = false
  280. Part10.Shape = Enum.PartType.Cylinder
  281. Part10.Size = Vector3.new(0.299999982, 1.20000005, 1.20000005)
  282. Part10.CFrame = CFrame.new(-159.857529, 115.899994, -62.8337746, 3.09086161e-08, -0.707106709, -0.707106709, -3.0908609e-08, -0.707106531, 0.707106531, -1, 0, -4.37113883e-08)
  283. Part10.BottomSurface = Enum.SurfaceType.Smooth
  284. Part10.TopSurface = Enum.SurfaceType.Smooth
  285. Part10.Color = Color3.new(0.666667, 0.333333, 0)
  286. Part10.Position = Vector3.new(-159.857529, 115.899994, -62.8337746)
  287. Part10.Orientation = Vector3.new(-45, -90, -180)
  288. Part10.Color = Color3.new(0.666667, 0.333333, 0)
  289. ManualWeld11.Name = "Weld"
  290. ManualWeld11.Parent = Part10
  291. ManualWeld11.C0 = CFrame.new(0, 0, 0, 3.09086197e-08, -3.09086197e-08, -1, -0.707106709, -0.707106709, 0, -0.707106709, 0.707106709, -4.37113883e-08)
  292. ManualWeld11.C1 = CFrame.new(0.800003052, -1.52587891e-05, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  293. ManualWeld11.Part0 = Part10
  294. ManualWeld11.Part1 = Part21
  295. Model12.Name = "placer"
  296. Model12.Parent = Model0
  297. Part13.Name = "boltt"
  298. Part13.Parent = Model12
  299. Part13.Material = Enum.Material.Glass
  300. Part13.BrickColor = BrickColor.new("Gold")
  301. Part13.Rotation = Vector3.new(180, 0, 90)
  302. Part13.CanCollide = false
  303. Part13.Shape = Enum.PartType.Cylinder
  304. Part13.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  305. Part13.CFrame = CFrame.new(-159.857513, 116.470001, -62.0337715, 4.37113883e-08, -0.999999881, 3.55271368e-15, -0.999999762, -4.37113741e-08, -8.74227553e-08, 8.74227695e-08, 0, -0.99999994)
  306. Part13.BottomSurface = Enum.SurfaceType.Smooth
  307. Part13.TopSurface = Enum.SurfaceType.Smooth
  308. Part13.Color = Color3.new(0.937255, 0.721569, 0.219608)
  309. Part13.Position = Vector3.new(-159.857513, 116.470001, -62.0337715)
  310. Part13.Orientation = Vector3.new(0, 180, -90)
  311. Part13.Color = Color3.new(0.937255, 0.721569, 0.219608)
  312. ManualWeld14.Name = "Weld"
  313. ManualWeld14.Parent = Part13
  314. ManualWeld14.C0 = CFrame.new(0, 0, 0, 4.37113883e-08, -1, 8.74227695e-08, -0.999999881, -4.37113847e-08, 0, 3.82137093e-15, -8.74227766e-08, -0.99999994)
  315. ManualWeld14.C1 = CFrame.new(0, 0.569992065, 1.52587891e-05, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  316. ManualWeld14.Part0 = Part13
  317. ManualWeld14.Part1 = Part21
  318. Part15.Name = "boltr"
  319. Part15.Parent = Model12
  320. Part15.Material = Enum.Material.Glass
  321. Part15.BrickColor = BrickColor.new("Gold")
  322. Part15.Rotation = Vector3.new(-180, 0, -180)
  323. Part15.CanCollide = false
  324. Part15.Shape = Enum.PartType.Cylinder
  325. Part15.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  326. Part15.CFrame = CFrame.new(-160.427521, 115.900009, -62.0337715, -1, 0, -8.74227766e-08, 0, 0.999999642, 0, 8.74227766e-08, 0, -1)
  327. Part15.BottomSurface = Enum.SurfaceType.Smooth
  328. Part15.TopSurface = Enum.SurfaceType.Smooth
  329. Part15.Color = Color3.new(0.937255, 0.721569, 0.219608)
  330. Part15.Position = Vector3.new(-160.427521, 115.900009, -62.0337715)
  331. Part15.Orientation = Vector3.new(0, -180, 0)
  332. Part15.Color = Color3.new(0.937255, 0.721569, 0.219608)
  333. ManualWeld16.Name = "Weld"
  334. ManualWeld16.Parent = Part15
  335. ManualWeld16.C0 = CFrame.new(0, 0, 0, -1, 0, 8.74227766e-08, 0, 0.999999881, 0, -8.74227766e-08, 0, -1)
  336. ManualWeld16.C1 = CFrame.new(0, 0, -0.569992065, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  337. ManualWeld16.Part0 = Part15
  338. ManualWeld16.Part1 = Part21
  339. Part17.Name = "boltl"
  340. Part17.Parent = Model12
  341. Part17.Material = Enum.Material.Glass
  342. Part17.BrickColor = BrickColor.new("Gold")
  343. Part17.Rotation = Vector3.new(-180, 0, -180)
  344. Part17.CanCollide = false
  345. Part17.Shape = Enum.PartType.Cylinder
  346. Part17.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  347. Part17.CFrame = CFrame.new(-159.287521, 115.900009, -62.0337715, -1, 0, -8.74227766e-08, 0, 0.999999642, 0, 8.74227766e-08, 0, -1)
  348. Part17.BottomSurface = Enum.SurfaceType.Smooth
  349. Part17.TopSurface = Enum.SurfaceType.Smooth
  350. Part17.Color = Color3.new(0.937255, 0.721569, 0.219608)
  351. Part17.Position = Vector3.new(-159.287521, 115.900009, -62.0337715)
  352. Part17.Orientation = Vector3.new(0, -180, 0)
  353. Part17.Color = Color3.new(0.937255, 0.721569, 0.219608)
  354. ManualWeld18.Name = "Weld"
  355. ManualWeld18.Parent = Part17
  356. ManualWeld18.C0 = CFrame.new(0, 0, 0, -1, 0, 8.74227766e-08, 0, 0.999999881, 0, -8.74227766e-08, 0, -1)
  357. ManualWeld18.C1 = CFrame.new(0, 0, 0.570007324, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  358. ManualWeld18.Part0 = Part17
  359. ManualWeld18.Part1 = Part21
  360. Part19.Name = "boltb"
  361. Part19.Parent = Model12
  362. Part19.Material = Enum.Material.Glass
  363. Part19.BrickColor = BrickColor.new("Gold")
  364. Part19.Rotation = Vector3.new(180, 0, 90)
  365. Part19.CanCollide = false
  366. Part19.Shape = Enum.PartType.Cylinder
  367. Part19.Size = Vector3.new(0.100000001, 0.150000006, 0.150000006)
  368. Part19.CFrame = CFrame.new(-159.857513, 115.330002, -62.0337715, 4.37113883e-08, -0.999999881, 3.55271368e-15, -0.999999762, -4.37113741e-08, -8.74227553e-08, 8.74227695e-08, 0, -0.99999994)
  369. Part19.BottomSurface = Enum.SurfaceType.Smooth
  370. Part19.TopSurface = Enum.SurfaceType.Smooth
  371. Part19.Color = Color3.new(0.937255, 0.721569, 0.219608)
  372. Part19.Position = Vector3.new(-159.857513, 115.330002, -62.0337715)
  373. Part19.Orientation = Vector3.new(0, 180, -90)
  374. Part19.Color = Color3.new(0.937255, 0.721569, 0.219608)
  375. ManualWeld20.Name = "Weld"
  376. ManualWeld20.Parent = Part19
  377. ManualWeld20.C0 = CFrame.new(0, 0, 0, 4.37113883e-08, -1, 8.74227695e-08, -0.999999881, -4.37113847e-08, 0, 3.82137093e-15, -8.74227766e-08, -0.99999994)
  378. ManualWeld20.C1 = CFrame.new(0, -0.570007324, 1.52587891e-05, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  379. ManualWeld20.Part0 = Part19
  380. ManualWeld20.Part1 = Part21
  381. Part21.Parent = Model12
  382. Part21.Material = Enum.Material.Wood
  383. Part21.BrickColor = BrickColor.new("CGA brown")
  384. Part21.Rotation = Vector3.new(0, 90, 0)
  385. Part21.CanCollide = false
  386. Part21.Shape = Enum.PartType.Cylinder
  387. Part21.Size = Vector3.new(0.299999982, 1.20000005, 1.20000005)
  388. Part21.CFrame = CFrame.new(-159.857529, 115.900009, -62.0337715, -4.37113883e-08, 0, 1, 0, 0.999999821, 0, -1, 0, -4.37113883e-08)
  389. Part21.BottomSurface = Enum.SurfaceType.Smooth
  390. Part21.TopSurface = Enum.SurfaceType.Smooth
  391. Part21.Color = Color3.new(0.666667, 0.333333, 0)
  392. Part21.Position = Vector3.new(-159.857529, 115.900009, -62.0337715)
  393. Part21.Orientation = Vector3.new(0, 90, 0)
  394. Part21.Color = Color3.new(0.666667, 0.333333, 0)
  395. ManualWeld22.Name = "Weld"
  396. ManualWeld22.Parent = Part21
  397. ManualWeld22.C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 0.999999821, 0, 1, 0, -4.37113883e-08)
  398. ManualWeld22.C1 = CFrame.new(0.00436401367, -2.45159531, -1.07679749, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  399. ManualWeld22.Part0 = Part21
  400. ManualWeld22.Part1 = Part49
  401. Part23.Name = "base"
  402. Part23.Parent = Model0
  403. Part23.Material = Enum.Material.Wood
  404. Part23.BrickColor = BrickColor.new("Shamrock")
  405. Part23.Rotation = Vector3.new(0, 90, 0)
  406. Part23.CanCollide = false
  407. Part23.Shape = Enum.PartType.Cylinder
  408. Part23.Size = Vector3.new(2.89999986, 1, 1)
  409. Part23.CFrame = CFrame.new(-159.857529, 115.900009, -63.1337738, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  410. Part23.BottomSurface = Enum.SurfaceType.Smooth
  411. Part23.TopSurface = Enum.SurfaceType.Smooth
  412. Part23.Color = Color3.new(0.356863, 0.603922, 0.298039)
  413. Part23.Position = Vector3.new(-159.857529, 115.900009, -63.1337738)
  414. Part23.Orientation = Vector3.new(0, 90, 0)
  415. Part23.Color = Color3.new(0.356863, 0.603922, 0.298039)
  416. ManualWeld24.Name = "Weld"
  417. ManualWeld24.Parent = Part23
  418. ManualWeld24.C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  419. ManualWeld24.C1 = CFrame.new(1.10000229, 0, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  420. ManualWeld24.Part0 = Part23
  421. ManualWeld24.Part1 = Part21
  422. Part25.Name = "cap2"
  423. Part25.Parent = Model0
  424. Part25.Material = Enum.Material.Wood
  425. Part25.BrickColor = BrickColor.new("Crimson")
  426. Part25.Rotation = Vector3.new(0, 90, 0)
  427. Part25.CanCollide = false
  428. Part25.Shape = Enum.PartType.Cylinder
  429. Part25.Size = Vector3.new(0.249999985, 0.899999976, 0.899999976)
  430. Part25.CFrame = CFrame.new(-159.857529, 115.900002, -64.8087692, -4.37113883e-08, 0, 1, 0, 0.999999702, 0, -1, 0, -4.37113883e-08)
  431. Part25.BottomSurface = Enum.SurfaceType.Smooth
  432. Part25.TopSurface = Enum.SurfaceType.Smooth
  433. Part25.Color = Color3.new(0.294118, 0.592157, 0.294118)
  434. Part25.Position = Vector3.new(-159.857529, 115.900002, -64.8087692)
  435. Part25.Orientation = Vector3.new(0, 90, 0)
  436. Part25.Color = Color3.new(0.294118, 0.592157, 0.294118)
  437. ManualWeld26.Name = "Weld"
  438. ManualWeld26.Parent = Part25
  439. ManualWeld26.C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  440. ManualWeld26.C1 = CFrame.new(2.77499771, -7.62939453e-06, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  441. ManualWeld26.Part0 = Part25
  442. ManualWeld26.Part1 = Part21
  443. Part27.Name = "cap1"
  444. Part27.Parent = Model0
  445. Part27.Material = Enum.Material.Wood
  446. Part27.BrickColor = BrickColor.new("Crimson")
  447. Part27.Rotation = Vector3.new(0, 90, 0)
  448. Part27.CanCollide = false
  449. Part27.Shape = Enum.PartType.Cylinder
  450. Part27.Size = Vector3.new(0.199999988, 1.10000002, 1.10000002)
  451. Part27.CFrame = CFrame.new(-159.857529, 115.900009, -64.6837692, -4.37113883e-08, 0, 1, 0, 0.999999702, 0, -1, 0, -4.37113883e-08)
  452. Part27.BottomSurface = Enum.SurfaceType.Smooth
  453. Part27.TopSurface = Enum.SurfaceType.Smooth
  454. Part27.Color = Color3.new(0.294118, 0.592157, 0.294118)
  455. Part27.Position = Vector3.new(-159.857529, 115.900009, -64.6837692)
  456. Part27.Orientation = Vector3.new(0, 90, 0)
  457. Part27.Color = Color3.new(0.294118, 0.592157, 0.294118)
  458. ManualWeld28.Name = "Weld"
  459. ManualWeld28.Parent = Part27
  460. ManualWeld28.C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  461. ManualWeld28.C1 = CFrame.new(2.64999771, 0, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  462. ManualWeld28.Part0 = Part27
  463. ManualWeld28.Part1 = Part21
  464. Part29.Name = "sightbottom"
  465. Part29.Parent = Model0
  466. Part29.Material = Enum.Material.Wood
  467. Part29.BrickColor = BrickColor.new("Crimson")
  468. Part29.CanCollide = false
  469. Part29.Size = Vector3.new(0.400000036, 0.300000012, 0.150000051)
  470. Part29.CFrame = CFrame.new(-159.864105, 116.459465, -64.1473083, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  471. Part29.BottomSurface = Enum.SurfaceType.Smooth
  472. Part29.TopSurface = Enum.SurfaceType.Smooth
  473. Part29.Color = Color3.new(0.294118, 0.592157, 0.294118)
  474. Part29.Position = Vector3.new(-159.864105, 116.459465, -64.1473083)
  475. Part29.Color = Color3.new(0.294118, 0.592157, 0.294118)
  476. ManualWeld30.Name = "Weld"
  477. ManualWeld30.Parent = Part29
  478. ManualWeld30.C1 = CFrame.new(2.11353683, 0.559455872, -0.00657653809, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  479. ManualWeld30.Part0 = Part29
  480. ManualWeld30.Part1 = Part21
  481. Part31.Name = "hole"
  482. Part31.Parent = Model0
  483. Part31.Material = Enum.Material.Metal
  484. Part31.BrickColor = BrickColor.new("Really black")
  485. Part31.Rotation = Vector3.new(0, 90, 0)
  486. Part31.CanCollide = false
  487. Part31.Shape = Enum.PartType.Cylinder
  488. Part31.Size = Vector3.new(0.0500000007, 0.899999976, 0.899999976)
  489. Part31.CFrame = CFrame.new(-159.857529, 115.900009, -61.6887779, -4.37113883e-08, 0, 1, 0, 0.999999702, 0, -1, 0, -4.37113883e-08)
  490. Part31.BottomSurface = Enum.SurfaceType.Smooth
  491. Part31.TopSurface = Enum.SurfaceType.Smooth
  492. Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  493. Part31.Position = Vector3.new(-159.857529, 115.900009, -61.6887779)
  494. Part31.Orientation = Vector3.new(0, 90, 0)
  495. Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  496. ManualWeld32.Name = "Weld"
  497. ManualWeld32.Parent = Part31
  498. ManualWeld32.C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  499. ManualWeld32.C1 = CFrame.new(-0.344993591, 0, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  500. ManualWeld32.Part0 = Part31
  501. ManualWeld32.Part1 = Part21
  502. Part33.Name = "handle"
  503. Part33.Parent = Model0
  504. Part33.Material = Enum.Material.Wood
  505. Part33.BrickColor = BrickColor.new("CGA brown")
  506. Part33.Rotation = Vector3.new(15, 0, 0)
  507. Part33.CanCollide = false
  508. Part33.Size = Vector3.new(0.5, 1, 0.400000006)
  509. Part33.CFrame = CFrame.new(-159.866379, 115.122383, -64.3988647, 1, 0, 0, 0, 0.965925574, -0.258818954, 0, 0.258819044, 0.965925813)
  510. Part33.BottomSurface = Enum.SurfaceType.Smooth
  511. Part33.TopSurface = Enum.SurfaceType.Smooth
  512. Part33.Color = Color3.new(0.666667, 0.333333, 0)
  513. Part33.Position = Vector3.new(-159.866379, 115.122383, -64.3988647)
  514. Part33.Orientation = Vector3.new(15, 0, 0)
  515. Part33.Color = Color3.new(0.666667, 0.333333, 0)
  516. ManualWeld34.Name = "Weld"
  517. ManualWeld34.Parent = Part33
  518. ManualWeld34.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813)
  519. ManualWeld34.C1 = CFrame.new(2.36509323, -0.777626038, -0.00885009766, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  520. ManualWeld34.Part0 = Part33
  521. ManualWeld34.Part1 = Part21
  522. Part35.Name = "apple1"
  523. Part35.Parent = Model0
  524. Part35.Material = Enum.Material.SmoothPlastic
  525. Part35.BrickColor = BrickColor.new("Bright red")
  526. Part35.CanCollide = false
  527. Part35.Size = Vector3.new(0.100000031, 0.350000024, 0.350000054)
  528. Part35.CFrame = CFrame.new(-160.314087, 115.88446, -63.6473083, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  529. Part35.BottomSurface = Enum.SurfaceType.Smooth
  530. Part35.TopSurface = Enum.SurfaceType.Smooth
  531. Part35.Color = Color3.new(0.768628, 0.156863, 0.109804)
  532. Part35.Position = Vector3.new(-160.314087, 115.88446, -63.6473083)
  533. Part35.Color = Color3.new(0.768628, 0.156863, 0.109804)
  534. ManualWeld36.Name = "Weld"
  535. ManualWeld36.Parent = Part35
  536. ManualWeld36.C1 = CFrame.new(1.61353683, -0.0155487061, -0.456558228, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  537. ManualWeld36.Part0 = Part35
  538. ManualWeld36.Part1 = Part21
  539. Part37.Name = "apple2"
  540. Part37.Parent = Model0
  541. Part37.Material = Enum.Material.SmoothPlastic
  542. Part37.BrickColor = BrickColor.new("Camo")
  543. Part37.CanCollide = false
  544. Part37.Size = Vector3.new(0.100000031, 0.150000006, 0.0500000417)
  545. Part37.CFrame = CFrame.new(-160.314087, 116.13446, -63.6473122, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  546. Part37.BottomSurface = Enum.SurfaceType.Smooth
  547. Part37.TopSurface = Enum.SurfaceType.Smooth
  548. Part37.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  549. Part37.Position = Vector3.new(-160.314087, 116.13446, -63.6473122)
  550. Part37.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  551. ManualWeld38.Name = "Weld"
  552. ManualWeld38.Parent = Part37
  553. ManualWeld38.C1 = CFrame.new(1.61354065, 0.234451294, -0.456558228, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  554. ManualWeld38.Part0 = Part37
  555. ManualWeld38.Part1 = Part21
  556. Part39.Name = "apple3"
  557. Part39.Parent = Model0
  558. Part39.Material = Enum.Material.SmoothPlastic
  559. Part39.BrickColor = BrickColor.new("Camo")
  560. Part39.CanCollide = false
  561. Part39.Size = Vector3.new(0.100000031, 0.100000009, 0.150000036)
  562. Part39.CFrame = CFrame.new(-160.314087, 116.159462, -63.7473106, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  563. Part39.BottomSurface = Enum.SurfaceType.Smooth
  564. Part39.TopSurface = Enum.SurfaceType.Smooth
  565. Part39.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  566. Part39.Position = Vector3.new(-160.314087, 116.159462, -63.7473106)
  567. Part39.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  568. ManualWeld40.Name = "Weld"
  569. ManualWeld40.Parent = Part39
  570. ManualWeld40.C1 = CFrame.new(1.71353912, 0.25945282, -0.456558228, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  571. ManualWeld40.Part0 = Part39
  572. ManualWeld40.Part1 = Part21
  573. Part41.Name = "sighttop"
  574. Part41.Parent = Model0
  575. Part41.Material = Enum.Material.Wood
  576. Part41.BrickColor = BrickColor.new("Crimson")
  577. Part41.CanCollide = false
  578. Part41.Size = Vector3.new(0.200000048, 0.099999994, 0.150000051)
  579. Part41.CFrame = CFrame.new(-159.864105, 116.65947, -64.1473083, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  580. Part41.BottomSurface = Enum.SurfaceType.Smooth
  581. Part41.TopSurface = Enum.SurfaceType.Smooth
  582. Part41.Color = Color3.new(0.294118, 0.592157, 0.294118)
  583. Part41.Position = Vector3.new(-159.864105, 116.65947, -64.1473083)
  584. Part41.Color = Color3.new(0.294118, 0.592157, 0.294118)
  585. ManualWeld42.Name = "Weld"
  586. ManualWeld42.Parent = Part41
  587. ManualWeld42.C1 = CFrame.new(2.11353683, 0.759460449, -0.00657653809, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  588. ManualWeld42.Part0 = Part41
  589. ManualWeld42.Part1 = Part21
  590. Part43.Name = "fingerbottom"
  591. Part43.Parent = Model0
  592. Part43.Material = Enum.Material.Wood
  593. Part43.BrickColor = BrickColor.new("CGA brown")
  594. Part43.CanCollide = false
  595. Part43.Size = Vector3.new(0.200000048, 0.099999994, 0.400000066)
  596. Part43.CFrame = CFrame.new(-159.864105, 115.15947, -64.0223083, 1, 0, 0, 0, 0.999999762, 0, 0, 0, 1)
  597. Part43.BottomSurface = Enum.SurfaceType.Smooth
  598. Part43.TopSurface = Enum.SurfaceType.Smooth
  599. Part43.Color = Color3.new(0.666667, 0.333333, 0)
  600. Part43.Position = Vector3.new(-159.864105, 115.15947, -64.0223083)
  601. Part43.Color = Color3.new(0.666667, 0.333333, 0)
  602. ManualWeld44.Name = "Weld"
  603. ManualWeld44.Parent = Part43
  604. ManualWeld44.C1 = CFrame.new(1.98853683, -0.740539551, -0.00657653809, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  605. ManualWeld44.Part0 = Part43
  606. ManualWeld44.Part1 = Part21
  607. Part45.Name = "fingertop"
  608. Part45.Parent = Model0
  609. Part45.Material = Enum.Material.Wood
  610. Part45.BrickColor = BrickColor.new("CGA brown")
  611. Part45.Rotation = Vector3.new(-90, 0, 0)
  612. Part45.CanCollide = false
  613. Part45.Size = Vector3.new(0.200000048, 0.099999994, 0.400000066)
  614. Part45.CFrame = CFrame.new(-159.864105, 115.309471, -63.7723045, 1, 0, 0, 0, 1.1924878e-08, 0.999999762, 0, -1, 1.19248806e-08)
  615. Part45.BottomSurface = Enum.SurfaceType.Smooth
  616. Part45.TopSurface = Enum.SurfaceType.Smooth
  617. Part45.Color = Color3.new(0.666667, 0.333333, 0)
  618. Part45.Position = Vector3.new(-159.864105, 115.309471, -63.7723045)
  619. Part45.Orientation = Vector3.new(-89.9599991, 0, 0)
  620. Part45.Color = Color3.new(0.666667, 0.333333, 0)
  621. ManualWeld46.Name = "Weld"
  622. ManualWeld46.Parent = Part45
  623. ManualWeld46.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1.19248806e-08, -1, 0, 1, 1.19248806e-08)
  624. ManualWeld46.C1 = CFrame.new(1.73853302, -0.590538025, -0.00657653809, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  625. ManualWeld46.Part0 = Part45
  626. ManualWeld46.Part1 = Part21
  627. Part47.Name = "trigger"
  628. Part47.Parent = Model0
  629. Part47.Material = Enum.Material.Wood
  630. Part47.BrickColor = BrickColor.new("CGA brown")
  631. Part47.Rotation = Vector3.new(-90, 0, 0)
  632. Part47.CanCollide = false
  633. Part47.Size = Vector3.new(0.100000046, 0.099999994, 0.25000006)
  634. Part47.CFrame = CFrame.new(-159.864105, 115.384476, -64.0223083, 1, 0, 0, 0, 1.1924878e-08, 0.999999762, 0, -1, 1.19248806e-08)
  635. Part47.BottomSurface = Enum.SurfaceType.Smooth
  636. Part47.TopSurface = Enum.SurfaceType.Smooth
  637. Part47.Color = Color3.new(0.666667, 0.333333, 0)
  638. Part47.Position = Vector3.new(-159.864105, 115.384476, -64.0223083)
  639. Part47.Orientation = Vector3.new(-89.9599991, 0, 0)
  640. Part47.Color = Color3.new(0.666667, 0.333333, 0)
  641. ManualWeld48.Name = "Weld"
  642. ManualWeld48.Parent = Part47
  643. ManualWeld48.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1.19248806e-08, -1, 0, 1, 1.19248806e-08)
  644. ManualWeld48.C1 = CFrame.new(1.98853683, -0.515533447, -0.00657653809, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  645. ManualWeld48.Part0 = Part47
  646. ManualWeld48.Part1 = Part21
  647. Part49.Name = "MAIN"
  648. Part49.Parent = Model0
  649. Part49.Transparency = 1
  650. Part49.Rotation = Vector3.new(90, 0, -180)
  651. Part49.CanCollide = false
  652. Part49.Size = Vector3.new(1, 1, 1)
  653. Part49.CFrame = CFrame.new(-159.853165, 114.823212, -64.4853668, -1, 0, 0, 0, 0, -0.999999642, 0, -1, 0)
  654. Part49.BottomSurface = Enum.SurfaceType.Smooth
  655. Part49.TopSurface = Enum.SurfaceType.Smooth
  656. Part49.Position = Vector3.new(-159.853165, 114.823212, -64.4853668)
  657. Part49.Orientation = Vector3.new(89.9499969, 0, 0)
  658. for i,v in pairs(mas:GetChildren()) do
  659. v.Parent = char
  660. main = Part49
  661. hole = Part31
  662. colorp = Part35
  663. pcall(function() v:MakeJoints() end)
  664. end
  665. mas:Destroy()
  666. for i,v in pairs(cors) do
  667. spawn(function()
  668. pcall(v)
  669. end)
  670. end
  671.  
  672. local ws = hum.WalkSpeed
  673. local jp = hum.JumpPower
  674. local nws = ws
  675. local njp = jp
  676.  
  677. local rootj0 = rootj.C0
  678. local neck0 = neck.C0
  679. local LS0 = LS.C0
  680. local RS0 = RS.C0
  681. local LH0 = LH.C0
  682. local RH0 = RH.C0
  683. local rootj1 = rootj.C1
  684. local neck1 = neck.C1
  685. local LS1 = LS.C1
  686. local RS1 = RS.C1
  687. local LH1 = LH.C1
  688. local RH1 = RH.C1
  689.  
  690. local thunk = Instance.new("Sound", hole)
  691. thunk.SoundId = "rbxassetid://2082516881"
  692. thunk.Volume = 2
  693. thunk.Name = "THUNK"
  694.  
  695. local klick = Instance.new("Sound", colorp)
  696. klick.SoundId = "rbxassetid://2082543019"
  697. klick.Volume = 2
  698. klick.Name = "KLICK"
  699.  
  700. -----------------------------------------------------------------------------
  701.  
  702. local CFn = CFrame.new
  703. local CFa = CFrame.Angles
  704. local Rad = math.rad
  705. local Cos = math.cos
  706. local Sin = math.sin
  707. local sine = 1
  708. local attacking = false
  709. local Shooting = false
  710. local Changing = false
  711.  
  712. -----------------------------------------------------------------------------
  713.  
  714. local foodtype = "Apple"
  715.  
  716. -----------------------------------------------------------------------------
  717.  
  718. local tw = Instance.new("Weld", main)
  719. tw.Part0 = rarm
  720. tw.Part1 = main
  721. tw.C1 = CFn(0, 0.5, 0)
  722. local tw1 = tw.C1
  723. local tw0 = tw.C0
  724.  
  725. -----------------------------------------------------------------------------
  726.  
  727. ArtificialHB = Instance.new("BindableEvent", script)
  728. ArtificialHB.Name = "Heartbeat"
  729. script:WaitForChild("Heartbeat")
  730.  
  731. frame = 1 / 60
  732. tf = 0
  733. allowframeloss = false
  734. tossremainder = false
  735.  
  736.  
  737. lastframe = tick()
  738. script.Heartbeat:Fire()
  739.  
  740.  
  741. game:GetService("RunService").Heartbeat:connect(function(s, p)
  742. tf = tf + s
  743. if tf >= frame then
  744. if allowframeloss then
  745. script.Heartbeat:Fire()
  746. lastframe = tick()
  747. else
  748. for i = 1, math.floor(tf / frame) do
  749. script.Heartbeat:Fire()
  750. end
  751. lastframe = tick()
  752. end
  753. if tossremainder then
  754. tf = 0
  755. else
  756. tf = tf - frame * math.floor(tf / frame)
  757. end
  758. end
  759. end)
  760.  
  761. function swait(num)
  762. if num == 0 or num == nil then
  763. game:service("RunService").Stepped:wait(0)
  764. else
  765. for i = 0, num do
  766. game:service("RunService").Stepped:wait(0)
  767. end
  768. end
  769. end
  770.  
  771. function clerp(a, b, t)
  772. return a:lerp(b, t)
  773. end
  774.  
  775. function Sound(id, vol, par, name)
  776. if not par:FindFirstChild(name) then
  777. local sound = Instance.new("Sound", par)
  778. sound.SoundId = id
  779. sound.Volume = vol
  780. sound.Name = name
  781. sound:Play()
  782. return sound
  783. else
  784. local sound = par:FindFirstChild(name)
  785. sound:Play()
  786. return sound
  787. end
  788. end
  789.  
  790.  
  791.  
  792. function Shoot()
  793. if attacking == false and Shooting == false then
  794. attacking = true
  795. Shooting = true
  796. root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
  797. hum.WalkSpeed = 5
  798. hum.JumpPower = 2
  799. for i = 0,1,.2 do
  800. tw.C0 = clerp(tw.C0, tw0, i)
  801. tw.C1 = clerp(tw.C1, tw1, i)
  802. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(60)), i)
  803. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(-50)), i)
  804. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(30)), i)
  805. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
  806. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  807. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), Rad(50), 0), i)
  808. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  809. rootj.C0 = clerp(rootj.C0, rootj0, i)
  810. LS.C0 = clerp(LS.C0, LS0, i)
  811. RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(90)), i)
  812. LH.C0 = clerp(LH.C0, LH0, i)
  813. RH.C0 = clerp(RH.C0, RH0, i)
  814. swait()
  815. end
  816. Sound("rbxassetid://2082516881", 2, hole, "THUNK")
  817. local bul = Instance.new("Part", char)
  818. bul.Size = Vector3.new(1, 1, 1)
  819. bul.CFrame = hole.CFrame
  820. local bulm = Instance.new("SpecialMesh", bul)
  821. bulm.MeshType = "FileMesh"
  822. local owtype = "N/A"
  823. if foodtype == "Apple" then
  824. owtype = "Apple"
  825. bul.Name = "APPLE"
  826. bulm.MeshId = "rbxassetid://923453681"
  827. bulm.TextureId = "rbxassetid://923453682"
  828. bulm.Scale = Vector3.new(0.02, 0.02, 0.02)
  829. elseif foodtype == "Grape" then
  830. owtype = "Grape"
  831. bul.Name = "GRAPE"
  832. bulm.MeshId = "rbxassetid://16940906"
  833. bulm.TextureId = "rbxassetid://16940893"
  834. bulm.Scale = Vector3.new(0.7, 0.7, 0.7)
  835. elseif foodtype == "Lemon" then
  836. owtype = "Lemon"
  837. bul.Name = "LEMON"
  838. bulm.MeshId = "rbxassetid://431017393"
  839. bulm.TextureId = "rbxassetid://431017394"
  840. bulm.Scale = Vector3.new(0.003, 0.003, 0.003)
  841. elseif foodtype == "Melon" then
  842. owtype = "Melon"
  843. bul.Name = "MELON"
  844. bulm.MeshId = "rbxassetid://110218693"
  845. bulm.TextureId = "rbxassetid://110218767"
  846. bulm.Scale = Vector3.new(0.6, 0.6, 0.6)
  847. end
  848. local dis = (bul.Position - Mouse.Hit.p).unit * -1
  849. bul.Velocity = dis * 200 + Vector3.new(0, 6, 0)
  850. local bulBF = Instance.new("BodyForce", bul)
  851. bulBF.Force = Vector3.new(0, bul:GetMass() * 140, 0)
  852. game:GetService("Debris"):AddItem(bul, 20)
  853. bul.Touched:connect(function(hit)
  854. if not hit:IsDescendantOf(char) and hit.Parent:FindFirstChildOfClass("Humanoid") and bul.Name ~= "BONKAIYA" then
  855. bul.Name = "BONKAIYA"
  856. local theman = hit.Parent
  857. local thetor = theman:FindFirstChild("Torso") or theman:FindFirstChild("UpperTorso")
  858. local thehead = theman:FindFirstChild("Head")
  859. local thehum = theman:FindFirstChildOfClass("Humanoid")
  860. Sound("rbxassetid://180083298", 2, hit, "SPLAT")
  861. if owtype == "Apple" then
  862. thehum.Health = thehum.Health - 40
  863. bul:Destroy()
  864. elseif owtype == "Grape" then
  865. thehum.Health = thehum.Health - 15
  866. bul:Destroy()
  867. coroutine.resume(coroutine.create(function()
  868. for i = 1,5 do
  869. thehum.Jump = true
  870. thetor.CFrame = thetor.CFrame * CFa(Rad(math.random(-360, 360)), Rad(math.random(-360, 360)), Rad(math.random(-360, 360)))
  871. wait(0.2)
  872. end
  873. end))
  874. elseif owtype == "Lemon" then
  875. local newhead = Instance.new("Part", theman)
  876. newhead.Size = Vector3.new(1, 1, 1)
  877. newhead.CanCollide = false
  878. local themesh = Instance.new("SpecialMesh", newhead)
  879. themesh.Scale = Vector3.new(0.015, 0.015, 0.015)
  880. themesh.MeshType = "FileMesh"
  881. themesh.MeshId = "rbxassetid://431017393"
  882. themesh.TextureId = "rbxassetid://431017394"
  883. local nhw = Instance.new("Weld", newhead)
  884. nhw.Part0 = thehead
  885. nhw.Part1 = newhead
  886. game:GetService("Debris"):AddItem(newhead, 20)
  887. bul:Destroy()
  888. coroutine.resume(coroutine.create(function()
  889. for i = 1,10 do
  890. thehum.Health = thehum.Health - 2
  891. wait(0.3)
  892. end
  893. end))
  894. elseif owtype == "Melon" then
  895. for i = 1,10 do
  896. local newm = Instance.new("Part", workspace)
  897. newm.Size = Vector3.new(1, 1, 1)
  898. newm.Name = "melonio"
  899. local newmm = Instance.new("SpecialMesh", newm)
  900. newmm.MeshId = "rbxassetid://22770654"
  901. newmm.TextureId = "rbxassetid://22770653"
  902. newmm.Scale = Vector3.new(0.6, 0.6, 0.6)
  903. newm.CFrame = bul.CFrame * CFn(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  904. game:GetService("Debris"):AddItem(newm, 7)
  905. end
  906. bul:Destroy()
  907. coroutine.resume(coroutine.create(function()
  908. for i = 1,10 do
  909. thehum.Health = thehum.Health - 2.5
  910. wait(0.2)
  911. end
  912. end))
  913. end
  914. local ep = Instance.new("Part", hit)
  915. ep.Anchored = true
  916. ep.CanCollide = false
  917. ep.Size = Vector3.new(1, 1, 1)
  918. ep.Transparency = 1
  919. ep.CFrame = bul.CFrame
  920. local fruitsplash = Instance.new("ParticleEmitter", hit)
  921. fruitsplash.LightEmission = 0.7
  922. fruitsplash.Lifetime = NumberRange.new(0.4)
  923. fruitsplash.Speed = NumberRange.new(9)
  924. fruitsplash.SpreadAngle = Vector2.new(-360, 360)
  925. fruitsplash.Rate = 200
  926. fruitsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2.56), NumberSequenceKeypoint.new(1, 0)})
  927. fruitsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  928. if owtype == "Apple" then
  929. fruitsplash.Texture = "rbxassetid://771221224"
  930. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))})
  931. elseif owtype == "Grape" then
  932. fruitsplash.Texture = "rbxassetid://2082378208"
  933. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(170, 0, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(170, 0, 255))})
  934. elseif owtype == "Lemon" then
  935. fruitsplash.Texture = "rbxassetid://2082448160"
  936. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
  937. elseif owtype == "Melon" then
  938. fruitsplash.Texture = "rbxassetid://2082448160"
  939. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 170, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 170, 0))})
  940. end
  941. wait(0.5)
  942. fruitsplash.Enabled = false
  943. ep:Destroy()
  944. elseif not hit:IsDescendantOf(char) and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and bul.Name ~= "BONKAIYA" then
  945. bul.Name = "BONKAIYA"
  946. local theman = hit.Parent.Parent
  947. local thetor = theman:FindFirstChild("Torso") or theman:FindFirstChild("UpperTorso")
  948. local thehead = theman:FindFirstChild("Head")
  949. local thehum = theman:FindFirstChildOfClass("Humanoid")
  950. Sound("rbxassetid://180083298", 2, hit, "SPLAT")
  951. if owtype == "Apple" then
  952. thehum.Health = thehum.Health - 40
  953. bul:Destroy()
  954. elseif owtype == "Grape" then
  955. thehum.Health = thehum.Health - 15
  956. bul:Destroy()
  957. coroutine.resume(coroutine.create(function()
  958. for i = 1,5 do
  959. thehum.Jump = true
  960. thetor.CFrame = thetor.CFrame * CFa(Rad(math.random(-360, 360)), Rad(math.random(-360, 360)), Rad(math.random(-360, 360)))
  961. wait(0.2)
  962. end
  963. end))
  964. elseif owtype == "Lemon" then
  965. local newhead = Instance.new("Part", theman)
  966. newhead.Size = Vector3.new(1, 1, 1)
  967. newhead.CanCollide = false
  968. local themesh = Instance.new("SpecialMesh", newhead)
  969. themesh.Scale = Vector3.new(0.015, 0.015, 0.015)
  970. themesh.MeshType = "FileMesh"
  971. themesh.MeshId = "rbxassetid://431017393"
  972. themesh.TextureId = "rbxassetid://431017394"
  973. local nhw = Instance.new("Weld", newhead)
  974. nhw.Part0 = thehead
  975. nhw.Part1 = newhead
  976. game:GetService("Debris"):AddItem(newhead, 20)
  977. bul:Destroy()
  978. coroutine.resume(coroutine.create(function()
  979. for i = 1,10 do
  980. thehum.Health = thehum.Health - 2
  981. wait(0.3)
  982. end
  983. end))
  984. elseif owtype == "Melon" then
  985. for i = 1,10 do
  986. local newm = Instance.new("Part", workspace)
  987. newm.Size = Vector3.new(1, 1, 1)
  988. newm.Name = "melonio"
  989. local newmm = Instance.new("SpecialMesh", newm)
  990. newmm.MeshId = "rbxassetid://22770654"
  991. newmm.TextureId = "rbxassetid://22770653"
  992. newmm.Scale = Vector3.new(0.6, 0.6, 0.6)
  993. newm.CFrame = bul.CFrame * CFn(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  994. game:GetService("Debris"):AddItem(newm, 7)
  995. end
  996. bul:Destroy()
  997. coroutine.resume(coroutine.create(function()
  998. for i = 1,10 do
  999. thehum.Health = thehum.Health - 2.5
  1000. wait(0.2)
  1001. end
  1002. end))
  1003. end
  1004. local ep = Instance.new("Part", hit)
  1005. ep.Anchored = true
  1006. ep.CanCollide = false
  1007. ep.Size = Vector3.new(1, 1, 1)
  1008. ep.Transparency = 1
  1009. ep.CFrame = bul.CFrame
  1010. local fruitsplash = Instance.new("ParticleEmitter", hit)
  1011. fruitsplash.LightEmission = 0.7
  1012. fruitsplash.Lifetime = NumberRange.new(0.4)
  1013. fruitsplash.Speed = NumberRange.new(9)
  1014. fruitsplash.SpreadAngle = Vector2.new(-360, 360)
  1015. fruitsplash.Rate = 200
  1016. fruitsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2.56), NumberSequenceKeypoint.new(1, 0)})
  1017. fruitsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  1018. if owtype == "Apple" then
  1019. fruitsplash.Texture = "rbxassetid://771221224"
  1020. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0))})
  1021. elseif owtype == "Grape" then
  1022. fruitsplash.Texture = "rbxassetid://2082378208"
  1023. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(170, 0, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(170, 0, 255))})
  1024. elseif owtype == "Lemon" then
  1025. fruitsplash.Texture = "rbxassetid://2082448160"
  1026. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
  1027. elseif owtype == "Melon" then
  1028. fruitsplash.Texture = "rbxassetid://2082448160"
  1029. fruitsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 170, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 170, 0))})
  1030. end
  1031. wait(0.5)
  1032. fruitsplash.Enabled = false
  1033. ep:Destroy()
  1034. end
  1035. end)
  1036. for i = 0,1,.2 do
  1037. tw.C0 = clerp(tw.C0, tw0, i)
  1038. tw.C1 = clerp(tw.C1, tw1, i)
  1039. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(10), 0, Rad(60)), i)
  1040. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(-50)), i)
  1041. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(30)), i)
  1042. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
  1043. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  1044. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), Rad(50), 0), i)
  1045. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  1046. rootj.C0 = clerp(rootj.C0, rootj0, i)
  1047. LS.C0 = clerp(LS.C0, LS0, i)
  1048. RS.C0 = clerp(RS.C0, RS0 * CFa(Rad(-90), 0, Rad(90)), i)
  1049. LH.C0 = clerp(LH.C0, LH0, i)
  1050. RH.C0 = clerp(RH.C0, RH0, i)
  1051. swait()
  1052. end
  1053. hum.WalkSpeed = nws
  1054. hum.JumpPower = njp
  1055. Shooting = false
  1056. attacking = false
  1057. end
  1058. end
  1059.  
  1060. function ChangeFruit()
  1061. if attacking == false and Changing == false then
  1062. attacking = true
  1063. Changing = true
  1064. Sound("rbxassetid://2082543019", 2, colorp, "KLICK")
  1065. if foodtype == "Apple" then
  1066. foodtype = "Grape"
  1067. colorp.BrickColor = BrickColor.new("Eggplant")
  1068. elseif foodtype == "Grape" then
  1069. foodtype = "Lemon"
  1070. colorp.BrickColor = BrickColor.new("New Yeller")
  1071. elseif foodtype == "Lemon" then
  1072. foodtype = "Melon"
  1073. colorp.BrickColor = BrickColor.new("Bright green")
  1074. elseif foodtype == "Melon" then
  1075. foodtype = "Apple"
  1076. colorp.BrickColor = BrickColor.new("Bright red")
  1077. end
  1078. Changing = false
  1079. attacking = false
  1080. end
  1081. end
  1082.  
  1083. -----------------------------------------------------------------------------
  1084.  
  1085. function kdown(k)
  1086. if k == "e" then
  1087. ChangeFruit()
  1088. end
  1089. end
  1090.  
  1091. function lmdown()
  1092. Shoot()
  1093. end
  1094.  
  1095. Mouse.KeyDown:connect(kdown)
  1096. Mouse.Button1Down:connect(lmdown)
  1097.  
  1098. -----------------------------------------------------------------------------
  1099.  
  1100. warn([[Fruit Launcher.
  1101. last updated: 2018/7/25, 14:16 JST.
  1102.  
  1103. ]])
  1104.  
  1105. -----------------------------------------------------------------------------
  1106.  
  1107. while true do
  1108. swait()
  1109. sine = sine + 1
  1110. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1111. if Shooting == true then
  1112. state = "Shoot"
  1113. elseif Changing == true then
  1114. state = "Change"
  1115. elseif 1 < root.Velocity.y then
  1116. state = "Jump"
  1117. elseif -1 > root.Velocity.y then
  1118. state = "Fall"
  1119. elseif torvel < 1 then
  1120. state = "Idle"
  1121. elseif tor.Velocity.magnitude < 50 then
  1122. state = "Walk"
  1123. end
  1124.  
  1125. if state == "Jump" then
  1126. tw.C0 = clerp(tw.C0, tw0, 0.15)
  1127. tw.C1 = clerp(tw.C1, tw1, 0.15)
  1128. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, 0), 0.15)
  1129. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
  1130. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(40), 0, 0), 0.15)
  1131. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(40), 0, 0), 0.15)
  1132. LH.C1 = clerp(LH.C1, LH1 * CFn(0.7, -1.3, -0.2) * CFa(Rad(-10), 0, Rad(-60)), 0.15)
  1133. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.5, -1.1, 0) * CFa(Rad(-5), 0, Rad(35)), 0.15)
  1134. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1135. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1136. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1137. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1138. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1139. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1140. elseif state == "Fall" then
  1141. tw.C0 = clerp(tw.C0, tw0, 0.15)
  1142. tw.C1 = clerp(tw.C1, tw1, 0.15)
  1143. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1144. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
  1145. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
  1146. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
  1147. LH.C1 = clerp(LH.C1, LH1 * CFn(0.4, -0.7, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1148. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.4, -0.7, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1149. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1150. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1151. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1152. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1153. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1154. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1155. elseif state == "Idle" then
  1156. tw.C0 = clerp(tw.C0, tw0, 0.15)
  1157. tw.C1 = clerp(tw.C1, tw1, 0.15)
  1158. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(7 * Sin(sine / 15)), 0, 0), 0.15)
  1159. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
  1160. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(0, 0, Rad(30)), 0.15)
  1161. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-70), Rad(-50), Rad(-90)), 0.15)
  1162. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(2 * Sin(sine / 15))), 0.15)
  1163. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(-2 * Sin(sine / 15))), 0.15)
  1164. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
  1165. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
  1166. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1167. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1168. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1169. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1170. elseif state == "Walk" then
  1171. tw.C0 = clerp(tw.C0, tw0, 0.15)
  1172. tw.C1 = clerp(tw.C1, tw1, 0.15)
  1173. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, Rad(10 * Sin(sine / 8))), 0.15)
  1174. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 4)) * CFa(Rad(-5), 0, Rad(5 * Sin(sine / 8))), 0.15)
  1175. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-20 * Sin(sine / 8))), 0.15)
  1176. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(70), 0, 0), 0.15)
  1177. LH.C1 = clerp(LH.C1, LH1 * CFn(-0.15 * Cos(sine / 8), -0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
  1178. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.15 * Cos(sine / 8), 0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
  1179. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1180. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1181. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1182. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1183. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1184. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1185. end
  1186. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement