gilward

Grape FE GUI

Feb 22nd, 2018
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.17 KB | None | 0 0
  1. local GrapeGui = Instance.new("ScreenGui")
  2. local Holder = Instance.new("Frame")
  3. local Top = Instance.new("Frame")
  4. local Title = Instance.new("TextLabel")
  5. local Main = Instance.new("Frame")
  6. local Shutdown = Instance.new("TextButton")
  7. local Sound = Instance.new("TextButton")
  8. local Noclip = Instance.new("TextButton")
  9. local NoclipStatus = Instance.new("Frame")
  10. local TextN = Instance.new("TextLabel")
  11. local StatusN = Instance.new("TextLabel")
  12. local Fly = Instance.new("TextButton")
  13. local FlyStatus = Instance.new("Frame")
  14. local TextF = Instance.new("TextLabel")
  15. local StatusF = Instance.new("TextLabel")
  16. local Swing = Instance.new("TextButton")
  17. local SwingName = Instance.new("TextBox")
  18. local Icon = Instance.new("ImageLabel")
  19. local Exit = Instance.new("TextButton")
  20. local Open = Instance.new("TextButton")
  21. local Workspace = game:GetService("Workspace")
  22. local Players = game:GetService("Players")
  23. local CoreGui = game:GetService("CoreGui")
  24. local UserInputService = game:GetService("UserInputService")
  25. local noclip = false
  26. local oof = false
  27. local shutdown = false
  28. local speed = 50
  29. local c
  30. local h
  31. local bv
  32. local bav
  33. local cam
  34. local flying = false
  35. local p = Players.LocalPlayer
  36. local buttons = {W = false, S = false, A = false, D = false, Moving = false}
  37.  
  38. local startFly = function () -- Call this function to begin flying
  39. if not p.Character or not p.Character.Head or flying then return end
  40. c = p.Character
  41. h = c.Humanoid
  42. h.PlatformStand = true
  43. cam = workspace:WaitForChild('Camera')
  44. bv = Instance.new("BodyVelocity")
  45. bav = Instance.new("BodyAngularVelocity")
  46. bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  47. bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  48. bv.Parent = c.Head
  49. bav.Parent = c.Head
  50. flying = true
  51. h.Died:connect(function() flying = false end)
  52. end
  53.  
  54. local endFly = function ()
  55. if not p.Character or not flying then return end
  56. h.PlatformStand = false
  57. bv:Destroy()
  58. bav:Destroy()
  59. flying = false
  60. end
  61.  
  62. game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
  63. if GPE then return end
  64. for i, e in pairs(buttons) do
  65. if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
  66. buttons[i] = true
  67. buttons.Moving = true
  68. end
  69. end
  70. end)
  71.  
  72. game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
  73. if GPE then return end
  74. local a = false
  75. for i, e in pairs(buttons) do
  76. if i ~= "Moving" then
  77. if input.KeyCode == Enum.KeyCode[i] then
  78. buttons[i] = false
  79. end
  80. if buttons[i] then a = true end
  81. end
  82. end
  83. buttons.Moving = a
  84. end)
  85.  
  86. local setVec = function (vec)
  87. return vec * (speed / vec.Magnitude)
  88. end
  89.  
  90. game:GetService("RunService").Heartbeat:connect(function (step)
  91. if flying and c and c.PrimaryPart then
  92. local p = c.PrimaryPart.Position
  93. local cf = cam.CFrame
  94. local ax, ay, az = cf:toEulerAnglesXYZ()
  95. c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
  96. if buttons.Moving then
  97. local t = Vector3.new()
  98. if buttons.W then t = t + (setVec(cf.lookVector)) end
  99. if buttons.S then t = t - (setVec(cf.lookVector)) end
  100. if buttons.A then t = t - (setVec(cf.rightVector)) end
  101. if buttons.D then t = t + (setVec(cf.rightVector)) end
  102. c:TranslateBy(t * step)
  103. end
  104. end
  105. end)
  106.  
  107. GrapeGui.Name = "GrapeGui"
  108. GrapeGui.Parent = CoreGui
  109.  
  110. Holder.Name = "Holder"
  111. Holder.Parent = GrapeGui
  112. Holder.Active = true
  113. Holder.BackgroundColor3 = Color3.new(1, 1, 1)
  114. Holder.BackgroundTransparency = 1
  115. Holder.Draggable = true
  116. Holder.Position = UDim2.new(0.387072802, 0, 0.355871886, 0)
  117. Holder.Size = UDim2.new(0, 276, 0, 206)
  118.  
  119. Top.Name = "Top"
  120. Top.Parent = Holder
  121. Top.BackgroundColor3 = Color3.new(0, 0, 0)
  122. Top.BackgroundTransparency = 0.40000000596046
  123. Top.BorderSizePixel = 0
  124. Top.Position = UDim2.new(0, 0, 0.00485436898, 0)
  125. Top.Size = UDim2.new(0, 237, 0, 32)
  126.  
  127. Title.Name = "Title"
  128. Title.Parent = Top
  129. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  130. Title.BackgroundTransparency = 1
  131. Title.Position = UDim2.new(0, 0, 0.125, 0)
  132. Title.Size = UDim2.new(0, 237, 0, 24)
  133. Title.Font = Enum.Font.Code
  134. Title.Text = "FE Grape Menu"
  135. Title.TextColor3 = Color3.new(1, 1, 1)
  136. Title.TextSize = 20
  137.  
  138. Main.Name = "Main"
  139. Main.Parent = Holder
  140. Main.BackgroundColor3 = Color3.new(0, 0, 0)
  141. Main.BackgroundTransparency = 0.40000000596046
  142. Main.BorderSizePixel = 0
  143. Main.Position = UDim2.new(0, 0, 0.189320385, 0)
  144. Main.Size = UDim2.new(0, 276, 0, 167)
  145.  
  146. Shutdown.Name = "Shutdown"
  147. Shutdown.Parent = Main
  148. Shutdown.BackgroundColor3 = Color3.new(1, 1, 1)
  149. Shutdown.BackgroundTransparency = 0.69999998807907
  150. Shutdown.BorderSizePixel = 0
  151. Shutdown.Position = UDim2.new(0.0253623184, 0, 0.0479041934, 0)
  152. Shutdown.Size = UDim2.new(0, 153, 0, 22)
  153. Shutdown.Font = Enum.Font.Code
  154. Shutdown.Text = "SERVER SHUTDOWN"
  155. Shutdown.TextColor3 = Color3.new(0, 0, 0)
  156. Shutdown.TextSize = 15
  157. Shutdown.MouseButton1Click:Connect(function()
  158. while wait() do
  159. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  160. if v.Character ~= nil and v.Character:FindFirstChild'Head' then
  161. for _,x in pairs(v.Character.Head:GetChildren()) do
  162. if x:IsA'Sound' then
  163. x:Play()
  164. end
  165. end
  166. end
  167. end
  168. end
  169. end)
  170.  
  171. Sound.Name = "Sound"
  172. Sound.Parent = Main
  173. Sound.BackgroundColor3 = Color3.new(1, 1, 1)
  174. Sound.BackgroundTransparency = 0.69999998807907
  175. Sound.BorderSizePixel = 0
  176. Sound.Position = UDim2.new(0.605072439, 0, 0.0479041934, 0)
  177. Sound.Size = UDim2.new(0, 102, 0, 22)
  178. Sound.Font = Enum.Font.Code
  179. Sound.Text = "SOUND SPAM"
  180. Sound.TextColor3 = Color3.new(0, 0, 0)
  181. Sound.TextSize = 15
  182. Sound.MouseButton1Click:connect(function()
  183. while wait() do
  184. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  185. if v.Character ~= nil and v.Character:FindFirstChild'Head' then
  186. for _,x in pairs(v.Character.Head:GetChildren()) do
  187. if x:IsA'Sound' then x.Playing = true end
  188. end
  189. end
  190. end
  191. end
  192. end)
  193.  
  194. Noclip.Name = "Noclip"
  195. Noclip.Parent = Main
  196. Noclip.BackgroundColor3 = Color3.new(1, 1, 1)
  197. Noclip.BackgroundTransparency = 0.69999998807907
  198. Noclip.BorderSizePixel = 0
  199. Noclip.Position = UDim2.new(0.0253623184, 0, 0.227544904, 0)
  200. Noclip.Size = UDim2.new(0, 103, 0, 22)
  201. Noclip.Font = Enum.Font.Code
  202. Noclip.Text = "NOCLIP [E]"
  203. Noclip.TextColor3 = Color3.new(0, 0, 0)
  204. Noclip.TextSize = 15
  205. Noclip.MouseButton1Click:Connect(function()
  206. if noclip == false then
  207. noclip = true
  208. StatusN.Text = "ON"
  209. StatusN.TextColor3 = Color3.fromRGB(0,170,14)
  210. Stepped = game:GetService("RunService").Stepped:Connect(function()
  211. if not noclip == false then
  212. for a,b in pairs(Workspace:GetChildren()) do
  213. if b.Name == p.Name then
  214. for i, v in pairs(Workspace[p.Name]:GetChildren()) do
  215. if v:IsA("BasePart") then
  216. v.CanCollide = false
  217. end
  218. end
  219. end
  220. end
  221. else
  222. Stepped:Disconnect()
  223. end
  224. end)
  225. elseif noclip == true then
  226. noclip = false
  227. StatusN.Text = "OFF"
  228. StatusN.TextColor3 = Color3.fromRGB(170,0,0)
  229. end
  230. end)
  231. UserInputService.InputEnded:Connect(function(key, event)
  232. if key.KeyCode == Enum.KeyCode.E then
  233. if noclip == false then
  234. noclip = true
  235. StatusN.Text = "ON"
  236. StatusN.TextColor3 = Color3.fromRGB(0,170,14)
  237. Stepped = game:GetService("RunService").Stepped:Connect(function()
  238. if not noclip == false then
  239. for a,b in pairs(Workspace:GetChildren()) do
  240. if b.Name == p.Name then
  241. for i, v in pairs(Workspace[p.Name]:GetChildren()) do
  242. if v:IsA("BasePart") then
  243. v.CanCollide = false
  244. end
  245. end
  246. end
  247. end
  248. else
  249. Stepped:Disconnect()
  250. end
  251. end)
  252. elseif noclip == true then
  253. noclip = false
  254. StatusN.Text = "OFF"
  255. StatusN.TextColor3 = Color3.fromRGB(170,0,0)
  256. end
  257. end
  258. end)
  259.  
  260. NoclipStatus.Name = "NoclipStatus"
  261. NoclipStatus.Parent = Main
  262. NoclipStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  263. NoclipStatus.BackgroundTransparency = 0.69999998807907
  264. NoclipStatus.BorderSizePixel = 0
  265. NoclipStatus.Position = UDim2.new(0.423913032, 0, 0.227544904, 0)
  266. NoclipStatus.Size = UDim2.new(0, 152, 0, 22)
  267.  
  268. TextN.Name = "TextN"
  269. TextN.Parent = NoclipStatus
  270. TextN.BackgroundColor3 = Color3.new(1, 1, 1)
  271. TextN.BackgroundTransparency = 1
  272. TextN.Position = UDim2.new(0.0789473653, 0, 0, 0)
  273. TextN.Size = UDim2.new(0, 98, 0, 22)
  274. TextN.Font = Enum.Font.Code
  275. TextN.Text = "NOCLIP STATUS:"
  276. TextN.TextColor3 = Color3.new(0, 0, 0)
  277. TextN.TextSize = 15
  278.  
  279. StatusN.Name = "StatusN"
  280. StatusN.Parent = NoclipStatus
  281. StatusN.BackgroundColor3 = Color3.new(1, 1, 1)
  282. StatusN.BackgroundTransparency = 1
  283. StatusN.Position = UDim2.new(0.789473712, 0, 0, 0)
  284. StatusN.Size = UDim2.new(0, 32, 0, 22)
  285. StatusN.Font = Enum.Font.Code
  286. StatusN.Text = "OFF"
  287. StatusN.TextColor3 = Color3.new(0.666667, 0, 0)
  288. StatusN.TextSize = 15
  289. StatusN.TextXAlignment = Enum.TextXAlignment.Left
  290.  
  291. Fly.Name = "Fly"
  292. Fly.Parent = Main
  293. Fly.BackgroundColor3 = Color3.new(1, 1, 1)
  294. Fly.BackgroundTransparency = 0.69999998807907
  295. Fly.BorderSizePixel = 0
  296. Fly.Position = UDim2.new(0.0253623184, 0, 0.401197612, 0)
  297. Fly.Size = UDim2.new(0, 78, 0, 22)
  298. Fly.Font = Enum.Font.Code
  299. Fly.Text = "FLY [F]"
  300. Fly.TextColor3 = Color3.new(0, 0, 0)
  301. Fly.TextSize = 15
  302. Fly.MouseButton1Click:connect(function()
  303. if flying == true then
  304. endFly()
  305. StatusF.Text = "OFF"
  306. StatusF.TextColor3 = Color3.fromRGB(170,0,0)
  307. elseif flying == false then
  308. startFly()
  309. StatusF.Text = "ON"
  310. StatusF.TextColor3 = Color3.fromRGB(0,170,14)
  311. end
  312. end)
  313. UserInputService.InputEnded:Connect(function(key, event)
  314. if key.KeyCode == Enum.KeyCode.F then
  315. if flying == true then
  316. endFly()
  317. StatusF.Text = "OFF"
  318. StatusF.TextColor3 = Color3.fromRGB(170,0,0)
  319. elseif flying == false then
  320. startFly()
  321. StatusF.Text = "ON"
  322. StatusF.TextColor3 = Color3.fromRGB(0,170,14)
  323. end
  324. end
  325. end)
  326.  
  327.  
  328. FlyStatus.Name = "FlyStatus"
  329. FlyStatus.Parent = Main
  330. FlyStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  331. FlyStatus.BackgroundTransparency = 0.69999998807907
  332. FlyStatus.BorderSizePixel = 0
  333. FlyStatus.Position = UDim2.new(0.333333343, 0, 0.401197612, 0)
  334. FlyStatus.Size = UDim2.new(0, 135, 0, 22)
  335.  
  336. TextF.Name = "TextF"
  337. TextF.Parent = FlyStatus
  338. TextF.BackgroundColor3 = Color3.new(1, 1, 1)
  339. TextF.BackgroundTransparency = 1
  340. TextF.Position = UDim2.new(-0.00173597783, 0, 0, 0)
  341. TextF.Size = UDim2.new(0, 98, 0, 22)
  342. TextF.Font = Enum.Font.Code
  343. TextF.Text = "FLY STATUS:"
  344. TextF.TextColor3 = Color3.new(0, 0, 0)
  345. TextF.TextSize = 15
  346.  
  347. StatusF.Name = "StatusF"
  348. StatusF.Parent = FlyStatus
  349. StatusF.BackgroundColor3 = Color3.new(1, 1, 1)
  350. StatusF.BackgroundTransparency = 1
  351. StatusF.Position = UDim2.new(0.725925922, 0, 0, 0)
  352. StatusF.Size = UDim2.new(0, 28, 0, 22)
  353. StatusF.Font = Enum.Font.Code
  354. StatusF.Text = "OFF"
  355. StatusF.TextColor3 = Color3.new(0.666667, 0, 0)
  356. StatusF.TextSize = 15
  357. StatusF.TextXAlignment = Enum.TextXAlignment.Left
  358.  
  359. Swing.Name = "Swing"
  360. Swing.Parent = Main
  361. Swing.BackgroundColor3 = Color3.new(1, 1, 1)
  362. Swing.BackgroundTransparency = 0.69999998807907
  363. Swing.BorderSizePixel = 0
  364. Swing.Position = UDim2.new(0.0253623184, 0, 0.574850321, 0)
  365. Swing.Size = UDim2.new(0, 170, 0, 22)
  366. Swing.Font = Enum.Font.Code
  367. Swing.Text = "SWING ANIMATION"
  368. Swing.TextColor3 = Color3.new(0, 0, 0)
  369. Swing.TextSize = 15
  370. Swing.MouseButton1Click:Connect(function()
  371. if Players:FindFirstChild(SwingName.Text) then
  372. local Victim = SwingName.Text
  373. else
  374. for i,v in pairs(Players:GetChildren()) do
  375. if string.find(string.lower(v.Name), string.lower(SwingName.Text)) then
  376. local Victim = v.Name
  377. else
  378. return
  379. end
  380. end
  381. end
  382. local A=Instance.new'Animation'
  383. A.AnimationId='rbxassetid://148840371'
  384. local P=game:GetService'Players'.LocalPlayer
  385. local C=P.Character or P.CharacterAdded:Wait()
  386. local H=C:WaitForChild'Humanoid':LoadAnimation(A)
  387. H:Play()
  388. H:AdjustSpeed(2.5)
  389. game:GetService'RunService'.Stepped:Connect(function()
  390. C:WaitForChild'HumanoidRootPart'.CFrame=CFrame.new(game:GetService'Players':FindFirstChild(Victim).Character:WaitForChild'HumanoidRootPart'.Position)
  391. end)
  392. end)
  393.  
  394. SwingName.Name = "SwingName"
  395. SwingName.Parent = Main
  396. SwingName.BackgroundColor3 = Color3.new(1, 1, 1)
  397. SwingName.BackgroundTransparency = 0.69999998807907
  398. SwingName.BorderSizePixel = 0
  399. SwingName.Position = UDim2.new(0.0253623184, 0, 0.74850297, 0)
  400. SwingName.Size = UDim2.new(0, 160, 0, 28)
  401. SwingName.Font = Enum.Font.Code
  402. SwingName.Text = "VICTIM'S NAME"
  403. SwingName.TextColor3 = Color3.new(0, 0, 0)
  404. SwingName.TextSize = 15
  405. SwingName.TextWrapped = true
  406.  
  407. Icon.Name = "Icon"
  408. Icon.Parent = Main
  409. Icon.BackgroundColor3 = Color3.new(1, 1, 1)
  410. Icon.BackgroundTransparency = 1
  411. Icon.Position = UDim2.new(0.689999998, 0, 0.564999998, 0)
  412. Icon.Size = UDim2.new(0, 70, 0, 70)
  413. Icon.Image = "rbxassetid://1214519029"
  414.  
  415. Exit.Name = "Exit"
  416. Exit.Parent = Holder
  417. Exit.BackgroundColor3 = Color3.new(0.67451, 0, 0)
  418. Exit.BackgroundTransparency = 0.40000000596046
  419. Exit.BorderSizePixel = 0
  420. Exit.Position = UDim2.new(0.884057999, 0, 0.00485438108, 0)
  421. Exit.Size = UDim2.new(0, 32, 0, 32)
  422. Exit.Font = Enum.Font.Code
  423. Exit.Text = "X"
  424. Exit.TextColor3 = Color3.new(1, 1, 1)
  425. Exit.TextSize = 25
  426. Exit.MouseButton1Click:Connect(function()
  427. Holder.Visible = false
  428. Open.Visible = true
  429. end)
  430.  
  431. Open.Name = "Open"
  432. Open.Parent = GrapeGui
  433. Open.AnchorPoint = Vector2.new(0, 0.949999988)
  434. Open.BackgroundColor3 = Color3.new(0, 0, 0)
  435. Open.BackgroundTransparency = 0.40000000596046
  436. Open.BorderSizePixel = 0
  437. Open.Position = UDim2.new(0, 0, 0.949940681, 0)
  438. Open.Size = UDim2.new(0, 80, 0, 24)
  439. Open.Visible = false
  440. Open.Font = Enum.Font.Code
  441. Open.Text = "OPEN"
  442. Open.TextColor3 = Color3.new(1, 1, 1)
  443. Open.TextSize = 14
  444. Open.MouseButton1Click:Connect(function()
  445. Open.Visible = false
  446. Holder.Visible = true
  447. end)
Add Comment
Please, Sign In to add comment