Mdbook

Untitled

Mar 6th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.60 KB | None | 0 0
  1.  
  2. local tool = script.Parent
  3.  
  4. if not tool:isA("HopperBin") then
  5.  
  6. tool = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  7.  
  8. tool.Name = "Dimensional Powers"
  9.  
  10. script.Parent = tool
  11.  
  12. end
  13.  
  14. local armor = Instance.new("Model")
  15.  
  16. local aa1 = {}
  17.  
  18. local aa2 = {}
  19.  
  20. local aa3 = {}
  21.  
  22. local power = false
  23.  
  24. local fly,flyCF,flySpd,u,d,f,b,l,r = false,CFrame.new(),0,false,false,false,false,false,false
  25.  
  26. local auraN = 10
  27.  
  28. local ragePts = 0
  29.  
  30. local rage = false
  31.  
  32. local overcharge = false
  33.  
  34. local cast = false
  35.  
  36. local gui = Instance.new("ScreenGui")
  37.  
  38. local ragef = Instance.new("Frame",gui)
  39.  
  40. ragef.BackgroundColor3 = Color3.new()
  41.  
  42. ragef.Transparency = 0.75
  43.  
  44. ragef.BorderSizePixel = 0
  45.  
  46. ragef.Position = UDim2.new(0,5,1,-85)
  47.  
  48. ragef.Size = UDim2.new(0,200,0,30)
  49.  
  50. local ragefovercharge = Instance.new("Frame",ragef)
  51.  
  52. ragefovercharge.BackgroundColor3 = Color3.new()
  53.  
  54. ragefovercharge.Transparency = 0.75
  55.  
  56. ragefovercharge.BorderSizePixel = 0
  57.  
  58. ragefovercharge.Position = UDim2.new(0,0,0,1)
  59.  
  60. ragefovercharge.Size = UDim2.new(1,100,1,-2)
  61.  
  62. local rageffill = Instance.new("Frame",ragef)
  63.  
  64. rageffill.BackgroundColor3 = Color3.new(1)
  65.  
  66. rageffill.Transparency = 0.5
  67.  
  68. rageffill.BorderSizePixel = 0
  69.  
  70. rageffill.Size = UDim2.new(0,0,1,0)
  71.  
  72. local ragefpts = Instance.new("TextLabel",ragef)
  73.  
  74. ragefpts.BackgroundTransparency = 1
  75.  
  76. ragefpts.Position = UDim2.new(0,10,0.5,0)
  77.  
  78. ragefpts.Font = "ArialBold"
  79.  
  80. ragefpts.FontSize = "Size18"
  81.  
  82. ragefpts.Text = "0"
  83.  
  84. ragefpts.TextColor3 = Color3.new()
  85.  
  86. ragefpts.TextStrokeColor3 = Color3.new(1,1,1)
  87.  
  88. ragefpts.TextStrokeTransparency = 0.5
  89.  
  90. ragefpts.TextXAlignment = "Left"
  91.  
  92. function getPose(a,b,blend)
  93.  
  94. return (a*(1-blend))+(b*blend)
  95.  
  96. end
  97.  
  98. function getArmor()
  99.  
  100. if armor then armor:Remove() end
  101.  
  102. aa1 = {}
  103.  
  104. aa2 = {}
  105.  
  106. aa3 = {}
  107.  
  108. armor = Instance.new("Model")
  109.  
  110. for i=1,15 do
  111.  
  112. local p = Instance.new("Part")
  113.  
  114. p.Color = Color3.new()
  115.  
  116. p.Material = "Ice"
  117.  
  118. p.formFactor = 3
  119.  
  120. p.TopSurface = 0
  121.  
  122. p.BottomSurface = 0
  123.  
  124. p.Anchored = true
  125.  
  126. p.CanCollide = false
  127.  
  128. p.Locked = true
  129.  
  130. p.Elasticity = 0
  131.  
  132. p.Friction = 0
  133.  
  134. p.Size = Vector3.new()
  135.  
  136. p.Parent = armor
  137.  
  138. local m = Instance.new("SpecialMesh",p)
  139.  
  140. m.MeshType = Enum.MeshType.Brick
  141.  
  142. m.Scale = Vector3.new(4,0.625,3)
  143.  
  144. table.insert(aa1,p)
  145.  
  146. end
  147.  
  148. for i=1,15 do
  149.  
  150. local p = Instance.new("Part")
  151.  
  152. p.Color = Color3.new()
  153.  
  154. p.Material = "Ice"
  155.  
  156. p.formFactor = 3
  157.  
  158. p.TopSurface = 0
  159.  
  160. p.BottomSurface = 0
  161.  
  162. p.Anchored = true
  163.  
  164. p.CanCollide = false
  165.  
  166. p.Locked = true
  167.  
  168. p.Elasticity = 0
  169.  
  170. p.Friction = 0
  171.  
  172. p.Size = Vector3.new()
  173.  
  174. p.Parent = armor
  175.  
  176. local m = Instance.new("SpecialMesh",p)
  177.  
  178. m.MeshType = Enum.MeshType.Brick
  179.  
  180. m.Scale = Vector3.new(4,0.625,3)
  181.  
  182. table.insert(aa2,p)
  183.  
  184. end
  185.  
  186. for i=1,15 do
  187.  
  188. local p = Instance.new("Part")
  189.  
  190. p.Color = Color3.new()
  191.  
  192. p.Material = "Ice"
  193.  
  194. p.formFactor = 3
  195.  
  196. p.TopSurface = 0
  197.  
  198. p.BottomSurface = 0
  199.  
  200. p.Anchored = true
  201.  
  202. p.CanCollide = false
  203.  
  204. p.Locked = true
  205.  
  206. p.Elasticity = 0
  207.  
  208. p.Friction = 0
  209.  
  210. p.Size = Vector3.new()
  211.  
  212. p.Parent = armor
  213.  
  214. local m = Instance.new("SpecialMesh",p)
  215.  
  216. m.MeshType = Enum.MeshType.Brick
  217.  
  218. m.Scale = Vector3.new(4,0.625,3)
  219.  
  220. table.insert(aa3,p)
  221.  
  222. end
  223.  
  224. function joint(a,b,c0)
  225.  
  226. local w = Instance.new("Weld",armor)
  227.  
  228. w.Part0 = a
  229.  
  230. w.Part1 = b
  231.  
  232. w.C0 = c0
  233.  
  234. end
  235.  
  236. local part = Instance.new("Part")
  237.  
  238. part.Color = Color3.new()
  239.  
  240. part.Material = "Ice"
  241.  
  242. part.CanCollide = false
  243.  
  244. part.Locked = true
  245.  
  246. part.formFactor = 3
  247.  
  248. part.Size = Vector3.new()
  249.  
  250. part.TopSurface = 0
  251.  
  252. part.BottomSurface = 0
  253.  
  254. local m = Instance.new("SpecialMesh",part)
  255.  
  256. m.MeshType = Enum.MeshType.Brick
  257.  
  258. function newPart(scale)
  259.  
  260. local p = part:Clone()
  261.  
  262. p.Mesh.Scale = scale
  263.  
  264. p.Parent = armor
  265.  
  266. return p
  267.  
  268. end
  269.  
  270. joint(game.Players.LocalPlayer.Character.Torso,newPart(Vector3.new(4,1,1)),CFrame.new(0,1,1.06))
  271.  
  272. joint(game.Players.LocalPlayer.Character.Torso,newPart(Vector3.new(5,1,1)),CFrame.new(-0.7,1,0.9)*CFrame.fromEulerAnglesXYZ(0,math.pi/-8,0))
  273.  
  274. joint(game.Players.LocalPlayer.Character.Torso,newPart(Vector3.new(5,1,1)),CFrame.new(0.7,1,0.9)*CFrame.fromEulerAnglesXYZ(0,math.pi/8,0))
  275.  
  276. joint(game.Players.LocalPlayer.Character["Right Arm"],newPart(Vector3.new(5,1,5)),CFrame.new(0.8,1,0)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-3))
  277.  
  278. joint(game.Players.LocalPlayer.Character["Right Arm"],newPart(Vector3.new(1,5,5)),CFrame.new(1,0.2,0))
  279.  
  280. joint(game.Players.LocalPlayer.Character["Right Arm"],newPart(Vector3.new(0.625,3.5,3.5)),CFrame.new(1,-0.24,0)*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0))
  281.  
  282. joint(game.Players.LocalPlayer.Character["Left Arm"],newPart(Vector3.new(5,1,5)),CFrame.new(-0.8,1,0)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/3))
  283.  
  284. joint(game.Players.LocalPlayer.Character["Left Arm"],newPart(Vector3.new(1,5,5)),CFrame.new(-1,0.2,0))
  285.  
  286. joint(game.Players.LocalPlayer.Character["Left Arm"],newPart(Vector3.new(0.625,3.5,3.5)),CFrame.new(-1,-0.24,0)*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0))
  287.  
  288. joint(game.Players.LocalPlayer.Character["Right Arm"],newPart(Vector3.new(2,0.625,1)),CFrame.new(0.7,1.4,0)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/8))
  289.  
  290. joint(game.Players.LocalPlayer.Character["Right Arm"],newPart(Vector3.new(2,0.625,1)),CFrame.new(0.68,1.4,-0.3531)*CFrame.fromEulerAnglesXYZ(0,math.pi/8,math.pi/8))
  291.  
  292. joint(game.Players.LocalPlayer.Character["Right Arm"],newPart(Vector3.new(2,0.625,1)),CFrame.new(0.68,1.4,0.3531)*CFrame.fromEulerAnglesXYZ(0,math.pi/-8,math.pi/8))
  293.  
  294. joint(game.Players.LocalPlayer.Character["Left Arm"],newPart(Vector3.new(2,0.625,1)),CFrame.new(-0.7,1.4,0)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-8))
  295.  
  296. joint(game.Players.LocalPlayer.Character["Left Arm"],newPart(Vector3.new(2,0.625,1)),CFrame.new(-0.68,1.4,-0.3531)*CFrame.fromEulerAnglesXYZ(0,math.pi/-8,math.pi/-8))
  297.  
  298. joint(game.Players.LocalPlayer.Character["Left Arm"],newPart(Vector3.new(2,0.625,1)),CFrame.new(-0.68,1.4,0.3531)*CFrame.fromEulerAnglesXYZ(0,math.pi/8,math.pi/-8))
  299.  
  300. armor.Parent = workspace
  301.  
  302. end
  303.  
  304. function simulate(j,d,m,r,t)
  305.  
  306. local joint = j
  307.  
  308. for i,v in ipairs(t) do
  309.  
  310. local stiff = m.CFrame.lookVector*0.03
  311.  
  312. if i > 1 then joint = t[i-1].CFrame*CFrame.new(0,0,d*0.5) end
  313.  
  314. local dir = (v.Position-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
  315.  
  316. local dis = (v.Position-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
  317.  
  318. local pos = joint.p+(dir*(d*0.5))
  319.  
  320. v.CFrame = CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
  321.  
  322. end
  323.  
  324. end
  325.  
  326. function aura(frames,scale,color)
  327.  
  328. coroutine.resume(coroutine.create(function()
  329.  
  330. local p = Instance.new("Part")
  331.  
  332. game.Debris:AddItem(p)
  333.  
  334. p.Transparency = 0.5
  335.  
  336. p.Anchored = true
  337.  
  338. p.CanCollide = false
  339.  
  340. p.Locked = true
  341.  
  342. p.formFactor = 3
  343.  
  344. p.Size = Vector3.new()
  345.  
  346. p.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position-Vector3.new(0,2.5,0))
  347.  
  348. p.TopSurface = 0
  349.  
  350. p.BottomSurface = 0
  351.  
  352. p.Parent = workspace
  353.  
  354. local m = Instance.new("SpecialMesh",p)
  355.  
  356. m.MeshId = "http://www.roblox.com/asset/?id=20329976"
  357.  
  358. m.Scale = Vector3.new()
  359.  
  360. m.TextureId = "http://www.roblox.com/asset/?ID=1361097"
  361.  
  362. m.VertexColor = color
  363.  
  364. for i=1,frames do
  365.  
  366. p.CFrame = p.CFrame*CFrame.fromEulerAnglesXYZ(0,math.random()*math.pi,0)
  367.  
  368. m.Scale = Vector3.new(i,i/4,i)*scale
  369.  
  370. p.Transparency = 0.25+(i/frames*0.75)
  371.  
  372. wait()
  373.  
  374. end
  375.  
  376. p:Remove()
  377.  
  378. end))
  379.  
  380. end
  381.  
  382. script.Parent.Selected:connect(function(mouse)
  383.  
  384. gui.Parent = game.Players.LocalPlayer.PlayerGui
  385.  
  386. mouse.KeyDown:connect(function(key)
  387.  
  388. print(key)
  389.  
  390. key = key:lower()
  391.  
  392. if key == "q" then
  393.  
  394. if power then
  395.  
  396. if armor then armor:Remove() end
  397.  
  398. aa1 = {}
  399.  
  400. aa2 = {}
  401.  
  402. aa3 = {}
  403.  
  404. armor = Instance.new("Model")
  405.  
  406. else getArmor()
  407.  
  408. end
  409.  
  410. power = not power
  411.  
  412. end
  413.  
  414. --[[ if key == "0" then
  415.  
  416. flyCF = game.Players.LocalPlayer.Character.Torso.CFrame
  417.  
  418. fly = not fly
  419.  
  420. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = fly
  421.  
  422. end]]
  423.  
  424. if key == " " then u = true end
  425.  
  426. -- if key == "2" then d = true end
  427.  
  428. if key == "2" then
  429.  
  430. auraN = 1
  431.  
  432. rage = true
  433.  
  434. end
  435.  
  436. if key == "w" then f = true end
  437.  
  438. if key == "s" then b = true end
  439.  
  440. if key == "a" then l = true end
  441.  
  442. if key == "d" then r = true end
  443.  
  444. if key == "z" then cast = true end
  445.  
  446. end)
  447.  
  448. mouse.KeyUp:connect(function(key)
  449.  
  450. key = key:lower()
  451.  
  452. if key == " " then u = false end
  453.  
  454. -- if key == "2" then d = false end
  455.  
  456. if key == "2" then rage = false end
  457.  
  458. if key == "w" then f = false end
  459.  
  460. if key == "s" then b = false end
  461.  
  462. if key == "a" then l = false end
  463.  
  464. if key == "d" then r = false end
  465.  
  466. end)
  467.  
  468. end)
  469.  
  470. script.Parent.Deselected:connect(function()
  471.  
  472. gui.Parent = nil
  473.  
  474. end)
  475.  
  476. while true do
  477.  
  478. if power then
  479.  
  480. if rage and not overcharge then
  481.  
  482. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame+Vector3.new(0,0.1,0)
  483.  
  484. ragePts = ragePts+5
  485.  
  486. local cam = workspace.CurrentCamera
  487.  
  488. local dis = (cam.CoordinateFrame.p-cam.Focus.p).magnitude/410
  489.  
  490. cam.CoordinateFrame = cam.CoordinateFrame+(Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*dis*1.5)
  491.  
  492. for i=1,#aa1 do
  493.  
  494. aa1[i].CFrame = aa1[i].CFrame+Vector3.new(0,math.random(1,100)/75,0)-(game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*(math.random(1,100)/50))
  495.  
  496. aa2[i].CFrame = aa2[i].CFrame+Vector3.new(0,math.random(1,100)/75,0)-(game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*(math.random(1,100)/50))
  497.  
  498. aa3[i].CFrame = aa3[i].CFrame+Vector3.new(0,math.random(1,100)/75,0)-(game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*(math.random(1,100)/50))
  499.  
  500. end
  501.  
  502. aura(10,1,Vector3.new())
  503.  
  504. end
  505.  
  506. if overcharge then
  507.  
  508. aura(10,1,Vector3.new(2))
  509.  
  510. ragePts = ragePts-2
  511.  
  512. if ragePts <= 0 then overcharge = false end
  513.  
  514. else if ragePts >= 1500 then
  515.  
  516. overcharge = true
  517.  
  518. ragefpts.TextColor3 = Color3.new(1,0,0)
  519.  
  520. coroutine.resume(coroutine.create(function()
  521.  
  522. for i=1,5 do
  523.  
  524. coroutine.resume(coroutine.create(function()
  525.  
  526. local p = Instance.new("Part")
  527.  
  528. game.Debris:AddItem(p)
  529.  
  530. p.Transparency = 0.5
  531.  
  532. p.Anchored = true
  533.  
  534. p.CanCollide = false
  535.  
  536. p.Locked = true
  537.  
  538. p.formFactor = 3
  539.  
  540. p.Size = Vector3.new()
  541.  
  542. p.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  543.  
  544. p.TopSurface = 0
  545.  
  546. p.BottomSurface = 0
  547.  
  548. p.Parent = workspace
  549.  
  550. local m = Instance.new("SpecialMesh",p)
  551.  
  552. m.MeshId = "http://www.roblox.com/Asset/?id=9856898"
  553.  
  554. m.Scale = Vector3.new()
  555.  
  556. m.TextureId = "http://www.roblox.com/asset/?ID=1361097"
  557.  
  558. m.VertexColor = Vector3.new()
  559.  
  560. for i=1,50 do
  561.  
  562. local ratio = math.sin((i/100)*math.pi)
  563.  
  564. p.CFrame = p.CFrame*CFrame.fromEulerAnglesXYZ(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  565.  
  566. m.Scale = Vector3.new(1,1,1)*ratio*200
  567.  
  568. p.Transparency = 0.5+(ratio*0.5)
  569.  
  570. m.VertexColor = Vector3.new(ratio*2)
  571.  
  572. wait()
  573.  
  574. end
  575.  
  576. p:Remove()
  577.  
  578. end))
  579.  
  580. wait()
  581.  
  582. end
  583.  
  584. end))
  585.  
  586. coroutine.resume(coroutine.create(function()
  587.  
  588. for i=1,5 do
  589.  
  590. coroutine.resume(coroutine.create(function()
  591.  
  592. local p = Instance.new("Part")
  593.  
  594. game.Debris:AddItem(p)
  595.  
  596. p.Transparency = 0.5
  597.  
  598. p.Anchored = true
  599.  
  600. p.CanCollide = false
  601.  
  602. p.Locked = true
  603.  
  604. p.formFactor = 3
  605.  
  606. p.Size = Vector3.new()
  607.  
  608. p.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position-Vector3.new(0,2.5,0))
  609.  
  610. p.TopSurface = 0
  611.  
  612. p.BottomSurface = 0
  613.  
  614. p.Parent = workspace
  615.  
  616. local m = Instance.new("SpecialMesh",p)
  617.  
  618. m.MeshId = "http://www.roblox.com/asset/?id=20329976"
  619.  
  620. m.Scale = Vector3.new()
  621.  
  622. m.TextureId = "http://www.roblox.com/asset/?ID=1361097"
  623.  
  624. m.VertexColor = Vector3.new()
  625.  
  626. for i=1,50 do
  627.  
  628. local ratio = math.sin((i/100)*math.pi)
  629.  
  630. p.CFrame = p.CFrame*CFrame.fromEulerAnglesXYZ(0,math.random()*math.pi,0)
  631.  
  632. m.Scale = Vector3.new(ratio,ratio/4,ratio)*100
  633.  
  634. p.Transparency = 0.5+(ratio*0.5)
  635.  
  636. m.VertexColor = Vector3.new(ratio*2)
  637.  
  638. wait()
  639.  
  640. end
  641.  
  642. p:Remove()
  643.  
  644. end))
  645.  
  646. wait()
  647.  
  648. end
  649.  
  650. end))
  651.  
  652. coroutine.resume(coroutine.create(function()
  653.  
  654. for i=1,5 do
  655.  
  656. coroutine.resume(coroutine.create(function()
  657.  
  658. local p = Instance.new("Part")
  659.  
  660. game.Debris:AddItem(p)
  661.  
  662. p.Transparency = 0.5
  663.  
  664. p.Anchored = true
  665.  
  666. p.CanCollide = false
  667.  
  668. p.Locked = true
  669.  
  670. p.formFactor = 3
  671.  
  672. p.Size = Vector3.new()
  673.  
  674. p.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position-Vector3.new(0,2.5,0))
  675.  
  676. p.TopSurface = 0
  677.  
  678. p.BottomSurface = 0
  679.  
  680. p.Parent = workspace
  681.  
  682. local m = Instance.new("SpecialMesh",p)
  683.  
  684. m.MeshId = "http://www.roblox.com/asset/?id=20329976"
  685.  
  686. m.Scale = Vector3.new()
  687.  
  688. m.TextureId = "http://www.roblox.com/asset/?ID=1361097"
  689.  
  690. m.VertexColor = Vector3.new()
  691.  
  692. for i=1,50 do
  693.  
  694. local ratio = math.sin((i/100)*math.pi)
  695.  
  696. p.CFrame = p.CFrame*CFrame.fromEulerAnglesXYZ(0,math.random()*math.pi,0)
  697.  
  698. m.Scale = Vector3.new(ratio/4,ratio,ratio/4)*100
  699.  
  700. p.Transparency = 0.5+(ratio*0.5)
  701.  
  702. m.VertexColor = Vector3.new(ratio*2)
  703.  
  704. wait()
  705.  
  706. end
  707.  
  708. p:Remove()
  709.  
  710. end))
  711.  
  712. wait()
  713.  
  714. end
  715.  
  716. end))
  717.  
  718. end
  719.  
  720. if ragePts < 0 then ragePts = 0 end
  721.  
  722. if not overcharge then
  723.  
  724. if ragePts > 1000 then
  725.  
  726. if rage then
  727.  
  728. ragefpts.TextColor3 = Color3.new(math.random(0,1),0,0)
  729.  
  730. end
  731.  
  732. ragePts = ragePts-3
  733.  
  734. if ragePts < 1000 then ragePts = 1000 end
  735.  
  736. else ragefpts.TextColor3 = Color3.new()
  737.  
  738. end
  739.  
  740. end
  741.  
  742. end
  743.  
  744. rageffill.Size = UDim2.new(ragePts/1000,0,1,0)
  745.  
  746. ragefpts.Text = ragePts
  747.  
  748. if overcharge then
  749.  
  750. ragefpts.Text = "RAGE!"
  751.  
  752. end
  753.  
  754. local torso = game.Players.LocalPlayer.Character.Torso
  755.  
  756. --[[ if fly then
  757.  
  758. flySpd = flySpd+1
  759.  
  760. if flySpd > 100 then flySpd = 100 end
  761.  
  762. local dir = Vector3.new()
  763.  
  764. if u then
  765.  
  766. dir = dir+Vector3.new(0,1,0)
  767.  
  768. end
  769.  
  770. if d then
  771.  
  772. dir = dir-Vector3.new(0,1,0)
  773.  
  774. end
  775.  
  776. if f then
  777.  
  778. dir = dir+workspace.CurrentCamera.CoordinateFrame.lookVector
  779.  
  780. end
  781.  
  782. if b then
  783.  
  784. dir = dir-workspace.CurrentCamera.CoordinateFrame.lookVector
  785.  
  786. end
  787.  
  788. if l then
  789.  
  790. dir = dir+(workspace.CurrentCamera.CoordinateFrame*CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector
  791.  
  792. end
  793.  
  794. if r then
  795.  
  796. dir = dir-(workspace.CurrentCamera.CoordinateFrame*CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector
  797.  
  798. end
  799.  
  800. dir = dir.unit*(flySpd/100)
  801.  
  802. flyCF = CFrame.new(flyCF.p+dir,(flyCF.p+dir)*2)--*CFrame.fromEulerAnglesXYZ((math.pi/-2.5)*(flySpd/100),0,0)
  803.  
  804. game.Players.LocalPlayer.Character.Torso.CFrame = flyCF
  805.  
  806. game.Players.LocalPlayer.Character.Torso.Velocity = Vector3.new()
  807.  
  808. game.Players.LocalPlayer.Character.Torso.RotVelocity = Vector3.new()
  809.  
  810. for i=1,#aa1 do
  811.  
  812. aa1[i].CFrame = aa1[i].CFrame+Vector3.new(0,math.random(0,10)/100,0)-game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*(math.random(0,10)/100)
  813.  
  814. aa2[i].CFrame = aa2[i].CFrame+Vector3.new(0,math.random(0,10)/100,0)-game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*(math.random(0,10)/100)
  815.  
  816. aa3[i].CFrame = aa3[i].CFrame+Vector3.new(0,math.random(0,10)/100,0)-game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*(math.random(0,10)/100)
  817.  
  818. end
  819.  
  820. end]]
  821.  
  822. simulate(torso.CFrame*CFrame.new(0,0.9,1.06),0.45,torso,Vector3.new(),aa1)
  823.  
  824. simulate((torso.CFrame*CFrame.new(0.7,0.9,0.9))*CFrame.fromEulerAnglesXYZ(0,math.pi/-8,0),0.45,torso,Vector3.new(0,0,math.pi/-8),aa2)
  825.  
  826. simulate((torso.CFrame*CFrame.new(-0.7,0.9,0.9))*CFrame.fromEulerAnglesXYZ(0,math.pi/8,0),0.45,torso,Vector3.new(0,0,math.pi/8),aa3)
  827.  
  828. end
  829.  
  830. wait()
  831.  
  832. end
Add Comment
Please, Sign In to add comment