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,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
- 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"},{["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
- 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
- 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
- })
- --LoadLibrary("RbxUtility").Create
- 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!")
- local plr = game:GetService('Players').LocalPlayer
- local mouse = plr:GetMouse()
- local chr = plr.Character
- local rope = nil
- local working = false
- local working2 = false
- local forward = false
- local backward = false
- local shooting = false
- local left = false
- local right = false
- local crawling = false
- local active = true
- local wing1 = nil
- local wing2 = nil
- local hats = {}
- local gui = Instance.new('ScreenGui')
- gui.Parent = plr.PlayerGui
- gui.Name = "Spiderman"
- gui.ResetOnSpawn = false
- local frame = Instance.new('Frame',gui)
- frame.Size = UDim2.new(0.2,0,0.2,0)
- frame.Position = UDim2.new(0,0,0.9,0)
- frame.BackgroundColor3 = Color3.fromRGB(255, 66, 66)
- frame.BorderSizePixel = 4
- frame.BorderColor3 = Color3.fromRGB(66, 134, 244)
- frame.Active = true
- frame.Draggable = true
- local txt = Instance.new('TextLabel',frame)
- txt.Text = "Spiderman Gui"
- txt.TextColor3 = Color3.fromRGB(66, 134, 244)
- txt.Size = UDim2.new(1,0,0.3,0)
- txt.TextScaled = true
- txt.BackgroundTransparency = 1
- local but = Instance.new('TextButton',frame)
- but.Text = "Toggle Suit"
- but.TextColor3 = Color3.fromRGB(255, 66, 66)
- but.Size = UDim2.new(0.7,0,0.3,0)
- but.Position = UDim2.new(0.15,0,0.5,0)
- but.BorderSizePixel = 0
- but.TextScaled = true
- but.BackgroundColor3 = Color3.fromRGB(66, 134, 244)
- but.MouseButton1Down:connect(function()
- active = not active
- end)
- local txt2 = Instance.new('TextLabel',frame)
- txt2.Text = "Toggle wall climb on with C."
- txt2.TextColor3 = Color3.fromRGB(66, 134, 244)
- txt2.Size = UDim2.new(1,0,0.15,0)
- txt2.Position = UDim2.new(0,0,0.85,0)
- txt2.TextScaled = true
- txt2.BackgroundTransparency = 1
- function webshot(char)
- local haaaaaaaaa = coroutine.wrap(function()
- if char:FindFirstChildOfClass('Humanoid').Health > 0 then
- for i,v in pairs(char:GetChildren()) do
- local partz = {Enum.NormalId.Back,Enum.NormalId.Right,Enum.NormalId.Left,Enum.NormalId.Top,Enum.NormalId.Bottom,Enum.NormalId.Front}
- if v:IsA('Part') and v.Transparency ~= 1 and v.Name ~= "Head" then
- for a,c in pairs(partz) do
- local dec = Instance.new('Decal',v)
- dec.Texture = 'http://www.roblox.com/asset/?id=148633485'
- dec.Face = c
- end
- end
- end
- char:FindFirstChildOfClass('Humanoid').Health = char:FindFirstChildOfClass('Humanoid').Health - char:FindFirstChildOfClass('Humanoid').MaxHealth*0.3
- if char:FindFirstChild('HumanoidRootPart') then
- local heyyyy = nil
- if char:FindFirstChild('Animate') then
- heyyyy = char.Animate:Clone()
- char.Animate:Destroy()
- end
- char:FindFirstChildOfClass('Humanoid').PlatformStand = true
- local ahhhhhhh = true
- char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.Position)*CFrame.Angles(0,0,math.pi/2)
- if char:FindFirstChildOfClass('Humanoid') then
- char:FindFirstChildOfClass('Humanoid').Changed:connect(function(change)
- if change == "PlatformStand" and ahhhhhhh then
- char:FindFirstChildOfClass('Humanoid').PlatformStand = true
- end
- end)
- end
- wait(15)
- ahhhhhhh = false
- if char:FindFirstChildOfClass('Humanoid') then
- char:FindFirstChildOfClass('Humanoid').PlatformStand = false
- end
- if force then
- force:Destroy()
- end
- if heyyyy then
- heyyyy.Parent = char
- end
- for i,v in pairs(char:GetChildren()) do
- if v.Name ~= "Head" then
- for a,c in pairs(v:GetChildren()) do
- if c:IsA('Decal') then
- c:Destroy()
- end
- end
- end
- end
- end
- end
- end)
- haaaaaaaaa()
- end
- --------------------------------------
- plr=game:service'Players'.LocalPlayer
- chr=plr.Character
- local ms = plr:GetMouse()
- CV="Bright red"
- local txt = Instance.new("BillboardGui", chr)
- txt.Adornee = chr.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(4, 0, 2.5, 0)
- txt.StudsOffset = Vector3.new(-4, 2, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "SciFi"
- text.TextStrokeColor3 = Color3.new(128,0,0)
- text.Text = "Spider-Man"
- --------------------------------------
- plr=game:service'Players'.LocalPlayer
- chr=plr.Character
- local ms = plr:GetMouse()
- CV="Bright red"
- local txt = Instance.new("BillboardGui", chr)
- txt.Adornee = chr.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(4, 0, 2.5, 0)
- txt.StudsOffset = Vector3.new(-4, 1.5, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(3, 0, 0.5, 0)
- text.FontSize = "Size24"
- text.TextScaled = false
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "SciFi"
- text.TextStrokeColor3 = Color3.new(0,0,128)
- text.Text = "WIP"
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- if rope == nil then
- if plr.Character and mouse.Hit and mouse.Target and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Left Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Left Shoulder') then
- if game.CoreGui:FindFirstChild('hekking spiderman') then
- game.CoreGui:FindFirstChild('hekking spiderman'):Destroy()
- end
- local Head = plr.Character.Head
- local RightShoulder = plr.Character.Torso["Left Shoulder"]
- local RightArm = plr.Character["Left Arm"]
- local MousePosition = mouse.Hit.p
- local ToMouse = (MousePosition - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, -1, 0)))
- local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(-1 ,0, -1)).unit
- local Look = (Head.CFrame.lookVector * Vector3.new(-1, 0, -1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- if LateralAngle < (-math.pi / 2) then
- LateralAngle = (-math.pi / 2)
- end
- if Cross.Y > 0 then
- LateralAngle = -LateralAngle
- end
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((-math.pi / 2) + Angle), ((-math.pi / 2) - LateralAngle), -math.pi/2)
- wait()
- local pa = Instance.new('Part',workspace)
- pa.Name = "SPOODERMEN"
- pa.Size = Vector3.new(0.2,0.2,0.2)
- pa.Anchored = true
- pa.CFrame = CFrame.new(MousePosition)
- pa.Transparency = 1
- local att = Instance.new('Attachment',pa)
- local att2 = Instance.new('Attachment',RightArm)
- att2.CFrame = CFrame.new(0,-1,0)
- att2.Axis = Vector3.new(0,0,0)
- local ropez = Instance.new('RopeConstraint',RightArm)
- ropez.Color = BrickColor.new('Institutional white')
- ropez.Attachment0 = att
- ropez.Attachment1 = att2
- ropez.Length = ropez.CurrentDistance-5
- ropez.Visible = true
- rope = ropez
- crawling = false
- txt2.Text = "Toggle wall climb on with C."
- end
- else
- if plr.Character and plr.Character:FindFirstChildOfClass('Humanoid') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Left Shoulder') then
- local RightShoulder = plr.Character.Torso["Left Shoulder"]
- rope:Destroy()
- rope = nil
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p)*CFrame.Angles(0,-math.pi/2,0)
- working = false
- working2 = false
- forward = false
- backward = false
- right = false
- left = false
- local mouse = game.Players.LocalPlayer:GetMouse()
- local running = false
- mouse.KeyDown:connect(function (key) -- Run function
- key = string.lower(key)
- if string.byte(key) == 48 then
- running = true
- local keyConnection = mouse.KeyUp:connect(function (key)
- if string.byte(key) == 48 then
- running = false
- end
- end)
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
- wait()
- end
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150
- repeat wait () until running == false
- keyConnection:disconnect()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- for i = 1,5 do
- game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
- wait()
- end
- end
- end)
- char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Name = "hekking spiderman"
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(1, 0, 0.0500000007, 0)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "!! PRESS BACKSPACE TO REGAIN BALANCE !!"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- end
- end
- elseif key == "q" and rope ~= nil then
- working = true
- working2 = false
- elseif key == "e" and rope ~= nil then
- working2 = true
- working = false
- elseif key == "w" and rope ~= nil then
- forward = true
- elseif key == "s" and rope ~= nil then
- backward = true
- elseif key == "a" and rope ~= nil then
- left = true
- elseif key == "d" and rope ~= nil then
- right = true
- elseif key == "x" and shooting == false then
- if plr.Character and mouse.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') and plr.Character.Torso:FindFirstChild('Right Shoulder') then
- shooting = true
- local Head = plr.Character.Head
- local RightShoulder = plr.Character.Torso["Right Shoulder"]
- local RightArm = plr.Character["Right Arm"]
- local MousePosition = mouse.Hit.p
- local ToMouse = (MousePosition - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
- local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
- local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- end
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
- wait()
- local shot = Instance.new('Part',workspace)
- shot.Name = "AAAA"
- shot.CanCollide = false
- shot.BrickColor = BrickColor.new('Institutional white')
- shot.Size = Vector3.new(3,3,0.2)
- shot.Transparency = 1
- shot.CFrame = CFrame.new(chr['Right Arm'].CFrame.p, mouse.Hit.p)*CFrame.Angles(0,0,0)
- local dec = Instance.new('Decal',shot)
- dec.Texture = 'rbxassetid://148633485'
- local dec2 = Instance.new('Decal',shot)
- dec2.Texture = 'rbxassetid://148633485'
- dec2.Face = Enum.NormalId.Back
- local heck = Instance.new('BodyVelocity',shot)
- heck.Velocity = (shot.CFrame*CFrame.Angles(0,0,0)).lookVector*120
- shot.Touched:connect(function(hit)
- if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent ~= chr then
- webshot(hit.Parent)
- shot:Destroy()
- elseif hit.Parent.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent.Parent ~= chr then
- webshot(hit.Parent.Parent)
- shot:Destroy()
- elseif hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent:FindFirstChildOfClass('Humanoid') == nil then
- shot:Destroy()
- end
- end)
- wait(1)
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p)*CFrame.Angles(0,math.pi/2,0)
- shooting = false
- end
- elseif key == "c" and rope == nil then
- if crawling then
- crawling = false
- txt2.Text = "Toggle wall climb on with C."
- else
- crawling = true
- txt2.Text = "Toggle wall climb off with C."
- end
- elseif key == "z" and rope == nil and wing1 == nil and wing2 == nil then
- local plr = game.Players.LocalPlayer
- if chr:FindFirstChild('HumanoidRootPart') and chr.HumanoidRootPart:FindFirstChild('RootJoint') then
- chr.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(180))
- end
- if chr.Torso:FindFirstChild('Right Shoulder') then
- chr.Torso["Right Shoulder"].C0 = CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))
- end
- if chr.Torso:FindFirstChild('Left Shoulder') then
- chr.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(-90))
- end
- if chr:FindFirstChildOfClass('Humanoid'):FindFirstChild('Animator') and chr:FindFirstChild('Animate') then
- animator = chr:FindFirstChildOfClass('Humanoid'):FindFirstChild('Animator')
- animator:remove()
- chr.Animate.Disabled = true
- end
- if chr:FindFirstChildOfClass('Humanoid') then
- chr:FindFirstChildOfClass('Humanoid').HipHeight = -3
- chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 40
- end
- if chr:FindFirstChild('Torso') then
- wing1 = Instance.new('WedgePart',chr)
- wing1.Size = Vector3.new(0.2,1.5,3)
- wing1.Transparency = 1
- local dec = Instance.new('Decal',wing1)
- dec.Texture = 'http://www.roblox.com/asset/?id=148633485'
- dec.Face = Enum.NormalId.Right
- local dec2 = Instance.new('Decal',wing1)
- dec2.Texture = 'http://www.roblox.com/asset/?id=148633485'
- dec2.Face = Enum.NormalId.Left
- local dec3 = Instance.new('Decal',wing1)
- dec3.Texture = 'http://www.roblox.com/asset/?id=148633485'
- dec3.Face = Enum.NormalId.Front
- local weld = Instance.new('Weld',wing1)
- weld.Part0 = wing1
- weld.Part1 = chr.Torso
- weld.C0 = CFrame.new(0,-1.5,1)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
- wing2 = Instance.new('WedgePart',chr)
- wing2.Size = Vector3.new(0.2,1.5,3)
- wing2.Transparency = 1
- local dec4 = Instance.new('Decal',wing2)
- dec4.Texture = 'http://www.roblox.com/asset/?id=148633485'
- dec4.Face = Enum.NormalId.Right
- local dec5 = Instance.new('Decal',wing2)
- dec5.Texture = 'http://www.roblox.com/asset/?id=148633485'
- dec5.Face = Enum.NormalId.Left
- local dec6 = Instance.new('Decal',wing2)
- dec6.Texture = 'http://www.roblox.com/asset/?id=148633485'
- dec6.Face = Enum.NormalId.Front
- local weld2 = Instance.new('Weld',wing2)
- weld2.Part0 = wing2
- weld2.Part1 = chr.Torso
- weld2.C0 = CFrame.new(0,-1.5,1)*CFrame.Angles(math.rad(180),math.rad(270),math.rad(90))
- for i,v in pairs(chr:GetChildren()) do
- if v:IsA('Part') then
- v.Velocity = Vector3.new(0,0,0)
- local BodyForce = Instance.new('BodyForce',v)
- local Part = v
- BodyForce.Name = "stop destroying me"
- BodyForce.Force = Vector3.new(0,Part.Size.X * Part.Size.Y * Part.Size.Z * (game.Workspace.Gravity-45),0)
- end
- end
- end
- elseif key == string.char(8) then
- if game.CoreGui:FindFirstChild('hekking spiderman') then
- game.CoreGui:FindFirstChild('hekking spiderman'):Destroy()
- end
- elseif key == string.char(47) or key == string.char(48) then
- if chr:FindFirstChildOfClass('Humanoid') then
- chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 30
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "q" and rope ~= nil then
- working = false
- elseif key == "e" and rope ~= nil then
- working2 = false
- elseif key == "w" and rope ~= nil then
- forward = false
- elseif key == "s" and rope ~= nil then
- backward = false
- elseif key == "a" and rope ~= nil then
- left = false
- elseif key == "d" and rope ~= nil then
- right = false
- elseif key == "z" and wing1 ~= nil and wing2 ~= nil then
- if animator and chr:FindFirstChildOfClass('Humanoid') and chr:FindFirstChild('Animate') then
- animator.Parent = chr:FindFirstChildOfClass('Humanoid')
- chr.Animate.Disabled = false
- end
- if chr.Torso:FindFirstChild('Right Shoulder') then
- chr.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.pi/2,0)
- end
- if chr.Torso:FindFirstChild('Left Shoulder') then
- chr.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0)*CFrame.Angles(0,-math.pi/2,0)
- end
- if chr:FindFirstChild('HumanoidRootPart') and chr.HumanoidRootPart:FindFirstChild('RootJoint') then
- chr.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-270),math.rad(180),math.rad(0))
- end
- if chr:FindFirstChildOfClass('Humanoid') then
- chr:FindFirstChildOfClass('Humanoid').HipHeight = 0
- chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
- end
- if wing1 then
- wing1:Destroy()
- wing1 = nil
- end
- if wing2 then
- wing2:Destroy()
- wing2 = nil
- end
- for i,v in pairs(plr.Character:GetChildren()) do
- if v:IsA('Part') then
- for a,c in pairs(v:GetChildren()) do
- if c:IsA('BodyForce') then
- c:Destroy()
- end
- end
- end
- end
- elseif key == string.char(47) or key == string.char(48) then
- if chr:FindFirstChildOfClass('Humanoid') then
- chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
- end
- end
- end)
- plr.CharacterAppearanceLoaded:connect(function()
- wait()
- for i,v in pairs(hats) do
- table.remove(hats,i)
- end
- if plr.Character:FindFirstChild('Torso') then
- local chr = plr.Character
- chr.Torso.Touched:connect(function(hit)
- if hit:IsA('TrussPart') == false and rope == nil and crawling and hit.CanCollide then
- local c = Instance.new('TrussPart',workspace.CurrentCamera)
- c.Anchored = true
- c.Transparency = 1
- c.CFrame = CFrame.new(chr.Torso.Position + (chr.Torso.CFrame.lookVector * 1), chr.Torso.Position + (chr.Torso.CFrame.lookVector * 12))
- game:GetService('Debris'):AddItem(c,0.5)
- end
- end)
- end
- end)
- if plr.Character:FindFirstChild('Torso') then
- local chr = plr.Character
- chr.Torso.Touched:connect(function(hit)
- if hit:IsA('TrussPart') == false and rope == nil and crawling and hit.CanCollide then
- local c = Instance.new('TrussPart',workspace.CurrentCamera)
- c.Anchored = true
- c.Transparency = 1
- c.CFrame = CFrame.new(chr.Torso.Position + (chr.Torso.CFrame.lookVector * 1), chr.Torso.Position + (chr.Torso.CFrame.lookVector * 12))
- game:GetService('Debris'):AddItem(c,0.5)
- end
- end)
- end
- game:GetService('RunService').Stepped:connect(function()
- chr = plr.Character
- local cam = game.Workspace.CurrentCamera
- for i,v in pairs(plr.PlayerGui:GetChildren()) do
- if v.Name == "SPOOOODA" then
- v:Destroy()
- end
- end
- if chr:FindFirstChild('HumanoidRootPart') and (cam.CoordinateFrame.p - chr.HumanoidRootPart.Position).magnitude < 2 then
- local haay = Instance.new('ScreenGui',plr.PlayerGui)
- haay.Name = "SPOOOODA"
- local img = Instance.new('ImageLabel',haay)
- img.Image = 'rbxassetid://744896574'
- img.BackgroundTransparency = 1
- img.Size = UDim2.new(1,0,1,0)
- end
- if plr.Character:FindFirstChild('Torso') then
- for a,c in pairs(plr.Character:GetChildren()) do
- for i,v in pairs(c:GetChildren()) do
- if v:IsA('BodyForce') and v.Name ~= "stop destroying me" then
- v:Destroy()
- end
- end
- end
- end
- if rope ~= nil and plr.Character and plr.Character:FindFirstChildOfClass('Humanoid') then
- plr.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true
- end
- if working then
- rope.Length = rope.Length-2
- if rope ~= nil and plr.Character and plr.Character:FindFirstChild('Torso') then
- for i,v in pairs(plr.Character:GetChildren()) do
- if v:IsA('Part') then
- local BodyForce = Instance.new('BodyForce',v)
- local Part = v
- BodyForce.Force = Vector3.new(0,Part.Size.X * Part.Size.Y * Part.Size.Z * 196.2,0)
- end
- end
- end
- end
- if working2 then
- rope.Length = rope.Length+1
- end
- if forward and plr.Character and plr.Character:FindFirstChild('Torso') then
- local force = Instance.new('BodyForce',plr.Character.Torso)
- force.Force = Vector3.new(cam.CFrame.lookVector.x*1000,0,cam.CFrame.lookVector.z*1000)
- end
- if right and plr.Character and plr.Character:FindFirstChild('Torso') then
- local force = Instance.new('BodyForce',plr.Character.Torso)
- force.Force = Vector3.new(cam.CFrame.rightVector.x*1000,0,cam.CFrame.rightVector.z*1000)
- end
- if left and plr.Character and plr.Character:FindFirstChild('Torso') then
- local force = Instance.new('BodyForce',plr.Character.Torso)
- force.Force = Vector3.new(-cam.CFrame.rightVector.x*1000,0,-cam.CFrame.rightVector.z*1000)
- end
- if backward and plr.Character and plr.Character:FindFirstChild('Torso') then
- local force = Instance.new('BodyForce',plr.Character.Torso)
- force.Force = Vector3.new(-cam.CFrame.lookVector.x*1000,0,-cam.CFrame.lookVector.z*1000)
- end
- for i,v in pairs(chr:GetChildren()) do
- if v:IsA('Part') and v.Anchored == true then
- v.Anchored = false
- end
- end
- if active then
- for i,v in pairs(plr.Character:GetChildren()) do
- if v:IsA('Accessory') then
- if v:FindFirstChildOfClass('Part') then
- if v:FindFirstChildOfClass('Part'):FindFirstChildOfClass('SpecialMesh') then
- if v:FindFirstChildOfClass('Part'):FindFirstChildOfClass('SpecialMesh').TextureId ~= "rbxassetid://454487924" then
- table.insert(hats,v:Clone())
- end
- end
- end
- v:Destroy()
- elseif v:IsA('Shirt') then
- if v.ShirtTemplate ~= 'rbxassetid://638689615' then
- table.insert(hats,v:Clone())
- end
- v:Destroy()
- elseif v:IsA('Pants') then
- if v.PantsTemplate ~= 'rbxassetid://638690509' then
- table.insert(hats,v:Clone())
- end
- v:Destroy()
- end
- end
- local shirt = Instance.new('Shirt',plr.Character)
- shirt.ShirtTemplate = 'rbxassetid://638689615'
- local pants = Instance.new('Pants',plr.Character)
- pants.PantsTemplate = 'rbxassetid://638690509'
- local ac = Instance.new('Accessory',plr.Character)
- local pa = Instance.new('Part',ac)
- pa.Size = Vector3.new(1,1,1)
- local me = Instance.new('SpecialMesh',pa)
- me.MeshType = Enum.MeshType.FileMesh
- me.MeshId = 'rbxassetid://151354047'
- me.TextureId = 'rbxassetid://454487924'
- me.Scale = Vector3.new(1.26,1.26,1.26)
- local weld = Instance.new('Weld',pa)
- weld.Part0 = pa
- weld.Part1 = plr.Character.Head
- else
- for i,v in pairs(plr.Character:GetChildren()) do
- if v:IsA('Accessory') or v:IsA('Shirt') or v:IsA('Pants') then
- v:Destroy()
- end
- end
- for i,v in pairs(hats) do
- v:Clone().Parent = chr
- end
- end
- end)
- --3DG
- --three dimensional grapples
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- plr = game:service'Players'.LocalPlayer
- plrgui = plr.PlayerGui
- char = plr.Character
- mouse = plr:GetMouse()
- humanoid = char:findFirstChild("Humanoid")
- torso = char:findFirstChild("Torso")
- head = char.Head
- ra = char:findFirstChild("Right Arm")
- la = char:findFirstChild("Left Arm")
- rl = char:findFirstChild("Right Leg")
- ll = char:findFirstChild("Left Leg")
- rs = torso:findFirstChild("Right Shoulder")
- ls = torso:findFirstChild("Left Shoulder")
- rh = torso:findFirstChild("Right Hip")
- lh = torso:findFirstChild("Left Hip")
- neck = torso:findFirstChild("Neck")
- rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
- rootpart = char:findFirstChild("HumanoidRootPart")
- camera = workspace.CurrentCamera
- anim = char:findFirstChild("Animate")
- if anim then
- anim:Destroy()
- end
- game:service'Debris':AddItem(lal, 8)
- local rm = Instance.new("Weld", torso)
- rm.C0 = CFrame.new(1.5, 0.5, 0)
- rm.C1 = CFrame.new(0, 0.5, 0)
- rm.Part0 = torso
- rm.Part1 = ra
- rm.Name = 'Right Shoulder'
- local lm = Instance.new("Weld", torso)
- lm.C0 = CFrame.new(-1.5, 0.5, 0)
- lm.C1 = CFrame.new(0, 0.5, 0)
- lm.Part0 = torso
- lm.Part1 = la
- lm.Name = 'Left Shoulder'
- local rlegm = Instance.new("Weld", torso)
- rlegm.C0 = CFrame.new(0.5, -1, 0)
- rlegm.C1 = CFrame.new(0, 1, 0)
- rlegm.Part0 = torso
- rlegm.Part1 = rl
- local llegm = Instance.new("Weld", torso)
- llegm.C0 = CFrame.new(-0.5, -1, 0)
- llegm.C1 = CFrame.new(0, 1, 0)
- llegm.Part0 = torso
- llegm.Part1 = ll
- rj.C0 = CFrame.new()
- rj.C1 = CFrame.new()
- neck.C0 = CFrame.new(0, 1, 0)
- neck.C1 = CFrame.new(0, -0.5, 0)
- local speed = 0.3
- local angle = 0
- local anglespeed = 1
- rsc0 = rm.C0
- lsc0 = lm.C0
- llc0 = llegm.C0
- rlc0 = rlegm.C0
- rootc0 = rj.C0
- neckc0 = neck.C0
- model = Instance.new('Model', char)
- model.Name = '3DG'
- function Weld(part0,part1,c1,c0)
- local w = Instance.new('Weld', model)
- w.Part0 = part0
- w.Part1 = part1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- end
- local BasePart = Instance.new('Part')
- BasePart.FormFactor = 'Custom'
- BasePart.Material = 'Neon'
- BasePart.CanCollide = false
- BasePart.Locked = true
- BasePart.TopSurface = 10
- BasePart.BottomSurface = 10
- BasePart.LeftSurface = 10
- BasePart.RightSurface = 10
- BasePart.FrontSurface = 10
- BasePart.BackSurface = 10
- BasePart:breakJoints()
- for i = 1,2 do
- local strap = BasePart:clone()
- strap.Size = Vector3.new(1.025,.2,1.025)
- strap.Parent = model
- strap.BrickColor = BrickColor.new()
- strap:BreakJoints()
- Weld(strap, la, CFrame.new(0, .1 - i/3,0))
- end
- for i = 1,2 do
- local strap = BasePart:clone()
- strap.Size = Vector3.new(1.025,.2,1.025)
- strap.Parent = model
- strap.BrickColor = BrickColor.new()
- strap:BreakJoints()
- Weld(strap, ra, CFrame.new(0, .1 - i/3,0))
- end
- local ropeStart = BasePart:clone()
- ropeStart.Size = Vector3.new(0,0,0)
- ropeStart.Parent = model
- ropeStart.BrickColor = BrickColor.new()
- ropeStart:BreakJoints()
- Weld(ropeStart, ra, CFrame.new(-.45, -.5, 0))
- local ropeStart2 = BasePart:clone()
- ropeStart2.Size = Vector3.new(0,0,0)
- ropeStart2.Parent = model
- ropeStart2.BrickColor = BrickColor.new()
- ropeStart2:BreakJoints()
- Weld(ropeStart2, la, CFrame.new(.45, -.5, 0))
- local ropeCont = BasePart:clone()
- ropeCont.Size = Vector3.new(.8,.2,.8)
- ropeCont.Parent = model
- ropeCont.BrickColor = BrickColor.new(199)
- ropeCont:BreakJoints()
- Instance.new('CylinderMesh', ropeCont)
- Weld(ropeCont, la, CFrame.new(0,0,0), CFrame.Angles(math.pi/2, math.pi/2, 0))
- local ropeCont2 = BasePart:clone()
- ropeCont2.Size = Vector3.new(.8,.2,.8)
- ropeCont2.Parent = model
- ropeCont2.BrickColor = BrickColor.new(199)
- ropeCont2:BreakJoints()
- Instance.new('CylinderMesh', ropeCont2)
- Weld(ropeCont2, ra, CFrame.new(0,0,0), CFrame.Angles(math.pi/2, math.pi/2, 0))
- local GasTank = BasePart:clone()
- GasTank.Size = Vector3.new(0,0,0)
- GasTank.Parent = model
- GasTank.BrickColor = BrickColor.new(194)
- GasTank:BreakJoints()
- Instance.new('SpecialMesh', GasTank)
- Weld(GasTank, ra, CFrame.new(0, -.25, .5))
- local GasTank2 = BasePart:clone()
- GasTank2.Size = Vector3.new(0,0,0)
- GasTank2.Parent = model
- GasTank2.BrickColor = BrickColor.new(194)
- GasTank2:BreakJoints()
- Instance.new('SpecialMesh', GasTank2)
- Weld(GasTank2, la, CFrame.new(0, -.25, .5))
- local pa = BasePart:clone()
- pa.BrickColor = BrickColor.new()
- pa.Anchored = true
- pa.Size = Vector3.new(.5,1,.5)
- local special = Instance.new('SpecialMesh', pa)
- special.MeshId = "rbxassetid://1033714"
- special.Scale = Vector3.new(.25,2,.25)
- local ropePA = BasePart:clone()
- ropePA.Parent = pa
- ropePA.Anchored = true
- ropePA.BrickColor = BrickColor.new'White'
- Instance.new('CylinderMesh', ropePA).Scale = Vector3.new(.25,1,.25)
- local pa2 = BasePart:clone()
- pa2.BrickColor = BrickColor.new()
- pa2.Anchored = true
- pa2.Size = Vector3.new(.5,1,.5)
- local special = Instance.new('SpecialMesh', pa2)
- special.MeshId = "rbxassetid://1033714"
- special.Scale = Vector3.new(.25,2,.25)
- local ropePA2 = BasePart:clone()
- ropePA2.Parent = pa2
- ropePA2.Anchored = true
- ropePA2.BrickColor = BrickColor.new'White'
- Instance.new('CylinderMesh', ropePA2).Scale = Vector3.new(.25,1,.25)
- local pa3 = BasePart:clone()
- pa3.Transparency = 1
- pa3.Anchored = true
- pa3.Size = Vector3.new(2,2,2)
- local torso3 = Instance.new('Part', char)
- torso3.Name = 'FakeTorsoForStuff'
- torso3.Size = torso.Size
- torso3.Transparency = 1
- torso3:breakJoints()
- Weld(torso3, torso)
- Instance.new('PointLight', torso)
- local jumpmode
- local SGui = Instance.new('ScreenGui', plr.PlayerGui)
- local JumpButton = Instance.new('TextButton', SGui)
- JumpButton.BackgroundColor = BrickColor.new('Dark stone grey')
- JumpButton.BorderSizePixel = 4
- JumpButton.TextColor3 = Color3.new(1,1,1)
- JumpButton.BorderColor3 = Color3.new()
- JumpButton.TextStrokeTransparency = .5
- JumpButton.FontSize = 'Size12'
- JumpButton.Text = 'Thrust up when grappled'
- JumpButton.Size = UDim2.new(0, 250, 0, 50)
- JumpButton.Position = UDim2.new(1, -250, 1, -50)
- local OnOff = Instance.new('Frame', JumpButton)
- OnOff.BackgroundColor3 = Color3.new()
- OnOff.BorderSizePixel = 0
- OnOff.Size = UDim2.new(.8, 0, 0, 5)
- OnOff.Position = UDim2.new(.1, 0, 1, -10)
- JumpButton.MouseButton1Down:connect(function()
- jumpmode = not jumpmode
- if jumpmode then
- OnOff.BackgroundColor3 = Color3.new(0,1,0)
- else
- OnOff.BackgroundColor3 = Color3.new()
- end
- end)
- local bodygyro = Instance.new('BodyGyro', torso)
- bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
- bodygyro.P = 10000
- ro=Instance.new("RocketPropulsion",rootpart)
- ro.Name = 'RockatPropoolsun'
- ro.MaxSpeed=200
- ro.MaxThrust=8000
- ro.TurnP = 0
- ro.MaxTorque=Vector3.new(14e16,14e16,14e16)
- ro2=Instance.new("RocketPropulsion",torso)
- ro2.Name = 'RockatPropoolsun2'
- ro2.MaxSpeed=200
- ro2.MaxThrust=8000
- ro2.TurnP = 0
- ro2.MaxTorque=Vector3.new(14e16,14e16,14e16)
- local run
- mouse.KeyDown:connect(function(k)
- if k:byte() == 48 then
- run = not run
- if run then
- humanoid.WalkSpeed = 22
- else
- humanoid.WalkSpeed = 16
- end
- end
- if k:byte() == 32 then
- if Grapple1 or Grapple2 then
- wait()
- humanoid.PlatformStand = true
- rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
- llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
- if pa3.Parent ~= nil then
- ro3:Fire()
- end
- if Grapple1 then
- ro:Fire()
- end
- if Grapple2 then
- ro2:Fire()
- end
- end
- end
- if k=="q" then
- local sound = Instance.new('Sound', head)
- sound.SoundId = "rbxassetid://151733071"
- sound.Pitch = 3+math.random()/3
- sound.Volume = .8
- sound:play()
- game:service'Debris':AddItem(sound,4)
- lm.Parent = torso
- pa.CFrame = la.CFrame
- local grapplepos = pa.Position
- local grapplevelocity = (mouse.Hit.p - grapplepos).unit*50
- local lastgrapplepos = pa.Position
- while wait() do
- lastgrapplepos = grapplepos
- grapplepos = grapplepos + grapplevelocity
- local RayCast = Ray.new(lastgrapplepos, (grapplepos - lastgrapplepos))
- local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
- if (torso.Position - pa.Position).magnitude > 900 then
- pa.Parent = nil
- break
- end
- pa.Anchored = true
- pa.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
- pa.Parent = char
- if hit then
- local rotX,rotY,rotZ = pa.CFrame:toEulerAnglesXYZ()
- local sound = Instance.new('Sound', head)
- sound.SoundId = "rbxassetid://151733071"
- sound.Pitch = 1.2+math.random()/3
- sound.Volume = .25
- sound:play()
- game:service'Debris':AddItem(sound,4)
- pa.Parent = char
- pa.CFrame=CFrame.new(hitpos.x, hitpos.y, hitpos.z)*CFrame.Angles(rotX,rotY,rotZ)*CFrame.Angles(math.pi,0,0)
- ro.Target=pa
- lm.Parent = torso
- local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
- local hitz, enz = workspace:FindPartOnRay(ray, char)
- local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
- if hum then
- hum:TakeDamage(math.random(7,11))
- end
- local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
- if hum then
- hum:TakeDamage(math.random(7,11))
- end
- if pa.Parent ~= nil and humanoid.PlatformStand or not (hitz and hitz.CanCollide) then
- ro:Fire()
- if jumpmode then
- humanoid.Jump = true
- end
- end
- Gweld = Instance.new("Weld", char)
- Gweld.C0 = hit.CFrame:toObjectSpace(pa.CFrame)
- Gweld.Part0 = hit
- Gweld.Part1 = pa
- pa.Anchored = false
- Grapple1Hit = hit
- Grapple1 = true
- break
- end
- pa.Anchored = true
- pa.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
- end
- end
- if k=="e" then
- local sound = Instance.new('Sound', head)
- sound.SoundId = "rbxassetid://151733071"
- sound.Pitch = 3+math.random()/3
- sound.Volume = .8
- sound:play()
- game:service'Debris':AddItem(sound,4)
- pa2.CFrame = ra.CFrame
- rm.Parent = torso
- local grapplepos = pa2.Position
- local grapplevelocity = (mouse.Hit.p - grapplepos).unit*50
- local lastgrapplepos = pa2.Position
- while wait() do
- lastgrapplepos = grapplepos
- grapplepos = grapplepos + grapplevelocity
- local RayCast = Ray.new(lastgrapplepos, (grapplepos - lastgrapplepos))
- local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
- if (torso.Position - pa2.Position).magnitude > 900 then
- pa2.Parent = nil
- break
- end
- pa2.Anchored = true
- pa2.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
- pa2.Parent = char
- if hit then
- local rotX,rotY,rotZ = pa2.CFrame:toEulerAnglesXYZ()
- local sound = Instance.new('Sound', head)
- sound.SoundId = "rbxassetid://151733071"
- sound.Pitch = 1.2+math.random()/3
- sound.Volume = .25
- sound:play()
- game:service'Debris':AddItem(sound,4)
- pa2.Parent = char
- pa2.CFrame=CFrame.new(hitpos.x, hitpos.y, hitpos.z)*CFrame.Angles(rotX,rotY,rotZ)*CFrame.Angles(math.pi,0,0)
- ro2.Target=pa2
- rm.Parent = torso
- local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
- local hitz, enz = workspace:FindPartOnRay(ray, char)
- local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
- if hum then
- hum:TakeDamage(math.random(7,11))
- end
- local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
- if hum then
- hum:TakeDamage(math.random(7,11))
- end
- if pa2.Parent ~= nil and humanoid.PlatformStand or not (hitz and hitz.CanCollide) then
- if jumpmode then
- humanoid.Jump = true
- end
- ro2:Fire()
- end
- Gweld2 = Instance.new("Weld", char)
- Gweld2.C0 = hit.CFrame:toObjectSpace(pa2.CFrame)
- Gweld2.Part0 = hit
- Gweld2.Part1 = pa2
- pa2.Anchored = false
- Grapple2Hit = hit
- Grapple2 = true
- break
- end
- pa2.Anchored = true
- pa2.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
- end
- end
- end)
- mouse.KeyUp:connect(function(k)
- if k=="q" then
- pcall(function() Gweld:remove() end)
- game:service'RunService'.RenderStepped:wait()
- pcall(function() pa.Parent = nil Grapple1 = false end)
- pcall(function() ro:Abort() end)
- game:service'RunService'.RenderStepped:wait()
- pcall(function() ro2.Target=pa2 if Grapple2 and humanoid.PlatformStand or Grapple2 and not hitz then ro2:Fire() end end)
- elseif k=="e" then
- pcall(function() Gweld2:remove() end)
- game:service'RunService'.RenderStepped:wait()
- pcall(function() pa2.Parent = nil Grapple2 = false end)
- pcall(function() ro2:Abort() end)
- game:service'RunService'.RenderStepped:wait()
- pcall(function() ro.Target=pa if Grapple1 and humanoid.PlatformStand or Grapple1 and not hitz then ro:Fire() end end)
- end
- end)
- local MidPointUsed = false
- local TorsoSmoke = Instance.new('Smoke', torso)
- game:service'RunService'.RenderStepped:connect(function()
- angle = (angle % 100) + anglespeed/10
- mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
- local rscf = rsc0
- local lscf = lsc0
- local rlcf = rlc0
- local llcf = llc0
- local rjcf = rootc0
- local ncf = neckc0
- for i,object in pairs(char:children()) do
- if object:IsA("Tool") then
- tool = true
- if not debounce then
- for x,value in pairs(object:children()) do
- if value:IsA("StringValue") and value.Name == "toolanim" and value.Value == "Slash" then
- debounce = true
- coroutine.wrap(function()
- slashing = true
- wait(.25)
- slashing = false
- debounce = false
- end)()
- value:Destroy()
- end
- end
- end
- elseif not object:IsA'Tool' then
- tool = false
- end
- end
- if not humanoid.PlatformStand then
- if humanoid.Sit == true then
- speed = 0.2
- anglespeed = 1/4
- ncf = neckc0 * CFrame.Angles(0, 0, 0)
- rjcf = rootc0
- rscf = rsc0 * CFrame.Angles(math.pi/2+math.sin(-angle)*0.05, 0, 0)
- lscf = lsc0 * CFrame.Angles(math.pi/2+math.sin(-angle)*0.05, 0, 0)
- rlcf = rlc0 * CFrame.Angles(math.pi/2+-math.rad(.2), 0, math.rad(.2))
- llcf = llc0 * CFrame.Angles(math.pi/2+math.rad(.2), 0, -math.rad(.2))
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
- anglespeed = 1/4
- speed = 0.2
- ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.075, 0, 0)
- rjcf = rootc0
- rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.05, 0) * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
- lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.05, 0) * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
- rlcf = rlc0 * CFrame.Angles(-math.rad(.2), 0, math.rad(.2))
- llcf = llc0 * CFrame.Angles(math.rad(.2), 0, -math.rad(.2))
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
- anglespeed = 1.7
- speed = 0.25
- anglespeed = 2.2
- speed = 0.25
- ncf = neckc0 * CFrame.Angles(0, 0, 0)
- rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.055, 0) * CFrame.Angles(-math.rad(1), 0, 0)
- rscf = rsc0 * CFrame.Angles(math.sin(angle)*.5, 0, -math.rad(1))
- lscf = lsc0 * CFrame.Angles(math.sin(-angle)*.5, 0, math.rad(1))
- rlcf = rlc0 * CFrame.new(0, .075 + -math.cos(-angle)*.075, math.sin(angle)*0.1) * CFrame.Angles(math.sin(-angle)*.45, 0, math.rad(.5))
- llcf = llc0 * CFrame.new(0, .075 - -math.cos(angle)*.075, -math.sin(angle)*0.1) * CFrame.Angles(math.sin(angle)*.45, 0, -math.rad(.5))
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
- local RotVelocityZ = torso.RotVelocity.Y
- if RotVelocityZ >= 15 then
- RotVelocityZ = 15
- elseif RotVelocityZ <= -15 then
- RotVelocityZ = -15
- end
- speed = 0.25
- anglespeed = 2.7
- ncf = neckc0 * CFrame.Angles(0, 0, -math.sin(angle)*.045)
- rscf = rsc0 * CFrame.new(0, 0, -math.sin(angle)*0.125) * CFrame.Angles(math.pi/14+math.sin(angle)*1.5, 0, -math.sin(math.abs(angle))*0.3)
- lscf = lsc0 * CFrame.new(0, 0, math.sin(angle)*0.125) * CFrame.Angles(math.pi/14+math.sin(-angle)*1.5, 0, -math.sin(math.abs(angle))*0.3)
- rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.175 - .2, 0) * CFrame.Angles(math.abs(math.sin(angle))*0.055 + -math.pi/18, 0, math.rad(RotVelocityZ) + math.sin(angle)*.045)
- rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
- llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
- end
- if tool then
- rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
- if slashing then
- rscf = rsc0
- end
- end
- end
- if pa2.Parent == nil then
- rm.C0 = clerp(rm.C0,rscf,speed)
- end
- if pa.Parent == nil then
- lm.C0 = clerp(lm.C0,lscf,speed)
- end
- rj.C0 = clerp(rj.C0,rjcf,speed)
- neck.C0 = clerp(neck.C0,ncf,speed)
- rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
- llegm.C0 = clerp(llegm.C0,llcf,speed)
- end)
- game:service'RunService'.RenderStepped:connect(function()
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 225 then
- TorsoSmoke.Enabled = true
- else
- TorsoSmoke.Enabled = false
- end
- local ray = Ray.new(rootpart.Position, Vector3.new(0, -7, 0))
- local hitz, enz = workspace:FindPartOnRay(ray, char)
- if hitz and hitz.CanCollide and pa.Parent ~= char and pa2.Parent ~= char then
- bodygyro.Parent = nil
- humanoid.PlatformStand = false
- end
- if pa.Parent ~= nil or Grapple1 then
- local size = (ropeStart2.Position-pa.Position).magnitude
- ropePA.Size = Vector3.new(.2, size, .2)
- ropePA.CFrame = CFrame.new(ropeStart2.Position, pa.Position) * CFrame.Angles(math.pi/2, 0, 0) * CFrame.new(0, -size/2, 0)
- lm.C0 = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(pa.Position)) * CFrame.Angles(math.pi/2, 0, 0)
- else
- if not debounce and humanoid.PlatformStand then
- lm.C0 = lsc0 * CFrame.Angles(-.15, 0, -.15)
- end
- end
- if pa2.Parent ~= nil or Grapple2 then
- local size = (ropeStart.Position-pa2.Position).magnitude
- ropePA2.Size = Vector3.new(.2, size, .2)
- ropePA2.CFrame = CFrame.new(ropeStart.Position, pa2.Position) * CFrame.Angles(math.pi/2, 0, 0) * CFrame.new(0, -size/2, 0)
- rm.C0 = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(pa2.Position)) * CFrame.Angles(math.pi/2, 0, 0)
- else
- if not debounce and humanoid.PlatformStand then
- rm.C0 = rsc0 * CFrame.Angles(-.15, 0, .15)
- end
- end
- if Grapple1 and Grapple1Hit.Parent == nil then
- pcall(function() Gweld:remove() end)
- pa.Parent = nil
- Grapple1 = false
- ro:Abort()
- end
- if Grapple2 and Grapple2Hit.Parent == nil then
- pcall(function() Gweld2:remove() end)
- pa2.Parent = nil
- Grapple2 = false
- ro2:Abort()
- end
- if Grapple1 and Grapple2 and (humanoid.PlatformStand or not hitz) then
- local distance = (pa.Position-pa2.Position).magnitude
- bodygyro.Parent = torso
- torso.CFrame = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
- bodygyro.cframe = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
- pa3.Parent = char
- if distance <= .5 then
- pa3.CFrame = pa.CFrame
- elseif distance > .5 then
- pa3.CFrame = CFrame.new(pa.Position, pa2.Position) * CFrame.new(0, 0, -distance/2)
- end
- if not MidPointUsed then
- ro3=Instance.new("RocketPropulsion",torso3)
- ro3.Name = 'RockatPropoolsun3'
- ro3.MaxSpeed=250
- ro3.MaxThrust=16000
- ro3.TurnP = 0
- ro3.TurnD = 0
- ro3.MaxTorque=Vector3.new(14e16,14e16,14e16)
- if humanoid.PlatformStand or not hitz then
- ro:Abort()
- ro2:Abort()
- end
- ro3.Target = pa3
- if humanoid.PlatformStand or not hitz then
- ro3:Fire()
- end
- MidPointUsed = true
- end
- elseif (not Grapple1 or not Grapple2) and MidPointUsed == true and (humanoid.PlatformStand or not hitz) then
- pa3.Parent = nil
- MidPointUsed = false
- ro3:Abort()
- ro3:Destroy()
- if Grapple1 then
- ro:Fire()
- end
- if Grapple2 then
- ro2:Fire()
- end
- end
- if not Grapple1 then
- pcall(function() Gweld:remove() end)
- end
- if not Grapple2 then
- pcall(function() Gweld2:remove() end)
- end
- if (Grapple1 or Grapple2) and not hitz then
- bodygyro.Parent = torso
- humanoid.PlatformStand = true
- rlegm.Parent = torso
- llegm.Parent = torso
- lm.Parent = torso
- rm.Parent = torso
- rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
- llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
- end
- if (Grapple1 or Grapple2) and not hitz or humanoid.PlatformStand then
- bodygyro.Parent = torso
- bodygyro.cframe = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
- rlegm.Parent = torso
- llegm.Parent = torso
- rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
- llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement