Advertisement
Brandon74674

Untitled

Feb 5th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. me = game.Players.bedbsesed
  2. char = me.Character
  3. Selected = false
  4. Able = true
  5. Arrow = nil
  6. ArrowOn = false
  7. Hurt = false
  8. Deb = true
  9. Reloading = false
  10. Shooting = false
  11. Slashing = false
  12. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  13. EffectOn = false
  14. Accuracy = 1
  15. SelAnim = false
  16. DMG = 123452323
  17. LapaCol = "White"
  18. HandCol = "White"
  19. MiddleCol = "White"
  20. ViiniCol = "White"
  21. Icon = "http://www.roblox.com/asset/?id=51902588"
  22. Keys = {
  23. e = false,
  24. }
  25. ModelName = "Epic Bow"
  26. CA = CFrame.Angles
  27. CN = CFrame.new
  28. MR = math.rad
  29. MP = math.pi
  30. MRA = math.random
  31. MH = math.huge
  32. UD = UDim2.new
  33. C3 = Color3.new
  34. MaximumPower = 1000000000
  35. MaxSpecial = 100000
  36. Special = MaxSpecial
  37. Sounds = {
  38. Slash = {"rbxasset://sounds//swordslash.wav", 1.2, 1},
  39. Shoot = {"http://www.roblox.com/asset/?id=16211041", 2, 1},
  40. Stick = {"http://www.roblox.com/asset/?id=2767090", 15, 1},
  41. Hit = {"http://www.roblox.com/asset/?id=10209590", 0.9, 1},
  42. Block = {"rbxasset://sounds\\metal.ogg", 1.4, 1},
  43. }
  44. function RC(Pos, Dir, Max, Ignore)
  45. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  46. end
  47. function RayC(Start, En, MaxDist, Ignore)
  48. return RC(Start, (En - Start), MaxDist, Ignore)
  49. end
  50. function DetectSurface(pos, part)
  51. local surface = nil
  52. local pospos = part.CFrame
  53. local pos2 = pospos:pointToObjectSpace(pos)
  54. local siz = part.Size
  55. local shaep = part.Shape
  56. if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
  57. surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)}
  58. else
  59. if pos2.Y > ((siz.Y/2)-0.04) then
  60. surface = {"Top", CA(0, 0, 0)}
  61. elseif pos2.Y < -((siz.Y/2)-0.04) then
  62. surface = {"Bottom", CA(-MP, 0, 0)}
  63. elseif pos2.X > ((siz.X/2)-0.04) then
  64. surface = {"Right", CA(0, 0, MR(-90))}
  65. elseif pos2.X < -((siz.X/2)-0.04) then
  66. surface = {"Left", CA(0, 0, MR(90))}
  67. elseif pos2.Z > ((siz.Z/2)-0.04) then
  68. surface = {"Back", CA(MR(90), 0, 0)}
  69. elseif pos2.Z < -((siz.Z/2)-0.04) then
  70. surface = {"Front", CA(MR(-90), 0, 0)}
  71. end
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement