AlphaSploit

Anti's bow

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