Advertisement
megaluxe

knife

Aug 24th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.68 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};
  2. do
  3. script.Parent = InternalData.RealOwner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
  5. local function createObject (connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. local UserInputService = createObject({"InputBegan","InputEnded"},{})
  17. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  18. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  19. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  20. Event.OnServerEvent:Connect(function(FiredBy,Input)
  21. if FiredBy ~= InternalData.RealOwner then return end
  22. if Input.MouseEvent then
  23. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  24. Mouse:TriggerEvent("Move")
  25. elseif Input.Sound then
  26. if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end
  27. else
  28. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  29. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  30. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") 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. InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library)
  80. if Library == "RbxUtility" then
  81. return setmetatable({},{
  82. __tostring = function() return "RbxUtility" end;
  83. __index = function(self, Index)
  84. if Index:lower() == "create" then
  85. return function(Type)
  86. return function(Data)
  87. Data = Data or {}
  88. local Inst = Instance.new(Type)
  89. for x,y in pairs(Data) do
  90. if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end
  91. if y == owner then y = InternalData.RealOwner end
  92. Inst[x] = y
  93. end
  94. return Inst
  95. end
  96. end
  97. end
  98. return InternalData.LoadLibrary(Library)[Index]
  99. end
  100. })
  101. end
  102. return InternalData.LoadLibrary(Library)
  103. end
  104. InternalData.RealInstance = Instance;Instance = setmetatable({},{
  105. __index = function (self,Index)
  106. if Index:lower() == 'new' then
  107. return function (Type, Parent)
  108. if Parent == owner then Parent = InternalData.RealOwner end
  109. if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end
  110. local Real = InternalData.RealInstance.new(Type,Parent)
  111. if not Type then return end
  112. if Type == "BillboardGui" then
  113. local ToReturn = setmetatable({},{
  114. __index = function (self,Index)
  115. if type(Real[Index]) == "function" then
  116. if Index:lower() == "clone" then
  117. return function (self)
  118. local Real = Real:Clone()
  119. local ToReturn = setmetatable({RealObject = Real},{
  120. __index = function (self,Index)
  121. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  122. return Real[Index]
  123. end;
  124. __newindex = function (self,Index,Value)
  125. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  126. if Value == owner then Value = InternalData.RealOwner end
  127. Real[Index] = Value
  128. end;
  129. __tostring = function(self) return tostring(Real) end;
  130. })
  131. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  132. end
  133. end
  134. return function (self,...) return Real[Index](Real,...)end
  135. end
  136. return Real[Index]
  137. end;
  138. __newindex = function (self,Index,Value)
  139. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  140. if Value == owner then Value = InternalData.RealOwner end
  141. Real[Index] = Value
  142. end;
  143. __tostring = function(self) return tostring(Real) end;
  144. })
  145. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  146. elseif Type:lower() == "sound" then
  147. Real.Parent = owner.Character;
  148. local ToReturn = setmetatable({RealObject = Real},{
  149. __index = function (self,Index)
  150. if Index:lower() == "playbackloudness" then
  151. return InternalData.SoundLoudness[Real] or 0
  152. elseif type(Real[Index]) == "function" then
  153. if Index:lower() == "clone" then
  154. return function (self)
  155. local Real = Real:Clone()
  156. local ToReturn = setmetatable({},{
  157. __index = function (self,Index)
  158. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  159. return Real[Index]
  160. end;
  161. __newindex = function (self,Index,Value)
  162. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  163. if Value == owner then Value = InternalData.RealOwner end
  164. Real[Index] = Value
  165. end;
  166. __tostring = function(self) return tostring(Real) end;
  167. })
  168. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  169. end
  170. end
  171. return function (self,...) return Real[Index](Real,...)end
  172. end
  173. return Real[Index]
  174. end;
  175. __newindex = function (self,Index,Value)
  176. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  177. if Value == owner then Value = InternalData.RealOwner end
  178. Real[Index] = Value
  179. end;
  180. __tostring = function(self) return tostring(Real) end;
  181. })
  182. InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
  183. else
  184. local ToReturn = setmetatable({RealObject = Real},{
  185. __index = function (self,Index)
  186. if type(Real[Index]) == "function" then
  187. if Index:lower() == "clone" then
  188. return function (self)
  189. local Real = Real:Clone()
  190. local ToReturn = setmetatable({},{
  191. __index = function (self,Index)
  192. if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end
  193. return Real[Index]
  194. end;
  195. __newindex = function (self,Index,Value)
  196. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  197. if Value == owner then Value = InternalData.RealOwner end
  198. Real[Index] = Value
  199. end;
  200. __tostring = function(self) return tostring(Real) end;
  201. })
  202. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  203. end
  204. end
  205. return function (self,...) return Real[Index](Real,...)end
  206. end
  207. return Real[Index]
  208. end;
  209. __newindex = function (self,Index,Value)
  210. if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end
  211. if Value == owner then Value = InternalData.RealOwner end
  212. Real[Index] = Value
  213. end;
  214. __tostring = function(self) return tostring(Real) end;
  215. })
  216. InternalData.RealObjs[ToReturn] = Real;return ToReturn;
  217. end
  218. end
  219. end
  220. return InternalData.RealInstance[Index]
  221. end;
  222. __tostring = function(self) return tostring(InternalData.RealInstance) end;
  223. });
  224. InternalData.RealGame = game;game = setmetatable({},{
  225. __index = function (self,Index)
  226. if InternalData.RealGame[Index] then
  227. local Type = type(InternalData.RealGame[Index])
  228. if Type == "function" then
  229. if Index:lower() == "getservice" or Index:lower() == "service" then
  230. return function (self,Service)
  231. local FakeServices = {
  232. ["players"] = function()
  233. return setmetatable({},{
  234. __index = function (self2,Index2)
  235. local RealService = InternalData.RealGame:GetService(Service)
  236. local Type2 = type(RealService[Index2])
  237. if Type2 == "function" then
  238. return function (self,...) return RealService[Index2](RealService,...)end
  239. else
  240. if Index2:lower() == "localplayer" then return InternalData.NewOwner end
  241. return RealService[Index2]
  242. end
  243. end;
  244. __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end
  245. })
  246. end;
  247. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  248. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  249. ["debris"] = function()
  250. return setmetatable({},{
  251. __index = function(self2,Index2)
  252. local RealService = InternalData.RealGame:GetService(Service)
  253. local Type2 = type(RealService[Index2])
  254. if Type2 == "function" then
  255. if Index2:lower() == "additem" then
  256. return function (self,Item,Time)
  257. if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end
  258. return RealService:AddItem(Item,Time)
  259. end
  260. end
  261. return function (self,...) return RealService[Index2](RealService,...) end
  262. end
  263. return RealService[Index2]
  264. end;
  265. __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
  266. })
  267. end;
  268. ["runservice"] = function()
  269. return setmetatable({},{
  270. __index = function(self2,Index2)
  271. local RealService = InternalData.RealGame:GetService(Service)
  272. local Type2 = type(RealService[Index2])
  273. if Type2 == "function" then
  274. return function (self,...) return RealService[Index2](RealService,...) end
  275. else
  276. local RunServices = {
  277. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  278. ["renderstepped"] = function() return RealService["Stepped"] end
  279. }
  280. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  281. return RealService[Index2]
  282. end
  283. end;
  284. __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
  285. })
  286. end
  287. }
  288. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  289. return InternalData.RealGame:GetService(Service)
  290. end
  291. end
  292. return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end
  293. else
  294. if game:GetService(Index) then return game:GetService(Index) end
  295. return InternalData.RealGame[Index]
  296. end
  297. end
  298. return nil
  299. end;
  300. __tostring = function(self) return tostring(InternalData.game) end
  301. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
  302.  
  303. --//Paste script below this line.
  304. --By Rufus14 boi
  305. mouse = game.Players.LocalPlayer:GetMouse()
  306. --Converted with ttyyuu12345's model to script plugin v4
  307. function sandbox(var,func)
  308. local env = getfenv(func)
  309. local newenv = setmetatable({},{
  310. __index = function(self,k)
  311. if k=="script" then
  312. return var
  313. else
  314. return env[k]
  315. end
  316. end,
  317. })
  318. setfenv(func,newenv)
  319. return func
  320. end
  321. cors = {}
  322. mas = Instance.new("Model",game:GetService("Lighting"))
  323. Model0 = Instance.new("Model")
  324. Part1 = Instance.new("Part")
  325. SpecialMesh2 = Instance.new("SpecialMesh")
  326. Part3 = Instance.new("Part")
  327. Weld4 = Instance.new("Weld")
  328. Model0.Name = "bitch ass knife haha knife v3 reference"
  329. Model0.Parent = mas
  330. Part1.Name = "realknife"
  331. Part1.Parent = Model0
  332. Part1.Rotation = Vector3.new(0, -90, 0)
  333. Part1.CanCollide = false
  334. Part1.Size = Vector3.new(1.56900003, 0.259999305, 0.459999979)
  335. Part1.CFrame = CFrame.new(-20.8307228, 1.96215653, -28.7958698, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  336. Part1.BottomSurface = Enum.SurfaceType.Smooth
  337. Part1.TopSurface = Enum.SurfaceType.Smooth
  338. Part1.Position = Vector3.new(-20.8307228, 1.96215653, -28.7958698)
  339. Part1.Orientation = Vector3.new(0, -90, 0)
  340. SpecialMesh2.Parent = Part1
  341. SpecialMesh2.MeshId = "rbxassetid://430428354"
  342. SpecialMesh2.Scale = Vector3.new(0.349999994, 0.300000012, 0.300000012)
  343. SpecialMesh2.TextureId = "rbxassetid://430428397"
  344. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  345. SpecialMesh2.Scale = Vector3.new(0.349999994, 0.300000012, 0.300000012)
  346. Part3.Name = "hitbox"
  347. Part3.Parent = Model0
  348. Part3.Transparency = 1
  349. Part3.Size = Vector3.new(0.0799999982, 1, 4.23999929)
  350. Part3.CFrame = CFrame.new(-20.8435993, 1.97891688, -28.7396412, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  351. Part3.BottomSurface = Enum.SurfaceType.Smooth
  352. Part3.TopSurface = Enum.SurfaceType.Smooth
  353. Part3.Position = Vector3.new(-20.8435993, 1.97891688, -28.7396412)
  354. Part3.CanCollide = false
  355. Weld4.Parent = Part3
  356. Weld4.C0 = CFrame.new(0.0128765106, -0.0167603493, -0.0562286377, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  357. Weld4.Part0 = Part3
  358. Weld4.Part1 = Part1
  359. for i,v in pairs(mas:GetChildren()) do
  360. v.Parent = game:GetService("Players").LocalPlayer.Character
  361. pcall(function() v:MakeJoints() end)
  362. end
  363. mas:Destroy()
  364. for i,v in pairs(cors) do
  365. spawn(function()
  366. pcall(v)
  367. end)
  368. end
  369. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  370. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  371. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  372. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  373. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  374. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  375. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  376. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  377. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  378. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  379. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  380. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  381. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  382. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  383. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  384. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  385. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  386. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  387. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  388. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  389. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  390. local waeld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
  391. waeld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  392. waeld.Part1 = Part1
  393. waeld.C0 = CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  394. canuse = true
  395. throwie = false
  396. damged = false
  397. throwval = 0
  398. hitwall = Instance.new("Sound", Model0.realknife)
  399. hitwall.SoundId = "rbxassetid://214755079"
  400. hitwall.Volume = 10
  401. throwB = Instance.new("Sound", Model0.realknife)
  402. throwB.SoundId = "rbxassetid://166423113"
  403. throwB.Volume = 10
  404. slash = Instance.new("Sound", Model0.realknife)
  405. slash.SoundId = "rbxassetid://978101945"
  406. slash.Volume = 10
  407. for i,v in pairs(cors) do
  408. spawn(function()
  409. pcall(v)
  410. end)
  411. end
  412. function stab(key)
  413. if canuse then
  414. canuse = false
  415. for i = 0,1 , 0.05 do
  416. headweld.C0 = headweld.C0:lerp(CFrame.new(-1.90734863e-06, 1.50000036, 0, 0.532369733, 3.7252903e-09, 0.84651196, -1.86264515e-09, 0.99999994, 3.7252903e-09, -0.84651196, 9.31322575e-10, 0.532369792),i)
  417. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.204963252, 0.0110486243, -0.978707314, -0.0538272448, 0.998550236, 0, 0.977288425, 0.0526811182, 0.205260843),i)
  418. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.62274551, 0.625679851, -0.324334621, 0.892506719, 0.394126594, -0.219307721, -0.335090578, 0.253951877, -0.907316029, -0.301903814, 0.88327384, 0.358722001),i)
  419. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.38278389, 0.358563185, -0.35576582, 0.622085154, 0.589078009, 0.515749037, 0.520516813, 0.180908665, -0.834466279, -0.584869266, 0.787565291, -0.194084436),i)
  420. game:GetService("RunService").RenderStepped:wait()
  421. end
  422. slash:Play()
  423. damged = true
  424. for i = 0,1 , 0.07 do
  425. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0235719681, -1.80648994, -0.295873642, 0.999999881, -1.41840428e-06, -2.03028321e-07, 4.39584255e-07, 0.17365025, 0.984807372, -1.45006925e-06, -0.984806836, 0.173650339) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),i)
  426. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999952, -1.43051147e-06, -0.249196813, 2.23517418e-08, -0.968452811, -4.48198989e-09, 0.999999821, -2.98023224e-08, 0.968452811, 1.86264515e-09, -0.249196798),i)
  427. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -0.240329295, -0.02552839, 0.97035563, -0.0975859016, 0.995224953, 0.00201342511, -0.965773642, -0.0942091718, -0.241672948),i)
  428. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.94862175, 0.589737892, 0.036031723, 0.437891245, 0.895518184, 0.0793625563, -0.734854102, 0.407384276, -0.542242527, -0.517919183, 0.179123357, 0.836465418),i)
  429. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.88391113, 0.481715679, 0.273626804, -0.245335877, -0.935992301, -0.252445042, -0.152630016, 0.29444921, -0.943399429, 0.957347453, -0.192919195, -0.215099543),i)
  430. game:GetService("RunService").RenderStepped:wait()
  431. end
  432. damged = false
  433. canuse = true
  434. end
  435. end
  436. mouse.Button1Down:connect(stab)
  437. function stabbystabby(part)
  438. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  439. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  440. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  441. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  442. if damged and humanoid and part.Parent.Name ~= game.Players.LocalPlayer.Name then
  443. humanoid.Parent:BreakJoints()
  444. damged = false
  445. wait()
  446. local isr15 = part.Parent:findFirstChild("UpperTorso")
  447. if isr15 then
  448. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  449. humanoid.Parent.HumanoidRootPart.CanCollide = false
  450. end
  451. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  452. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  453. constraint.Attachment0 = attachone
  454. constraint.Attachment1 = attachtwo
  455. constraint.LimitsEnabled = true
  456. constraint.TwistLimitsEnabled = true
  457. constraint.TwistLowerAngle = lowang
  458. constraint.TwistUpperAngle = upperang
  459. constraint.UpperAngle = twist
  460. end
  461. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  462. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  463. constraint.Attachment0 = attachone
  464. constraint.Attachment1 = attachtwo
  465. constraint.LimitsEnabled = true
  466. constraint.LowerAngle = lowang
  467. constraint.UpperAngle = upperang
  468. end
  469. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  470. if v.ClassName == "Accessory" then
  471. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  472. if findhandle then
  473. local attach = findhandle:findFirstChildOfClass("Attachment")
  474. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  475. if w.Name == "UpperTorso" or w.Name == "Head" then
  476. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  477. end
  478. end
  479. if attach and attach1 then
  480. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  481. constraint.Attachment0 = attach
  482. constraint.Attachment1 = attach1
  483. constraint.LimitsEnabled = true
  484. constraint.LowerAngle = 0
  485. constraint.UpperAngle = 0
  486. end
  487. end
  488. end
  489. end
  490. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  491. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  492. attachment.Position = Vector3.new(0, -0.5, 0)
  493. attachment.Name = "lol"
  494. attachment.Visible = false
  495. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  496. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  497. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  498. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  499. ball.Attachment1 = attachment
  500. ball.LimitsEnabled = true
  501. ball.TwistLimitsEnabled = true
  502. ball.UpperAngle = 40
  503. ball.Restitution = 0.5
  504. ball.TwistUpperAngle = 40
  505. ball.TwistLowerAngle = -40
  506. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  507. collidepartofleftleg.Name = "Bone"
  508. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  509. collidepartofleftleg.Transparency = 1
  510. collidepartofleftleg:BreakJoints()
  511. local weeld = Instance.new("Weld", collidepartofleftleg)
  512. weeld.Part0 = collidepartofleftleg
  513. weeld.Part1 = humanoid.Parent["Head"]
  514. if humanoid.Parent.Head:findFirstChild("Neck") then
  515. humanoid.Parent.Head.Neck:destroy()
  516. end
  517. if humanoid.Parent.Head:findFirstChild("face") then
  518. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  519. end
  520. end
  521. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  522. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  523. --
  524. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  525. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  526. --
  527. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  528. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  529. --
  530. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  531. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  532. --Foot & Hands--
  533.  
  534. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  535. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  536. --
  537. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  538. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  539.  
  540. --END--
  541. --TORSOS--
  542.  
  543. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  544. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  545.  
  546. --END--
  547. if LowerTorso then
  548. if LeftUpperLeg then
  549. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  550. end
  551. if RightUpperLeg then
  552. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  553. end
  554. if LeftLowerLeg then
  555. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  556. end
  557. if RightLowerLeg then
  558. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  559. end
  560. if LeftFoot then
  561. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  562. end
  563. if RightFoot then
  564. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  565. end
  566. if UpperTorso then
  567. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  568. end
  569. end
  570. if UpperTorso then
  571. local hitsound = Instance.new("Sound", UpperTorso)
  572. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  573. hitsound:Play()
  574. hitsound.Volume = math.random(5,10)
  575. local canhit = true
  576. local hitval = 15
  577. local uptor = humanoid.Parent.UpperTorso
  578. if RightUpperArm then
  579. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  580. end
  581. if RightLowerArm then
  582. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  583. end
  584. if RightHand then
  585. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  586. end
  587. if LeftUpperArm then
  588. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  589. end
  590. if LeftLowerArm then
  591. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  592. end
  593. if LeftHand then
  594. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  595. end
  596. end
  597. elseif part.Parent:findFirstChild("Torso") then
  598. canspin = false
  599. if humanoid.Parent:findFirstChild("Health") then
  600. humanoid.Parent.Health:Remove()
  601. end
  602. humanoid.WalkSpeed = 0
  603. humanoid.JumpPower = 0
  604. humanoid.PlatformStand = true
  605. for z,x in pairs(humanoid.Parent:GetChildren()) do
  606. if x.ClassName == "Accessory" then
  607. local handle = x:findFirstChild("Handle")
  608. if handle then
  609. local attachment = handle:findFirstChildOfClass("Attachment")
  610. if attachment then
  611. for q,w in pairs(humanoid.Parent:GetChildren()) do
  612. if w.Name == "Torso" or w.Name == "Head" then
  613. local anotherone = w:findFirstChild(attachment.Name)
  614. if attachment and anotherone then
  615. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  616. constraint.Attachment0 = attachment
  617. constraint.Attachment1 = anotherone
  618. constraint.LimitsEnabled = true
  619. constraint.LowerAngle = 0
  620. constraint.UpperAngle = 0
  621. end
  622. end
  623. end
  624. end
  625. end
  626. end
  627. end
  628. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  629. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  630. attachment.Position = Vector3.new(1, 1, 0)
  631. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  632. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  633. ball.Attachment1 = attachment
  634. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  635. collidepartofleftleg.Name = "Bone"
  636. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  637. collidepartofleftleg.Transparency = 1
  638. collidepartofleftleg:BreakJoints()
  639. local weeld = Instance.new("Weld", collidepartofleftleg)
  640. weeld.Part0 = humanoid.Parent["Right Arm"]
  641. weeld.Part1 = collidepartofleftleg
  642. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  643. end
  644. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  645. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  646. attachment.Position = Vector3.new(-1, 1, 0)
  647. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  648. ball.Attachment0 = attachment
  649. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  650. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  651. collidepartofleftleg.Name = "Bone"
  652. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  653. collidepartofleftleg.Transparency = 1
  654. collidepartofleftleg:BreakJoints()
  655. local weeld = Instance.new("Weld", collidepartofleftleg)
  656. weeld.Part0 = humanoid.Parent["Left Arm"]
  657. weeld.Part1 = collidepartofleftleg
  658. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  659. end
  660. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  661. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  662. attachment.Position = Vector3.new(0.5, -1, 0)
  663. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  664. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  665. ball.Attachment1 = attachment
  666. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  667. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  668. collidepartofleftleg.Name = "Bone"
  669. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  670. collidepartofleftleg.Transparency = 1
  671. collidepartofleftleg:BreakJoints()
  672. local weeld = Instance.new("Weld", collidepartofleftleg)
  673. weeld.Part0 = humanoid.Parent["Right Leg"]
  674. weeld.Part1 = collidepartofleftleg
  675. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  676. end
  677. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  678. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  679. attachment.Position = Vector3.new(-0.5, -1, 0)
  680. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  681. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  682. ball.Attachment1 = attachment
  683. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  684. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  685. collidepartofleftleg.Name = "Bone"
  686. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  687. collidepartofleftleg.Transparency = 1
  688. collidepartofleftleg:BreakJoints()
  689. local weeld = Instance.new("Weld", collidepartofleftleg)
  690. weeld.Part0 = humanoid.Parent["Left Leg"]
  691. weeld.Part1 = collidepartofleftleg
  692. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  693. end
  694. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  695. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  696. attachment.Position = Vector3.new(0, -0.5, 0)
  697. attachment.Name = "lol"
  698. attachment.Visible = false
  699. humanoid.Parent.Torso.NeckAttachment.Visible = false
  700. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  701. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  702. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  703. ball.Attachment1 = attachment
  704. ball.LimitsEnabled = true
  705. ball.TwistLimitsEnabled = true
  706. ball.UpperAngle = 90
  707. ball.Restitution = 0.5
  708. ball.TwistUpperAngle = 90
  709. ball.TwistLowerAngle = -90
  710. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  711. collidepartofleftleg.Name = "Bone"
  712. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  713. collidepartofleftleg.Transparency = 1
  714. collidepartofleftleg:BreakJoints()
  715. local weeld = Instance.new("Weld", collidepartofleftleg)
  716. weeld.Part0 = collidepartofleftleg
  717. weeld.Part1 = humanoid.Parent["Head"]
  718. if humanoid.Parent.Torso:findFirstChild("Neck") then
  719. humanoid.Parent.Torso.Neck:destroy()
  720. end
  721. if humanoid.Parent.Head:findFirstChild("face") then
  722. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  723. end
  724. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  725. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  726. hitsound:Play()
  727. hitsound.Volume = math.random(5,10)
  728. end
  729. if humanoid.Parent:findFirstChild("Head") then
  730. local aah = Instance.new("Sound", humanoid.Parent.Head)
  731. if aah then
  732. aah.Volume = 8
  733. local aahmath = math.random(2,8)
  734. if aahmath == 2 then
  735. aah.SoundId = "rbxassetid://884348443"
  736. aah:Play()
  737. end
  738. if aahmath == 3 then
  739. aah.SoundId = "rbxassetid://681582832"
  740. aah.Volume = 10
  741. aah:Play()
  742. end
  743. if aahmath == 4 then
  744. aah.SoundId = "rbxassetid://1080363252"
  745. aah:Play()
  746. end
  747. if aahmath == 5 then
  748. aah.SoundId = "rbxassetid://150245085"
  749. aah:Play()
  750. end
  751. if aahmath == 6 then
  752. aah.SoundId = "rbxassetid://345287845"
  753. aah.TimePosition = 2.5
  754. aah:Play()
  755. end
  756. if aahmath == 7 then
  757. aah.SoundId = "rbxassetid://147758746"
  758. aah.TimePosition = 1.3
  759. aah:Play()
  760. end
  761. if aahmath == 8 then
  762. aah.SoundId = "rbxassetid://131314452"
  763. aah:Play()
  764. end
  765. end
  766. end
  767. end
  768. end
  769. end
  770. Part1.Touched:connect(stabbystabby)
  771. function throw(key)
  772. key = key:lower()
  773. if key == "e" and canuse then
  774. canuse = false
  775. for i = 0,1 , 0.03 do
  776. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.87712723, 0, -0.480258077, 0, 1, 0, 0.480258077, 0, 0.87712723),i)
  777. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.08419418, 0.439404726, -0.699457169, 0.786269963, -0.617883086, 0, 0.0533286743, 0.0678619221, -0.996268392, 0.6155774, 0.783335984, 0.0863086879),i)
  778. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.94801712, 0.221992493, 0.99999994, 0, 0, 0, -0.896033943, 0.443985492, 0, -0.443985522, -0.896034002),i)
  779. game:GetService("RunService").RenderStepped:wait()
  780. end
  781. local knifeclone = Model0:Clone()
  782. knifeclone.Parent = game.Players.LocalPlayer.Character
  783. knifeclone.hitbox:destroy()
  784. Part1.Transparency = 1
  785. local thrownpos = knifeclone.realknife.Position
  786. local canspin = true
  787. local downval = 0
  788. local mouselook = mouse.Hit.lookVector
  789. local mousepos = mouse.Hit
  790. throwB:Play()
  791. local velo = Instance.new("BodyVelocity", knifeclone.realknife)
  792. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  793. velo.Velocity = mouse.Hit.lookVector * 110
  794. knifeclone.realknife.CanCollide = true
  795. knifeclone.realknife.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,-4)
  796. knifeclone.realknife.CFrame = CFrame.new(knifeclone.realknife.Position, mouse.Hit.p)
  797. knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  798. local function attach(part)
  799. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  800. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  801. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  802. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  803. if humanoid and part.Parent.Name ~= game.Players.LocalPlayer.Name then
  804. canspin = false
  805. humanoid.Parent:BreakJoints()
  806. knifeclone:destroy()
  807. wait()
  808. local isr15 = part.Parent:findFirstChild("UpperTorso")
  809. if isr15 then
  810. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  811. humanoid.Parent.HumanoidRootPart.CanCollide = false
  812. end
  813. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  814. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  815. constraint.Attachment0 = attachone
  816. constraint.Attachment1 = attachtwo
  817. constraint.LimitsEnabled = true
  818. constraint.TwistLimitsEnabled = true
  819. constraint.TwistLowerAngle = lowang
  820. constraint.TwistUpperAngle = upperang
  821. constraint.UpperAngle = twist
  822. end
  823. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  824. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  825. constraint.Attachment0 = attachone
  826. constraint.Attachment1 = attachtwo
  827. constraint.LimitsEnabled = true
  828. constraint.LowerAngle = lowang
  829. constraint.UpperAngle = upperang
  830. end
  831. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  832. if v.ClassName == "Accessory" then
  833. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  834. if findhandle then
  835. local attach = findhandle:findFirstChildOfClass("Attachment")
  836. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  837. if w.Name == "UpperTorso" or w.Name == "Head" then
  838. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  839. end
  840. end
  841. if attach and attach1 then
  842. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  843. constraint.Attachment0 = attach
  844. constraint.Attachment1 = attach1
  845. constraint.LimitsEnabled = true
  846. constraint.LowerAngle = 0
  847. constraint.UpperAngle = 0
  848. end
  849. end
  850. end
  851. end
  852. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  853. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  854. attachment.Position = Vector3.new(0, -0.5, 0)
  855. attachment.Name = "lol"
  856. attachment.Visible = false
  857. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  858. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  859. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  860. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  861. ball.Attachment1 = attachment
  862. ball.LimitsEnabled = true
  863. ball.TwistLimitsEnabled = true
  864. ball.UpperAngle = 40
  865. ball.Restitution = 0.5
  866. ball.TwistUpperAngle = 40
  867. ball.TwistLowerAngle = -40
  868. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  869. collidepartofleftleg.Name = "Bone"
  870. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  871. collidepartofleftleg.Transparency = 1
  872. collidepartofleftleg:BreakJoints()
  873. local weeld = Instance.new("Weld", collidepartofleftleg)
  874. weeld.Part0 = collidepartofleftleg
  875. weeld.Part1 = humanoid.Parent["Head"]
  876. if humanoid.Parent.Head:findFirstChild("Neck") then
  877. humanoid.Parent.Head.Neck:destroy()
  878. end
  879. if humanoid.Parent.Head:findFirstChild("face") then
  880. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  881. end
  882. end
  883. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  884. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  885. --
  886. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  887. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  888. --
  889. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  890. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  891. --
  892. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  893. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  894. --Foot & Hands--
  895.  
  896. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  897. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  898. --
  899. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  900. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  901.  
  902. --END--
  903. --TORSOS--
  904.  
  905. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  906. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  907.  
  908. --END--
  909. if LowerTorso then
  910. if LeftUpperLeg then
  911. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  912. end
  913. if RightUpperLeg then
  914. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  915. end
  916. if LeftLowerLeg then
  917. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  918. end
  919. if RightLowerLeg then
  920. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  921. end
  922. if LeftFoot then
  923. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  924. end
  925. if RightFoot then
  926. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  927. end
  928. if UpperTorso then
  929. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  930. end
  931. end
  932. if UpperTorso then
  933. local vel = Instance.new("BodyVelocity", UpperTorso)
  934. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  935. vel.Velocity = mouselook *25 + Vector3.new(0,10,0)
  936. game.Debris:AddItem(vel, 0.1)
  937. local hitsound = Instance.new("Sound", UpperTorso)
  938. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  939. hitsound:Play()
  940. hitsound.Volume = math.random(5,10)
  941. local canhit = true
  942. local hitval = 15
  943. local uptor = humanoid.Parent.UpperTorso
  944. if RightUpperArm then
  945. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  946. end
  947. if RightLowerArm then
  948. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  949. end
  950. if RightHand then
  951. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  952. end
  953. if LeftUpperArm then
  954. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  955. end
  956. if LeftLowerArm then
  957. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  958. end
  959. if LeftHand then
  960. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  961. end
  962. end
  963. elseif part.Parent:findFirstChild("Torso") then
  964. canspin = false
  965. if humanoid.Parent:findFirstChild("Health") then
  966. humanoid.Parent.Health:Remove()
  967. end
  968. humanoid.WalkSpeed = 0
  969. humanoid.JumpPower = 0
  970. humanoid.PlatformStand = true
  971. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  972. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  973. attachment.Position = Vector3.new(1, 1, 0)
  974. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  975. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  976. ball.Attachment1 = attachment
  977. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  978. collidepartofleftleg.Name = "Bone"
  979. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  980. collidepartofleftleg.Transparency = 1
  981. collidepartofleftleg:BreakJoints()
  982. local weeld = Instance.new("Weld", collidepartofleftleg)
  983. weeld.Part0 = humanoid.Parent["Right Arm"]
  984. weeld.Part1 = collidepartofleftleg
  985. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  986. end
  987. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  988. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  989. attachment.Position = Vector3.new(-1, 1, 0)
  990. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  991. ball.Attachment0 = attachment
  992. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  993. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  994. collidepartofleftleg.Name = "Bone"
  995. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  996. collidepartofleftleg.Transparency = 1
  997. collidepartofleftleg:BreakJoints()
  998. local weeld = Instance.new("Weld", collidepartofleftleg)
  999. weeld.Part0 = humanoid.Parent["Left Arm"]
  1000. weeld.Part1 = collidepartofleftleg
  1001. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  1002. end
  1003. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  1004. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  1005. attachment.Position = Vector3.new(0.5, -1, 0)
  1006. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  1007. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  1008. ball.Attachment1 = attachment
  1009. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  1010. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  1011. collidepartofleftleg.Name = "Bone"
  1012. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  1013. collidepartofleftleg.Transparency = 1
  1014. collidepartofleftleg:BreakJoints()
  1015. local weeld = Instance.new("Weld", collidepartofleftleg)
  1016. weeld.Part0 = humanoid.Parent["Right Leg"]
  1017. weeld.Part1 = collidepartofleftleg
  1018. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  1019. end
  1020. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  1021. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  1022. attachment.Position = Vector3.new(-0.5, -1, 0)
  1023. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  1024. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  1025. ball.Attachment1 = attachment
  1026. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  1027. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  1028. collidepartofleftleg.Name = "Bone"
  1029. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  1030. collidepartofleftleg.Transparency = 1
  1031. collidepartofleftleg:BreakJoints()
  1032. local weeld = Instance.new("Weld", collidepartofleftleg)
  1033. weeld.Part0 = humanoid.Parent["Left Leg"]
  1034. weeld.Part1 = collidepartofleftleg
  1035. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  1036. end
  1037. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  1038. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  1039. attachment.Position = Vector3.new(0, -0.5, 0)
  1040. attachment.Name = "lol"
  1041. attachment.Visible = false
  1042. humanoid.Parent.Torso.NeckAttachment.Visible = false
  1043. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  1044. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  1045. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  1046. ball.Attachment1 = attachment
  1047. ball.LimitsEnabled = true
  1048. ball.TwistLimitsEnabled = true
  1049. ball.UpperAngle = 90
  1050. ball.Restitution = 0.5
  1051. ball.TwistUpperAngle = 90
  1052. ball.TwistLowerAngle = -90
  1053. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  1054. collidepartofleftleg.Name = "Bone"
  1055. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  1056. collidepartofleftleg.Transparency = 1
  1057. collidepartofleftleg:BreakJoints()
  1058. local weeld = Instance.new("Weld", collidepartofleftleg)
  1059. weeld.Part0 = collidepartofleftleg
  1060. weeld.Part1 = humanoid.Parent["Head"]
  1061. if humanoid.Parent.Torso:findFirstChild("Neck") then
  1062. humanoid.Parent.Torso.Neck:destroy()
  1063. end
  1064. if humanoid.Parent.Head:findFirstChild("face") then
  1065. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  1066. end
  1067. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  1068. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  1069. hitsound:Play()
  1070. hitsound.Volume = math.random(5,10)
  1071. end
  1072. for z,x in pairs(humanoid.Parent:GetChildren()) do
  1073. if x.ClassName == "Accessory" then
  1074. local handle = x:findFirstChild("Handle")
  1075. if handle then
  1076. local attachment = handle:findFirstChildOfClass("Attachment")
  1077. if attachment then
  1078. for q,w in pairs(humanoid.Parent:GetChildren()) do
  1079. if w.Name == "Torso" or w.Name == "Head" then
  1080. local anotherone = w:findFirstChild(attachment.Name)
  1081. if attachment and anotherone then
  1082. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  1083. constraint.Attachment0 = attachment
  1084. constraint.Attachment1 = anotherone
  1085. constraint.LimitsEnabled = true
  1086. constraint.LowerAngle = 0
  1087. constraint.UpperAngle = 0
  1088. end
  1089. end
  1090. end
  1091. end
  1092. end
  1093. end
  1094. end
  1095. if humanoid.Parent:findFirstChild("Head") then
  1096. local aah = Instance.new("Sound", humanoid.Parent.Head)
  1097. if aah then
  1098. aah.Volume = 8
  1099. local aahmath = math.random(2,8)
  1100. if aahmath == 2 then
  1101. aah.SoundId = "rbxassetid://884348443"
  1102. aah:Play()
  1103. end
  1104. if aahmath == 3 then
  1105. aah.SoundId = "rbxassetid://681582832"
  1106. aah.Volume = 10
  1107. aah:Play()
  1108. end
  1109. if aahmath == 4 then
  1110. aah.SoundId = "rbxassetid://1080363252"
  1111. aah:Play()
  1112. end
  1113. if aahmath == 5 then
  1114. aah.SoundId = "rbxassetid://150245085"
  1115. aah:Play()
  1116. end
  1117. if aahmath == 6 then
  1118. aah.SoundId = "rbxassetid://345287845"
  1119. aah.TimePosition = 2.5
  1120. aah:Play()
  1121. end
  1122. if aahmath == 7 then
  1123. aah.SoundId = "rbxassetid://147758746"
  1124. aah.TimePosition = 1.3
  1125. aah:Play()
  1126. end
  1127. if aahmath == 8 then
  1128. aah.SoundId = "rbxassetid://131314452"
  1129. aah:Play()
  1130. end
  1131. end
  1132. end
  1133. end
  1134. else
  1135. if part.Parent.ClassName ~= "Accessory" then
  1136. canspin = false
  1137. hitwall:Play()
  1138. knifeclone.realknife.Anchored = true
  1139. local knifeclonen = knifeclone:Clone()
  1140. knifeclonen.Parent = workspace
  1141. knifeclone:destroy()
  1142. knifeclonen.realknife.CFrame = CFrame.new(knifeclonen.realknife.Position, thrownpos)
  1143. knifeclonen.realknife.CFrame = knifeclonen.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  1144. game.Debris:AddItem(knifeclonen, 10)
  1145. end
  1146. end
  1147. end
  1148. knifeclone.realknife.Touched:connect(attach)
  1149. local function spin()
  1150. if workspace:FindFirstChild(Model0.Name) then
  1151. if canspin then
  1152. downval = downval + 1
  1153. --knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.25)
  1154. if downval < 150 then
  1155. --knifeclone.realknife.RotVelocity = mousepos.rightVector * -2
  1156. velo.Velocity = velo.Velocity + Vector3.new(0,-0.7,0)
  1157. end
  1158. end
  1159. end
  1160. end
  1161. game:GetService("RunService").RenderStepped:connect(spin)
  1162. for i = 0.2,1 , 0.1 do
  1163. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.652971387, 0, 0.757382512, 0, 1, 0, -0.757382512, 0, 0.652971387),i)
  1164. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.60898972, 0.1406672, -0.00325965881, 0.786269963, 0.431710958, -0.442046583, 0.0533286743, 0.665336668, 0.744636238, 0.6155774, -0.609058917, 0.500111818),i)
  1165. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.11553216, -0.319662094, 0.99999994, 0, 0, 0, 0.768935919, -0.639325857, 0, 0.639325917, 0.768935978),i)
  1166. game:GetService("RunService").RenderStepped:wait()
  1167. end
  1168. canuse = true
  1169. for i = 0,1 , 0.01 do
  1170. if canuse then
  1171. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1172. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.11091232, 0.239697695, -0.648029327, 0.78627032, -0.564446628, -0.251355588, 0.0533286557, 0.467276007, -0.882501543, 0.615577579, 0.68048048, 0.397506446),i)
  1173. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.23454857, 0.183438778, -0.669290543, 0.622085392, 0.528965533, 0.577239931, 0.520516932, 0.271329552, -0.809593856, -0.584869325, 0.804099798, -0.106545292),i)
  1174. game:GetService("RunService").RenderStepped:wait()
  1175. end
  1176. end
  1177. Part1.Transparency = 0
  1178. Part1.CanCollide = false
  1179. Part3.CanCollide = false
  1180. end
  1181. end
  1182. mouse.KeyDown:connect(throw)
  1183. for i = 0,1 , 0.01 do
  1184. if canuse then
  1185. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1186. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.11091232, 0.239697695, -0.648029327, 0.78627032, -0.564446628, -0.251355588, 0.0533286557, 0.467276007, -0.882501543, 0.615577579, 0.68048048, 0.397506446),i)
  1187. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.23454857, 0.183438778, -0.669290543, 0.622085392, 0.528965533, 0.577239931, 0.520516932, 0.271329552, -0.809593856, -0.584869325, 0.804099798, -0.106545292),i)
  1188. game:GetService("RunService").RenderStepped:wait()
  1189. end
  1190. end
  1191. while true do
  1192. if canuse then
  1193. for i = 0,1 , 0.01 do
  1194. if canuse then
  1195. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  1196. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  1197. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1198. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.11091232, 0.239697695, -0.648029327, 0.78627032, -0.564446628, -0.251355588, 0.0533286557, 0.467276007, -0.882501543, 0.615577579, 0.68048048, 0.397506446),i)
  1199. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.23454857, 0.183438778, -0.669290543, 0.622085392, 0.528965533, 0.577239931, 0.520516932, 0.271329552, -0.809593856, -0.584869325, 0.804099798, -0.106545292),i)
  1200. game:GetService("RunService").RenderStepped:wait()
  1201. end
  1202. end
  1203. for i = 0,1 , 0.01 do
  1204. if canuse then
  1205. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  1206. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  1207. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1208. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.08373642, 0.349919796, -0.692287445, 0.78627032, -0.577653646, -0.21930784, 0.0533286557, 0.417053103, -0.907316148, 0.615577579, 0.701700509, 0.358722091),i)
  1209. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.16544914, 0.291818857, -0.64632988, 0.622085392, 0.589078248, 0.515749276, 0.520516932, 0.180908725, -0.834466338, -0.584869325, 0.787565589, -0.19408451),i)
  1210. game:GetService("RunService").RenderStepped:wait()
  1211. end
  1212. end
  1213. end
  1214. if throwB.Parent == nil then
  1215. throwB.Parent = Model0.realknife
  1216. end
  1217. if slash.Parent == nil then
  1218. slash.Parent = Model0.realknife
  1219. end
  1220. if hitwall.Parent == nil then
  1221. hitwall.Parent = Model0.realknife
  1222. end
  1223. wait()
  1224. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement