Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- BlockMesh2 = Instance.new("BlockMesh")
- Script3 = Instance.new("Script")
- Script4 = Instance.new("Script")
- Part5 = Instance.new("Part")
- BlockMesh6 = Instance.new("BlockMesh")
- Script7 = Instance.new("Script")
- LocalScript8 = Instance.new("LocalScript")
- Part9 = Instance.new("Part")
- CylinderMesh10 = Instance.new("CylinderMesh")
- Part11 = Instance.new("Part")
- BlockMesh12 = Instance.new("BlockMesh")
- Part13 = Instance.new("Part")
- SpecialMesh14 = Instance.new("SpecialMesh")
- Part15 = Instance.new("Part")
- BlockMesh16 = Instance.new("BlockMesh")
- Part17 = Instance.new("Part")
- BlockMesh18 = Instance.new("BlockMesh")
- Part19 = Instance.new("Part")
- BlockMesh20 = Instance.new("BlockMesh")
- Part21 = Instance.new("Part")
- BlockMesh22 = Instance.new("BlockMesh")
- Part23 = Instance.new("Part")
- SpecialMesh24 = Instance.new("SpecialMesh")
- Part25 = Instance.new("Part")
- BlockMesh26 = Instance.new("BlockMesh")
- Part27 = Instance.new("Part")
- BlockMesh28 = Instance.new("BlockMesh")
- Part29 = Instance.new("Part")
- BlockMesh30 = Instance.new("BlockMesh")
- Part31 = Instance.new("Part")
- BlockMesh32 = Instance.new("BlockMesh")
- Part33 = Instance.new("Part")
- BlockMesh34 = Instance.new("BlockMesh")
- Part35 = Instance.new("Part")
- BlockMesh36 = Instance.new("BlockMesh")
- Part37 = Instance.new("Part")
- SpecialMesh38 = Instance.new("SpecialMesh")
- Part39 = Instance.new("Part")
- BlockMesh40 = Instance.new("BlockMesh")
- Part41 = Instance.new("Part")
- BlockMesh42 = Instance.new("BlockMesh")
- Part43 = Instance.new("Part")
- BlockMesh44 = Instance.new("BlockMesh")
- Part45 = Instance.new("Part")
- BlockMesh46 = Instance.new("BlockMesh")
- Part47 = Instance.new("Part")
- BlockMesh48 = Instance.new("BlockMesh")
- Script49 = Instance.new("Script")
- Decal50 = Instance.new("Decal")
- Script51 = Instance.new("Script")
- Script52 = Instance.new("Script")
- Script53 = Instance.new("Script")
- Part54 = Instance.new("Part")
- BlockMesh55 = Instance.new("BlockMesh")
- Script56 = Instance.new("Script")
- Script57 = Instance.new("Script")
- Part58 = Instance.new("Part")
- CylinderMesh59 = Instance.new("CylinderMesh")
- Part60 = Instance.new("Part")
- BlockMesh61 = Instance.new("BlockMesh")
- Script62 = Instance.new("Script")
- Script63 = Instance.new("Script")
- Part64 = Instance.new("Part")
- BlockMesh65 = Instance.new("BlockMesh")
- Part66 = Instance.new("Part")
- BlockMesh67 = Instance.new("BlockMesh")
- Part68 = Instance.new("Part")
- BlockMesh69 = Instance.new("BlockMesh")
- Script70 = Instance.new("Script")
- Script71 = Instance.new("Script")
- Part72 = Instance.new("Part")
- BlockMesh73 = Instance.new("BlockMesh")
- Part74 = Instance.new("Part")
- BlockMesh75 = Instance.new("BlockMesh")
- Part76 = Instance.new("Part")
- BlockMesh77 = Instance.new("BlockMesh")
- Part78 = Instance.new("Part")
- BlockMesh79 = Instance.new("BlockMesh")
- Part80 = Instance.new("Part")
- BlockMesh81 = Instance.new("BlockMesh")
- Part82 = Instance.new("Part")
- BlockMesh83 = Instance.new("BlockMesh")
- Part84 = Instance.new("Part")
- BlockMesh85 = Instance.new("BlockMesh")
- Part86 = Instance.new("Part")
- BlockMesh87 = Instance.new("BlockMesh")
- Part88 = Instance.new("Part")
- BlockMesh89 = Instance.new("BlockMesh")
- Script90 = Instance.new("Script")
- Part91 = Instance.new("Part")
- SpecialMesh92 = Instance.new("SpecialMesh")
- Part93 = Instance.new("Part")
- BlockMesh94 = Instance.new("BlockMesh")
- Part95 = Instance.new("Part")
- BlockMesh96 = Instance.new("BlockMesh")
- Part97 = Instance.new("Part")
- BlockMesh98 = Instance.new("BlockMesh")
- Part99 = Instance.new("Part")
- BlockMesh100 = Instance.new("BlockMesh")
- Part101 = Instance.new("Part")
- BlockMesh102 = Instance.new("BlockMesh")
- Part103 = Instance.new("Part")
- BlockMesh104 = Instance.new("BlockMesh")
- Sound105 = Instance.new("Sound")
- Sound106 = Instance.new("Sound")
- Sound107 = Instance.new("Sound")
- Tool0.Name = "Riot Shield"
- Tool0.Parent = mas
- Tool0.Grip = CFrame.new(-0.300000012, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool0.GripPos = Vector3.new(-0.300000012, 0, -0.5)
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(9.33889389, 2.75785589, 16.8944397, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- Part1.Orientation = Vector3.new(0, 0, 180)
- Part1.Position = Vector3.new(9.33889389, 2.75785589, 16.8944397)
- Part1.Rotation = Vector3.new(0, 0, -180)
- Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part1.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Black")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Black")
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- BlockMesh2.Parent = Part1
- BlockMesh2.Scale = Vector3.new(1, 1, 0.5)
- Script3.Name = "ShieldScript"
- Script3.Parent = Part1
- table.insert(cors,sandbox(Script3,function()
- function ot(hit)
- ch = hit:GetChildren()
- for i = 1, #ch do
- if ch[i].className == "BodyVelocity" then
- ch[i].velocity = ch[i].velocity*-1
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- end
- hit.Parent.Humanoid.PlatformStand = true
- end
- else
- if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
- if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- else
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- wait(0.5)
- hit.Parent.Humanoid.PlatformStand = false
- end
- end
- end
- end
- function remove(child)
- child:Remove()
- end
- script.Parent.Touched:connect(ot)
- script.Parent.ChildAdded:connect(remove)
- end))
- Script4.Parent = Part1
- table.insert(cors,sandbox(Script4,function()
- script.Parent.Touched:connect(function(obj)
- if obj.Parent:FindFirstChild("Humanoid") then
- obj.Parent.Humanoid.Sit = true
- end
- end)
- end))
- Part5.Parent = Tool0
- Part5.CFrame = CFrame.new(6.98061705, 1.24803698, 16.2127895, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
- Part5.Orientation = Vector3.new(0, -28.3899994, 0)
- Part5.Position = Vector3.new(6.98061705, 1.24803698, 16.2127895)
- Part5.Rotation = Vector3.new(0, -28.3899994, 0)
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Transparency = 0.5
- Part5.Size = Vector3.new(0.5, 2.20000005, 0.200000003)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Institutional white")
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Institutional white")
- Part5.FormFactor = Enum.FormFactor.Custom
- Part5.formFactor = Enum.FormFactor.Custom
- BlockMesh6.Parent = Part5
- BlockMesh6.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh6.Scale = Vector3.new(1, 1, 0)
- Script7.Name = "Weld"
- Script7.Parent = Tool0
- table.insert(cors,sandbox(Script7,function()
- local all,last = {}
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Part0,w.Part1 = last,v
- w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
- w.Parent = last
- end
- table.insert(all,v)
- last = v
- end
- scan(v)
- end
- end
- scan(script.Parent)
- for _,v in pairs(all) do v.Anchored = false end
- end))
- LocalScript8.Name = "Local Gui"
- LocalScript8.Parent = Tool0
- table.insert(cors,sandbox(LocalScript8,function()
- -------------------------------------
- ToolName="Riot Shield"
- ClipSize=1
- ReloadTime=0.1
- Firerate=.1
- MinSpread=0
- MaxSpread=0
- SpreadRate=0.0001
- BaseDamage=75
- automatic=false
- burst=false
- shot=false
- automacy = 0
- run = 0
- gaurd = 0
- knife = 0
- a = false
- cam = nil
- BarrlePos=Vector3.new(0,0,0)
- Cursors={""}
- ReloadCursor=""
- -------------------------------------
- equiped=false
- sp=script.Parent
- RayLength=2
- enabled=true
- reloading=false
- down=false
- r=game:service("RunService")
- last=0
- last2=0
- last3=0
- last4=0
- last5=0
- last6=0
- Bullet=Instance.new("Part")
- Bullet.Name="Bullet"
- Bullet.BrickColor=BrickColor.new("New Yeller")
- Bullet.Anchored=true
- Bullet.CanCollide=false
- Bullet.Locked=true
- Bullet.Size=Vector3.new(1,1,1)
- Bullet.Transparency=1
- Bullet.formFactor=0
- Bullet.TopSurface=0
- Bullet.BottomSurface=0
- mesh=Instance.new("SpecialMesh")
- mesh.Parent=Bullet
- mesh.MeshType="Brick"
- mesh.Name="Mesh"
- mesh.Scale=Vector3.new(.15,.15,1)
- function check()
- sp.Name=ToolName
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- Tool = script.Parent;
- local arms = nil
- local torso = nil
- local welds = {}
- function Equip(mouse)
- wait(0.01)
- arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
- torso = Tool.Parent:FindFirstChild("Torso")
- if arms ~= nil and torso ~= nil then
- local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
- if sh ~= nil then
- local yes = true
- if yes then
- yes = false
- sh[2].Part1 = nil
- weld2 = Instance.new("Weld")
- weld2.Part0 = torso
- weld2.Parent = torso
- weld2.Part1 = arms[2]
- weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-90), 0) --(forwards/backwards,
- welds[2] = weld2
- end
- else
- print("sh")
- end
- else
- print("arms")
- end
- end
- function Unequip(mouse)
- if arms ~= nil and torso ~= nil then
- local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
- if sh ~= nil then
- local yes = true
- if yes then
- yes = false
- sh[2].Part1 = arms[2]
- welds[2].Parent = nil
- end
- else
- print("sh")
- end
- else
- print("arms")
- end
- end
- Tool.Equipped:connect(Equip)
- Tool.Unequipped:connect(Unequip)
- ------------------------------------------------------------------------------------Raycasting functions
- function cross(vector1, vector2)
- return Vector3.new(vector1.y * vector2.z - vector2.y * vector1.z, vector1.z * vector2.x - vector1.x * vector2.z, vector1.x * vector2.y - vector2.x * vector1.y)
- end
- function dot(vector1, vector2)
- return (vector1.x * vector2.x + vector1.y * vector2.y + vector1.z * vector2.z)
- end
- function getLineSphereCollide(linePoint1, lineVector, sphereCenter, radius)
- local a = lineVector.x * lineVector.x + lineVector.y * lineVector.y + lineVector.z * lineVector.z
- local b = lineVector.x * (linePoint1.x - sphereCenter.x) + lineVector.y * (linePoint1.y - sphereCenter.y) + lineVector.z * (linePoint1.z - sphereCenter.z)
- local c = (linePoint1.x - sphereCenter.x) * (linePoint1.x - sphereCenter.x) + (linePoint1.y - sphereCenter.y) * (linePoint1.y - sphereCenter.y) + (linePoint1.z - sphereCenter.z) * (linePoint1.z - sphereCenter.z) - radius * radius
- if (a > 0) and (b * b >= a * c) then
- local diff = math.sqrt(b * b - a * c)
- return ((-b - diff) / a), ((diff - b) / a)
- else
- return -1, -1
- end
- end
- --Returns hit, position, normal, time
- function raycast(model, start, vector, brickFunction)
- local hit, normal, time = raycastRecursive(model, start, vector, brickFunction, vector.unit, dot(start, vector.unit))
- if (dot(normal, vector) > 0) then
- normal = -normal
- end
- return hit, start + time * vector, normal.unit, time
- end
- function raycastRecursive(model, start, vector, brickFunction, unitVec, startDist)
- if (model.className == "Part") or (model.className == "Seat") or (model.className =="SpawnLocation") then
- local range = model.Size.magnitude / 2
- local dist = dot(model.Position, unitVec) - startDist
- if (dist + range > 0) and (dist - range < vector.magnitude) and ((dist * unitVec + start - model.Position).magnitude < range) and brickFunction(model) then
- local halfSize = model.Size / 2
- if (model.Shape == Enum.PartType.Ball) then
- local time, timeMax = getLineSphereCollide(start, vector, model.Position, halfSize.x)
- if (time < 1) and (time >= 0) then
- return model, (time * vector + start - model.Position), time
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- elseif (model.Shape == Enum.PartType.Block) then
- local time = 1
- local cf = model.CFrame - model.Position
- local xvec = cf * Vector3.new(1, 0, 0)
- local yvec = cf * Vector3.new(0, 1, 0)
- local zvec = cf * Vector3.new(0, 0, 1)
- local xspd = -dot(xvec, vector)
- local yspd = -dot(yvec, vector)
- local zspd = -dot(zvec, vector)
- local xmin, xmax, ymin, ymax, zmin, zmax = -1
- local dotProd = dot(xvec, start - model.Position)
- if (xspd ~= 0) then
- xmin = (dotProd - halfSize.x) / xspd
- xmax = (dotProd + halfSize.x) / xspd
- if (xmax < xmin) then
- local swap = xmin
- xmin = xmax
- xmax = swap
- end
- else
- if (math.abs(dotProd) < halfSize.x) then
- xmax = 1
- xmin = 0
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- end
- local dotProd = dot(yvec, start - model.Position)
- if (yspd ~= 0) then
- ymin = (dotProd - halfSize.y) / yspd
- ymax = (dotProd + halfSize.y) / yspd
- if (ymax < ymin) then
- local swap = ymin
- ymin = ymax
- ymax = swap
- end
- else
- if (math.abs(dotProd) < halfSize.y) then
- ymax = 1
- ymin = 0
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- end
- local dotProd = dot(zvec, start - model.Position)
- if (zspd ~= 0) then
- zmin = (dotProd - halfSize.z) / zspd
- zmax = (dotProd + halfSize.z) / zspd
- if (zmax < zmin) then
- local swap = zmin
- zmin = zmax
- zmax = swap
- end
- else
- if (math.abs(dotProd) < halfSize.z) then
- zmax = 1
- zmin = 0
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- end
- if (xmin <= ymax) and (xmax >= ymin) and (xmin <= zmax) and (xmax >= zmin) and (zmin <= ymax) and (zmax >= ymin) then
- local normal = xvec
- local min = xmin
- if (ymin > min) then
- min = ymin
- normal = yvec
- end
- if (zmin > min) then
- min = zmin
- normal = zvec
- end
- if (min >= 0) and (min < 1) then
- time = min
- elseif (xmax > 0) and (ymax > 0) and (zmax > 0) and (min < 0) then
- time = 0
- normal = Vector3.new(0, 0, 0)
- end
- return model, normal, time
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- else -- Cylinder
- local time = 1
- local cf = model.CFrame - model.Position
- local xvec = cf * Vector3.new(1, 0, 0)
- local xspd = -dot(xvec, vector)
- local xmin, xmax = -1
- local dotProd = dot(xvec, start - model.Position)
- if (xspd ~= 0) then
- xmin = (dotProd - halfSize.x) / xspd
- xmax = (dotProd + halfSize.x) / xspd
- if (xmax < xmin) then
- local swap = xmin
- xmin = xmax
- xmax = swap
- end
- else
- if (math.abs(dotProd) < halfSize.x) then
- xmax = 1
- xmin = 0
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- end
- local relVec = cf:pointToObjectSpace(vector) * Vector3.new(0, 1, 1)
- local relPos = model.CFrame:pointToObjectSpace(start) * Vector3.new(0, 1, 1)
- local rmin, rmax = getLineSphereCollide(relPos, relVec, Vector3.new(0, 0, 0), halfSize.y)
- if (xmin <= rmax) and (xmax >= rmin) and (rmax > 0) then
- local normal = xvec
- local min = xmin
- if (rmin > min) then
- min = rmin
- normal = cf * (relPos + relVec * min)
- end
- if (min >= 0) and (min < 1) then
- time = min
- elseif (xmax > 0) and (rmax > 0) and (min < 0) then
- time = 0
- normal = Vector3.new(0, 0, 0)
- end
- return model, normal, time
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- return nil, Vector3.new(0, 0, 0), 1
- end
- end
- return nil, Vector3.new(0, 0, 0), 1
- elseif (model.className=="Model") or (model.className=="Workspace") or (model.className=="Hat") or (model.className == "Tool") then
- local children=model:GetChildren()
- local time=1
- local normal=Vector3.new(0, 0, 0)
- local hit=nil
- for n = 1, #children do
- if children[n]~= nil then
- local newHit, newNormal, newTime = raycastRecursive(children[n], start, vector, brickFunction, unitVec, startDist)
- if (newTime < time) then
- time = newTime
- hit = newHit
- normal = newNormal
- end
- end
- end
- return hit, normal, time
- else
- return nil, Vector3.new(0, 0, 0), 1
- end
- end
- -------------------------------------------------------------------------------
- function tagHumanoid(humanoid)
- local plr=game.Players:playerFromCharacter(sp.Parent)
- if plr~=nil then
- local tag=Instance.new("ObjectValue")
- tag.Value=plr
- tag.Name="creator"
- tag.Parent=humanoid
- delay(2,function()
- if tag~=nil then
- tag.Parent=nil
- end
- end)
- end
- end
- function reload(mouse)
- reloading=true
- while sp.Ammo.Value<ClipSize and sp.TotalAmmo.Value>0 and reloading and enabled do
- wait(ReloadTime/ClipSize)
- if reloading then
- check()
- else
- break
- end
- end
- check()
- mouse.Icon=Cursors[1]
- reloading=false
- end
- function onKeyDown(key,mouse)
- key=key:lower()
- if key=="r" and not reloading and (sp.Ammo.Value < ClipSize) and run == 0 then
- reload(mouse)
- end
- if (key=="f") then
- if run == 0 and not reloading then
- enabled = false
- sp.Parent.Humanoid.WalkSpeed = 18
- weld2.C1 = CFrame.new(-1, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), 0)
- wait(0.05)
- weld2.C1 = CFrame.new(-1, -0.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-50), 0)
- wait(0.05)
- weld2.C1 = CFrame.new(-1, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-30), 0)
- wait(0.05)
- weld2.C1 = CFrame.new(-1, 0, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-10), 0) --(forwards/backwards,
- run = 1
- elseif run == 1 then
- enabled = true
- sp.Parent.Humanoid.WalkSpeed = 16
- weld2.C1 = CFrame.new(-1, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-30), 0)
- wait(0.05)
- weld2.C1 = CFrame.new(-1, -0.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-50), 0)
- wait(0.05)
- weld2.C1 = CFrame.new(-1, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), 0)
- wait(0.05)
- weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-90), 0) --(forwards/backwards,
- run = 0
- end
- end
- end
- function movecframe(p,pos)
- p.Parent=game.Lighting
- p.Position=pos
- p.Parent=game.Workspace
- end
- function fire(aim)
- weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-80), -0.02) --(forwards/backwards,
- wait(0.05)
- weld2.C1 = CFrame.new(-1.3, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-75), -0.04) --(forwards/backwards,
- wait(0.05)
- weld2.C1 = CFrame.new(-1.6, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), -0.06) --(forwards/backwards,
- wait(0.05)
- sp.Handle.Fire:Play()
- weld2.C1 = CFrame.new(-1.9, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-65), -0.08) --(forwards/backwards,
- t=r.Stepped:wait()
- last6=last5
- last5=last4
- last4=last3
- last3=last2
- last2=last
- last=t
- local bullet=Bullet:clone()
- local bt2=game.Lighting.BulletTexture:clone()
- bt2.BrickColor=BrickColor.new("Bright red")
- bt2.Mesh.Scale=Vector3.new(.5,.5,2)
- local totalDist=0
- Lengthdist=-RayLength/.5
- local startpoint=sp.Barrel.CFrame*BarrlePos
- local dir=(aim)-startpoint
- dir=computeDirection(dir)
- local cfrm=CFrame.new(startpoint, dir+startpoint)
- local hit,pos,normal,time=raycast(game.Workspace, startpoint, cfrm*Vector3.new(0,0,Lengthdist)-startpoint, function(brick)
- if brick.Name=="Glass" then
- return true
- elseif brick.Name=="Bullet" or brick.Name=="BulletTexture" then
- return false
- elseif brick.ClassName=="Hat" then
- return false
- elseif brick.Parent.ClassName=="Hat" then
- return false
- elseif brick:IsDescendantOf(sp.Parent) then
- return false
- elseif brick.Name=="Handle" then
- if brick.Parent:IsDescendantOf(sp.Parent) then
- return false
- else
- return true
- end
- end
- return true
- end)
- bullet.Parent=game.Workspace
- bt2.Parent=game.Workspace
- if hit~=nil then
- local humanoid=hit.Parent:FindFirstChild("Humanoid")
- if humanoid~=nil then
- local damage=math.random(BaseDamage-(BaseDamage*.25),BaseDamage+(BaseDamage*.25))
- if hit.Name=="Head" then
- damage=damage*1.25
- elseif hit.Name=="Torso" then
- else
- damage=damage*.75
- end
- if humanoid.Health>0 then
- local eplr=game.Players:playerFromCharacter(humanoid.Parent)
- local plr=game.Players:playerFromCharacter(sp.Parent)
- if eplr~=nil and plr~=nil then
- -- if eplr.TeamColor~=plr.TeamColor or eplr.Neutral or plr.Neutral then
- tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- sp.Neutral.Texture = "http://www.roblox.com/asset/?id=53455287"
- sp.Friendly.Texture = "http://www.roblox.com/asset/?id=53455282"
- sp.Enemy.Texture = "http://www.roblox.com/asset/?id=53455310"
- wait(0.01)
- sp.Neutral.Texture = "http://www.roblox.com/asset/?id=51962380"
- sp.Friendly.Texture = "http://www.roblox.com/asset/?id=51962541"
- sp.Enemy.Texture = "http://www.roblox.com/asset/?id=51962534"
- -- end
- else
- tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- sp.Neutral.Texture = "http://www.roblox.com/asset/?id=53455287"
- sp.Friendly.Texture = "http://www.roblox.com/asset/?id=53455282"
- sp.Enemy.Texture = "http://www.roblox.com/asset/?id=53455310"
- wait(0.01)
- sp.Neutral.Texture = "http://www.roblox.com/asset/?id=51962380"
- sp.Friendly.Texture = "http://www.roblox.com/asset/?id=51962541"
- sp.Enemy.Texture = "http://www.roblox.com/asset/?id=51962534"
- end
- end
- end
- if (hit.Name == "Ice") or (hit.Name == "Glass") then
- rand = math.random(1,5)
- if rand == 3 then
- workspace.GlassSound:play()
- hit:breakJoints()
- end
- end
- if (hit.Parent:findFirstChild("Hit")) then
- hit.Parent.Health.Value = hit.Parent.Health.Value - BaseDamage/20
- end
- distance=(startpoint-pos).magnitude
- bullet.CFrame=cfrm*CFrame.new(0,0,-distance/2)
- bullet.Mesh.Scale=Vector3.new(.15,.15,distance)
- else
- bullet.CFrame=cfrm*CFrame.new(0,0,-RayLength/2)
- bullet.Mesh.Scale=Vector3.new(.15,.15,RayLength)
- end
- if pos~=nil then
- bt2.CFrame=bullet.CFrame
- movecframe(bt2,pos)
- end
- local deb=game:FindFirstChild("Debris")
- if deb==nil then
- local debris=Instance.new("Debris")
- debris.Parent=game
- end
- check()
- game.Debris:AddItem(bullet,.05)
- game.Debris:AddItem(bt2,.5)
- end
- function onButton1Up(mouse)
- down=false
- end
- function onButton1Down(mouse)
- h=sp.Parent:FindFirstChild("Humanoid")
- if not enabled or reloading or down or h==nil then
- return
- end
- if sp.Ammo.Value>0 and h.Health>0 then
- --[[if sp.Ammo.Value<=0 then
- if not reloading then
- reload(mouse)
- end
- return
- end]]
- down=true
- enabled=false
- while down do
- if sp.Ammo.Value<=0 then
- break
- end
- if burst then
- local startpoint=sp.Barrel.CFrame*BarrlePos
- local mag=(mouse.Hit.p-startpoint).magnitude
- local rndm=Vector3.new(math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag))
- fire(mouse.Hit.p+rndm)
- sp.Ammo.Value=sp.Ammo.Value-1
- if sp.Ammo.Value<=0 then
- break
- end
- wait(.05)
- local startpoint=sp.Barrel.CFrame*BarrlePos
- local mag2=((mouse.Hit.p+rndm)-startpoint).magnitude
- local rndm2=Vector3.new(math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2))
- fire(mouse.Hit.p+rndm+rndm2)
- sp.Ammo.Value=sp.Ammo.Value-1
- if sp.Ammo.Value<=0 then
- break
- end
- wait(.05)
- fire(mouse.Hit.p+rndm+rndm2+rndm2)
- sp.Ammo.Value=sp.Ammo.Value-1
- elseif shot then
- sp.Ammo.Value=sp.Ammo.Value-1
- local startpoint=sp.Barrel.CFrame*BarrlePos
- local mag=(mouse.Hit.p-startpoint).magnitude
- local rndm=Vector3.new(math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag))
- fire(mouse.Hit.p+rndm)
- local mag2=((mouse.Hit.p+rndm)-startpoint).magnitude
- local rndm2=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
- fire(mouse.Hit.p+rndm+rndm2)
- local rndm3=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
- fire(mouse.Hit.p+rndm+rndm3)
- local rndm4=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
- fire(mouse.Hit.p+rndm+rndm4)
- else
- local startpoint=sp.Barrel.CFrame*BarrlePos
- local mag=(mouse.Hit.p-startpoint).magnitude
- local rndm=Vector3.new(math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag))
- fire(mouse.Hit.p+rndm)
- weld2.C1 = CFrame.new(-1.6, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), -0.06) --(forwards/backwards,
- wait(0.05)
- weld2.C1 = CFrame.new(-1.3, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-75), -0.04) --(forwards/backwards,
- wait(0.05)
- weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-90), 0) --(forwards/backwards,
- end
- wait(Firerate)
- if not automatic then
- break
- end
- end
- enabled=true
- else
- sp.Handle.Trigger:Play()
- sp.GripForward = Vector3.new(-0.243, -0.1, -0.97)
- wait(0.1)
- sp.GripForward = Vector3.new(-0.243, 0, -0.97)
- end
- end
- function onEquippedLocal(mouse)
- if mouse==nil then
- print("Mouse not found")
- return
- end
- mouse.Icon=Cursors[1]
- mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- mouse.Button1Up:connect(function() onButton1Up(mouse) end)
- check()
- equiped=true
- if #Cursors>1 then
- while equiped do
- t=r.Stepped:wait()
- local action=sp.Parent:FindFirstChild("Pose")
- if action~=nil then
- if sp.Parent.Pose.Value=="Standing" then
- Spread=MinSpread
- else
- Spread=MinSpread+((4/10)*(MaxSpread-MinSpread))
- end
- else
- Spread=MinSpread
- end
- if t-last<SpreadRate then
- Spread=Spread+.1*(MaxSpread-MinSpread)
- end
- if t-last2<SpreadRate then
- Spread=Spread+.1*(MaxSpread-MinSpread)
- end
- if t-last3<SpreadRate then
- Spread=Spread+.1*(MaxSpread-MinSpread)
- end
- if t-last4<SpreadRate then
- Spread=Spread+.1*(MaxSpread-MinSpread)
- end
- if t-last5<SpreadRate then
- Spread=Spread+.1*(MaxSpread-MinSpread)
- end
- if t-last6<SpreadRate then
- Spread=Spread+.1*(MaxSpread-MinSpread)
- end
- if not reloading then
- local percent=(Spread-MinSpread)/(MaxSpread-MinSpread)
- for i=0,#Cursors-1 do
- if percent>(i/(#Cursors-1))-((1/(#Cursors-1))/2) and percent<(i/(#Cursors-1))+((1/(#Cursors-1))/2) then
- mouse.Icon=Cursors[i+1]
- end
- end
- end
- wait(Firerate*.9)
- end
- end
- end
- function onUnequippedLocal(mouse)
- equiped=false
- reloading=false
- sp.Neutral.Texture = "http://www.roblox.com/asset/?id=51962380"
- sp.Friendly.Texture = "http://www.roblox.com/asset/?id=51962541"
- sp.Enemy.Texture = "http://www.roblox.com/asset/?id=51962534"
- sp.Spread = 0
- sp.Parent.Humanoid.WalkSpeed = 16
- ADS = 0
- run = 0
- end
- sp.Equipped:connect(onEquippedLocal)
- sp.Unequipped:connect(onUnequippedLocal)
- check()
- end))
- Part9.Parent = Tool0
- Part9.CFrame = CFrame.new(8.59908581, 2.75808311, 16.4669476, 0.324368834, -0.94593066, -2.31046888e-05, 1.00436482e-05, -2.09812824e-05, 1, -0.94593066, -0.324368864, 2.69492193e-06)
- Part9.Orientation = Vector3.new(-90, 71.0699997, 0)
- Part9.Position = Vector3.new(8.59908581, 2.75808311, 16.4669476)
- Part9.Rotation = Vector3.new(-90, 0, 71.0699997)
- Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part9.Size = Vector3.new(0.25, 0.200000003, 0.25)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Black")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Black")
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.formFactor = Enum.FormFactor.Custom
- CylinderMesh10.Parent = Part9
- CylinderMesh10.Scale = Vector3.new(3, 0.75, 3)
- Part11.Parent = Tool0
- Part11.CFrame = CFrame.new(6.60964584, 1.37722898, 15.9757538, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part11.Orientation = Vector3.new(0, -37.8499985, 0)
- Part11.Position = Vector3.new(6.60964584, 1.37722898, 15.9757538)
- Part11.Rotation = Vector3.new(0, -37.8499985, 0)
- Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part11.Transparency = 0.5
- Part11.Size = Vector3.new(0.400000006, 2, 0.200000003)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Institutional white")
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Institutional white")
- Part11.FormFactor = Enum.FormFactor.Custom
- Part11.formFactor = Enum.FormFactor.Custom
- BlockMesh12.Parent = Part11
- BlockMesh12.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh12.Scale = Vector3.new(1, 1, 0)
- Part13.Parent = Tool0
- Part13.CFrame = CFrame.new(9.38881969, 0.276998013, 16.9440002, -0.000118972122, -4.31590597e-05, -1, 2.79581602e-09, -1, 4.31590597e-05, -0.99999994, 2.33890907e-09, 0.00011897213)
- Part13.Orientation = Vector3.new(0, -89.9899979, 180)
- Part13.Position = Vector3.new(9.38881969, 0.276998013, 16.9440002)
- Part13.Rotation = Vector3.new(-180, -90, 0)
- Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part13.Transparency = 0.5
- Part13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Institutional white")
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Institutional white")
- Part13.FormFactor = Enum.FormFactor.Custom
- Part13.formFactor = Enum.FormFactor.Custom
- SpecialMesh14.Parent = Part13
- SpecialMesh14.Scale = Vector3.new(0, 1, 1)
- SpecialMesh14.MeshType = Enum.MeshType.Wedge
- Part15.Parent = Tool0
- Part15.CFrame = CFrame.new(7.20388412, 4.51581812, 16.3863735, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
- Part15.Orientation = Vector3.new(0, -28.3899994, 0)
- Part15.Position = Vector3.new(7.20388412, 4.51581812, 16.3863735)
- Part15.Rotation = Vector3.new(0, -28.3899994, 0)
- Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part15.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.BrickColor = BrickColor.new("Black")
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.brickColor = BrickColor.new("Black")
- Part15.FormFactor = Enum.FormFactor.Custom
- Part15.formFactor = Enum.FormFactor.Custom
- BlockMesh16.Parent = Part15
- BlockMesh16.Scale = Vector3.new(1, 0.5, 0.5)
- Part17.Parent = Tool0
- Part17.CFrame = CFrame.new(6.51229477, 4.38906479, 15.9003143, -0.558394432, -0.558437765, -0.613467932, 0.707113028, -0.707100511, 3.85237654e-05, -0.433805048, -0.433769733, 0.789719641)
- Part17.Orientation = Vector3.new(0, -37.8400002, 135)
- Part17.Position = Vector3.new(6.51229477, 4.38906479, 15.9003143)
- Part17.Rotation = Vector3.new(0, -37.8400002, 135)
- Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part17.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.BrickColor = BrickColor.new("Black")
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.brickColor = BrickColor.new("Black")
- Part17.FormFactor = Enum.FormFactor.Custom
- Part17.formFactor = Enum.FormFactor.Custom
- BlockMesh18.Parent = Part17
- BlockMesh18.Scale = Vector3.new(0.5, 1, 0.5)
- Part19.Parent = Tool0
- Part19.CFrame = CFrame.new(6.79342222, 4.51581812, 16.1188049, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part19.Orientation = Vector3.new(0, -37.8499985, 0)
- Part19.Position = Vector3.new(6.79342222, 4.51581812, 16.1188049)
- Part19.Rotation = Vector3.new(0, -37.8499985, 0)
- Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part19.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Black")
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Black")
- Part19.FormFactor = Enum.FormFactor.Custom
- Part19.formFactor = Enum.FormFactor.Custom
- BlockMesh20.Parent = Part19
- BlockMesh20.Scale = Vector3.new(1, 0.5, 0.5)
- Part21.Parent = Tool0
- Part21.CFrame = CFrame.new(6.68856382, 4.35524178, 16.037262, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part21.Orientation = Vector3.new(0, -37.8499985, 0)
- Part21.Position = Vector3.new(6.68856382, 4.35524178, 16.037262)
- Part21.Rotation = Vector3.new(0, -37.8499985, 0)
- Part21.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part21.Transparency = 0.5
- Part21.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Institutional white")
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Institutional white")
- Part21.FormFactor = Enum.FormFactor.Custom
- Part21.formFactor = Enum.FormFactor.Custom
- BlockMesh22.Parent = Part21
- BlockMesh22.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh22.Scale = Vector3.new(1, 1, 0)
- Part23.Parent = Tool0
- Part23.CFrame = CFrame.new(6.49990416, 4.34352112, 15.95401, -0.613507092, -0.789689183, 0.000104060433, -8.34418415e-07, -0.000131125649, -1, 0.789689183, -0.613507152, 7.97875909e-05)
- Part23.Orientation = Vector3.new(90, -127.839996, 0)
- Part23.Position = Vector3.new(6.49990416, 4.34352112, 15.95401)
- Part23.Rotation = Vector3.new(90, 0.00999999978, 127.839996)
- Part23.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part23.Transparency = 0.5
- Part23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.BrickColor = BrickColor.new("Institutional white")
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Institutional white")
- Part23.FormFactor = Enum.FormFactor.Custom
- Part23.formFactor = Enum.FormFactor.Custom
- SpecialMesh24.Parent = Part23
- SpecialMesh24.Scale = Vector3.new(0, 1, 1)
- SpecialMesh24.MeshType = Enum.MeshType.Wedge
- Part25.Parent = Tool0
- Part25.CFrame = CFrame.new(6.60958481, 3.71328712, 15.9757538, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part25.Orientation = Vector3.new(0, -37.8499985, 0)
- Part25.Position = Vector3.new(6.60958481, 3.71328712, 15.9757538)
- Part25.Rotation = Vector3.new(0, -37.8499985, 0)
- Part25.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part25.Transparency = 0.5
- Part25.Size = Vector3.new(0.400000006, 1.06050003, 0.200000003)
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.BrickColor = BrickColor.new("Institutional white")
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.brickColor = BrickColor.new("Institutional white")
- Part25.FormFactor = Enum.FormFactor.Custom
- Part25.formFactor = Enum.FormFactor.Custom
- BlockMesh26.Parent = Part25
- BlockMesh26.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh26.Scale = Vector3.new(1, 1, 0)
- Part27.Parent = Tool0
- Part27.CFrame = CFrame.new(6.98055601, 3.81801796, 16.2127895, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
- Part27.Orientation = Vector3.new(0, -28.3899994, 0)
- Part27.Position = Vector3.new(6.98055601, 3.81801796, 16.2127895)
- Part27.Rotation = Vector3.new(0, -28.3899994, 0)
- Part27.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part27.Transparency = 0.5
- Part27.Size = Vector3.new(0.5, 1.29999995, 0.200000003)
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.BrickColor = BrickColor.new("Institutional white")
- Part27.TopSurface = Enum.SurfaceType.Smooth
- Part27.brickColor = BrickColor.new("Institutional white")
- Part27.FormFactor = Enum.FormFactor.Custom
- Part27.formFactor = Enum.FormFactor.Custom
- BlockMesh28.Parent = Part27
- BlockMesh28.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh28.Scale = Vector3.new(1, 1, 0)
- Part29.Parent = Tool0
- Part29.CFrame = CFrame.new(8.56759167, 4.51587915, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
- Part29.Orientation = Vector3.new(0, -9.46000004, 0)
- Part29.Position = Vector3.new(8.56759167, 4.51587915, 16.8539124)
- Part29.Rotation = Vector3.new(0, -9.46000004, 0)
- Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part29.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.BrickColor = BrickColor.new("Black")
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.brickColor = BrickColor.new("Black")
- Part29.FormFactor = Enum.FormFactor.Custom
- Part29.formFactor = Enum.FormFactor.Custom
- BlockMesh30.Parent = Part29
- BlockMesh30.Scale = Vector3.new(1, 0.5, 0.5)
- Part31.Parent = Tool0
- Part31.CFrame = CFrame.new(9.05599594, 4.51587915, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part31.Position = Vector3.new(9.05599594, 4.51587915, 16.8944397)
- Part31.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part31.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.BrickColor = BrickColor.new("Black")
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.brickColor = BrickColor.new("Black")
- Part31.FormFactor = Enum.FormFactor.Custom
- Part31.formFactor = Enum.FormFactor.Custom
- BlockMesh32.Parent = Part31
- BlockMesh32.Scale = Vector3.new(1, 0.5, 0.5)
- Part33.Parent = Tool0
- Part33.CFrame = CFrame.new(6.41219711, 3.73301911, 15.8223877, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part33.Orientation = Vector3.new(0, -37.8499985, 0)
- Part33.Position = Vector3.new(6.41219711, 3.73301911, 15.8223877)
- Part33.Rotation = Vector3.new(0, -37.8499985, 0)
- Part33.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part33.Size = Vector3.new(0.200000003, 1.10000002, 0.200000003)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.BrickColor = BrickColor.new("Black")
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Part33.brickColor = BrickColor.new("Black")
- Part33.FormFactor = Enum.FormFactor.Custom
- Part33.formFactor = Enum.FormFactor.Custom
- BlockMesh34.Parent = Part33
- BlockMesh34.Scale = Vector3.new(0.5, 1, 0.5)
- Part35.Parent = Tool0
- Part35.CFrame = CFrame.new(7.87203598, 4.51587915, 16.6583557, 0.945934772, 3.51197777e-05, -0.324356169, -2.50846242e-05, 1, 3.51197777e-05, 0.324356169, -2.50846242e-05, 0.945934772)
- Part35.Orientation = Vector3.new(0, -18.9300003, 0)
- Part35.Position = Vector3.new(7.87203598, 4.51587915, 16.6583557)
- Part35.Rotation = Vector3.new(0, -18.9300003, 0)
- Part35.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part35.Size = Vector3.new(0.966000438, 0.200000003, 0.200000003)
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.BrickColor = BrickColor.new("Black")
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.brickColor = BrickColor.new("Black")
- Part35.FormFactor = Enum.FormFactor.Custom
- Part35.formFactor = Enum.FormFactor.Custom
- BlockMesh36.Parent = Part35
- BlockMesh36.Scale = Vector3.new(1, 0.5, 0.5)
- Part37.Parent = Tool0
- Part37.CFrame = CFrame.new(9.38881969, 4.34358978, 16.9442444, -3.26636837e-05, 4.31581502e-05, -1, 9.29513244e-10, 1, 4.31581502e-05, 0.99999994, 4.80190998e-10, -3.26636873e-05)
- Part37.Orientation = Vector3.new(0, -90, 0)
- Part37.Position = Vector3.new(9.38881969, 4.34358978, 16.9442444)
- Part37.Rotation = Vector3.new(0, -90, 0)
- Part37.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part37.Transparency = 0.5
- Part37.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.BrickColor = BrickColor.new("Institutional white")
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.brickColor = BrickColor.new("Institutional white")
- Part37.FormFactor = Enum.FormFactor.Custom
- Part37.formFactor = Enum.FormFactor.Custom
- SpecialMesh38.Parent = Part37
- SpecialMesh38.Scale = Vector3.new(0, 1, 1)
- SpecialMesh38.MeshType = Enum.MeshType.Wedge
- Part39.Parent = Tool0
- Part39.CFrame = CFrame.new(7.9024272, 3.81981111, 16.5716858, 0.945954859, -3.51188464e-05, -0.324295938, 2.50855555e-05, 1, -3.51188464e-05, 0.324295938, 2.50855555e-05, 0.945954859)
- Part39.Orientation = Vector3.new(0, -18.9200001, 0)
- Part39.Position = Vector3.new(7.9024272, 3.81981111, 16.5716858)
- Part39.Rotation = Vector3.new(0, -18.9200001, 0)
- Part39.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part39.Transparency = 0.5
- Part39.Size = Vector3.new(1.5, 1.29999995, 0.200000003)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.BrickColor = BrickColor.new("Institutional white")
- Part39.TopSurface = Enum.SurfaceType.Smooth
- Part39.brickColor = BrickColor.new("Institutional white")
- Part39.FormFactor = Enum.FormFactor.Custom
- Part39.formFactor = Enum.FormFactor.Custom
- BlockMesh40.Parent = Part39
- BlockMesh40.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh40.Scale = Vector3.new(1, 1, 0)
- Part41.Parent = Tool0
- Part41.CFrame = CFrame.new(9.41207027, 4.38917112, 16.8944397, -0.707149565, 0.707063973, 7.29076783e-05, -0.707063973, -0.707149565, 6.32290612e-05, 9.62636259e-05, -6.83798817e-06, 1)
- Part41.Orientation = Vector3.new(0, 0, -135)
- Part41.Position = Vector3.new(9.41207027, 4.38917112, 16.8944397)
- Part41.Rotation = Vector3.new(0, 0, -135)
- Part41.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part41.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
- Part41.BottomSurface = Enum.SurfaceType.Smooth
- Part41.BrickColor = BrickColor.new("Black")
- Part41.TopSurface = Enum.SurfaceType.Smooth
- Part41.brickColor = BrickColor.new("Black")
- Part41.FormFactor = Enum.FormFactor.Custom
- Part41.formFactor = Enum.FormFactor.Custom
- BlockMesh42.Parent = Part41
- BlockMesh42.Scale = Vector3.new(0.5, 1, 0.5)
- Part43.Parent = Tool0
- Part43.CFrame = CFrame.new(9.18886757, 4.35530376, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part43.Position = Vector3.new(9.18886757, 4.35530376, 16.8944397)
- Part43.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part43.Transparency = 0.5
- Part43.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
- Part43.BottomSurface = Enum.SurfaceType.Smooth
- Part43.BrickColor = BrickColor.new("Institutional white")
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part43.brickColor = BrickColor.new("Institutional white")
- Part43.FormFactor = Enum.FormFactor.Custom
- Part43.formFactor = Enum.FormFactor.Custom
- BlockMesh44.Parent = Part43
- BlockMesh44.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh44.Scale = Vector3.new(1, 1, 0)
- Part45.Parent = Tool0
- Part45.CFrame = CFrame.new(9.28884411, 3.7133379, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part45.Position = Vector3.new(9.28884411, 3.7133379, 16.8944397)
- Part45.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part45.Transparency = 0.5
- Part45.Size = Vector3.new(0.400000006, 1.06050014, 0.200000003)
- Part45.BottomSurface = Enum.SurfaceType.Smooth
- Part45.BrickColor = BrickColor.new("Institutional white")
- Part45.TopSurface = Enum.SurfaceType.Smooth
- Part45.brickColor = BrickColor.new("Institutional white")
- Part45.FormFactor = Enum.FormFactor.Custom
- Part45.formFactor = Enum.FormFactor.Custom
- BlockMesh46.Parent = Part45
- BlockMesh46.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh46.Scale = Vector3.new(1, 1, 0)
- Part47.Name = "Barrel"
- Part47.Parent = Tool0
- Part47.CFrame = CFrame.new(7.9024272, 2.7580111, 16.5716858, 0.945954859, -3.51188464e-05, -0.324295938, 2.50855555e-05, 1, -3.51188464e-05, 0.324295938, 2.50855555e-05, 0.945954859)
- Part47.Orientation = Vector3.new(0, -18.9200001, 0)
- Part47.Position = Vector3.new(7.9024272, 2.7580111, 16.5716858)
- Part47.Rotation = Vector3.new(0, -18.9200001, 0)
- Part47.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part47.Size = Vector3.new(1.5, 0.850000024, 0.200000003)
- Part47.BottomSurface = Enum.SurfaceType.Smooth
- Part47.BrickColor = BrickColor.new("Black")
- Part47.TopSurface = Enum.SurfaceType.Smooth
- Part47.brickColor = BrickColor.new("Black")
- Part47.FormFactor = Enum.FormFactor.Custom
- Part47.formFactor = Enum.FormFactor.Custom
- BlockMesh48.Parent = Part47
- BlockMesh48.Scale = Vector3.new(1, 1, 0.5)
- Script49.Name = "ShieldScript"
- Script49.Parent = Part47
- table.insert(cors,sandbox(Script49,function()
- function ot(hit)
- ch = hit:GetChildren()
- for i = 1, #ch do
- if ch[i].className == "BodyVelocity" then
- ch[i].velocity = ch[i].velocity*-1
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- end
- hit.Parent.Humanoid.PlatformStand = true
- end
- else
- if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
- if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- else
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- wait(0.5)
- hit.Parent.Humanoid.PlatformStand = false
- end
- end
- end
- end
- function remove(child)
- child:Remove()
- end
- script.Parent.Touched:connect(ot)
- script.Parent.ChildAdded:connect(remove)
- end))
- Decal50.Name = "swat-logo"
- Decal50.Parent = Part47
- Decal50.Texture = "http://www.roblox.com/asset/?id=1032775700"
- Decal50.Face = Enum.NormalId.Back
- Decal50.Color3 = Color3.new(0.290196, 0.290196, 0.290196)
- Script51.Name = "Touched freeze"
- Script51.Parent = Part47
- table.insert(cors,sandbox(Script51,function()
- local frozen = false
- local debounce = true
- function slowdown (hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid.WalkSpeed = 0
- frozen = true
- end
- local hum = hit.Parent.Humanoid
- function normal()
- if hum.Jump then
- hum.WalkSpeed = 4
- end
- end
- hum.Changed:connect(normal)
- end
- script.Parent.Touched:connect(slowdown)
- end))
- Script52.Name = "PushPack"
- Script52.Parent = Part47
- table.insert(cors,sandbox(Script52,function()
- door = script.Parent
- function onTouch(hit)
- if hit.Parent == nil then return end
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil then
- hit.Parent.Torso.Velocity=door.CFrame.lookVector * 60 -- Push the Player back
- end
- end
- door.Touched:connect(onTouch)
- end))
- Script53.Parent = Part47
- table.insert(cors,sandbox(Script53,function()
- function onTouched(hit)
- hit:BreakJoints()
- end
- connection = script.Parent.Touched:connect(onTouched)
- end))
- Part54.Parent = Tool0
- Part54.CFrame = CFrame.new(6.98061705, 2.7580111, 16.2127895, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
- Part54.Orientation = Vector3.new(0, -28.3899994, 0)
- Part54.Position = Vector3.new(6.98061705, 2.7580111, 16.2127895)
- Part54.Rotation = Vector3.new(0, -28.3899994, 0)
- Part54.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part54.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
- Part54.BottomSurface = Enum.SurfaceType.Smooth
- Part54.BrickColor = BrickColor.new("Black")
- Part54.TopSurface = Enum.SurfaceType.Smooth
- Part54.brickColor = BrickColor.new("Black")
- Part54.FormFactor = Enum.FormFactor.Custom
- Part54.formFactor = Enum.FormFactor.Custom
- BlockMesh55.Parent = Part54
- BlockMesh55.Scale = Vector3.new(1, 1, 0.5)
- Script56.Name = "ShieldScript"
- Script56.Parent = Part54
- table.insert(cors,sandbox(Script56,function()
- function ot(hit)
- ch = hit:GetChildren()
- for i = 1, #ch do
- if ch[i].className == "BodyVelocity" then
- ch[i].velocity = ch[i].velocity*-1
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- end
- hit.Parent.Humanoid.PlatformStand = true
- end
- else
- if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
- if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- else
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- wait(0.5)
- hit.Parent.Humanoid.PlatformStand = false
- end
- end
- end
- end
- function remove(child)
- child:Remove()
- end
- script.Parent.Touched:connect(ot)
- script.Parent.ChildAdded:connect(remove)
- end))
- Script57.Parent = Part54
- table.insert(cors,sandbox(Script57,function()
- script.Parent.Touched:connect(function(obj)
- if obj.Parent:FindFirstChild("Humanoid") then
- obj.Parent.Humanoid.Sit = true
- end
- end)
- end))
- Part58.Parent = Tool0
- Part58.CFrame = CFrame.new(7.4164691, 2.7580111, 16.0614319, 0.324368834, -0.94593066, -2.31046888e-05, 1.00436482e-05, -2.09812824e-05, 1, -0.94593066, -0.324368864, 2.69492193e-06)
- Part58.Orientation = Vector3.new(-90, 71.0699997, 0)
- Part58.Position = Vector3.new(7.4164691, 2.7580111, 16.0614319)
- Part58.Rotation = Vector3.new(-90, 0, 71.0699997)
- Part58.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part58.Size = Vector3.new(0.25, 0.200000003, 0.25)
- Part58.BottomSurface = Enum.SurfaceType.Smooth
- Part58.BrickColor = BrickColor.new("Black")
- Part58.TopSurface = Enum.SurfaceType.Smooth
- Part58.brickColor = BrickColor.new("Black")
- Part58.FormFactor = Enum.FormFactor.Custom
- Part58.formFactor = Enum.FormFactor.Custom
- CylinderMesh59.Parent = Part58
- CylinderMesh59.Scale = Vector3.new(3, 0.75, 3)
- Part60.Parent = Tool0
- Part60.CFrame = CFrame.new(6.5701561, 2.7580111, 15.94522, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part60.Orientation = Vector3.new(0, -37.8499985, 0)
- Part60.Position = Vector3.new(6.5701561, 2.7580111, 15.94522)
- Part60.Rotation = Vector3.new(0, -37.8499985, 0)
- Part60.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part60.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.BrickColor = BrickColor.new("Black")
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.brickColor = BrickColor.new("Black")
- Part60.FormFactor = Enum.FormFactor.Custom
- Part60.formFactor = Enum.FormFactor.Custom
- BlockMesh61.Parent = Part60
- BlockMesh61.Scale = Vector3.new(1, 1, 0.5)
- Script62.Name = "ShieldScript"
- Script62.Parent = Part60
- table.insert(cors,sandbox(Script62,function()
- function ot(hit)
- ch = hit:GetChildren()
- for i = 1, #ch do
- if ch[i].className == "BodyVelocity" then
- ch[i].velocity = ch[i].velocity*-1
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- end
- hit.Parent.Humanoid.PlatformStand = true
- end
- else
- if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
- if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- else
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- wait(0.5)
- hit.Parent.Humanoid.PlatformStand = false
- end
- end
- end
- end
- function remove(child)
- child:Remove()
- end
- script.Parent.Touched:connect(ot)
- script.Parent.ChildAdded:connect(remove)
- end))
- Script63.Parent = Part60
- table.insert(cors,sandbox(Script63,function()
- script.Parent.Touched:connect(function(obj)
- if obj.Parent:FindFirstChild("Humanoid") then
- obj.Parent.Humanoid.Sit = true
- end
- end)
- end))
- Part64.Parent = Tool0
- Part64.CFrame = CFrame.new(8.85048962, 3.81807303, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
- Part64.Orientation = Vector3.new(0, -9.46000004, 0)
- Part64.Position = Vector3.new(8.85048962, 3.81807303, 16.8539124)
- Part64.Rotation = Vector3.new(0, -9.46000004, 0)
- Part64.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part64.Transparency = 0.5
- Part64.Size = Vector3.new(0.5, 1.29999995, 0.200000003)
- Part64.BottomSurface = Enum.SurfaceType.Smooth
- Part64.BrickColor = BrickColor.new("Institutional white")
- Part64.TopSurface = Enum.SurfaceType.Smooth
- Part64.brickColor = BrickColor.new("Institutional white")
- Part64.FormFactor = Enum.FormFactor.Custom
- Part64.formFactor = Enum.FormFactor.Custom
- BlockMesh65.Parent = Part64
- BlockMesh65.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh65.Scale = Vector3.new(1, 1, 0)
- Part66.Parent = Tool0
- Part66.CFrame = CFrame.new(9.53884411, 3.73312306, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part66.Position = Vector3.new(9.53884411, 3.73312306, 16.8944397)
- Part66.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part66.Size = Vector3.new(0.200000003, 1.10000002, 0.200000003)
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.BrickColor = BrickColor.new("Black")
- Part66.TopSurface = Enum.SurfaceType.Smooth
- Part66.brickColor = BrickColor.new("Black")
- Part66.FormFactor = Enum.FormFactor.Custom
- Part66.formFactor = Enum.FormFactor.Custom
- BlockMesh67.Parent = Part66
- BlockMesh67.Scale = Vector3.new(0.5, 1, 0.5)
- Part68.Parent = Tool0
- Part68.CFrame = CFrame.new(8.85048962, 2.75808311, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
- Part68.Orientation = Vector3.new(0, -9.46000004, 0)
- Part68.Position = Vector3.new(8.85048962, 2.75808311, 16.8539124)
- Part68.Rotation = Vector3.new(0, -9.46000004, 0)
- Part68.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part68.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
- Part68.BottomSurface = Enum.SurfaceType.Smooth
- Part68.BrickColor = BrickColor.new("Black")
- Part68.TopSurface = Enum.SurfaceType.Smooth
- Part68.brickColor = BrickColor.new("Black")
- Part68.FormFactor = Enum.FormFactor.Custom
- Part68.formFactor = Enum.FormFactor.Custom
- BlockMesh69.Parent = Part68
- BlockMesh69.Scale = Vector3.new(1, 1, 0.5)
- Script70.Name = "ShieldScript"
- Script70.Parent = Part68
- table.insert(cors,sandbox(Script70,function()
- function ot(hit)
- ch = hit:GetChildren()
- for i = 1, #ch do
- if ch[i].className == "BodyVelocity" then
- ch[i].velocity = ch[i].velocity*-1
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- end
- hit.Parent.Humanoid.PlatformStand = true
- end
- else
- if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
- if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- else
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- wait(0.5)
- hit.Parent.Humanoid.PlatformStand = false
- end
- end
- end
- end
- function remove(child)
- child:Remove()
- end
- script.Parent.Touched:connect(ot)
- script.Parent.ChildAdded:connect(remove)
- end))
- Script71.Parent = Part68
- table.insert(cors,sandbox(Script71,function()
- script.Parent.Touched:connect(function(obj)
- if obj.Parent:FindFirstChild("Humanoid") then
- obj.Parent.Humanoid.Sit = true
- end
- end)
- end))
- Part72.Parent = Tool0
- Part72.CFrame = CFrame.new(6.41222382, 1.33304703, 15.8223877, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part72.Orientation = Vector3.new(0, -37.8499985, 0)
- Part72.Position = Vector3.new(6.41222382, 1.33304703, 15.8223877)
- Part72.Rotation = Vector3.new(0, -37.8499985, 0)
- Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part72.Size = Vector3.new(0.200000003, 2, 0.200000003)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.BrickColor = BrickColor.new("Black")
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.brickColor = BrickColor.new("Black")
- Part72.FormFactor = Enum.FormFactor.Custom
- Part72.formFactor = Enum.FormFactor.Custom
- BlockMesh73.Parent = Part72
- BlockMesh73.Scale = Vector3.new(0.5, 1, 0.5)
- Part74.Parent = Tool0
- Part74.CFrame = CFrame.new(9.18898773, 0.265202999, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part74.Position = Vector3.new(9.18898773, 0.265202999, 16.8941956)
- Part74.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part74.Transparency = 0.5
- Part74.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
- Part74.BottomSurface = Enum.SurfaceType.Smooth
- Part74.BrickColor = BrickColor.new("Institutional white")
- Part74.TopSurface = Enum.SurfaceType.Smooth
- Part74.brickColor = BrickColor.new("Institutional white")
- Part74.FormFactor = Enum.FormFactor.Custom
- Part74.formFactor = Enum.FormFactor.Custom
- BlockMesh75.Parent = Part74
- BlockMesh75.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh75.Scale = Vector3.new(1, 1, 0)
- Part76.Parent = Tool0
- Part76.CFrame = CFrame.new(9.41219616, 0.226872995, 16.8941956, -1.09672546e-05, -0.707021356, -0.707198203, -9.6231699e-05, 0.707193971, -0.707021356, 1.00000417, 6.32703304e-05, -7.7009201e-05)
- Part76.Orientation = Vector3.new(44.9900017, -90.0100021, -0.00999999978)
- Part76.Position = Vector3.new(9.41219616, 0.226872995, 16.8941956)
- Part76.Rotation = Vector3.new(90.0100021, -45.0099983, 90)
- Part76.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part76.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
- Part76.BottomSurface = Enum.SurfaceType.Smooth
- Part76.BrickColor = BrickColor.new("Black")
- Part76.TopSurface = Enum.SurfaceType.Smooth
- Part76.brickColor = BrickColor.new("Black")
- Part76.FormFactor = Enum.FormFactor.Custom
- Part76.formFactor = Enum.FormFactor.Custom
- BlockMesh77.Parent = Part76
- BlockMesh77.Scale = Vector3.new(0.5, 0.5, 1)
- Part78.Parent = Tool0
- Part78.CFrame = CFrame.new(9.05611801, 0.100060999, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part78.Position = Vector3.new(9.05611801, 0.100060999, 16.8941956)
- Part78.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part78.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part78.BottomSurface = Enum.SurfaceType.Smooth
- Part78.BrickColor = BrickColor.new("Black")
- Part78.TopSurface = Enum.SurfaceType.Smooth
- Part78.brickColor = BrickColor.new("Black")
- Part78.FormFactor = Enum.FormFactor.Custom
- Part78.formFactor = Enum.FormFactor.Custom
- BlockMesh79.Parent = Part78
- BlockMesh79.Scale = Vector3.new(1, 0.5, 0.5)
- Part80.Parent = Tool0
- Part80.CFrame = CFrame.new(7.87282896, 0.100019, 16.6583557, 0.945934772, 3.51197777e-05, -0.324356169, -2.50846242e-05, 1, 3.51197777e-05, 0.324356169, -2.50846242e-05, 0.945934772)
- Part80.Orientation = Vector3.new(0, -18.9300003, 0)
- Part80.Position = Vector3.new(7.87282896, 0.100019, 16.6583557)
- Part80.Rotation = Vector3.new(0, -18.9300003, 0)
- Part80.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part80.Size = Vector3.new(0.965000272, 0.200000003, 0.200000003)
- Part80.BottomSurface = Enum.SurfaceType.Smooth
- Part80.BrickColor = BrickColor.new("Black")
- Part80.TopSurface = Enum.SurfaceType.Smooth
- Part80.brickColor = BrickColor.new("Black")
- Part80.FormFactor = Enum.FormFactor.Custom
- Part80.formFactor = Enum.FormFactor.Custom
- BlockMesh81.Parent = Part80
- BlockMesh81.Scale = Vector3.new(1, 0.5, 0.5)
- Part82.Parent = Tool0
- Part82.CFrame = CFrame.new(8.85054779, 1.24807501, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
- Part82.Orientation = Vector3.new(0, -9.46000004, 0)
- Part82.Position = Vector3.new(8.85054779, 1.24807501, 16.8539124)
- Part82.Rotation = Vector3.new(0, -9.46000004, 0)
- Part82.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part82.Transparency = 0.5
- Part82.Size = Vector3.new(0.5, 2.20000005, 0.200000003)
- Part82.BottomSurface = Enum.SurfaceType.Smooth
- Part82.BrickColor = BrickColor.new("Institutional white")
- Part82.TopSurface = Enum.SurfaceType.Smooth
- Part82.brickColor = BrickColor.new("Institutional white")
- Part82.FormFactor = Enum.FormFactor.Custom
- Part82.formFactor = Enum.FormFactor.Custom
- BlockMesh83.Parent = Part82
- BlockMesh83.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh83.Scale = Vector3.new(1, 1, 0)
- Part84.Parent = Tool0
- Part84.CFrame = CFrame.new(6.68868589, 0.265172988, 16.0370178, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part84.Orientation = Vector3.new(0, -37.8499985, 0)
- Part84.Position = Vector3.new(6.68868589, 0.265172988, 16.0370178)
- Part84.Rotation = Vector3.new(0, -37.8499985, 0)
- Part84.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part84.Transparency = 0.5
- Part84.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
- Part84.BottomSurface = Enum.SurfaceType.Smooth
- Part84.BrickColor = BrickColor.new("Institutional white")
- Part84.TopSurface = Enum.SurfaceType.Smooth
- Part84.brickColor = BrickColor.new("Institutional white")
- Part84.FormFactor = Enum.FormFactor.Custom
- Part84.formFactor = Enum.FormFactor.Custom
- BlockMesh85.Parent = Part84
- BlockMesh85.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh85.Scale = Vector3.new(1, 1, 0)
- Part86.Parent = Tool0
- Part86.CFrame = CFrame.new(6.7936058, 0.100019, 16.1185608, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
- Part86.Orientation = Vector3.new(0, -37.8499985, 0)
- Part86.Position = Vector3.new(6.7936058, 0.100019, 16.1185608)
- Part86.Rotation = Vector3.new(0, -37.8499985, 0)
- Part86.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part86.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part86.BottomSurface = Enum.SurfaceType.Smooth
- Part86.BrickColor = BrickColor.new("Black")
- Part86.TopSurface = Enum.SurfaceType.Smooth
- Part86.brickColor = BrickColor.new("Black")
- Part86.FormFactor = Enum.FormFactor.Custom
- Part86.formFactor = Enum.FormFactor.Custom
- BlockMesh87.Parent = Part86
- BlockMesh87.Scale = Vector3.new(1, 0.5, 0.5)
- Part88.Parent = Tool0
- Part88.CFrame = CFrame.new(7.90249205, 1.24581301, 16.5716858, 0.945954859, -3.51188464e-05, -0.324295938, 2.50855555e-05, 1, -3.51188464e-05, 0.324295938, 2.50855555e-05, 0.945954859)
- Part88.Orientation = Vector3.new(0, -18.9200001, 0)
- Part88.Position = Vector3.new(7.90249205, 1.24581301, 16.5716858)
- Part88.Rotation = Vector3.new(0, -18.9200001, 0)
- Part88.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part88.Transparency = 0.5
- Part88.Size = Vector3.new(1.5, 2.20000005, 0.200000003)
- Part88.BottomSurface = Enum.SurfaceType.Smooth
- Part88.BrickColor = BrickColor.new("Institutional white")
- Part88.TopSurface = Enum.SurfaceType.Smooth
- Part88.brickColor = BrickColor.new("Institutional white")
- Part88.FormFactor = Enum.FormFactor.Custom
- Part88.formFactor = Enum.FormFactor.Custom
- BlockMesh89.Parent = Part88
- BlockMesh89.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh89.Scale = Vector3.new(1, 1, 0)
- Script90.Name = "ShieldScript"
- Script90.Parent = Part88
- table.insert(cors,sandbox(Script90,function()
- function ot(hit)
- ch = hit:GetChildren()
- for i = 1, #ch do
- if ch[i].className == "BodyVelocity" then
- ch[i].velocity = ch[i].velocity*-1
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- if hit.Parent:FindFirstChild("Torso") ~= nil then
- hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
- end
- hit.Parent.Humanoid.PlatformStand = true
- end
- else
- if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
- if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- else
- hit:breakJoints()
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
- end
- end
- end
- end
- if hit.Parent ~= nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if hit.Parent ~= script.Parent.Parent then
- wait(0.5)
- hit.Parent.Humanoid.PlatformStand = false
- end
- end
- end
- end
- function remove(child)
- child:Remove()
- end
- script.Parent.Touched:connect(ot)
- script.Parent.ChildAdded:connect(remove)
- end))
- Part91.Parent = Tool0
- Part91.CFrame = CFrame.new(6.50008678, 0.277143002, 15.9537659, -0.613584697, -1.39968042e-05, 0.789628863, 4.08246196e-05, -1, 1.39971562e-05, 0.789628863, 4.08247397e-05, 0.613584757)
- Part91.Orientation = Vector3.new(0, 52.1500015, 180)
- Part91.Position = Vector3.new(6.50008678, 0.277143002, 15.9537659)
- Part91.Rotation = Vector3.new(0, 52.1500015, 180)
- Part91.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part91.Transparency = 0.5
- Part91.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part91.BottomSurface = Enum.SurfaceType.Smooth
- Part91.BrickColor = BrickColor.new("Institutional white")
- Part91.TopSurface = Enum.SurfaceType.Smooth
- Part91.brickColor = BrickColor.new("Institutional white")
- Part91.FormFactor = Enum.FormFactor.Custom
- Part91.formFactor = Enum.FormFactor.Custom
- SpecialMesh92.Parent = Part91
- SpecialMesh92.Scale = Vector3.new(0, 1, 1)
- SpecialMesh92.MeshType = Enum.MeshType.Wedge
- Part93.Parent = Tool0
- Part93.CFrame = CFrame.new(8.56777573, 0.100060999, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
- Part93.Orientation = Vector3.new(0, -9.46000004, 0)
- Part93.Position = Vector3.new(8.56777573, 0.100060999, 16.8539124)
- Part93.Rotation = Vector3.new(0, -9.46000004, 0)
- Part93.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part93.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part93.BottomSurface = Enum.SurfaceType.Smooth
- Part93.BrickColor = BrickColor.new("Black")
- Part93.TopSurface = Enum.SurfaceType.Smooth
- Part93.brickColor = BrickColor.new("Black")
- Part93.FormFactor = Enum.FormFactor.Custom
- Part93.formFactor = Enum.FormFactor.Custom
- BlockMesh94.Parent = Part93
- BlockMesh94.Scale = Vector3.new(1, 0.5, 0.5)
- Part95.Parent = Tool0
- Part95.CFrame = CFrame.new(6.51241684, 0.226842999, 15.900054, -0.613650262, 0.558344007, -0.558287859, -3.65348205e-05, 0.707051158, 0.70716244, 0.789577901, 0.433970869, -0.433861732)
- Part95.Orientation = Vector3.new(-45, -127.849998, 0)
- Part95.Position = Vector3.new(6.51241684, 0.226842999, 15.900054)
- Part95.Rotation = Vector3.new(-121.529999, -33.9399986, -137.699997)
- Part95.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part95.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
- Part95.BottomSurface = Enum.SurfaceType.Smooth
- Part95.BrickColor = BrickColor.new("Black")
- Part95.TopSurface = Enum.SurfaceType.Smooth
- Part95.brickColor = BrickColor.new("Black")
- Part95.FormFactor = Enum.FormFactor.Custom
- Part95.formFactor = Enum.FormFactor.Custom
- BlockMesh96.Parent = Part95
- BlockMesh96.Scale = Vector3.new(0.5, 0.5, 1)
- Part97.Parent = Tool0
- Part97.CFrame = CFrame.new(9.28884411, 1.37706101, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part97.Position = Vector3.new(9.28884411, 1.37706101, 16.8941956)
- Part97.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part97.Transparency = 0.5
- Part97.Size = Vector3.new(0.400000006, 2, 0.200000003)
- Part97.BottomSurface = Enum.SurfaceType.Smooth
- Part97.BrickColor = BrickColor.new("Institutional white")
- Part97.TopSurface = Enum.SurfaceType.Smooth
- Part97.brickColor = BrickColor.new("Institutional white")
- Part97.FormFactor = Enum.FormFactor.Custom
- Part97.formFactor = Enum.FormFactor.Custom
- BlockMesh98.Parent = Part97
- BlockMesh98.Offset = Vector3.new(0, 0, 0.0494999997)
- BlockMesh98.Scale = Vector3.new(1, 1, 0)
- Part99.Parent = Tool0
- Part99.CFrame = CFrame.new(9.53896999, 1.33308899, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
- Part99.Position = Vector3.new(9.53896999, 1.33308899, 16.8941956)
- Part99.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part99.Size = Vector3.new(0.200000003, 2, 0.200000003)
- Part99.BottomSurface = Enum.SurfaceType.Smooth
- Part99.BrickColor = BrickColor.new("Black")
- Part99.TopSurface = Enum.SurfaceType.Smooth
- Part99.brickColor = BrickColor.new("Black")
- Part99.FormFactor = Enum.FormFactor.Custom
- Part99.formFactor = Enum.FormFactor.Custom
- BlockMesh100.Parent = Part99
- BlockMesh100.Scale = Vector3.new(0.5, 1, 0.5)
- Part101.Parent = Tool0
- Part101.CFrame = CFrame.new(7.2040062, 0.100019, 16.3863735, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
- Part101.Orientation = Vector3.new(0, -28.3899994, 0)
- Part101.Position = Vector3.new(7.2040062, 0.100019, 16.3863735)
- Part101.Rotation = Vector3.new(0, -28.3899994, 0)
- Part101.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part101.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.BrickColor = BrickColor.new("Black")
- Part101.TopSurface = Enum.SurfaceType.Smooth
- Part101.brickColor = BrickColor.new("Black")
- Part101.FormFactor = Enum.FormFactor.Custom
- Part101.formFactor = Enum.FormFactor.Custom
- BlockMesh102.Parent = Part101
- BlockMesh102.Scale = Vector3.new(1, 0.5, 0.5)
- Part103.Name = "Handle"
- Part103.Parent = Tool0
- Part103.CFrame = CFrame.new(8.00784302, 2.7580111, 16.2640686, -0.324365765, 7.80466871e-05, -0.945931733, -2.83790778e-05, 1, 9.22390973e-05, 0.945931733, 5.67638745e-05, -0.324365765)
- Part103.Orientation = Vector3.new(-0.00999999978, -108.93, 0)
- Part103.Position = Vector3.new(8.00784302, 2.7580111, 16.2640686)
- Part103.Rotation = Vector3.new(-179.979996, -71.0699997, -179.990005)
- Part103.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part103.Transparency = 1
- Part103.Size = Vector3.new(0.25, 0.25, 1.10000002)
- Part103.BottomSurface = Enum.SurfaceType.Smooth
- Part103.BrickColor = BrickColor.new("Black")
- Part103.TopSurface = Enum.SurfaceType.Smooth
- Part103.brickColor = BrickColor.new("Black")
- Part103.FormFactor = Enum.FormFactor.Custom
- Part103.formFactor = Enum.FormFactor.Custom
- BlockMesh104.Parent = Part103
- Sound105.Name = "Reload"
- Sound105.Parent = Part103
- Sound105.Pitch = 1.2999999523163
- Sound105.PlaybackSpeed = 1.2999999523163
- Sound105.SoundId = "http://www.roblox.com/asset/?version=1&id=2691591"
- Sound105.Volume = 0.60000002384186
- Sound106.Name = "Trigger"
- Sound106.Parent = Part103
- Sound106.Pitch = 2
- Sound106.PlaybackSpeed = 2
- Sound106.SoundId = "rbxasset://sounds//switch.wav"
- Sound106.Volume = 1
- Sound107.Name = "Fire"
- Sound107.Parent = Part103
- Sound107.Pitch = 3
- Sound107.PlayOnRemove = true
- Sound107.PlaybackSpeed = 3
- Sound107.SoundId = "http://www.roblox.com/asset/?id=10730819"
- Sound107.Volume = 1
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement