Advertisement
mathmasterphil

Anti's Bow

Mar 1st, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.30 KB | None | 0 0
  1. -- EXTREME RARE SCRIPT --
  2. -- Red Titan Bow --
  3. -- Local Script --
  4. -- Made by Immunidon (NOT THE SCRIPT) --
  5.  
  6.  
  7. function weld(p0,p1,c0,c1,par)
  8. local w = Instance.new("Weld",p0 or par)
  9. w.Part0 = p0
  10. w.Part1 = p1
  11. w.C0 = c0 or CFrame.new()
  12. w.C1 = c1 or CFrame.new()
  13. return w
  14. end
  15. do
  16. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  17.  
  18. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end
  19.  
  20. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end
  21. function clerp(a,b,t)
  22. if not a or not b then print(a,b,"is missing") return end
  23. local qa = {QuaternionFromCFrame(a)}
  24. local qb = {QuaternionFromCFrame(b)}
  25. local ax, ay, az = a.x, a.y, a.z
  26. local bx, by, bz = b.x, b.y, b.z
  27. local _t = 1-t
  28. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  29. end
  30. end
  31. local oc = oc or function(...) return ... end
  32. pcall(function() script.Parent.bScript:Destroy() end)
  33. script.Name = "bScript"
  34. local plr = game:service'Players'.LocalPlayer
  35. local mouse = plr:GetMouse()
  36. local char = plr.Character
  37. animate = char:findFirstChild("Animate")
  38. animate:Destroy()
  39. local tor,ra,la,rl,ll,hd,hum = char.Torso,char["Right Arm"],char["Left Arm"],char["Right Leg"],char["Left Leg"],char.Head,char.Humanoid
  40. local rrs,rls,nk = tor["Right Shoulder"],tor["Left Shoulder"],tor.Neck
  41. local nk0 = nk.C0
  42. local rc0,rc1 = rrs.C0,rrs.C1
  43. local lc0,lc1 = rls.C0,rls.C0
  44. local rs,ls = rrs:Clone(),rls:Clone()
  45. rs.Name,ls.Name = "rs","ls"
  46. rs.DesiredAngle,rs.CurrentAngle = 0,0
  47. ls.DesiredAngle,ls.CurrentAngle = 0,0
  48. local model = Instance.new("Model",char)
  49. pcall(function() char.bModel:Destroy() end)
  50. model.Name = "bModel"
  51. local part = Instance.new("Part")
  52. part.Material = "SmoothPlastic"
  53. part.BrickColor = BrickColor.new("Really black")
  54. part.Reflectance = 0.15
  55. part.FormFactor = "Custom"
  56. part.TopSurface = "SmoothNoOutlines"
  57. part.BottomSurface = "SmoothNoOutlines"
  58. part.RightSurface = "SmoothNoOutlines"
  59. part.LeftSurface = "SmoothNoOutlines"
  60. part.TopSurface,part.BottomSurface = 0,0
  61. part.Size = Vector3.new(.1,.1,.2)
  62. part:BreakJoints()
  63. part.CanCollide = false
  64. function clone(t)
  65. local p = t:Clone()
  66. p.Parent = t.Parent or model
  67. return p
  68. end
  69. local han = clone(part)
  70. han.Size = Vector3.new(.3,.5,.3)
  71. han.Transparency = 1
  72. local hold = weld(la,han,CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-90),math.rad(23),0),CFrame.new())
  73. for i=1,14 do
  74. local gr = clone(part)
  75. gr.BrickColor = BrickColor.new("Institutional White")
  76. gr.Size = Vector3.new(.3,.2,.3)
  77. local m = Instance.new("SpecialMesh",gr)
  78. m.MeshType = "Sphere"
  79. m.Scale = Vector3.new(1,.75,1) * math.max(.85,math.abs(i-7)/5)
  80. weld(han,gr,CFrame.new(0,-.6+i*.085,0) * CFrame.Angles(math.rad(15),math.rad(0),math.rad(23)),CFrame.new())
  81. end
  82. local p = clone(part)
  83. p.Size = Vector3.new(.45,.2,.32)
  84. local m = Instance.new("BlockMesh",p)
  85. m.Scale = Vector3.new(1,.5,1)
  86. weld(han,p,CFrame.new(0,-.62,.125) * CFrame.Angles(math.rad(10),0,0))
  87. local p = clone(part)
  88. p.Size = Vector3.new(.45,.2,.3)
  89. local m = Instance.new("BlockMesh",p)
  90. m.Scale = Vector3.new(1,.5,1)
  91. weld(han,p,CFrame.new(0,-.62,-.125) * CFrame.Angles(math.rad(-10),0,0))
  92. local b1 = clone(part)
  93. b1.Size = Vector3.new(.2,1,.3)
  94. local m = Instance.new("BlockMesh",b1)
  95. m.Scale = Vector3.new(1,1,1)
  96. local bw1 = weld(han,b1,CFrame.new(0,-.6,0) * CFrame.Angles(math.rad(-10),0,0),CFrame.new(0,.5,0))
  97. local b2 = clone(part)
  98. b2.Size = Vector3.new(.2,1,.25)
  99. local m = Instance.new("BlockMesh",b2)
  100. m.Scale = Vector3.new(.9,1,1)
  101. local bw2 = weld(b1,b2,CFrame.new(0,-.5,-.15) * CFrame.Angles(math.rad(-25),0,0),CFrame.new(0,.5,-.125))
  102. local b3 = clone(part)
  103. b3.Size = Vector3.new(.2,1,.2)
  104. local m = Instance.new("BlockMesh",b3)
  105. m.Scale = Vector3.new(.75,1,1)
  106. local bw3 = weld(b2,b3,CFrame.new(0,-.5,-.125) * CFrame.Angles(math.rad(-25),0,0),CFrame.new(0,.5,-.1))
  107. local bt = clone(part)
  108. bt.BrickColor = BrickColor.new("Really red")
  109. bt.Size = Vector3.new(.2,.3,.2)
  110. local m = Instance.new("BlockMesh",bt)
  111. m.Scale = Vector3.new(.5,1,1) * .5
  112. local btw = weld(b3,bt,CFrame.new(0,-.5,.1) * CFrame.Angles(math.rad(-25),0,0),CFrame.new(0,0,.05))
  113. local p = clone(part)
  114. p.Size = Vector3.new(.45,.2,.32)
  115. local m = Instance.new("BlockMesh",p)
  116. m.Scale = Vector3.new(1,.5,1)
  117. weld(han,p,CFrame.new(0,.67,.125) * CFrame.Angles(math.rad(15),0,0))
  118. local p = clone(part)
  119. p.Size = Vector3.new(.45,.2,.3)
  120. local m = Instance.new("BlockMesh",p)
  121. m.Scale = Vector3.new(1,.5,1)
  122. weld(han,p,CFrame.new(0,.67,-.125) * CFrame.Angles(math.rad(-15),0,0))
  123. local p = clone(part)
  124. p.Size = Vector3.new(.4,.2,.3)
  125. local m = Instance.new("BlockMesh",p)
  126. m.Scale = Vector3.new(1,.5,1)
  127. weld(han,p,CFrame.new(0,.75,0) * CFrame.Angles(math.rad(0),0,0))
  128. local p = clone(part)
  129. p.Size = Vector3.new(.2,.3,.35)
  130. local m = Instance.new("BlockMesh",p)
  131. m.Scale = Vector3.new(1,1,1)
  132. weld(han,p,CFrame.new(-.1,.8,0) * CFrame.Angles(math.rad(0),0,0))
  133. local p = clone(part)
  134. p.Size = Vector3.new(.45,.2,.32)
  135. local m = Instance.new("BlockMesh",p)
  136. m.Scale = Vector3.new(1,.5,1)
  137. weld(han,p,CFrame.new(0,1,.125) * CFrame.Angles(math.rad(-5),0,0))
  138. local p = clone(part)
  139. p.Size = Vector3.new(.45,.2,.25)
  140. local m = Instance.new("BlockMesh",p)
  141. m.Scale = Vector3.new(1,.5,1)
  142. weld(han,p,CFrame.new(0,1,-.125) * CFrame.Angles(math.rad(5),0,0))
  143. local t1 = clone(part)
  144. t1.Size = Vector3.new(.2,1,.3)
  145. local m = Instance.new("BlockMesh",t1)
  146. m.Scale = Vector3.new(1,1,1)
  147. local tw1 = weld(han,t1,CFrame.new(0,.975,0) * CFrame.Angles(math.rad(10),0,0),CFrame.new(0,-.5,0))
  148. local t2 = clone(part)
  149. t2.Size = Vector3.new(.2,1,.25)
  150. local m = Instance.new("BlockMesh",t2)
  151. m.Scale = Vector3.new(.9,1,1)
  152. local tw2 = weld(t1,t2,CFrame.new(0,.5,-.15) * CFrame.Angles(math.rad(25),0,0),CFrame.new(0,-.5,-.125))
  153. local t3 = clone(part)
  154. t3.Size = Vector3.new(.2,1,.2)
  155. local m = Instance.new("BlockMesh",t3)
  156. m.Scale = Vector3.new(.75,1,1)
  157. local tw3 = weld(t2,t3,CFrame.new(0,.5,-.125) * CFrame.Angles(math.rad(25),0,0),CFrame.new(0,-.5,-.1))
  158. local tt = clone(part)
  159. tt.BrickColor = BrickColor.new("White")
  160. tt.Size = Vector3.new(.2,.3,.2)
  161. local m = Instance.new("BlockMesh",tt)
  162. m.Scale = Vector3.new(.5,1,1) * .5
  163. local ttw = weld(t3,tt,CFrame.new(0,.5,.1) * CFrame.Angles(math.rad(25),0,0),CFrame.new(0,0,.05))
  164. local W = {bw1,bw2,bw3,tw1,tw2,tw3}
  165. local W0 = {bw1.C0,bw2.C0,bw3.C0,tw1.C0,tw2.C0,tw3.C0}
  166. local l1 = clone(part)
  167. l1.BrickColor = BrickColor.new("Really red")
  168. l1.Size = Vector3.new(.2,.2,.2)
  169. local m = Instance.new("CylinderMesh",l1)
  170. local l1w = weld(bt,l1)
  171. local l2 = clone(l1)
  172. local l2w = weld(tt,l2)
  173. local amodel = Instance.new("Model")
  174. local arrow = clone(part)
  175. arrow.Parent = amodel
  176. arrow.BrickColor = BrickColor.new("Really red")
  177. arrow.Size = Vector3.new(.2,3,.2)
  178. arrow.Name = "main"
  179. local m = Instance.new("CylinderMesh",arrow)
  180. m.Scale = Vector3.new(.5,1,.5)
  181. local arrw = weld(han,arrow)
  182. local tip = clone(part)
  183. tip.Parent = amodel
  184. tip.BrickColor = BrickColor.new("Really red")
  185. tip.Size = Vector3.new(.2,.4,.2)
  186. tip.Name = "tip"
  187. local m = Instance.new("SpecialMesh",tip)
  188. m.MeshId = "rbxassetid://1033714"
  189. m.Scale = Vector3.new(.1,.45,.1)
  190. weld(arrow,tip,CFrame.new(0,1.6,0))
  191. local walkspeed = 16
  192. local hpos_i = CFrame.new(0,.8,1.3)
  193. local hpos_l = CFrame.new(0,.8,1.55)
  194. local hpos = hpos_i
  195. local keeper = Vector3.new(0.07,0.82,0)
  196. mouse.Button1Up:connect(function()
  197.  
  198. mup = true
  199. end)
  200. function ragJoint(hit,r,d)
  201. Spawn(oc(function()
  202. d = d or 0
  203. local rpar,r0,r1 = r.Parent,r.Part0,r.Part1
  204. if d > 0 then wait(d) end
  205. local p = hit:Clone()
  206. p:BreakJoints()
  207. p:ClearAllChildren()
  208. p.FormFactor = "Custom"
  209. p.Size = p.Size/2
  210. p.Transparency = 1
  211. p.CanCollide = true
  212. p.Name = "Colliduh"
  213. p.Parent = hit
  214. local w = Instance.new("Weld",p)
  215. w.Part0 = hit
  216. w.Part1 = p
  217. w.C0 = CFrame.new(0,-p.Size.Y/2,0)
  218. local rot = Instance.new("Rotate",rpar)
  219. rot.Name = r.Name
  220. rot.Part0 = r0
  221. rot.Part1 = r1
  222. rot.C0 = r.C0
  223. rot.C1 = r.C1
  224. r0.Velocity = Vector3.new()
  225. r1.Velocity = Vector3.new()
  226. r:Destroy()
  227. end))
  228. end
  229.  
  230. function playSound(id,parent,volume,pitch)
  231. local sound = Instance.new("Sound",parent or workspace)
  232. sound.SoundId = "http://www.roblox.com/asset?id="..id
  233. sound.Volume = volume or 1
  234. sound.Pitch = pitch or 1
  235. coroutine.wrap(function()
  236. wait()
  237. sound:Play()
  238. wait(10)
  239. sound:Stop()
  240. sound:Destroy()
  241. end)()
  242. return sound
  243. end
  244.  
  245.  
  246. function ShootArrow(a,to,spd)
  247. playSound(154961548,x,1,1)
  248. Spawn(oc(function()
  249. local from = a.main.CFrame
  250. a:Destroy()
  251. local a = amodel:Clone()
  252. for i,v in pairs(a:GetChildren()) do
  253. if v:IsA("BasePart") then
  254. v.Anchored = true
  255. end
  256. end
  257. a:MakeJoints()
  258. a.Parent = workspace
  259. local m = a.main
  260. --local from = m.CFrame
  261. local t = {}
  262. local function move(cf)
  263. for i,v in pairs(a:GetChildren()) do
  264. if v ~= m and v:IsA("BasePart") then
  265. t[v] = t[v] or m.CFrame:toObjectSpace(v.CFrame)
  266. v.CFrame = cf * t[v]
  267. end
  268. end
  269. m.CFrame = cf
  270. end
  271. move(from)
  272. local velocity = (to.p-from.p).unit * spd * 500
  273. local con
  274. local t = tick()
  275. con = game:GetService("RunService").Stepped:connect(function()
  276. if tick()-t > 25 then
  277. con:disconnect()
  278. a:Destroy()
  279. return
  280. end
  281. velocity = velocity - Vector3.new(0,196.2/30,0)
  282. local newcf = clerp(m.CFrame,CFrame.new(m.Position,m.Position+velocity) * CFrame.Angles(-math.pi/2,0,0),.5) + velocity / 30
  283. local hit,ray
  284. local rayo = Ray.new(m.Position,newcf.p-m.Position)
  285. local ign = {a,char}
  286. repeat
  287. hit,ray = workspace:FindPartOnRayWithIgnoreList(rayo,ign)
  288. if not hit then break end
  289. if hit.CanCollide or game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) then
  290. playSound(154961566,x,1,1)
  291. break
  292. else
  293. table.insert(ign,hit)
  294. hit = nil
  295. end
  296. until false
  297. if hit then
  298. move(newcf-newcf.p+ray)
  299. con:disconnect()
  300. game:GetService("Debris"):AddItem(a,300)
  301. local char = hit.Parent
  302. if not hit.Anchored then
  303. local b = hit.CFrame:toObjectSpace(m.CFrame)
  304. for i,v in pairs(a:GetChildren()) do
  305. pcall(function() v.Anchored = false v.CanCollide = true end)
  306. end
  307. weld(hit,m,b)
  308. end
  309. if game:service'Players':GetPlayerFromCharacter(char) and char:FindFirstChild("Torso") then
  310. if hit.Name:match("Arm") then
  311. local r = char.Torso:FindFirstChild(hit.Name:gsub("Arm","Shoulder"):gsub("Leg","Hip"))
  312. if r then
  313. ragJoint(hit,r)
  314. end
  315. elseif hit.Name:match("Head") then
  316. for i,v in pairs(char:GetChildren()) do
  317. local r = char.Torso:FindFirstChild(v.Name:gsub("Arm","Shoulder"):gsub("Leg","Hip"))
  318. if v:IsA("BasePart") and r then
  319. ragJoint(v,r,.1)
  320. elseif v:IsA("Humanoid") then
  321. v.PlatformStand = true
  322. v.Changed:connect(function()
  323. v.PlatformStand = true
  324. end)
  325. end
  326. end
  327. Delay(8,function()
  328. char:BreakJoints()
  329. end)
  330. end
  331. end
  332. return
  333. else
  334. move(newcf)
  335. end
  336. end)
  337. end))
  338. end
  339. mouse.Button1Down:connect(oc(function()
  340. playSound(154961529,x,1,1)
  341. if mb then return end
  342. mb = true
  343. mup = false
  344. rls.Part0,rls.Part1 = nil,nil
  345. ls.Part0,ls.Part1 = tor,la
  346. ls.Parent = tor
  347. ls.C0 = ls.C0 * CFrame.Angles(0,0,rls.CurrentAngle)
  348. rrs.Part0,rrs.Part1 = nil,nil
  349. rs.Part0,rs.Part1 = tor,ra
  350. rs.Parent = tor
  351. rs.C0 = rs.C0 * CFrame.Angles(0,0,rrs.CurrentAngle)
  352. local hc0 = hold.C0
  353. local bg = Instance.new("BodyGyro",tor)
  354. bg.maxTorque = Vector3.new(1,1,1)*9e7
  355. local ltar = 0
  356. local rtar = rrs.C0 * CFrame.Angles(0,0,math.rad(90)) * CFrame.Angles(math.rad(70),0,0) + Vector3.new(-.65,.25,-.25)
  357. local ntar = nk0 * CFrame.Angles(0,0,math.rad(70))
  358. local htar = hc0 * CFrame.Angles(0,math.rad(10),0)
  359. local t = tick()
  360. local iam = 0
  361. local ham = .3
  362. local lend = false
  363. local ended
  364. local arr = amodel:Clone()
  365. arr.Parent = model
  366. arr:MakeJoints()
  367. hum.WalkSpeed = walkspeed/1.5
  368. local aw = weld(ra,arr.main,CFrame.new(0,-1,0)*CFrame.Angles(-math.pi/2,0,0),CFrame.new(0,-1.5,0))
  369. func = function()
  370. local a = (mouse.Hit.p-tor.CFrame:toWorldSpace(ls.C0).p).unit
  371. bg.cframe = CFrame.new(tor.Position,mouse.Hit.p*Vector3.new(1,0,1)+tor.Position*Vector3.new(0,1,0)) * CFrame.Angles(0,math.rad(-75),0)
  372. local b = math.min(.7,math.max(-.7,a.Y))
  373. ls.C0 = clerp(ls.C0,rls.C0 * CFrame.Angles(math.rad(-90),math.rad(90),math.rad(b*-90)) * CFrame.Angles(math.rad(40),math.rad(0),0) + Vector3.new(math.abs(b)*0,-.25,-.6),.3)
  374. local c = tor.CFrame:toObjectSpace(han.CFrame*hpos) * CFrame.new(0,0,0)
  375. local d = Vector3.new(1,.6,0)
  376. rs.C1 = CFrame.new()
  377. rs.C0 = clerp(rs.C0,CFrame.new(d,c.p) * CFrame.new(0,0,-(c.p-d).magnitude+.95) * CFrame.Angles(math.pi/2,math.pi/2,0),.3)
  378. nk.C0 = clerp(nk.C0,ntar * CFrame.Angles(math.rad(math.floor(b*-90)),0,0),.3)
  379. hold.C0 = clerp(hold.C0,htar,.3)
  380. for i,v in pairs(W) do
  381. -- v.C0 = clerp(v.C0,W0[i] * CFrame.Angles((not mup and (i>3 and 1 or -1)*iam or 0)*.1,0,0),.6)
  382. v.C0 = clerp(v.C0,W0[i] * CFrame.Angles((not mup and (i>3 and 1 or -1)*iam or 0)*.1,0,0),.6)
  383. end
  384. if not mup then
  385. hpos = clerp(hpos,hpos_l * CFrame.new(0,0,iam),.2)
  386. if aw then aw.C0 = CFrame.new(Vector3.new(0,-1,0),ra.CFrame:toObjectSpace(han.CFrame*CFrame.new(keeper)).p) * CFrame.Angles(-math.pi/2,0,0) end
  387. if tick()-t > .5 and iam < 1 then
  388. iam = iam + math.max(0.003,.03-(tick()-t-.5)/70)
  389. ham = iam
  390. if aw then
  391. aw:Destroy()
  392. arrw.Parent = han
  393. arrw.Part0 = han
  394. arrw.Part1 = arr.main
  395. aw = nil
  396. end
  397. end
  398. else
  399. hpos = clerp(hpos,hpos_l,ham/math.max(0.01,(hpos.p-hpos_l.p).magnitude))
  400. ham = ham * .7
  401. if not ended then
  402. ended = true
  403. if iam > 0 then
  404. arrw.Part1 = nil
  405. ShootArrow(arr,mouse.Hit,iam)
  406. iam = iam + .2
  407. wait(.5)
  408. lend = true
  409. else
  410. wait(.1)
  411. arr:Destroy()
  412. lend = true
  413. end
  414. end
  415. end
  416. end
  417. repeat wait() until lend or tick()-t > 45
  418. mup = nil
  419. func = nil
  420. hum.WalkSpeed = walkspeed
  421. ls.Part0,ls.Part1 = nil,nil
  422. ls.Parent = nil
  423. rls.Part0,rls.Part1 = tor,la
  424. ls.C0 = rls.C0
  425. rs.Part0,rs.Part1 = nil,nil
  426. rs.Parent = nil
  427. rrs.Part0,rrs.Part1 = tor,ra
  428. rs.C0 = rrs.C0
  429. nk.C0 = nk0
  430. bg:Destroy()
  431. hold.C0 = hc0
  432. hpos = hpos_i
  433. mb = false
  434. end))
  435. rcon = game:GetService("RunService").Stepped:connect(oc(function()
  436. if not model:IsDescendantOf(workspace) then rcon:disconnect() error() return end
  437. --local tc = bt.CFrame:toObjectSpace(tt.CFrame)
  438. --local bc = tt.CFrame:toObjectSpace(bt.CFrame)
  439. local bm = bt.CFrame:toObjectSpace(han.CFrame*hpos)
  440. local tm = tt.CFrame:toObjectSpace(han.CFrame*hpos)
  441. l1w.C0 = CFrame.new(bm.p/2,bm.p) * CFrame.Angles(math.pi/2,0,0)
  442. l1.Mesh.Scale = Vector3.new(.2,bm.p.magnitude*5,.2)
  443. l2w.C0 = CFrame.new(tm.p/2,tm.p) * CFrame.Angles(math.pi/2,0,0)
  444. l2.Mesh.Scale = Vector3.new(.2,tm.p.magnitude*5,.2)
  445. arrw.C0 = CFrame.new(hpos.p,keeper)*CFrame.new(0,0,-arrow.Size.Y/2) * CFrame.Angles(-math.pi/2,0,0)
  446. if func then
  447. func()
  448. end
  449. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement