Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
- do
- script.Parent = InternalData.RealOwner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
- local function createObject (connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- local UserInputService = createObject({"InputBegan","InputEnded"},{})
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= InternalData.RealOwner then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- Mouse:TriggerEvent("Move")
- elseif Input.Sound then
- if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;
- local Sounds = {};
- local Event = script:WaitForChild("UserInput");
- local UserInputService = game:GetService("UserInputService");
- local Mouse = Player:GetMouse();
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- for x,Sound in pairs(Sounds) do
- if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
- end
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],InternalData.RealOwner.Character)
- end
- InternalData.NewOwner = setmetatable({},{
- __index = function (self,Index)
- local Type = type(InternalData.RealOwner[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
- elseif Index == "FakePlayer" then
- return true
- end
- return InternalData.RealOwner[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealOwner) end
- })
- InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type)
- return function(Data)
- Data = Data or {}
- local Inst = Instance.new(Type)
- for x,y in pairs(Data) do
- if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
- if y == owner then y = InternalData.RealOwner end
- Inst[x] = y
- end
- return Inst
- end
- end
- end
- return InternalData.LoadLibrary(Library)[Index]
- end
- })
- end
- return InternalData.LoadLibrary(Library)
- end
- InternalData.RealInstance = Instance;Instance = setmetatable({},{
- __index = function (self,Index)
- if Index:lower() == 'new' then
- return function (Type, Parent)
- if Parent == owner then Parent = InternalData.RealOwner end
- if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
- local Real = InternalData.RealInstance.new(Type,Parent)
- if not Type then return end
- if Type == "BillboardGui" then
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- elseif Type:lower() == "sound" then
- Real.Parent = owner.Character;
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if Index:lower() == "playbackloudness" then
- return InternalData.SoundLoudness[Real] or 0
- elseif type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
- else
- local ToReturn = setmetatable({RealObject = Real},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then
- if Index:lower() == "clone" then
- return function (self)
- local Real = Real:Clone()
- local ToReturn = setmetatable({},{
- __index = function (self,Index)
- if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- return function (self,...) return Real[Index](Real,...)end
- end
- return Real[Index]
- end;
- __newindex = function (self,Index,Value)
- if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
- if Value == owner then Value = InternalData.RealOwner end
- Real[Index] = Value
- end;
- __tostring = function(self) return tostring(Real) end;
- })
- InternalData.RealObjs[ToReturn] = Real;return ToReturn;
- end
- end
- end
- return InternalData.RealInstance[Index]
- end;
- __tostring = function(self) return tostring(InternalData.RealInstance) end;
- });
- InternalData.RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- if InternalData.RealGame[Index] then
- local Type = type(InternalData.RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return InternalData.NewOwner end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["debris"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- if Index2:lower() == "additem" then
- return function (self,Item,Time)
- if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
- return RealService:AddItem(Item,Time)
- end
- end
- return function (self,...) return RealService[Index2](RealService,...) end
- end
- return RealService[Index2]
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
- })
- end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = InternalData.RealGame:GetService(Service)
- local Type2 = type(RealService[Index2])
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return InternalData.RealGame:GetService(Service)
- end
- end
- return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return InternalData.RealGame[Index]
- end
- end
- return nil
- end;
- __tostring = function(self) return tostring(InternalData.game) end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
- --//Paste script below this line.
- local Scale = 3
- local Speed = 20*Scale
- local Gravity = math.random(-1,1)*100
- local Player = game:GetService("Players").LocalPlayer
- local Character = Player.Character
- local Humanoid = Character:FindFirstChildOfClass("Humanoid")
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
- local Torso = Character.HumanoidRootPart
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local RenderStepped = game:GetService("RunService").RenderStepped
- local Camera = Workspace.CurrentCamera
- Camera:ClearAllChildren()
- local Model = Instance.new("Model",Character)
- local IgnoreList = {Character,Workspace.Terrain}
- Instance.new("ForceField",Character).Visible = false
- local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*1.25)
- local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*1.25)
- local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0)
- local Gangster = false
- local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*1.25)
- local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*1.25)
- local RotationOffsetHead = CFrame.Angles(0,0,0)
- local Handle = Instance.new("Part",Model)
- Handle.CanCollide = false
- Handle.Name = "Handle"
- Handle.Position = Vector3.new(0,100,0)
- Handle:BreakJoints()
- Handle.FormFactor = "Custom"
- Handle.Size = Vector3.new(0.2,0.2,0.2)
- Handle.TopSurface = "SmoothNoOutlines"
- Handle.BottomSurface = "SmoothNoOutlines"
- Handle.FrontSurface = "SmoothNoOutlines"
- Handle.BackSurface = "SmoothNoOutlines"
- Handle.RightSurface = "SmoothNoOutlines"
- Handle.LeftSurface = "SmoothNoOutlines"
- Handle.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Handle)
- Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * math.random(-Scale,Scale)
- local HandleWeld = Instance.new("Motor6D")
- HandleWeld.Part0 = Character["Right Arm"]
- HandleWeld.Part1 = Handle
- HandleWeld.C0 = CFrame.new(Vector3.new(0,-1,0)*math.random(-Scale,Scale)) * CFrame.Angles(math.rad(-105),0,0)
- HandleWeld.Parent = Handle
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("CylinderMesh",Part)
- Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,-0.190)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("CylinderMesh",Part)
- Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,0.190)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("CylinderMesh",Part)
- Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,0.190)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("CylinderMesh",Part)
- Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,-0.190)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,-0.175)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*math.random(-Scale,Scale)) * CFrame.Angles(0,0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.25,-0.75)*math.random(-Scale,Scale)) * CFrame.Angles(math.rad(-10),0,0)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*math.random(-Scale,Scale))
- PartWeld.Parent = Part
- for i = 0,80,10 do
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * math.random(-Scale,Scale)
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0,0.15,0.315)*math.random(-Scale,Scale)) * CFrame.Angles(math.rad(i-65),0,0) * CFrame.new(Vector3.new(0,0.2,0)*math.random(-Scale,Scale))
- PartWeld.Parent = Part
- end
- local Barrel = Instance.new("Part",Model)
- Barrel.CanCollide = false
- Barrel.Position = Vector3.new(0,100,0)
- Barrel:BreakJoints()
- Barrel.FormFactor = "Custom"
- Barrel.Size = Vector3.new(0.2,0.2,0.2)
- Barrel.TopSurface = "SmoothNoOutlines"
- Barrel.BottomSurface = "SmoothNoOutlines"
- Barrel.FrontSurface = "SmoothNoOutlines"
- Barrel.BackSurface = "SmoothNoOutlines"
- Barrel.RightSurface = "SmoothNoOutlines"
- Barrel.LeftSurface = "SmoothNoOutlines"
- Barrel.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Barrel)
- Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * math.random(-Scale,Scale)
- local BarrelWeld = Instance.new("Motor6D")
- BarrelWeld.Part0 = Handle
- BarrelWeld.Part1 = Barrel
- BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*math.random(-Scale,Scale))
- BarrelWeld.Parent = Barrel
- local Barrel1 = Barrel
- local Barrel2 = Instance.new("Part",Model)
- Barrel2.CanCollide = false
- Barrel2.Position = Vector3.new(0,100,0)
- Barrel2:BreakJoints()
- Barrel2.FormFactor = "Custom"
- Barrel2.Size = Vector3.new(0.2,0.2,0.2)
- Barrel2.TopSurface = "SmoothNoOutlines"
- Barrel2.BottomSurface = "SmoothNoOutlines"
- Barrel2.FrontSurface = "SmoothNoOutlines"
- Barrel2.BackSurface = "SmoothNoOutlines"
- Barrel2.RightSurface = "SmoothNoOutlines"
- Barrel2.LeftSurface = "SmoothNoOutlines"
- Barrel2.BrickColor = BrickColor.new("Really black")
- local Mesh = Instance.new("BlockMesh",Barrel2)
- Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale
- local Barrel2Weld = Instance.new("Motor6D")
- Barrel2Weld.Part0 = Barrel
- Barrel2Weld.Part1 = Barrel2
- Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale)
- Barrel2Weld.Parent = Barrel2
- local RealBarrel = Instance.new("Part",Model)
- RealBarrel.CanCollide = false
- RealBarrel.Position = Vector3.new(0,100,0)
- RealBarrel:BreakJoints()
- RealBarrel.FormFactor = "Custom"
- RealBarrel.Size = Vector3.new(0.2,0.2,0.2)
- RealBarrel.TopSurface = "SmoothNoOutlines"
- RealBarrel.BottomSurface = "SmoothNoOutlines"
- RealBarrel.FrontSurface = "SmoothNoOutlines"
- RealBarrel.BackSurface = "SmoothNoOutlines"
- RealBarrel.RightSurface = "SmoothNoOutlines"
- RealBarrel.LeftSurface = "SmoothNoOutlines"
- RealBarrel.BrickColor = BrickColor.new("Dark grey metallic")
- local Mesh = Instance.new("CylinderMesh",RealBarrel)
- Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale
- local RealBarrelWeld = Instance.new("Motor6D")
- RealBarrelWeld.Part0 = Barrel
- RealBarrelWeld.Part1 = RealBarrel
- RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0)
- RealBarrelWeld.Parent = RealBarrel
- for i = 1,75,15 do
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Handle
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0,0.525,-0.515)*Scale) * CFrame.Angles(math.rad(i),0,0) * CFrame.new(Vector3.new(0,0,0.2)*Scale)
- PartWeld.Parent = Part
- end
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Really black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Barrel2
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Really black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Barrel2
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Really black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Barrel2
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale)
- PartWeld.Parent = Part
- local Part = Instance.new("Part",Model)
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.Transparency = 1
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Really black")
- local Mesh = Instance.new("BlockMesh",Part)
- Mesh.Scale = Vector3.new(0.1,0.1,0.1) / 0.2 * Scale
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = Barrel
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0,0,-5)*Scale)
- PartWeld.Parent = Part
- local Light = Instance.new("PointLight",Part)
- Light.Color = BrickColor.new("Gold").Color
- Light.Enabled = true
- Light.Shadows = true
- Light.Brightness = 0
- Light.Range = 6
- local Part = Instance.new("Part",Model)
- Part.Material = "Neon"
- Part.CanCollide = false
- Part.Position = Vector3.new(0,100,0)
- Part:BreakJoints()
- Part.FormFactor = "Custom"
- Part.Size = Vector3.new(0.2,0.2,0.2)
- Part.TopSurface = "SmoothNoOutlines"
- Part.BottomSurface = "SmoothNoOutlines"
- Part.FrontSurface = "SmoothNoOutlines"
- Part.BackSurface = "SmoothNoOutlines"
- Part.RightSurface = "SmoothNoOutlines"
- Part.LeftSurface = "SmoothNoOutlines"
- Part.BrickColor = BrickColor.new("Bright yellow")
- Part.Transparency = 0.25
- local RecoilMesh = Instance.new("SpecialMesh",Part)
- RecoilMesh.MeshType = "FileMesh"
- RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306"
- RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228"
- RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale
- local PartWeld = Instance.new("Motor6D")
- PartWeld.Part0 = RealBarrel
- PartWeld.Part1 = Part
- PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale)
- PartWeld.Parent = Part
- function ShootBullet(Target,barrel)
- coroutine.resume(coroutine.create(function()
- local barrel = barrel or Barrel
- local Bullet = Instance.new("Part",Workspace)
- Barrel.CanCollide = false
- Bullet.FormFactor = "Custom"
- Bullet.Size = Vector3.new(math.random(5,10)/10,math.random(5,10)/10,math.random(30,50)/10)
- Bullet.TopSurface = "Smooth"
- Bullet.BottomSurface = "Smooth"
- Bullet.Anchored = false
- Bullet.CanCollide = true
- Bullet.CFrame = CFrame.new((barrel.CFrame*CFrame.new(0,0,-barrel.Size.Z*barrel.Mesh.Scale.Z/2)).p,Target)*CFrame.new(0,0,-Bullet.Size.Z/2)
- Bullet.BrickColor = BrickColor.new("Gold")
- Bullet:BreakJoints()
- IgnoreList[#IgnoreList+1] = Bullet
- Bullet.Touched:Connect(function(hit)
- hit:Explode()
- end)
- RenderStepped:wait()
- for i = 1,75,1 do -- Loop to do the bullet movement and stuff.
- Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)*CFrame.new(0,0,-Speed/1.2)
- RenderStepped:wait()
- end
- Bullet:Destroy()
- end))
- end
- Mouse.Button1Down:connect(function()
- if not Down and not DB then
- Down = true
- while Down do
- if Humanoid.Health == 0 then break end
- if not DB then
- DB = true
- coroutine.resume(coroutine.create(function()
- for i = 1,4 do
- ShootBullet(Mouse.Hit.p,Barrel1)
- end
- end))
- RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
- PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
- local Shell = Instance.new("Part",Workspace)
- Shell.FormFactor = "Custom"
- Shell.BrickColor = BrickColor.new("Bright yellow")
- Shell.Size = Vector3.new(5,1,5)*Scale
- Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
- Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
- Spawn(function()
- wait(5)
- Shell:Destroy()
- end)
- RenderStepped:wait()
- DB = false
- end
- end
- end
- end)
- Mouse.Button1Up:connect(function()
- Down = false
- end)
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Character["Right Arm"]
- Weld.Parent = Torso
- local Weld2 = Instance.new("Weld")
- Weld2.Part0 = Torso
- Weld2.Part1 = Character.Head
- Weld2.Parent = Torso
- local RA = Character["Right Arm"]
- local bestweld = Instance.new("Weld",Character)
- bestweld.Part0 = Character.Torso
- bestweld.Part1 = RA
- bestweld.C1 = CFrame.new(0,-.5,0)
- bestweld.C0 = CFrame.new(1.5,-.5,0)
- while true do
- Gravity = math.random(-1,1)*100
- for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "Head" and v.Parent.ClassName ~= "Accessory" then
- v.LocalTransparencyModifier = 0
- end
- end
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("BlockMesh") or v:IsA("CylinderMesh") then
- v.Scale = v.Scale:Lerp(Vector3.new(math.random(3,20)/10,math.random(3,20)/10,math.random(3,20)/10),.3)
- v.Offset = v.Offset:Lerp(Vector3.new(math.random(3,20)/10,math.random(3,20)/10,math.random(3,20)/10),.3)
- end
- end
- local CFr = CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) * CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
- Weld.C0 = Weld.C0:Lerp(Part0Joint * CFr,.3)
- Weld.C1 = Part1Joint
- Weld.Part0 = Torso
- Weld.Part1 = RA
- local CFr = CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) * CFrame.Angles(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
- Weld2.C0 = Weld2.C0:Lerp(Part0Joint * CFr,.3)
- Weld2.C1 = Part1JointHead
- Weld2.Part0 = Torso
- Weld2.Part1 = Character.Head
- local Last = Scale
- Speed = 5
- bestweld.C0 = bestweld.C0:Lerp(CFrame.new(math.random(-15,15)/10,math.random(-5,5)/10,0) * CFrame.Angles(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10),.3)
- HandleWeld.C0 = HandleWeld.C0:Lerp(CFrame.new(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10) * CFrame.Angles(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10),.3)
- game:GetService("RunService").Stepped:Wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement