Advertisement
wamandnj

Untitled

Feb 28th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.04 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. 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
  5. script.Parent = InternalData.RealOwner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  7. local function createObject (connections, index)
  8. local proxy = newproxy (true);local meta = getmetatable (proxy);
  9. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  10. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  11. meta.__index = function (self, i)
  12. if (i == 'TriggerEvent') then return runbind end;
  13. return connections[i] and connections[i].Event or index[i];
  14. end;
  15. meta.__newindex = index;meta.__metatable = false;return proxy
  16. end;
  17. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  18. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  19. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  20. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  21. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  22. Event.OnServerEvent:Connect(function(FiredBy,Input)
  23. if FiredBy ~= InternalData.RealOwner then return end
  24. if Input.MouseEvent then
  25. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  26. elseif Input.Sound then
  27. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  28. else
  29. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  30. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  31. for _,Action in pairs(ContextActionService.Actions) do
  32. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  33. end
  34. Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  35. end
  36. end)
  37. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  38. Event.Parent = NLS([[
  39. local Player = owner;
  40. local Sounds = {};
  41. local Event = script:WaitForChild("UserInput");
  42. local UserInputService = game:GetService("UserInputService");
  43. local Mouse = Player:GetMouse();
  44. local Input = function(Input,gameProcessedEvent)
  45. if gameProcessedEvent then return end
  46. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  47. end
  48. Event.OnClientEvent:connect(function(Args)
  49. if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end
  50. end)
  51. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  52. local Hit,Target
  53. while wait(1/30) do
  54. for x,Sound in pairs(Sounds) do
  55. if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
  56. end
  57. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  58. Hit = Mouse.Hit;Target = Mouse.Target;
  59. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  60. end
  61. end
  62. ]],InternalData.RealOwner.Character)
  63. end
  64. InternalData.NewOwner = setmetatable({},{
  65. __index = function (self,Index)
  66. local Type = type(InternalData.RealOwner[Index])
  67. if Type == "function" then
  68. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  69. return function (self)return InternalData["Mouse"] end
  70. end
  71. return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end
  72. elseif Index == "FakePlayer" then
  73. return true
  74. end
  75. return InternalData.RealOwner[Index]
  76. end;
  77. __tostring = function(self) return tostring(InternalData.RealOwner) end
  78. })
  79. --LoadLibrary("RbxUtility").Create
  80. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  81. if Library == "RbxUtility" then
  82. return setmetatable({},{
  83. __tostring = function() return "RbxUtility" end;
  84. __index = function(self, Index)
  85. if Index:lower() == "create" then
  86. return function(Type)
  87. return function(Data)
  88. Data = Data or {}
  89. local Inst = Instance.new(Type)
  90. for x,y in pairs(Data) do
  91. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  92. if y == owner then y = InternalData.RealOwner end
  93. Inst[x] = y
  94. end
  95. return Inst
  96. end
  97. end
  98. end
  99. return InternalData.LoadLibrary(Library)[Index]
  100. end
  101. })
  102. end
  103. return InternalData.LoadLibrary(Library)
  104. end
  105. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  106. __index = function (self,Index)
  107. if Index:lower() == 'new' then
  108. return function (Type, Parent)
  109. if Parent == owner then Parent = InternalData.RealOwner end
  110. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  111. local Real = InternalData.RealInstance.new(Type,Parent)
  112. if not Type then return end
  113. if Type == "BillboardGui" then
  114. local ToReturn = setmetatable({},{
  115. __index = function (self,Index)
  116. if type(Real[Index]) == "function" then
  117. if Index:lower() == "clone" then
  118. return function (self)
  119. local Real = Real:Clone()
  120. local ToReturn = setmetatable({RealObject = Real},{
  121. __index = function (self,Index)
  122. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  123. return Real[Index]
  124. end;
  125. __newindex = function (self,Index,Value)
  126. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  127. if Value == owner then Value = InternalData.RealOwner end
  128. Real[Index] = Value
  129. end;
  130. __tostring = function(self) return tostring(Real) end;
  131. })
  132. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  133. end
  134. end
  135. return function (self,...) return Real[Index](Real,...)end
  136. end
  137. return Real[Index]
  138. end;
  139. __newindex = function (self,Index,Value)
  140. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  141. if Value == owner then Value = InternalData.RealOwner end
  142. Real[Index] = Value
  143. end;
  144. __tostring = function(self) return tostring(Real) end;
  145. })
  146. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  147. elseif Type:lower() == "sound" then
  148. Real.Parent = owner.Character;
  149. local ToReturn = setmetatable({RealObject = Real},{
  150. __index = function (self,Index)
  151. if Index:lower() == "playbackloudness" then
  152. return InternalData.SoundLoudness[Real] or 0
  153. elseif type(Real[Index]) == "function" then
  154. if Index:lower() == "clone" then
  155. return function (self)
  156. local Real = Real:Clone()
  157. local ToReturn = setmetatable({},{
  158. __index = function (self,Index)
  159. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  160. return Real[Index]
  161. end;
  162. __newindex = function (self,Index,Value)
  163. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  164. if Value == owner then Value = InternalData.RealOwner end
  165. Real[Index] = Value
  166. end;
  167. __tostring = function(self) return tostring(Real) end;
  168. })
  169. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  170. end
  171. end
  172. return function (self,...) return Real[Index](Real,...)end
  173. end
  174. return Real[Index]
  175. end;
  176. __newindex = function (self,Index,Value)
  177. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  178. if Value == owner then Value = InternalData.RealOwner end
  179. Real[Index] = Value
  180. end;
  181. __tostring = function(self) return tostring(Real) end;
  182. })
  183. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  184. else
  185. local ToReturn = setmetatable({RealObject = Real},{
  186. __index = function (self,Index)
  187. if type(Real[Index]) == "function" then
  188. if Index:lower() == "clone" then
  189. return function (self)
  190. local Real = Real:Clone()
  191. local ToReturn = setmetatable({},{
  192. __index = function (self,Index)
  193. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  194. return Real[Index]
  195. end;
  196. __newindex = function (self,Index,Value)
  197. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  198. if Value == owner then Value = InternalData.RealOwner end
  199. Real[Index] = Value
  200. end;
  201. __tostring = function(self) return tostring(Real) end;
  202. })
  203. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  204. end
  205. end
  206. return function (self,...) return Real[Index](Real,...)end
  207. end
  208. return Real[Index]
  209. end;
  210. __newindex = function (self,Index,Value)
  211. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  212. if Value == owner then Value = InternalData.RealOwner end
  213. Real[Index] = Value
  214. end;
  215. __tostring = function(self) return tostring(Real) end;
  216. })
  217. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  218. end
  219. end
  220. end
  221. return InternalData.RealInstance[Index]
  222. end;
  223. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  224. });
  225. InternalData.RealGame = game;game = setmetatable({},{
  226. __index = function (self,Index)
  227. if InternalData.RealGame[Index] then
  228. local Type = type(InternalData.RealGame[Index])
  229. if Type == "function" then
  230. if Index:lower() == "getservice" or Index:lower() == "service" then
  231. return function (self,Service)
  232. local FakeServices = {
  233. ["players"] = function()
  234. return setmetatable({},{
  235. __index = function (self2,Index2)
  236. local RealService = InternalData.RealGame:GetService(Service)
  237. local Type2 = type(RealService[Index2])
  238. if Type2 == "function" then
  239. return function (self,...) return RealService[Index2](RealService,...)end
  240. else
  241. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  242. return RealService[Index2]
  243. end
  244. end;
  245. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  246. })
  247. end;
  248. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  249. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  250. ["debris"] = function()
  251. return setmetatable({},{
  252. __index = function(self2,Index2)
  253. local RealService = InternalData.RealGame:GetService(Service)
  254. local Type2 = type(RealService[Index2])
  255. if Type2 == "function" then
  256. if Index2:lower() == "additem" then
  257. return function (self,Item,Time)
  258. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  259. return RealService:AddItem(Item,Time)
  260. end
  261. end
  262. return function (self,...) return RealService[Index2](RealService,...) end
  263. end
  264. return RealService[Index2]
  265. end;
  266. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  267. })
  268. end;
  269. ["runservice"] = function()
  270. return setmetatable({},{
  271. __index = function(self2,Index2)
  272. local RealService = InternalData.RealGame:GetService(Service)
  273. local Type2 = type(RealService[Index2])
  274. if Type2 == "function" then
  275. return function (self,...) return RealService[Index2](RealService,...) end
  276. else
  277. local RunServices = {
  278. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  279. ["renderstepped"] = function() return RealService["Stepped"] end
  280. }
  281. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  282. return RealService[Index2]
  283. end
  284. end;
  285. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  286. })
  287. end
  288. }
  289. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  290. return InternalData.RealGame:GetService(Service)
  291. end
  292. end
  293. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  294. else
  295. if game:GetService(Index) then return game:GetService(Index) end
  296. return InternalData.RealGame[Index]
  297. end
  298. end
  299. return nil
  300. end;
  301. __tostring = function(self) return tostring(InternalData.game) end
  302. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  303.  
  304. local plr = game:GetService('Players').LocalPlayer
  305. local mouse = plr:GetMouse()
  306. local chr = plr.Character
  307. local rope = nil
  308. local working = false
  309. local working2 = false
  310. local forward = false
  311. local backward = false
  312. local shooting = false
  313. local left = false
  314. local right = false
  315. local crawling = false
  316. local active = true
  317. local wing1 = nil
  318. local wing2 = nil
  319. local hats = {}
  320. local gui = Instance.new('ScreenGui')
  321. gui.Parent = plr.PlayerGui
  322. gui.Name = "Spiderman"
  323. gui.ResetOnSpawn = false
  324. local frame = Instance.new('Frame',gui)
  325. frame.Size = UDim2.new(0.2,0,0.2,0)
  326. frame.Position = UDim2.new(0,0,0.9,0)
  327. frame.BackgroundColor3 = Color3.fromRGB(255, 66, 66)
  328. frame.BorderSizePixel = 4
  329. frame.BorderColor3 = Color3.fromRGB(66, 134, 244)
  330. frame.Active = true
  331. frame.Draggable = true
  332. local txt = Instance.new('TextLabel',frame)
  333. txt.Text = "Spiderman Gui"
  334. txt.TextColor3 = Color3.fromRGB(66, 134, 244)
  335. txt.Size = UDim2.new(1,0,0.3,0)
  336. txt.TextScaled = true
  337. txt.BackgroundTransparency = 1
  338. local but = Instance.new('TextButton',frame)
  339. but.Text = "Toggle Suit"
  340. but.TextColor3 = Color3.fromRGB(255, 66, 66)
  341. but.Size = UDim2.new(0.7,0,0.3,0)
  342. but.Position = UDim2.new(0.15,0,0.5,0)
  343. but.BorderSizePixel = 0
  344. but.TextScaled = true
  345. but.BackgroundColor3 = Color3.fromRGB(66, 134, 244)
  346. but.MouseButton1Down:connect(function()
  347. active = not active
  348. end)
  349. local txt2 = Instance.new('TextLabel',frame)
  350. txt2.Text = "Toggle wall climb on with C."
  351. txt2.TextColor3 = Color3.fromRGB(66, 134, 244)
  352. txt2.Size = UDim2.new(1,0,0.15,0)
  353. txt2.Position = UDim2.new(0,0,0.85,0)
  354. txt2.TextScaled = true
  355. txt2.BackgroundTransparency = 1
  356. function webshot(char)
  357. local haaaaaaaaa = coroutine.wrap(function()
  358. if char:FindFirstChildOfClass('Humanoid').Health > 0 then
  359. for i,v in pairs(char:GetChildren()) do
  360. local partz = {Enum.NormalId.Back,Enum.NormalId.Right,Enum.NormalId.Left,Enum.NormalId.Top,Enum.NormalId.Bottom,Enum.NormalId.Front}
  361. if v:IsA('Part') and v.Transparency ~= 1 and v.Name ~= "Head" then
  362. for a,c in pairs(partz) do
  363. local dec = Instance.new('Decal',v)
  364. dec.Texture = 'http://www.roblox.com/asset/?id=148633485'
  365. dec.Face = c
  366. end
  367. end
  368. end
  369. char:FindFirstChildOfClass('Humanoid').Health = char:FindFirstChildOfClass('Humanoid').Health - char:FindFirstChildOfClass('Humanoid').MaxHealth*0.3
  370. if char:FindFirstChild('HumanoidRootPart') then
  371. local heyyyy = nil
  372. if char:FindFirstChild('Animate') then
  373. heyyyy = char.Animate:Clone()
  374. char.Animate:Destroy()
  375. end
  376. char:FindFirstChildOfClass('Humanoid').PlatformStand = true
  377. local ahhhhhhh = true
  378. char.HumanoidRootPart.CFrame = CFrame.new(char.HumanoidRootPart.Position)*CFrame.Angles(0,0,math.pi/2)
  379. if char:FindFirstChildOfClass('Humanoid') then
  380. char:FindFirstChildOfClass('Humanoid').Changed:connect(function(change)
  381. if change == "PlatformStand" and ahhhhhhh then
  382. char:FindFirstChildOfClass('Humanoid').PlatformStand = true
  383. end
  384. end)
  385. end
  386. wait(15)
  387. ahhhhhhh = false
  388. if char:FindFirstChildOfClass('Humanoid') then
  389. char:FindFirstChildOfClass('Humanoid').PlatformStand = false
  390. end
  391. if force then
  392. force:Destroy()
  393. end
  394. if heyyyy then
  395. heyyyy.Parent = char
  396. end
  397. for i,v in pairs(char:GetChildren()) do
  398. if v.Name ~= "Head" then
  399. for a,c in pairs(v:GetChildren()) do
  400. if c:IsA('Decal') then
  401. c:Destroy()
  402. end
  403. end
  404. end
  405. end
  406. end
  407. end
  408. end)
  409. haaaaaaaaa()
  410. end
  411. --------------------------------------
  412. plr=game:service'Players'.LocalPlayer
  413. chr=plr.Character
  414. local ms = plr:GetMouse()
  415. CV="Bright red"
  416.  
  417. local txt = Instance.new("BillboardGui", chr)
  418. txt.Adornee = chr.Head
  419. txt.Name = "_status"
  420. txt.Size = UDim2.new(4, 0, 2.5, 0)
  421. txt.StudsOffset = Vector3.new(-4, 2, 0)
  422. local text = Instance.new("TextLabel", txt)
  423. text.Size = UDim2.new(3, 0, 0.5, 0)
  424. text.FontSize = "Size24"
  425. text.TextScaled = true
  426. text.TextTransparency = 0
  427. text.BackgroundTransparency = 1
  428. text.TextTransparency = 0
  429. text.TextStrokeTransparency = 0
  430. text.Font = "SciFi"
  431. text.TextStrokeColor3 = Color3.new(128,0,0)
  432. text.Text = "Spider-Man"
  433. --------------------------------------
  434. plr=game:service'Players'.LocalPlayer
  435. chr=plr.Character
  436. local ms = plr:GetMouse()
  437. CV="Bright red"
  438.  
  439. local txt = Instance.new("BillboardGui", chr)
  440. txt.Adornee = chr.Head
  441. txt.Name = "_status"
  442. txt.Size = UDim2.new(4, 0, 2.5, 0)
  443. txt.StudsOffset = Vector3.new(-4, 1.5, 0)
  444. local text = Instance.new("TextLabel", txt)
  445. text.Size = UDim2.new(3, 0, 0.5, 0)
  446. text.FontSize = "Size24"
  447. text.TextScaled = false
  448. text.TextTransparency = 0
  449. text.BackgroundTransparency = 1
  450. text.TextTransparency = 0
  451. text.TextStrokeTransparency = 0
  452. text.Font = "SciFi"
  453. text.TextStrokeColor3 = Color3.new(0,0,128)
  454. text.Text = "WIP"
  455.  
  456. mouse.KeyDown:connect(function(key)
  457. if key == "f" then
  458. if rope == nil then
  459. 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
  460. if game.CoreGui:FindFirstChild('hekking spiderman') then
  461. game.CoreGui:FindFirstChild('hekking spiderman'):Destroy()
  462. end
  463. local Head = plr.Character.Head
  464. local RightShoulder = plr.Character.Torso["Left Shoulder"]
  465. local RightArm = plr.Character["Left Arm"]
  466. local MousePosition = mouse.Hit.p
  467. local ToMouse = (MousePosition - Head.Position).unit
  468. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, -1, 0)))
  469. 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)))
  470. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(-1 ,0, -1)).unit
  471. local Look = (Head.CFrame.lookVector * Vector3.new(-1, 0, -1)).unit
  472. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  473. if tostring(LateralAngle) == "-1.#IND" then
  474. LateralAngle = 0
  475. end
  476. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  477. if LateralAngle < (-math.pi / 2) then
  478. LateralAngle = (-math.pi / 2)
  479. end
  480. if Cross.Y > 0 then
  481. LateralAngle = -LateralAngle
  482. end
  483. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((-math.pi / 2) + Angle), ((-math.pi / 2) - LateralAngle), -math.pi/2)
  484. wait()
  485. local pa = Instance.new('Part',workspace)
  486. pa.Name = "SPOODERMEN"
  487. pa.Size = Vector3.new(0.2,0.2,0.2)
  488. pa.Anchored = true
  489. pa.CFrame = CFrame.new(MousePosition)
  490. pa.Transparency = 1
  491. local att = Instance.new('Attachment',pa)
  492. local att2 = Instance.new('Attachment',RightArm)
  493. att2.CFrame = CFrame.new(0,-1,0)
  494. att2.Axis = Vector3.new(0,0,0)
  495. local ropez = Instance.new('RopeConstraint',RightArm)
  496. ropez.Color = BrickColor.new('Institutional white')
  497. ropez.Attachment0 = att
  498. ropez.Attachment1 = att2
  499. ropez.Length = ropez.CurrentDistance-5
  500. ropez.Visible = true
  501. rope = ropez
  502. crawling = false
  503. txt2.Text = "Toggle wall climb on with C."
  504. end
  505. else
  506. 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
  507. local RightShoulder = plr.Character.Torso["Left Shoulder"]
  508. rope:Destroy()
  509. rope = nil
  510. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p)*CFrame.Angles(0,-math.pi/2,0)
  511. working = false
  512. working2 = false
  513. forward = false
  514. backward = false
  515. right = false
  516. left = false
  517. local mouse = game.Players.LocalPlayer:GetMouse()
  518. local running = false
  519.  
  520.  
  521.  
  522.  
  523. mouse.KeyDown:connect(function (key) -- Run function
  524. key = string.lower(key)
  525. if string.byte(key) == 48 then
  526. running = true
  527. local keyConnection = mouse.KeyUp:connect(function (key)
  528. if string.byte(key) == 48 then
  529. running = false
  530. end
  531. end)
  532. for i = 1,5 do
  533. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  534. wait()
  535. end
  536. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150
  537. repeat wait () until running == false
  538. keyConnection:disconnect()
  539. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  540. for i = 1,5 do
  541. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  542. wait()
  543. end
  544. end
  545. end)
  546.  
  547. char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  548. -- Objects
  549.  
  550. local ScreenGui = Instance.new("ScreenGui")
  551. local Frame = Instance.new("Frame")
  552. local TextLabel = Instance.new("TextLabel")
  553.  
  554. -- Properties
  555. ScreenGui.Name = "hekking spiderman"
  556. ScreenGui.Parent = game.CoreGui
  557.  
  558. Frame.Parent = ScreenGui
  559. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  560. Frame.BorderSizePixel = 0
  561. Frame.Size = UDim2.new(1, 0, 0.0500000007, 0)
  562.  
  563. TextLabel.Parent = Frame
  564. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  565. TextLabel.BackgroundTransparency = 1
  566. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  567. TextLabel.Font = Enum.Font.SourceSans
  568. TextLabel.FontSize = Enum.FontSize.Size14
  569. TextLabel.Text = "!! PRESS BACKSPACE TO REGAIN BALANCE !!"
  570. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  571. TextLabel.TextScaled = true
  572. TextLabel.TextSize = 14
  573. TextLabel.TextWrapped = true
  574. end
  575. end
  576. elseif key == "q" and rope ~= nil then
  577. working = true
  578. working2 = false
  579. elseif key == "e" and rope ~= nil then
  580. working2 = true
  581. working = false
  582. elseif key == "w" and rope ~= nil then
  583. forward = true
  584. elseif key == "s" and rope ~= nil then
  585. backward = true
  586. elseif key == "a" and rope ~= nil then
  587. left = true
  588. elseif key == "d" and rope ~= nil then
  589. right = true
  590. elseif key == "x" and shooting == false then
  591. 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
  592. shooting = true
  593. local Head = plr.Character.Head
  594. local RightShoulder = plr.Character.Torso["Right Shoulder"]
  595. local RightArm = plr.Character["Right Arm"]
  596. local MousePosition = mouse.Hit.p
  597. local ToMouse = (MousePosition - Head.Position).unit
  598. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  599. 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)))
  600. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  601. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  602. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  603. if tostring(LateralAngle) == "-1.#IND" then
  604. LateralAngle = 0
  605. end
  606. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  607. if LateralAngle > (math.pi / 2) then
  608. LateralAngle = (math.pi / 2)
  609. end
  610. if Cross.Y < 0 then
  611. LateralAngle = -LateralAngle
  612. end
  613. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  614. wait()
  615. local shot = Instance.new('Part',workspace)
  616. shot.Name = "AAAA"
  617. shot.CanCollide = false
  618. shot.BrickColor = BrickColor.new('Institutional white')
  619. shot.Size = Vector3.new(3,3,0.2)
  620. shot.Transparency = 1
  621. shot.CFrame = CFrame.new(chr['Right Arm'].CFrame.p, mouse.Hit.p)*CFrame.Angles(0,0,0)
  622. local dec = Instance.new('Decal',shot)
  623. dec.Texture = 'rbxassetid://148633485'
  624. local dec2 = Instance.new('Decal',shot)
  625. dec2.Texture = 'rbxassetid://148633485'
  626. dec2.Face = Enum.NormalId.Back
  627. local heck = Instance.new('BodyVelocity',shot)
  628. heck.Velocity = (shot.CFrame*CFrame.Angles(0,0,0)).lookVector*120
  629. shot.Touched:connect(function(hit)
  630. if hit.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent ~= chr then
  631. webshot(hit.Parent)
  632. shot:Destroy()
  633. elseif hit.Parent.Parent:FindFirstChildOfClass('Humanoid') and hit.Parent.Parent ~= chr then
  634. webshot(hit.Parent.Parent)
  635. shot:Destroy()
  636. elseif hit.Parent.Parent:FindFirstChildOfClass('Humanoid') == nil and hit.Parent:FindFirstChildOfClass('Humanoid') == nil then
  637. shot:Destroy()
  638. end
  639. end)
  640. wait(1)
  641. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p)*CFrame.Angles(0,math.pi/2,0)
  642. shooting = false
  643. end
  644. elseif key == "c" and rope == nil then
  645. if crawling then
  646. crawling = false
  647. txt2.Text = "Toggle wall climb on with C."
  648. else
  649. crawling = true
  650. txt2.Text = "Toggle wall climb off with C."
  651. end
  652. elseif key == "z" and rope == nil and wing1 == nil and wing2 == nil then
  653. local plr = game.Players.LocalPlayer
  654. if chr:FindFirstChild('HumanoidRootPart') and chr.HumanoidRootPart:FindFirstChild('RootJoint') then
  655. chr.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(180))
  656. end
  657. if chr.Torso:FindFirstChild('Right Shoulder') then
  658. chr.Torso["Right Shoulder"].C0 = CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))
  659. end
  660. if chr.Torso:FindFirstChild('Left Shoulder') then
  661. chr.Torso["Left Shoulder"].C0 = CFrame.new(-1.5,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(-90))
  662. end
  663. if chr:FindFirstChildOfClass('Humanoid'):FindFirstChild('Animator') and chr:FindFirstChild('Animate') then
  664. animator = chr:FindFirstChildOfClass('Humanoid'):FindFirstChild('Animator')
  665. animator:remove()
  666. chr.Animate.Disabled = true
  667. end
  668. if chr:FindFirstChildOfClass('Humanoid') then
  669. chr:FindFirstChildOfClass('Humanoid').HipHeight = -3
  670. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 40
  671. end
  672. if chr:FindFirstChild('Torso') then
  673. wing1 = Instance.new('WedgePart',chr)
  674. wing1.Size = Vector3.new(0.2,1.5,3)
  675. wing1.Transparency = 1
  676. local dec = Instance.new('Decal',wing1)
  677. dec.Texture = 'http://www.roblox.com/asset/?id=148633485'
  678. dec.Face = Enum.NormalId.Right
  679. local dec2 = Instance.new('Decal',wing1)
  680. dec2.Texture = 'http://www.roblox.com/asset/?id=148633485'
  681. dec2.Face = Enum.NormalId.Left
  682. local dec3 = Instance.new('Decal',wing1)
  683. dec3.Texture = 'http://www.roblox.com/asset/?id=148633485'
  684. dec3.Face = Enum.NormalId.Front
  685. local weld = Instance.new('Weld',wing1)
  686. weld.Part0 = wing1
  687. weld.Part1 = chr.Torso
  688. weld.C0 = CFrame.new(0,-1.5,1)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  689. wing2 = Instance.new('WedgePart',chr)
  690. wing2.Size = Vector3.new(0.2,1.5,3)
  691. wing2.Transparency = 1
  692. local dec4 = Instance.new('Decal',wing2)
  693. dec4.Texture = 'http://www.roblox.com/asset/?id=148633485'
  694. dec4.Face = Enum.NormalId.Right
  695. local dec5 = Instance.new('Decal',wing2)
  696. dec5.Texture = 'http://www.roblox.com/asset/?id=148633485'
  697. dec5.Face = Enum.NormalId.Left
  698. local dec6 = Instance.new('Decal',wing2)
  699. dec6.Texture = 'http://www.roblox.com/asset/?id=148633485'
  700. dec6.Face = Enum.NormalId.Front
  701. local weld2 = Instance.new('Weld',wing2)
  702. weld2.Part0 = wing2
  703. weld2.Part1 = chr.Torso
  704. weld2.C0 = CFrame.new(0,-1.5,1)*CFrame.Angles(math.rad(180),math.rad(270),math.rad(90))
  705. for i,v in pairs(chr:GetChildren()) do
  706. if v:IsA('Part') then
  707. v.Velocity = Vector3.new(0,0,0)
  708. local BodyForce = Instance.new('BodyForce',v)
  709. local Part = v
  710. BodyForce.Name = "stop destroying me"
  711. BodyForce.Force = Vector3.new(0,Part.Size.X * Part.Size.Y * Part.Size.Z * (game.Workspace.Gravity-45),0)
  712. end
  713. end
  714. end
  715. elseif key == string.char(8) then
  716. if game.CoreGui:FindFirstChild('hekking spiderman') then
  717. game.CoreGui:FindFirstChild('hekking spiderman'):Destroy()
  718. end
  719. elseif key == string.char(47) or key == string.char(48) then
  720. if chr:FindFirstChildOfClass('Humanoid') then
  721. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 30
  722. end
  723. end
  724. end)
  725.  
  726. mouse.KeyUp:connect(function(key)
  727. if key == "q" and rope ~= nil then
  728. working = false
  729. elseif key == "e" and rope ~= nil then
  730. working2 = false
  731. elseif key == "w" and rope ~= nil then
  732. forward = false
  733. elseif key == "s" and rope ~= nil then
  734. backward = false
  735. elseif key == "a" and rope ~= nil then
  736. left = false
  737. elseif key == "d" and rope ~= nil then
  738. right = false
  739. elseif key == "z" and wing1 ~= nil and wing2 ~= nil then
  740. if animator and chr:FindFirstChildOfClass('Humanoid') and chr:FindFirstChild('Animate') then
  741. animator.Parent = chr:FindFirstChildOfClass('Humanoid')
  742. chr.Animate.Disabled = false
  743. end
  744. if chr.Torso:FindFirstChild('Right Shoulder') then
  745. chr.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(0,math.pi/2,0)
  746. end
  747. if chr.Torso:FindFirstChild('Left Shoulder') then
  748. chr.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0)*CFrame.Angles(0,-math.pi/2,0)
  749. end
  750. if chr:FindFirstChild('HumanoidRootPart') and chr.HumanoidRootPart:FindFirstChild('RootJoint') then
  751. chr.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-270),math.rad(180),math.rad(0))
  752. end
  753. if chr:FindFirstChildOfClass('Humanoid') then
  754. chr:FindFirstChildOfClass('Humanoid').HipHeight = 0
  755. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
  756. end
  757. if wing1 then
  758. wing1:Destroy()
  759. wing1 = nil
  760. end
  761. if wing2 then
  762. wing2:Destroy()
  763. wing2 = nil
  764. end
  765. for i,v in pairs(plr.Character:GetChildren()) do
  766. if v:IsA('Part') then
  767. for a,c in pairs(v:GetChildren()) do
  768. if c:IsA('BodyForce') then
  769. c:Destroy()
  770. end
  771. end
  772. end
  773. end
  774. elseif key == string.char(47) or key == string.char(48) then
  775. if chr:FindFirstChildOfClass('Humanoid') then
  776. chr:FindFirstChildOfClass('Humanoid').WalkSpeed = 16
  777. end
  778. end
  779. end)
  780.  
  781. plr.CharacterAppearanceLoaded:connect(function()
  782. wait()
  783. for i,v in pairs(hats) do
  784. table.remove(hats,i)
  785. end
  786. if plr.Character:FindFirstChild('Torso') then
  787. local chr = plr.Character
  788. chr.Torso.Touched:connect(function(hit)
  789. if hit:IsA('TrussPart') == false and rope == nil and crawling and hit.CanCollide then
  790. local c = Instance.new('TrussPart',workspace.CurrentCamera)
  791. c.Anchored = true
  792. c.Transparency = 1
  793. c.CFrame = CFrame.new(chr.Torso.Position + (chr.Torso.CFrame.lookVector * 1), chr.Torso.Position + (chr.Torso.CFrame.lookVector * 12))
  794. game:GetService('Debris'):AddItem(c,0.5)
  795. end
  796. end)
  797. end
  798. end)
  799.  
  800. if plr.Character:FindFirstChild('Torso') then
  801. local chr = plr.Character
  802. chr.Torso.Touched:connect(function(hit)
  803. if hit:IsA('TrussPart') == false and rope == nil and crawling and hit.CanCollide then
  804. local c = Instance.new('TrussPart',workspace.CurrentCamera)
  805. c.Anchored = true
  806. c.Transparency = 1
  807. c.CFrame = CFrame.new(chr.Torso.Position + (chr.Torso.CFrame.lookVector * 1), chr.Torso.Position + (chr.Torso.CFrame.lookVector * 12))
  808. game:GetService('Debris'):AddItem(c,0.5)
  809. end
  810. end)
  811. end
  812.  
  813. game:GetService('RunService').Stepped:connect(function()
  814. chr = plr.Character
  815. local cam = game.Workspace.CurrentCamera
  816. for i,v in pairs(plr.PlayerGui:GetChildren()) do
  817. if v.Name == "SPOOOODA" then
  818. v:Destroy()
  819. end
  820. end
  821. if chr:FindFirstChild('HumanoidRootPart') and (cam.CoordinateFrame.p - chr.HumanoidRootPart.Position).magnitude < 2 then
  822. local haay = Instance.new('ScreenGui',plr.PlayerGui)
  823. haay.Name = "SPOOOODA"
  824. local img = Instance.new('ImageLabel',haay)
  825. img.Image = 'rbxassetid://744896574'
  826. img.BackgroundTransparency = 1
  827. img.Size = UDim2.new(1,0,1,0)
  828. end
  829. if plr.Character:FindFirstChild('Torso') then
  830. for a,c in pairs(plr.Character:GetChildren()) do
  831. for i,v in pairs(c:GetChildren()) do
  832. if v:IsA('BodyForce') and v.Name ~= "stop destroying me" then
  833. v:Destroy()
  834. end
  835. end
  836. end
  837. end
  838. if rope ~= nil and plr.Character and plr.Character:FindFirstChildOfClass('Humanoid') then
  839. plr.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true
  840. end
  841. if working then
  842. rope.Length = rope.Length-2
  843. if rope ~= nil and plr.Character and plr.Character:FindFirstChild('Torso') then
  844. for i,v in pairs(plr.Character:GetChildren()) do
  845. if v:IsA('Part') then
  846. local BodyForce = Instance.new('BodyForce',v)
  847. local Part = v
  848. BodyForce.Force = Vector3.new(0,Part.Size.X * Part.Size.Y * Part.Size.Z * 196.2,0)
  849. end
  850. end
  851. end
  852. end
  853. if working2 then
  854. rope.Length = rope.Length+1
  855. end
  856. if forward and plr.Character and plr.Character:FindFirstChild('Torso') then
  857. local force = Instance.new('BodyForce',plr.Character.Torso)
  858. force.Force = Vector3.new(cam.CFrame.lookVector.x*1000,0,cam.CFrame.lookVector.z*1000)
  859. end
  860. if right and plr.Character and plr.Character:FindFirstChild('Torso') then
  861. local force = Instance.new('BodyForce',plr.Character.Torso)
  862. force.Force = Vector3.new(cam.CFrame.rightVector.x*1000,0,cam.CFrame.rightVector.z*1000)
  863. end
  864. if left and plr.Character and plr.Character:FindFirstChild('Torso') then
  865. local force = Instance.new('BodyForce',plr.Character.Torso)
  866. force.Force = Vector3.new(-cam.CFrame.rightVector.x*1000,0,-cam.CFrame.rightVector.z*1000)
  867. end
  868. if backward and plr.Character and plr.Character:FindFirstChild('Torso') then
  869. local force = Instance.new('BodyForce',plr.Character.Torso)
  870. force.Force = Vector3.new(-cam.CFrame.lookVector.x*1000,0,-cam.CFrame.lookVector.z*1000)
  871. end
  872. for i,v in pairs(chr:GetChildren()) do
  873. if v:IsA('Part') and v.Anchored == true then
  874. v.Anchored = false
  875. end
  876. end
  877. if active then
  878. for i,v in pairs(plr.Character:GetChildren()) do
  879. if v:IsA('Accessory') then
  880. if v:FindFirstChildOfClass('Part') then
  881. if v:FindFirstChildOfClass('Part'):FindFirstChildOfClass('SpecialMesh') then
  882. if v:FindFirstChildOfClass('Part'):FindFirstChildOfClass('SpecialMesh').TextureId ~= "rbxassetid://454487924" then
  883. table.insert(hats,v:Clone())
  884. end
  885. end
  886. end
  887. v:Destroy()
  888. elseif v:IsA('Shirt') then
  889. if v.ShirtTemplate ~= 'rbxassetid://638689615' then
  890. table.insert(hats,v:Clone())
  891. end
  892. v:Destroy()
  893. elseif v:IsA('Pants') then
  894. if v.PantsTemplate ~= 'rbxassetid://638690509' then
  895. table.insert(hats,v:Clone())
  896. end
  897. v:Destroy()
  898. end
  899. end
  900. local shirt = Instance.new('Shirt',plr.Character)
  901. shirt.ShirtTemplate = 'rbxassetid://638689615'
  902. local pants = Instance.new('Pants',plr.Character)
  903. pants.PantsTemplate = 'rbxassetid://638690509'
  904. local ac = Instance.new('Accessory',plr.Character)
  905. local pa = Instance.new('Part',ac)
  906. pa.Size = Vector3.new(1,1,1)
  907. local me = Instance.new('SpecialMesh',pa)
  908. me.MeshType = Enum.MeshType.FileMesh
  909. me.MeshId = 'rbxassetid://151354047'
  910. me.TextureId = 'rbxassetid://454487924'
  911. me.Scale = Vector3.new(1.26,1.26,1.26)
  912. local weld = Instance.new('Weld',pa)
  913. weld.Part0 = pa
  914. weld.Part1 = plr.Character.Head
  915. else
  916. for i,v in pairs(plr.Character:GetChildren()) do
  917. if v:IsA('Accessory') or v:IsA('Shirt') or v:IsA('Pants') then
  918. v:Destroy()
  919. end
  920. end
  921. for i,v in pairs(hats) do
  922. v:Clone().Parent = chr
  923. end
  924. end
  925. end)
  926.  
  927. --3DG
  928. --three dimensional grapples
  929. function clerp(c1,c2,al)
  930. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  931. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  932. for i,v in pairs(com1) do
  933. com1[i] = v+(com2[i]-v)*al
  934. end
  935. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  936. end
  937.  
  938. plr = game:service'Players'.LocalPlayer
  939. plrgui = plr.PlayerGui
  940. char = plr.Character
  941. mouse = plr:GetMouse()
  942. humanoid = char:findFirstChild("Humanoid")
  943. torso = char:findFirstChild("Torso")
  944. head = char.Head
  945. ra = char:findFirstChild("Right Arm")
  946. la = char:findFirstChild("Left Arm")
  947. rl = char:findFirstChild("Right Leg")
  948. ll = char:findFirstChild("Left Leg")
  949. rs = torso:findFirstChild("Right Shoulder")
  950. ls = torso:findFirstChild("Left Shoulder")
  951. rh = torso:findFirstChild("Right Hip")
  952. lh = torso:findFirstChild("Left Hip")
  953. neck = torso:findFirstChild("Neck")
  954. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  955. rootpart = char:findFirstChild("HumanoidRootPart")
  956. camera = workspace.CurrentCamera
  957. anim = char:findFirstChild("Animate")
  958. if anim then
  959. anim:Destroy()
  960. end
  961.  
  962.  
  963. game:service'Debris':AddItem(lal, 8)
  964.  
  965. local rm = Instance.new("Weld", torso)
  966. rm.C0 = CFrame.new(1.5, 0.5, 0)
  967. rm.C1 = CFrame.new(0, 0.5, 0)
  968. rm.Part0 = torso
  969. rm.Part1 = ra
  970. rm.Name = 'Right Shoulder'
  971.  
  972. local lm = Instance.new("Weld", torso)
  973. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  974. lm.C1 = CFrame.new(0, 0.5, 0)
  975. lm.Part0 = torso
  976. lm.Part1 = la
  977. lm.Name = 'Left Shoulder'
  978.  
  979. local rlegm = Instance.new("Weld", torso)
  980. rlegm.C0 = CFrame.new(0.5, -1, 0)
  981. rlegm.C1 = CFrame.new(0, 1, 0)
  982. rlegm.Part0 = torso
  983. rlegm.Part1 = rl
  984.  
  985. local llegm = Instance.new("Weld", torso)
  986. llegm.C0 = CFrame.new(-0.5, -1, 0)
  987. llegm.C1 = CFrame.new(0, 1, 0)
  988. llegm.Part0 = torso
  989. llegm.Part1 = ll
  990.  
  991. rj.C0 = CFrame.new()
  992. rj.C1 = CFrame.new()
  993.  
  994. neck.C0 = CFrame.new(0, 1, 0)
  995. neck.C1 = CFrame.new(0, -0.5, 0)
  996.  
  997.  
  998. local speed = 0.3
  999. local angle = 0
  1000. local anglespeed = 1
  1001. rsc0 = rm.C0
  1002. lsc0 = lm.C0
  1003. llc0 = llegm.C0
  1004. rlc0 = rlegm.C0
  1005. rootc0 = rj.C0
  1006. neckc0 = neck.C0
  1007.  
  1008. model = Instance.new('Model', char)
  1009. model.Name = '3DG'
  1010. function Weld(part0,part1,c1,c0)
  1011. local w = Instance.new('Weld', model)
  1012. w.Part0 = part0
  1013. w.Part1 = part1
  1014. w.C0 = c0 or CFrame.new()
  1015. w.C1 = c1 or CFrame.new()
  1016. end
  1017.  
  1018. local BasePart = Instance.new('Part')
  1019. BasePart.FormFactor = 'Custom'
  1020. BasePart.Material = 'Neon'
  1021. BasePart.CanCollide = false
  1022. BasePart.Locked = true
  1023. BasePart.TopSurface = 10
  1024. BasePart.BottomSurface = 10
  1025. BasePart.LeftSurface = 10
  1026. BasePart.RightSurface = 10
  1027. BasePart.FrontSurface = 10
  1028. BasePart.BackSurface = 10
  1029. BasePart:breakJoints()
  1030.  
  1031.  
  1032. for i = 1,2 do
  1033. local strap = BasePart:clone()
  1034. strap.Size = Vector3.new(1.025,.2,1.025)
  1035. strap.Parent = model
  1036. strap.BrickColor = BrickColor.new()
  1037. strap:BreakJoints()
  1038. Weld(strap, la, CFrame.new(0, .1 - i/3,0))
  1039. end
  1040.  
  1041. for i = 1,2 do
  1042. local strap = BasePart:clone()
  1043. strap.Size = Vector3.new(1.025,.2,1.025)
  1044. strap.Parent = model
  1045. strap.BrickColor = BrickColor.new()
  1046. strap:BreakJoints()
  1047. Weld(strap, ra, CFrame.new(0, .1 - i/3,0))
  1048. end
  1049.  
  1050. local ropeStart = BasePart:clone()
  1051. ropeStart.Size = Vector3.new(0,0,0)
  1052. ropeStart.Parent = model
  1053. ropeStart.BrickColor = BrickColor.new()
  1054. ropeStart:BreakJoints()
  1055. Weld(ropeStart, ra, CFrame.new(-.45, -.5, 0))
  1056. local ropeStart2 = BasePart:clone()
  1057. ropeStart2.Size = Vector3.new(0,0,0)
  1058. ropeStart2.Parent = model
  1059. ropeStart2.BrickColor = BrickColor.new()
  1060. ropeStart2:BreakJoints()
  1061. Weld(ropeStart2, la, CFrame.new(.45, -.5, 0))
  1062.  
  1063. local ropeCont = BasePart:clone()
  1064. ropeCont.Size = Vector3.new(.8,.2,.8)
  1065. ropeCont.Parent = model
  1066. ropeCont.BrickColor = BrickColor.new(199)
  1067. ropeCont:BreakJoints()
  1068. Instance.new('CylinderMesh', ropeCont)
  1069. Weld(ropeCont, la, CFrame.new(0,0,0), CFrame.Angles(math.pi/2, math.pi/2, 0))
  1070. local ropeCont2 = BasePart:clone()
  1071. ropeCont2.Size = Vector3.new(.8,.2,.8)
  1072. ropeCont2.Parent = model
  1073. ropeCont2.BrickColor = BrickColor.new(199)
  1074. ropeCont2:BreakJoints()
  1075. Instance.new('CylinderMesh', ropeCont2)
  1076. Weld(ropeCont2, ra, CFrame.new(0,0,0), CFrame.Angles(math.pi/2, math.pi/2, 0))
  1077.  
  1078. local GasTank = BasePart:clone()
  1079. GasTank.Size = Vector3.new(0,0,0)
  1080. GasTank.Parent = model
  1081. GasTank.BrickColor = BrickColor.new(194)
  1082. GasTank:BreakJoints()
  1083. Instance.new('SpecialMesh', GasTank)
  1084. Weld(GasTank, ra, CFrame.new(0, -.25, .5))
  1085. local GasTank2 = BasePart:clone()
  1086. GasTank2.Size = Vector3.new(0,0,0)
  1087. GasTank2.Parent = model
  1088. GasTank2.BrickColor = BrickColor.new(194)
  1089. GasTank2:BreakJoints()
  1090. Instance.new('SpecialMesh', GasTank2)
  1091. Weld(GasTank2, la, CFrame.new(0, -.25, .5))
  1092.  
  1093. local pa = BasePart:clone()
  1094. pa.BrickColor = BrickColor.new()
  1095. pa.Anchored = true
  1096. pa.Size = Vector3.new(.5,1,.5)
  1097. local special = Instance.new('SpecialMesh', pa)
  1098. special.MeshId = "rbxassetid://1033714"
  1099. special.Scale = Vector3.new(.25,2,.25)
  1100. local ropePA = BasePart:clone()
  1101. ropePA.Parent = pa
  1102. ropePA.Anchored = true
  1103. ropePA.BrickColor = BrickColor.new'White'
  1104. Instance.new('CylinderMesh', ropePA).Scale = Vector3.new(.25,1,.25)
  1105.  
  1106. local pa2 = BasePart:clone()
  1107. pa2.BrickColor = BrickColor.new()
  1108. pa2.Anchored = true
  1109. pa2.Size = Vector3.new(.5,1,.5)
  1110. local special = Instance.new('SpecialMesh', pa2)
  1111. special.MeshId = "rbxassetid://1033714"
  1112. special.Scale = Vector3.new(.25,2,.25)
  1113. local ropePA2 = BasePart:clone()
  1114. ropePA2.Parent = pa2
  1115. ropePA2.Anchored = true
  1116. ropePA2.BrickColor = BrickColor.new'White'
  1117. Instance.new('CylinderMesh', ropePA2).Scale = Vector3.new(.25,1,.25)
  1118.  
  1119. local pa3 = BasePart:clone()
  1120. pa3.Transparency = 1
  1121. pa3.Anchored = true
  1122. pa3.Size = Vector3.new(2,2,2)
  1123.  
  1124. local torso3 = Instance.new('Part', char)
  1125. torso3.Name = 'FakeTorsoForStuff'
  1126. torso3.Size = torso.Size
  1127. torso3.Transparency = 1
  1128. torso3:breakJoints()
  1129. Weld(torso3, torso)
  1130.  
  1131. Instance.new('PointLight', torso)
  1132.  
  1133. local jumpmode
  1134.  
  1135. local SGui = Instance.new('ScreenGui', plr.PlayerGui)
  1136. local JumpButton = Instance.new('TextButton', SGui)
  1137. JumpButton.BackgroundColor = BrickColor.new('Dark stone grey')
  1138. JumpButton.BorderSizePixel = 4
  1139. JumpButton.TextColor3 = Color3.new(1,1,1)
  1140. JumpButton.BorderColor3 = Color3.new()
  1141. JumpButton.TextStrokeTransparency = .5
  1142. JumpButton.FontSize = 'Size12'
  1143. JumpButton.Text = 'Thrust up when grappled'
  1144. JumpButton.Size = UDim2.new(0, 250, 0, 50)
  1145. JumpButton.Position = UDim2.new(1, -250, 1, -50)
  1146. local OnOff = Instance.new('Frame', JumpButton)
  1147. OnOff.BackgroundColor3 = Color3.new()
  1148. OnOff.BorderSizePixel = 0
  1149. OnOff.Size = UDim2.new(.8, 0, 0, 5)
  1150. OnOff.Position = UDim2.new(.1, 0, 1, -10)
  1151. JumpButton.MouseButton1Down:connect(function()
  1152. jumpmode = not jumpmode
  1153. if jumpmode then
  1154. OnOff.BackgroundColor3 = Color3.new(0,1,0)
  1155. else
  1156. OnOff.BackgroundColor3 = Color3.new()
  1157. end
  1158. end)
  1159.  
  1160.  
  1161.  
  1162. local bodygyro = Instance.new('BodyGyro', torso)
  1163. bodygyro.maxTorque = Vector3.new(14e16,14e16,14e16)
  1164. bodygyro.P = 10000
  1165.  
  1166. ro=Instance.new("RocketPropulsion",rootpart)
  1167. ro.Name = 'RockatPropoolsun'
  1168. ro.MaxSpeed=200
  1169. ro.MaxThrust=8000
  1170. ro.TurnP = 0
  1171. ro.MaxTorque=Vector3.new(14e16,14e16,14e16)
  1172.  
  1173. ro2=Instance.new("RocketPropulsion",torso)
  1174. ro2.Name = 'RockatPropoolsun2'
  1175. ro2.MaxSpeed=200
  1176. ro2.MaxThrust=8000
  1177. ro2.TurnP = 0
  1178. ro2.MaxTorque=Vector3.new(14e16,14e16,14e16)
  1179. local run
  1180. mouse.KeyDown:connect(function(k)
  1181. if k:byte() == 48 then
  1182. run = not run
  1183. if run then
  1184. humanoid.WalkSpeed = 22
  1185. else
  1186. humanoid.WalkSpeed = 16
  1187. end
  1188. end
  1189. if k:byte() == 32 then
  1190. if Grapple1 or Grapple2 then
  1191. wait()
  1192. humanoid.PlatformStand = true
  1193. rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
  1194. llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
  1195. if pa3.Parent ~= nil then
  1196. ro3:Fire()
  1197. end
  1198. if Grapple1 then
  1199. ro:Fire()
  1200. end
  1201. if Grapple2 then
  1202. ro2:Fire()
  1203. end
  1204. end
  1205. end
  1206. if k=="q" then
  1207. local sound = Instance.new('Sound', head)
  1208. sound.SoundId = "rbxassetid://151733071"
  1209. sound.Pitch = 3+math.random()/3
  1210. sound.Volume = .8
  1211. sound:play()
  1212. game:service'Debris':AddItem(sound,4)
  1213. lm.Parent = torso
  1214. pa.CFrame = la.CFrame
  1215. local grapplepos = pa.Position
  1216. local grapplevelocity = (mouse.Hit.p - grapplepos).unit*50
  1217. local lastgrapplepos = pa.Position
  1218. while wait() do
  1219. lastgrapplepos = grapplepos
  1220. grapplepos = grapplepos + grapplevelocity
  1221. local RayCast = Ray.new(lastgrapplepos, (grapplepos - lastgrapplepos))
  1222. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  1223. if (torso.Position - pa.Position).magnitude > 900 then
  1224. pa.Parent = nil
  1225. break
  1226. end
  1227. pa.Anchored = true
  1228. pa.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  1229. pa.Parent = char
  1230. if hit then
  1231. local rotX,rotY,rotZ = pa.CFrame:toEulerAnglesXYZ()
  1232. local sound = Instance.new('Sound', head)
  1233. sound.SoundId = "rbxassetid://151733071"
  1234. sound.Pitch = 1.2+math.random()/3
  1235. sound.Volume = .25
  1236. sound:play()
  1237. game:service'Debris':AddItem(sound,4)
  1238. pa.Parent = char
  1239. pa.CFrame=CFrame.new(hitpos.x, hitpos.y, hitpos.z)*CFrame.Angles(rotX,rotY,rotZ)*CFrame.Angles(math.pi,0,0)
  1240. ro.Target=pa
  1241. lm.Parent = torso
  1242. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  1243. local hitz, enz = workspace:FindPartOnRay(ray, char)
  1244. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  1245. if hum then
  1246. hum:TakeDamage(math.random(7,11))
  1247. end
  1248. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  1249. if hum then
  1250. hum:TakeDamage(math.random(7,11))
  1251. end
  1252. if pa.Parent ~= nil and humanoid.PlatformStand or not (hitz and hitz.CanCollide) then
  1253. ro:Fire()
  1254. if jumpmode then
  1255. humanoid.Jump = true
  1256. end
  1257. end
  1258. Gweld = Instance.new("Weld", char)
  1259. Gweld.C0 = hit.CFrame:toObjectSpace(pa.CFrame)
  1260. Gweld.Part0 = hit
  1261. Gweld.Part1 = pa
  1262. pa.Anchored = false
  1263. Grapple1Hit = hit
  1264. Grapple1 = true
  1265. break
  1266. end
  1267. pa.Anchored = true
  1268. pa.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  1269. end
  1270. end
  1271.  
  1272. if k=="e" then
  1273. local sound = Instance.new('Sound', head)
  1274. sound.SoundId = "rbxassetid://151733071"
  1275. sound.Pitch = 3+math.random()/3
  1276. sound.Volume = .8
  1277. sound:play()
  1278. game:service'Debris':AddItem(sound,4)
  1279. pa2.CFrame = ra.CFrame
  1280. rm.Parent = torso
  1281. local grapplepos = pa2.Position
  1282. local grapplevelocity = (mouse.Hit.p - grapplepos).unit*50
  1283. local lastgrapplepos = pa2.Position
  1284. while wait() do
  1285. lastgrapplepos = grapplepos
  1286. grapplepos = grapplepos + grapplevelocity
  1287. local RayCast = Ray.new(lastgrapplepos, (grapplepos - lastgrapplepos))
  1288. local hit, hitpos = workspace:FindPartOnRay(RayCast, char)
  1289. if (torso.Position - pa2.Position).magnitude > 900 then
  1290. pa2.Parent = nil
  1291. break
  1292. end
  1293. pa2.Anchored = true
  1294. pa2.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  1295. pa2.Parent = char
  1296. if hit then
  1297. local rotX,rotY,rotZ = pa2.CFrame:toEulerAnglesXYZ()
  1298. local sound = Instance.new('Sound', head)
  1299. sound.SoundId = "rbxassetid://151733071"
  1300. sound.Pitch = 1.2+math.random()/3
  1301. sound.Volume = .25
  1302. sound:play()
  1303. game:service'Debris':AddItem(sound,4)
  1304. pa2.Parent = char
  1305. pa2.CFrame=CFrame.new(hitpos.x, hitpos.y, hitpos.z)*CFrame.Angles(rotX,rotY,rotZ)*CFrame.Angles(math.pi,0,0)
  1306. ro2.Target=pa2
  1307. rm.Parent = torso
  1308. local ray = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  1309. local hitz, enz = workspace:FindPartOnRay(ray, char)
  1310. local hum = hit and hit.Parent and hit.Parent:findFirstChild'Humanoid'
  1311. if hum then
  1312. hum:TakeDamage(math.random(7,11))
  1313. end
  1314. local hum = hit and hit.Parent and hit.Parent.Parent and hit.Parent.Parent:findFirstChild'Humanoid'
  1315. if hum then
  1316. hum:TakeDamage(math.random(7,11))
  1317. end
  1318. if pa2.Parent ~= nil and humanoid.PlatformStand or not (hitz and hitz.CanCollide) then
  1319. if jumpmode then
  1320. humanoid.Jump = true
  1321. end
  1322. ro2:Fire()
  1323. end
  1324. Gweld2 = Instance.new("Weld", char)
  1325. Gweld2.C0 = hit.CFrame:toObjectSpace(pa2.CFrame)
  1326. Gweld2.Part0 = hit
  1327. Gweld2.Part1 = pa2
  1328. pa2.Anchored = false
  1329. Grapple2Hit = hit
  1330. Grapple2 = true
  1331. break
  1332. end
  1333. pa2.Anchored = true
  1334. pa2.CFrame = CFrame.new(grapplepos, grapplepos+grapplevelocity) * CFrame.Angles(math.pi/2, 0, 0)
  1335. end
  1336. end
  1337. end)
  1338.  
  1339. mouse.KeyUp:connect(function(k)
  1340. if k=="q" then
  1341. pcall(function() Gweld:remove() end)
  1342. game:service'RunService'.RenderStepped:wait()
  1343. pcall(function() pa.Parent = nil Grapple1 = false end)
  1344. pcall(function() ro:Abort() end)
  1345. game:service'RunService'.RenderStepped:wait()
  1346. pcall(function() ro2.Target=pa2 if Grapple2 and humanoid.PlatformStand or Grapple2 and not hitz then ro2:Fire() end end)
  1347. elseif k=="e" then
  1348. pcall(function() Gweld2:remove() end)
  1349. game:service'RunService'.RenderStepped:wait()
  1350. pcall(function() pa2.Parent = nil Grapple2 = false end)
  1351. pcall(function() ro2:Abort() end)
  1352. game:service'RunService'.RenderStepped:wait()
  1353. pcall(function() ro.Target=pa if Grapple1 and humanoid.PlatformStand or Grapple1 and not hitz then ro:Fire() end end)
  1354. end
  1355. end)
  1356.  
  1357.  
  1358. local MidPointUsed = false
  1359. local TorsoSmoke = Instance.new('Smoke', torso)
  1360.  
  1361.  
  1362. game:service'RunService'.RenderStepped:connect(function()
  1363. angle = (angle % 100) + anglespeed/10
  1364. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  1365. local rscf = rsc0
  1366. local lscf = lsc0
  1367. local rlcf = rlc0
  1368. local llcf = llc0
  1369. local rjcf = rootc0
  1370. local ncf = neckc0
  1371. for i,object in pairs(char:children()) do
  1372. if object:IsA("Tool") then
  1373. tool = true
  1374. if not debounce then
  1375. for x,value in pairs(object:children()) do
  1376. if value:IsA("StringValue") and value.Name == "toolanim" and value.Value == "Slash" then
  1377. debounce = true
  1378. coroutine.wrap(function()
  1379. slashing = true
  1380. wait(.25)
  1381. slashing = false
  1382. debounce = false
  1383. end)()
  1384. value:Destroy()
  1385. end
  1386. end
  1387. end
  1388. elseif not object:IsA'Tool' then
  1389. tool = false
  1390. end
  1391. end
  1392. if not humanoid.PlatformStand then
  1393. if humanoid.Sit == true then
  1394. speed = 0.2
  1395. anglespeed = 1/4
  1396. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1397. rjcf = rootc0
  1398. rscf = rsc0 * CFrame.Angles(math.pi/2+math.sin(-angle)*0.05, 0, 0)
  1399. lscf = lsc0 * CFrame.Angles(math.pi/2+math.sin(-angle)*0.05, 0, 0)
  1400. rlcf = rlc0 * CFrame.Angles(math.pi/2+-math.rad(.2), 0, math.rad(.2))
  1401. llcf = llc0 * CFrame.Angles(math.pi/2+math.rad(.2), 0, -math.rad(.2))
  1402. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1403. anglespeed = 1/4
  1404. speed = 0.2
  1405. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.075, 0, 0)
  1406. rjcf = rootc0
  1407. rscf = rsc0 * CFrame.new(0, math.sin(angle)*0.05, 0) * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  1408. lscf = lsc0 * CFrame.new(0, math.sin(angle)*0.05, 0) * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  1409. rlcf = rlc0 * CFrame.Angles(-math.rad(.2), 0, math.rad(.2))
  1410. llcf = llc0 * CFrame.Angles(math.rad(.2), 0, -math.rad(.2))
  1411. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  1412. anglespeed = 1.7
  1413. speed = 0.25
  1414. anglespeed = 2.2
  1415. speed = 0.25
  1416. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1417. rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle))*.055, 0) * CFrame.Angles(-math.rad(1), 0, 0)
  1418. rscf = rsc0 * CFrame.Angles(math.sin(angle)*.5, 0, -math.rad(1))
  1419. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*.5, 0, math.rad(1))
  1420. 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))
  1421. 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))
  1422. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  1423. local RotVelocityZ = torso.RotVelocity.Y
  1424. if RotVelocityZ >= 15 then
  1425. RotVelocityZ = 15
  1426. elseif RotVelocityZ <= -15 then
  1427. RotVelocityZ = -15
  1428. end
  1429. speed = 0.25
  1430. anglespeed = 2.7
  1431. ncf = neckc0 * CFrame.Angles(0, 0, -math.sin(angle)*.045)
  1432. 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)
  1433. 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)
  1434. 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)
  1435. 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))
  1436. 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))
  1437. end
  1438. if tool then
  1439. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, 0)
  1440. if slashing then
  1441. rscf = rsc0
  1442. end
  1443. end
  1444. end
  1445. if pa2.Parent == nil then
  1446. rm.C0 = clerp(rm.C0,rscf,speed)
  1447. end
  1448. if pa.Parent == nil then
  1449. lm.C0 = clerp(lm.C0,lscf,speed)
  1450. end
  1451. rj.C0 = clerp(rj.C0,rjcf,speed)
  1452. neck.C0 = clerp(neck.C0,ncf,speed)
  1453. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1454. llegm.C0 = clerp(llegm.C0,llcf,speed)
  1455. end)
  1456.  
  1457.  
  1458.  
  1459. game:service'RunService'.RenderStepped:connect(function()
  1460. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 225 then
  1461. TorsoSmoke.Enabled = true
  1462. else
  1463. TorsoSmoke.Enabled = false
  1464. end
  1465. local ray = Ray.new(rootpart.Position, Vector3.new(0, -7, 0))
  1466. local hitz, enz = workspace:FindPartOnRay(ray, char)
  1467. if hitz and hitz.CanCollide and pa.Parent ~= char and pa2.Parent ~= char then
  1468. bodygyro.Parent = nil
  1469. humanoid.PlatformStand = false
  1470. end
  1471. if pa.Parent ~= nil or Grapple1 then
  1472. local size = (ropeStart2.Position-pa.Position).magnitude
  1473. ropePA.Size = Vector3.new(.2, size, .2)
  1474. ropePA.CFrame = CFrame.new(ropeStart2.Position, pa.Position) * CFrame.Angles(math.pi/2, 0, 0) * CFrame.new(0, -size/2, 0)
  1475. lm.C0 = CFrame.new(Vector3.new(lsc0.x, lsc0.y, lsc0.z), torso.CFrame:pointToObjectSpace(pa.Position)) * CFrame.Angles(math.pi/2, 0, 0)
  1476. else
  1477. if not debounce and humanoid.PlatformStand then
  1478. lm.C0 = lsc0 * CFrame.Angles(-.15, 0, -.15)
  1479. end
  1480. end
  1481. if pa2.Parent ~= nil or Grapple2 then
  1482. local size = (ropeStart.Position-pa2.Position).magnitude
  1483. ropePA2.Size = Vector3.new(.2, size, .2)
  1484. ropePA2.CFrame = CFrame.new(ropeStart.Position, pa2.Position) * CFrame.Angles(math.pi/2, 0, 0) * CFrame.new(0, -size/2, 0)
  1485. rm.C0 = CFrame.new(Vector3.new(rsc0.x, rsc0.y, rsc0.z), torso.CFrame:pointToObjectSpace(pa2.Position)) * CFrame.Angles(math.pi/2, 0, 0)
  1486. else
  1487. if not debounce and humanoid.PlatformStand then
  1488. rm.C0 = rsc0 * CFrame.Angles(-.15, 0, .15)
  1489. end
  1490. end
  1491. if Grapple1 and Grapple1Hit.Parent == nil then
  1492. pcall(function() Gweld:remove() end)
  1493. pa.Parent = nil
  1494. Grapple1 = false
  1495. ro:Abort()
  1496. end
  1497. if Grapple2 and Grapple2Hit.Parent == nil then
  1498. pcall(function() Gweld2:remove() end)
  1499. pa2.Parent = nil
  1500. Grapple2 = false
  1501. ro2:Abort()
  1502. end
  1503. if Grapple1 and Grapple2 and (humanoid.PlatformStand or not hitz) then
  1504. local distance = (pa.Position-pa2.Position).magnitude
  1505. bodygyro.Parent = torso
  1506. torso.CFrame = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
  1507. bodygyro.cframe = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
  1508. pa3.Parent = char
  1509. if distance <= .5 then
  1510. pa3.CFrame = pa.CFrame
  1511. elseif distance > .5 then
  1512. pa3.CFrame = CFrame.new(pa.Position, pa2.Position) * CFrame.new(0, 0, -distance/2)
  1513. end
  1514. if not MidPointUsed then
  1515. ro3=Instance.new("RocketPropulsion",torso3)
  1516. ro3.Name = 'RockatPropoolsun3'
  1517. ro3.MaxSpeed=250
  1518. ro3.MaxThrust=16000
  1519. ro3.TurnP = 0
  1520. ro3.TurnD = 0
  1521. ro3.MaxTorque=Vector3.new(14e16,14e16,14e16)
  1522. if humanoid.PlatformStand or not hitz then
  1523. ro:Abort()
  1524. ro2:Abort()
  1525. end
  1526. ro3.Target = pa3
  1527. if humanoid.PlatformStand or not hitz then
  1528. ro3:Fire()
  1529. end
  1530. MidPointUsed = true
  1531. end
  1532. elseif (not Grapple1 or not Grapple2) and MidPointUsed == true and (humanoid.PlatformStand or not hitz) then
  1533. pa3.Parent = nil
  1534. MidPointUsed = false
  1535. ro3:Abort()
  1536. ro3:Destroy()
  1537. if Grapple1 then
  1538. ro:Fire()
  1539. end
  1540. if Grapple2 then
  1541. ro2:Fire()
  1542. end
  1543. end
  1544. if not Grapple1 then
  1545. pcall(function() Gweld:remove() end)
  1546. end
  1547. if not Grapple2 then
  1548. pcall(function() Gweld2:remove() end)
  1549. end
  1550. if (Grapple1 or Grapple2) and not hitz then
  1551. bodygyro.Parent = torso
  1552. humanoid.PlatformStand = true
  1553. rlegm.Parent = torso
  1554. llegm.Parent = torso
  1555. lm.Parent = torso
  1556. rm.Parent = torso
  1557. rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
  1558. llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
  1559. end
  1560. if (Grapple1 or Grapple2) and not hitz or humanoid.PlatformStand then
  1561. bodygyro.Parent = torso
  1562. bodygyro.cframe = CFrame.new(torso.Position, Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)) * CFrame.Angles(0, math.pi, 0)
  1563. rlegm.Parent = torso
  1564. llegm.Parent = torso
  1565. rlegm.C0 = rlc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, .1)
  1566. llegm.C0 = llc0 * CFrame.new(0, .5, -.65) * CFrame.Angles(-math.pi/8, 0, -.1)
  1567. end
  1568. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement