TehLy

SBO hack script

Sep 8th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.10 KB | None | 0 0
  1. wait(1)
  2. gui = game.Players.LocalPlayer.PlayerGui
  3.  
  4. local UIWorkspace = Instance.new("ScreenGui")
  5. local TextButton = Instance.new("TextButton")
  6. local Frame = Instance.new("Frame")
  7. local TextButton_2 = Instance.new("TextButton")
  8. local TextButton_3 = Instance.new("TextButton")
  9. local TextButton_4 = Instance.new("TextButton")
  10. local TextButton_5 = Instance.new("TextButton")
  11. local TextButton_6 = Instance.new("TextButton")
  12. local TextLabel = Instance.new("TextLabel")
  13. local TextLabel_2 = Instance.new("TextLabel")
  14. local TextLabel_3 = Instance.new("TextLabel")
  15. TextBox = Instance.new("TextBox")
  16.  
  17. UIWorkspace.Name = "UI Workspace"
  18. UIWorkspace.Parent = game.Players.LocalPlayer.PlayerGui
  19.  
  20. TextButton.Parent = UIWorkspace
  21. TextButton.BackgroundColor3 = Color3.new(0.992157, 0.984314, 1)
  22. TextButton.BackgroundTransparency = 0.5
  23. TextButton.Position = UDim2.new(0, 920, 0, 690)
  24. TextButton.Size = UDim2.new(0, 130, 0, 30)
  25. TextButton.Text = "Show menu"
  26. TextButton.Name = "b1"
  27.  
  28. Frame.Parent = UIWorkspace
  29. Frame.Active = true
  30. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  31. Frame.BackgroundTransparency = 0.5
  32. Frame.BorderSizePixel = 0
  33. Frame.Position = UDim2.new(0, 850, 0, 220)
  34. Frame.Size = UDim2.new(0, 260, 0, 210)
  35. Frame.Draggable = true
  36.  
  37. TextButton_2.Parent = Frame
  38. TextButton_2.BackgroundColor3 = Color3.new(0.231373, 1, 0)
  39. TextButton_2.BackgroundTransparency = 0.69999998807907
  40. TextButton_2.Position = UDim2.new(0, 10, 0, 20)
  41. TextButton_2.Size = UDim2.new(0, 240, 0, 20)
  42. TextButton_2.Text = "God"
  43. TextButton_2.Name = "god"
  44.  
  45. TextButton_3.Parent = Frame
  46. TextButton_3.BackgroundColor3 = Color3.new(0.231373, 1, 0)
  47. TextButton_3.BackgroundTransparency = 0.69999998807907
  48. TextButton_3.Position = UDim2.new(0, 10, 0, 50)
  49. TextButton_3.Size = UDim2.new(0, 240, 0, 20)
  50. TextButton_3.Text = "1-Hit Kill"
  51. TextButton_3.Name = "hit"
  52.  
  53. TextButton_4.Parent = Frame
  54. TextButton_4.BackgroundColor3 = Color3.new(1, 0.933333, 0)
  55. TextButton_4.BackgroundTransparency = 0.69999998807907
  56. TextButton_4.Position = UDim2.new(0, 10, 0, 110)
  57. TextButton_4.Size = UDim2.new(0, 110, 0, 20)
  58. TextButton_4.Text = "Teleport torso"
  59. TextButton_4.Name = "tp"
  60.  
  61. TextButton_5.Parent = Frame
  62. TextButton_5.BackgroundColor3 = Color3.new(1, 0.933333, 0)
  63. TextButton_5.BackgroundTransparency = 0.69999998807907
  64. TextButton_5.Position = UDim2.new(0, 140, 0, 110)
  65. TextButton_5.Size = UDim2.new(0, 110, 0, 20)
  66. TextButton_5.Text = "Find stats"
  67. TextButton_5.Name = "stats"
  68.  
  69. TextButton_6.Parent = Frame
  70. TextButton_6.BackgroundColor3 = Color3.new(0.231373, 1, 0)
  71. TextButton_6.BackgroundTransparency = 0.69999998807907
  72. TextButton_6.Position = UDim2.new(0, 10, 0, 140)
  73. TextButton_6.Size = UDim2.new(0, 240, 0, 20)
  74. TextButton_6.Text = "Fly (Wings Script)"
  75. TextButton_6.Name = "wing"
  76.  
  77. TextLabel.Parent = Frame
  78. TextLabel.Active = true
  79. TextLabel.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  80. TextLabel.BackgroundTransparency = 0.5
  81. TextLabel.Position = UDim2.new(0, 190, 0, 200)
  82. TextLabel.Size = UDim2.new(0, 80, 0, 20)
  83. TextLabel.Font = Enum.Font.ArialBold
  84. TextLabel.FontSize = Enum.FontSize.Size12
  85. TextLabel.Text = "By Dat Boi"
  86. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  87.  
  88. TextLabel_2.Parent = Frame
  89. TextLabel_2.Active = true
  90. TextLabel_2.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  91. TextLabel_2.BackgroundTransparency = 0.5
  92. TextLabel_2.Position = UDim2.new(0, -10, 0, 200)
  93. TextLabel_2.Size = UDim2.new(0, 40, 0, 20)
  94. TextLabel_2.Font = Enum.Font.ArialBold
  95. TextLabel_2.FontSize = Enum.FontSize.Size12
  96. TextLabel_2.Text = "v1.0"
  97. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  98.  
  99. TextLabel_3.Parent = Frame
  100. TextLabel_3.Active = true
  101. TextLabel_3.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  102. TextLabel_3.BackgroundTransparency = 0.5
  103. TextLabel_3.Position = UDim2.new(0, -10, 0, -10)
  104. TextLabel_3.Size = UDim2.new(0, 180, 0, 20)
  105. TextLabel_3.Font = Enum.Font.ArialBold
  106. TextLabel_3.FontSize = Enum.FontSize.Size12
  107. TextLabel_3.Text = "Sword Burst Online Mod Menu"
  108. TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
  109.  
  110. TextBox.Parent = Frame
  111. TextBox.BackgroundColor3 = Color3.new(1, 1, 0)
  112. TextBox.BackgroundTransparency = 0.69999998807907
  113. TextBox.Position = UDim2.new(0, 10, 0, 80)
  114. TextBox.Size = UDim2.new(0, 240, 0, 20)
  115. TextBox.Text = "Type Caps-Sensative username here"
  116.  
  117. gui["UI Workspace"].b1.MouseButton1Click:connect(function()
  118. if gui["UI Workspace"].frame.Visible == true then
  119. gui["UI Workspace"].frame.Visible = false
  120. else
  121. gui["UI Workspace"].frame.Visible = true
  122. end
  123. end)
  124.  
  125. gui["UI Workspace"].Frame.stats.MouseButton1Click:connect(function()
  126.  
  127. print("Loaded Stats")
  128. local plr = TextBox.Text
  129. local UIWorkspace = Instance.new("ScreenGui")
  130. local Frame = Instance.new("Frame")
  131. local TextLabel = Instance.new("TextLabel")
  132. local TextLabel_2 = Instance.new("TextLabel")
  133. local TextLabel_3 = Instance.new("TextLabel")
  134. local TextLabel_4 = Instance.new("TextLabel")
  135. local TextLabel_5 = Instance.new("TextLabel")
  136. local TextLabel_6 = Instance.new("TextLabel")
  137. local TextLabel_7 = Instance.new("TextLabel")
  138. local TextLabel_8 = Instance.new("TextLabel")
  139. local TextButton = Instance.new("TextButton")
  140. TextLabel.Text = "You entered the username incorrectly."
  141. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  142. -- Properties
  143.  
  144. UIWorkspace.Name = "UI Workspace2"
  145. UIWorkspace.Parent = game.Players.LocalPlayer.PlayerGui
  146.  
  147. Frame.Parent = UIWorkspace
  148. Frame.Active = true
  149. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  150. Frame.BackgroundTransparency = 0.5
  151. Frame.Draggable = true
  152. Frame.Position = UDim2.new(0, 180, 0, 190)
  153. Frame.Size = UDim2.new(0, 330, 0, 220)
  154.  
  155. TextButton.Parent = Frame
  156. TextButton.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  157. TextButton.BackgroundTransparency = 0.5
  158. TextButton.Position = UDim2.new(0, -10, 0, 210)
  159. TextButton.Size = UDim2.new(0, 70, 0, 20)
  160. TextButton.Font = Enum.Font.ArialBold
  161. TextButton.FontSize = Enum.FontSize.Size12
  162. TextButton.Text = "Exit"
  163. TextButton.Name = "Exit"
  164. TextButton.TextColor3 = Color3.new(1, 1, 1)
  165.  
  166. gui["UI Workspace2"].Frame.Exit.MouseButton1Click:connect(function()
  167. gui["UI Workspace2"]:Remove()
  168. end)
  169.  
  170. TextLabel.Parent = Frame
  171. TextLabel.Active = true
  172. TextLabel.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  173. TextLabel.BackgroundTransparency = 0.5
  174. TextLabel.Position = UDim2.new(0, 10, 0, 30)
  175. TextLabel.Size = UDim2.new(0, 310, 0, 20)
  176. TextLabel.Font = Enum.Font.ArialBold
  177. TextLabel.FontSize = Enum.FontSize.Size12
  178. TextLabel.Text = "Level: "..game.ReplicatedStorage.Profiles[plr].Level.Value
  179. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  180.  
  181. TextLabel_2.Parent = Frame
  182. TextLabel_2.Active = true
  183. TextLabel_2.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  184. TextLabel_2.BackgroundTransparency = 0.5
  185. TextLabel_2.Position = UDim2.new(0, 10, 0, 60)
  186. TextLabel_2.Size = UDim2.new(0, 310, 0, 20)
  187. TextLabel_2.Font = Enum.Font.ArialBold
  188. TextLabel_2.FontSize = Enum.FontSize.Size12
  189. TextLabel_2.Text = "Col: "..game.ReplicatedStorage.Profiles[plr].Col.Value
  190. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  191.  
  192. TextLabel_3.Parent = Frame
  193. TextLabel_3.Active = true
  194. TextLabel_3.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  195. TextLabel_3.BackgroundTransparency = 0.5
  196. TextLabel_3.Position = UDim2.new(0, 10, 0, 90)
  197. TextLabel_3.Size = UDim2.new(0, 310, 0, 20)
  198. TextLabel_3.Font = Enum.Font.ArialBold
  199. TextLabel_3.FontSize = Enum.FontSize.Size12
  200. TextLabel_3.Text = "Exp: "..game.ReplicatedStorage.Profiles[plr].Exp.Value
  201. TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
  202.  
  203. TextLabel_4.Parent = Frame
  204. TextLabel_4.Active = true
  205. TextLabel_4.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  206. TextLabel_4.BackgroundTransparency = 0.5
  207. TextLabel_4.Position = UDim2.new(0, 10, 0, 120)
  208. TextLabel_4.Size = UDim2.new(0, 310, 0, 20)
  209. TextLabel_4.Font = Enum.Font.ArialBold
  210. TextLabel_4.FontSize = Enum.FontSize.Size12
  211. TextLabel_4.Text = "Cooking: "..game.ReplicatedStorage.Profiles[plr].Cooking.Value
  212. TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
  213.  
  214. TextLabel_5.Parent = Frame
  215. TextLabel_5.Active = true
  216. TextLabel_5.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  217. TextLabel_5.BackgroundTransparency = 0.5
  218. TextLabel_5.Position = UDim2.new(0, 10, 0, 150)
  219. TextLabel_5.Size = UDim2.new(0, 310, 0, 20)
  220. TextLabel_5.Font = Enum.Font.ArialBold
  221. TextLabel_5.FontSize = Enum.FontSize.Size12
  222. TextLabel_5.Text = "Tailoring: "..game.ReplicatedStorage.Profiles[plr].Tailoring.Value
  223. TextLabel_5.TextColor3 = Color3.new(1, 1, 1)
  224.  
  225. TextLabel_6.Parent = Frame
  226. TextLabel_6.Active = true
  227. TextLabel_6.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  228. TextLabel_6.BackgroundTransparency = 0.5
  229. TextLabel_6.Position = UDim2.new(0, -10, 0, -10)
  230. TextLabel_6.Size = UDim2.new(0, 100, 0, 20)
  231. TextLabel_6.Font = Enum.Font.ArialBold
  232. TextLabel_6.FontSize = Enum.FontSize.Size12
  233. TextLabel_6.Text = "Player Stats"
  234. TextLabel_6.TextColor3 = Color3.new(1, 1, 1)
  235.  
  236. TextLabel_7.Parent = Frame
  237. TextLabel_7.Active = true
  238. TextLabel_7.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  239. TextLabel_7.BackgroundTransparency = 0.5
  240. TextLabel_7.Position = UDim2.new(0, 270, 0, 210)
  241. TextLabel_7.Size = UDim2.new(0, 70, 0, 20)
  242. TextLabel_7.Font = Enum.Font.ArialBold
  243. TextLabel_7.FontSize = Enum.FontSize.Size12
  244. TextLabel_7.Text = "By Dat Boi"
  245. TextLabel_7.TextColor3 = Color3.new(1, 1, 1)
  246.  
  247. TextLabel_8.Parent = Frame
  248. TextLabel_8.Active = true
  249. TextLabel_8.BackgroundColor3 = Color3.new(0.294118, 0.294118, 0.294118)
  250. TextLabel_8.BackgroundTransparency = 0.5
  251. TextLabel_8.Position = UDim2.new(0, 10, 0, 180)
  252. TextLabel_8.Size = UDim2.new(0, 310, 0, 20)
  253. TextLabel_8.Font = Enum.Font.ArialBold
  254. TextLabel_8.FontSize = Enum.FontSize.Size12
  255. TextLabel_8.Text = "Smithing: "..game.ReplicatedStorage.Profiles[plr].Smithing.Value
  256. TextLabel_8.TextColor3 = Color3.new(1, 1, 1)
  257. end)
  258.  
  259. gui["UI Workspace"].Frame.god.MouseButton1Click:connect(function()
  260. print("Enabled God")
  261. local plr = game.Players.LocalPlayer.Name
  262. game.Workspace[plr].Health:Remove()
  263. game.ReplicatedStorage.Profiles[plr].Health:Remove()
  264. end)
  265.  
  266. gui["UI Workspace"].Frame.hit.MouseButton1Click:connect(function()
  267. print("Enabled 1hit")
  268. local inv=game.Players.LocalPlayer.PlayerGui
  269.  
  270. for i=1, 50 do
  271. local me=inv.WeaponHandler:Clone()
  272. me.Parent=inv
  273. end
  274. end)
  275.  
  276. gui["UI Workspace"].Frame.wing.MouseButton1Click:connect(function()
  277. print("Enabled Wings")
  278. script.Parent = nil
  279. TopColor = ("Really black")
  280. FeatherColor = ("Really black")
  281.  
  282. function fly()
  283.  
  284. for i,v in pairs(script:GetChildren()) do
  285.  
  286. pcall(function() v.Value = "" end)
  287.  
  288. game:GetService("Debris"):AddItem(v,.1)
  289.  
  290. end
  291.  
  292. function weld(p0,p1,c0,c1,par)
  293.  
  294. local w = Instance.new("Weld",p0 or par)
  295.  
  296. w.Part0 = p0
  297.  
  298. w.Part1 = p1
  299.  
  300. w.C0 = c0 or CFrame.new()
  301.  
  302. w.C1 = c1 or CFrame.new()
  303.  
  304. return w
  305.  
  306. end
  307.  
  308. local motors = {}
  309.  
  310. function motor(p0,p1,c0,c1,des,vel,par)
  311.  
  312. local w = Instance.new("Motor6D",p0 or par)
  313.  
  314. w.Part0 = p0
  315.  
  316. w.Part1 = p1
  317.  
  318. w.C0 = c0 or CFrame.new()
  319.  
  320. w.C1 = c1 or CFrame.new()
  321.  
  322. w.MaxVelocity = tonumber(vel) or .05
  323.  
  324. w.DesiredAngle = tonumber(des) or 0
  325.  
  326. return w
  327.  
  328. end
  329.  
  330. function lerp(a,b,c)
  331.  
  332. return a+(b-a)*c
  333.  
  334. end
  335.  
  336. function clerp(c1,c2,al)
  337.  
  338. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  339.  
  340. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  341.  
  342. for i,v in pairs(com1) do
  343.  
  344. com1[i] = lerp(v,com2[i],al)
  345.  
  346. end
  347.  
  348. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  349.  
  350. end
  351.  
  352. function ccomplerp(c1,c2,al)
  353.  
  354. local com1 = {c1:components()}
  355.  
  356. local com2 = {c2:components()}
  357.  
  358. for i,v in pairs(com1) do
  359.  
  360. com1[i] = lerp(v,com2[i],al)
  361.  
  362. end
  363.  
  364. return CFrame.new(unpack(com1))
  365.  
  366. end
  367.  
  368. function tickwave(time,length,offset)
  369.  
  370. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  371.  
  372. end
  373.  
  374. function invcol(c)
  375.  
  376. c = c.Color
  377.  
  378. return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
  379.  
  380. end
  381.  
  382. local oc = oc or function(...) return ... end
  383.  
  384. local plr = game.Players.LocalPlayer
  385.  
  386. local char = plr.Character
  387.  
  388. local tor = char.Torso
  389.  
  390. local hum = char.Humanoid
  391.  
  392. hum.PlatformStand = false
  393.  
  394. pcall(function()
  395.  
  396. char.Wings:Destroy()
  397.  
  398. end)
  399.  
  400. pcall(function()
  401.  
  402. char.Angel:Destroy() -- hat
  403.  
  404. end)
  405.  
  406. local mod = Instance.new("Model",char)
  407.  
  408. mod.Name = "Wings"
  409.  
  410. local special = {
  411.  
  412. --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  413.  
  414. antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  415.  
  416. --antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  417.  
  418. taart = {"Royal purple",nil,.4,.4,true},
  419.  
  420. mitta = {"Black",nil,0,0,false},
  421.  
  422. penjuin3 = {"White",nil,0,0,false},
  423.  
  424. thepc8110 = {"Black","Bright red",.5,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  425.  
  426. nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  427.  
  428. littleau999 = {"Reddish brown",1030,0,0,false},
  429.  
  430. unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)},
  431.  
  432. oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)},
  433.  
  434. krodmiss = {"Really black",nil,0,0,false},
  435.  
  436. }
  437.  
  438. local topcolor = BrickColor.new(TopColor)
  439.  
  440. local feacolor = BrickColor.new(FeatherColor)
  441. local ptrans = 0
  442.  
  443. local pref = 0
  444.  
  445. local fire = false
  446.  
  447. local fmcol = Color3.new()
  448.  
  449. local fscol = Color3.new()
  450.  
  451. local spec = special[plr.Name:lower()]
  452.  
  453. if spec then
  454.  
  455. topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
  456.  
  457. end
  458.  
  459. local part = Instance.new("Part")
  460.  
  461. part.FormFactor = "Custom"
  462.  
  463. part.Size = Vector3.new(.2,.2,.2)
  464.  
  465. part.TopSurface,part.BottomSurface = 0,0
  466.  
  467. part.CanCollide = false
  468.  
  469. part.BrickColor = topcolor
  470.  
  471. part.Transparency = 1
  472.  
  473. part.Reflectance = pref
  474.  
  475. local ef = Instance.new("Fire",fire and part or nil)
  476.  
  477. ef.Size = .15
  478.  
  479. ef.Color = fmcol or Color3.new()
  480.  
  481. ef.SecondaryColor = fscol or Color3.new()
  482.  
  483. part:BreakJoints()
  484.  
  485.  
  486. function newpart()
  487.  
  488. local clone = part:Clone()
  489.  
  490. clone.Parent = mod
  491.  
  492. clone:BreakJoints()
  493.  
  494. return clone
  495.  
  496. end
  497.  
  498. local feath = newpart()
  499.  
  500. feath.BrickColor = feacolor
  501.  
  502. feath.Transparency = 0
  503.  
  504. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  505.  
  506. function newfeather()
  507.  
  508. local clone = feath:Clone()
  509.  
  510. clone.Parent = mod
  511.  
  512. clone:BreakJoints()
  513.  
  514. return clone
  515.  
  516. end
  517.  
  518.  
  519. ---------- RIGHT WING
  520.  
  521. local r1 = newpart()
  522.  
  523. r1.Size = Vector3.new(.3,1.5,.3)*1.2
  524.  
  525. local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
  526.  
  527. local r2 = newpart()
  528.  
  529. r2.Size = Vector3.new(.4,1.8,.4)*1.2
  530.  
  531. local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
  532.  
  533. local r3 = newpart()
  534.  
  535. r3.Size = Vector3.new(.3,2.2,.3)*1.2
  536.  
  537. local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
  538.  
  539. local r4 = newpart()
  540.  
  541. r4.Size = Vector3.new(.25,1.2,.25)*1.2
  542.  
  543. local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
  544.  
  545. --local feather = newfeather()
  546.  
  547. --feather.Mesh.Scale = Vector3.new(1,1,1)
  548.  
  549. --feather.Size = Vector3.new(.4,3,.3)
  550.  
  551. --weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  552.  
  553. --feather = newfeather()
  554.  
  555. --feather.Mesh.Scale = Vector3.new(1,1,1)
  556.  
  557. --feather.Size = Vector3.new(.4,2.3,.3)
  558.  
  559. --weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  560.  
  561. --feather = newfeather()
  562.  
  563. --feather.Mesh.Scale = Vector3.new(1,1,1)
  564.  
  565. --feather.Size = Vector3.new(.35,2.2,.25)
  566.  
  567. --weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  568.  
  569. local rf3 = {}
  570.  
  571. for i=0,7 do
  572.  
  573. -- feather = newfeather()
  574.  
  575. --feather.Mesh.Scale = Vector3.new(1,1,1)
  576.  
  577. --feather.Size = Vector3.new(.45,2.2,.35)
  578.  
  579. -- table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  580.  
  581. end
  582.  
  583. local rf2 = {}
  584.  
  585. for i=0,6 do
  586.  
  587. --feather = newfeather()
  588.  
  589. -- feather.Mesh.Scale = Vector3.new(1,1,1)
  590.  
  591. --feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  592.  
  593. --table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  594.  
  595. end
  596.  
  597. local rf1 = {}
  598.  
  599. for i=0,6 do
  600.  
  601. --feather = newfeather()
  602.  
  603. --feather.Mesh.Scale = Vector3.new(1,1,1)
  604.  
  605. -- feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  606.  
  607. -- table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  608.  
  609. end
  610.  
  611. ---------- LEFT WING
  612.  
  613. local l1 = newpart()
  614.  
  615. l1.Size = Vector3.new(.3,1.5,.3)*1.2
  616.  
  617. local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
  618.  
  619. local l2 = newpart()
  620.  
  621. l2.Size = Vector3.new(.4,1.8,.4)*1.2
  622.  
  623. local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
  624.  
  625. local l3 = newpart()
  626.  
  627. l3.Size = Vector3.new(.3,2.2,.3)*1.2
  628.  
  629. local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
  630.  
  631. local l4 = newpart()
  632.  
  633. l4.Size = Vector3.new(.25,1.2,.25)*1.2
  634.  
  635. local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
  636.  
  637. --local feather = newfeather()
  638.  
  639. --feather.Mesh.Scale = Vector3.new(1,1,1)
  640.  
  641. --feather.Size = Vector3.new(.4,3,.3)
  642.  
  643. --weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  644.  
  645. --feather = newfeather()
  646.  
  647. --feather.Mesh.Scale = Vector3.new(1,1,1)
  648.  
  649. --feather.Size = Vector3.new(.4,2.3,.3)
  650.  
  651. --weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  652.  
  653. --feather = newfeather()
  654.  
  655. --feather.Mesh.Scale = Vector3.new(1,1,1)
  656.  
  657. --feather.Size = Vector3.new(.35,2.2,.25)
  658.  
  659. --weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  660.  
  661. local lf3 = {}
  662.  
  663. for i=0,7 do
  664.  
  665. --feather = newfeather()
  666.  
  667. --feather.Mesh.Scale = Vector3.new(1,1,1)
  668.  
  669. --feather.Size = Vector3.new(.45,2.2,.35)
  670.  
  671. --table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  672.  
  673. end
  674.  
  675. local lf2 = {}
  676.  
  677. for i=0,6 do
  678.  
  679. --feather = newfeather()
  680.  
  681. --feather.Mesh.Scale = Vector3.new(1,1,1)
  682.  
  683. --feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  684.  
  685. --table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  686.  
  687. end
  688.  
  689. local lf1 = {}
  690.  
  691. for i=0,6 do
  692.  
  693. --feather = newfeather()
  694.  
  695. --feather.Mesh.Scale = Vector3.new(1,1,1)
  696.  
  697. --feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  698.  
  699. --table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  700.  
  701. end
  702.  
  703. local rwing = {rm1,rm2,rm3,rm4}
  704.  
  705. local lwing = {lm1,lm2,lm3,lm4}
  706.  
  707. local oc0 = {}
  708.  
  709. for i,v in pairs(rwing) do
  710.  
  711. oc0[v] = v.C0
  712.  
  713. end
  714.  
  715. for i,v in pairs(lwing) do
  716.  
  717. oc0[v] = v.C0
  718.  
  719. end
  720.  
  721. function gotResized()
  722.  
  723. if lastsize then
  724.  
  725. if tor.Size == lastsize then return end -- This shouldn't happen?
  726.  
  727. local scaleVec = tor.Size/lastsize
  728.  
  729. for i,v in pairs(oc0) do
  730.  
  731. oc0[i] = v-v.p+scaleVec*v.p
  732.  
  733. end
  734.  
  735. lastsize = tor.Size
  736.  
  737. end
  738.  
  739. lastsize = tor.Size
  740.  
  741. end
  742.  
  743. tor.Changed:connect(function(p)
  744.  
  745. if p == "Size" then
  746.  
  747. gotResized()
  748.  
  749. end
  750.  
  751. end)
  752.  
  753. gotResized()
  754.  
  755. local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  756.  
  757. local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  758.  
  759. local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  760.  
  761. local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  762.  
  763. local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  764.  
  765. local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  766.  
  767.  
  768. function setwings(tab,time)
  769.  
  770. time = time or 10
  771.  
  772. for i=1,4 do
  773.  
  774. rwing[i].DesiredAngle = tab[i]
  775.  
  776. lwing[i].DesiredAngle = tab[i]
  777.  
  778. rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  779.  
  780. lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  781.  
  782. local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  783.  
  784. local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  785.  
  786. end
  787.  
  788. for i,v in pairs(rf1) do
  789.  
  790. v.DesiredAngle = tab[9]
  791.  
  792. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  793.  
  794. end
  795.  
  796. for i,v in pairs(lf1) do
  797.  
  798. v.DesiredAngle = tab[9]
  799.  
  800. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  801.  
  802. end
  803.  
  804. for i,v in pairs(rf2) do
  805.  
  806. v.DesiredAngle = tab[10]
  807.  
  808. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  809.  
  810. end
  811.  
  812. for i,v in pairs(lf2) do
  813.  
  814. v.DesiredAngle = tab[10]
  815.  
  816. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  817.  
  818. end
  819.  
  820. for i,v in pairs(rf3) do
  821.  
  822. v.DesiredAngle = tab[11]
  823.  
  824. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  825.  
  826. end
  827.  
  828. for i,v in pairs(lf3) do
  829.  
  830. v.DesiredAngle = tab[11]
  831.  
  832. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  833.  
  834. end
  835.  
  836. end
  837.  
  838. setwings(outhigh,1)
  839.  
  840. flying = false
  841.  
  842. moving = false
  843.  
  844. for i,v in pairs(tor:GetChildren()) do
  845.  
  846. if v.ClassName:lower():match("body") then
  847.  
  848. v:Destroy()
  849.  
  850. end
  851.  
  852. end
  853.  
  854. local ctor = tor:Clone()
  855.  
  856. ctor:ClearAllChildren()
  857.  
  858. ctor.Name = "cTorso"
  859.  
  860. ctor.Transparency = 1
  861.  
  862. ctor.CanCollide = false
  863.  
  864. ctor.FormFactor = "Custom"
  865.  
  866. ctor.Size = Vector3.new(.2,.2,.2)
  867.  
  868. ctor.Parent = mod
  869.  
  870. weld(tor,ctor)
  871.  
  872. local bg = Instance.new("BodyGyro",ctor)
  873.  
  874. bg.maxTorque = Vector3.new()
  875.  
  876. bg.P = 15000
  877.  
  878. bg.D = 1000
  879.  
  880. local bv = Instance.new("BodyVelocity",ctor)
  881.  
  882. bv.maxForce = Vector3.new()
  883.  
  884. bv.P = 15000
  885.  
  886. vel = Vector3.new()
  887.  
  888. cf = CFrame.new()
  889.  
  890. flspd = 0
  891.  
  892.  
  893. keysdown = {}
  894.  
  895. keypressed = {}
  896.  
  897. ktime = {}
  898.  
  899. descendtimer = 0
  900.  
  901. jumptime = tick()
  902.  
  903. hum.Jumping:connect(function()
  904.  
  905. jumptime = tick()
  906.  
  907. end)
  908.  
  909. cam = workspace.CurrentCamera
  910.  
  911. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  912.  
  913. keysdown[key] = true
  914.  
  915. keypressed[key] = true
  916.  
  917. if key == "q" then
  918.  
  919. descendtimer = tick()
  920.  
  921. elseif key == " " and not hum.Jump then
  922.  
  923. jumptime = tick()
  924.  
  925. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  926.  
  927. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  928.  
  929. end
  930.  
  931. ktime[key] = tick()
  932.  
  933. end))
  934.  
  935. ku = plr:GetMouse().KeyUp:connect(function(key)
  936.  
  937. keysdown[key] = false
  938.  
  939. if key == " " then
  940.  
  941. descendtimer = tick()
  942.  
  943. end
  944.  
  945. end)
  946.  
  947. function mid(a,b,c)
  948.  
  949. return math.max(a,math.min(b,c or -a))
  950.  
  951. end
  952.  
  953. function bn(a)
  954.  
  955. return a and 1 or 0
  956.  
  957. end
  958.  
  959. function gm(tar)
  960.  
  961. local m = 0
  962.  
  963. for i,v in pairs(tar:GetChildren()) do
  964.  
  965. if v:IsA("BasePart") then
  966.  
  967. m = m + v:GetMass()
  968.  
  969. end
  970.  
  971. m = m + gm(v)
  972.  
  973. end
  974.  
  975. return m
  976.  
  977. end
  978.  
  979. reqrotx = 0
  980.  
  981. local grav = 196.2
  982.  
  983. local con
  984.  
  985. con = game:GetService("RunService").Stepped:connect(oc(function()
  986.  
  987. --[[if not mod:IsDescendantOf(workspace) then
  988.  
  989. pcall(function() kd:disconnect() end)
  990.  
  991. pcall(function() ku:disconnect() end)
  992.  
  993. bg:Destroy()
  994.  
  995. bv:Destroy()
  996.  
  997. con:disconnect()
  998.  
  999. script:Destroy()
  1000.  
  1001. return
  1002.  
  1003. end]]
  1004.  
  1005. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  1006.  
  1007. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  1008.  
  1009. if flying then
  1010.  
  1011. local lfldir = fldir
  1012.  
  1013. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  1014.  
  1015. local lmoving = moving
  1016.  
  1017. moving = fldir.magnitude > .1
  1018.  
  1019. if lmoving and not moving then
  1020.  
  1021. idledir = lfldir*Vector3.new(1,0,1)
  1022.  
  1023. descendtimer = tick()
  1024.  
  1025. end
  1026.  
  1027. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  1028.  
  1029. if moving and keysdown["0"] and lmoving then
  1030.  
  1031. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  1032.  
  1033. end
  1034.  
  1035. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  1036.  
  1037. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  1038.  
  1039. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  1040.  
  1041. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  1042.  
  1043. hum.PlatformStand = true
  1044.  
  1045. bg.maxTorque = Vector3.new(1,1,1)*9e5
  1046.  
  1047. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  1048.  
  1049. bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
  1050.  
  1051. reqrotx = reqrotx - reqrotx/10
  1052.  
  1053. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  1054.  
  1055. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  1056.  
  1057. local ani = tickwave(1.5-anioff,1)
  1058.  
  1059. bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
  1060.  
  1061. vel = moving and cf.lookVector*flspd or Vector3.new()
  1062.  
  1063. flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
  1064.  
  1065. setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
  1066.  
  1067. for i=1,4 do
  1068.  
  1069. --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
  1070.  
  1071. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
  1072.  
  1073. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
  1074.  
  1075. end
  1076.  
  1077. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  1078.  
  1079. if hit and down.Y < -.85 and tick()-flystart > 1 then
  1080.  
  1081. flying = false
  1082.  
  1083. hum.PlatformStand = false
  1084.  
  1085. tor.Velocity = Vector3.new()
  1086.  
  1087. end
  1088.  
  1089. else
  1090.  
  1091. bg.maxTorque = Vector3.new()
  1092.  
  1093. bv.maxForce = Vector3.new()
  1094.  
  1095. local ani = tickwave(walking and .8 or 4.5,1)
  1096.  
  1097. setwings(idle,10)
  1098.  
  1099. local x,y,z = fspd/160,uspd/700,sspd/900
  1100.  
  1101. for i=1,4 do
  1102.  
  1103. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
  1104.  
  1105. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
  1106.  
  1107. end
  1108.  
  1109. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  1110.  
  1111. vel = Vector3.new(0,50,0)
  1112.  
  1113. bv.velocity = vel
  1114.  
  1115. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  1116.  
  1117. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  1118.  
  1119. tor.CFrame = cf
  1120.  
  1121. bg.cframe = cf
  1122.  
  1123. flystart = tick()
  1124.  
  1125. flying = true
  1126.  
  1127. end
  1128.  
  1129. end
  1130.  
  1131. keypressed = {}
  1132.  
  1133. end))
  1134.  
  1135.  
  1136.  
  1137. end fly()
  1138. end)
  1139.  
  1140. gui["UI Workspace"].Frame.tp.MouseButton1Click:connect(function()
  1141. local plr = TextBox.Text
  1142. game.Players[plr].Character.Torso.CanCollide = false
  1143. game.Players[plr].Character.Torso.Anchored = true
  1144. game.Players[plr].Character.Torso.Position = game.Players.LocalPlayer.Character.Torso.Position
  1145.  
  1146. end)
Add Comment
Please, Sign In to add comment