Advertisement
mememasterYT

fruit launcher edit

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