WillOfiZaNaGi

(1500+) Anti's Bow [ROBLOX SCRIPT]

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