Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me = game.Players.bedbsesed
- char = me.Character
- Selected = false
- Able = true
- Arrow = nil
- ArrowOn = false
- Hurt = false
- Deb = true
- Reloading = false
- Shooting = false
- Slashing = false
- necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- EffectOn = false
- Accuracy = 1
- SelAnim = false
- DMG = 123452323
- LapaCol = "White"
- HandCol = "White"
- MiddleCol = "White"
- ViiniCol = "White"
- Icon = "http://www.roblox.com/asset/?id=51902588"
- Keys = {
- e = false,
- }
- ModelName = "Epic Bow"
- CA = CFrame.Angles
- CN = CFrame.new
- MR = math.rad
- MP = math.pi
- MRA = math.random
- MH = math.huge
- UD = UDim2.new
- C3 = Color3.new
- MaximumPower = 1000000000
- MaxSpecial = 100000
- Special = MaxSpecial
- Sounds = {
- Slash = {"rbxasset://sounds//swordslash.wav", 1.2, 1},
- Shoot = {"http://www.roblox.com/asset/?id=16211041", 2, 1},
- Stick = {"http://www.roblox.com/asset/?id=2767090", 15, 1},
- Hit = {"http://www.roblox.com/asset/?id=10209590", 0.9, 1},
- Block = {"rbxasset://sounds\\metal.ogg", 1.4, 1},
- }
- function RC(Pos, Dir, Max, Ignore)
- return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
- end
- function RayC(Start, En, MaxDist, Ignore)
- return RC(Start, (En - Start), MaxDist, Ignore)
- end
- function DetectSurface(pos, part)
- local surface = nil
- local pospos = part.CFrame
- local pos2 = pospos:pointToObjectSpace(pos)
- local siz = part.Size
- local shaep = part.Shape
- if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
- surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)}
- else
- if pos2.Y > ((siz.Y/2)-0.04) then
- surface = {"Top", CA(0, 0, 0)}
- elseif pos2.Y < -((siz.Y/2)-0.04) then
- surface = {"Bottom", CA(-MP, 0, 0)}
- elseif pos2.X > ((siz.X/2)-0.04) then
- surface = {"Right", CA(0, 0, MR(-90))}
- elseif pos2.X < -((siz.X/2)-0.04) then
- surface = {"Left", CA(0, 0, MR(90))}
- elseif pos2.Z > ((siz.Z/2)-0.04) then
- surface = {"Back", CA(MR(90), 0, 0)}
- elseif pos2.Z < -((siz.Z/2)-0.04) then
- surface = {"Front", CA(MR(-90), 0, 0)}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement