Advertisement
DarkScriptZEditors

BOIII

Jan 4th, 2019
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.75 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. --By Rufus14 boi
  137. local p = game.Players.LocalPlayer;
  138. local c = p.Character;
  139. local h = c:WaitForChild'Head';
  140. local f = h:WaitForChild'face';
  141. f.Texture = 'rbxassetid://268018808';
  142. wait(1)
  143. mouse = game.Players.LocalPlayer:GetMouse()
  144. chara = game.Players.LocalPlayer.Character
  145. local bg = Instance.new("Sound",chara.Torso)
  146. bg.Name = "BackgroundMusic"
  147. bg.SoundId = "http://www.roblox.com/asset/?id=1200330727"
  148. bg.Looped = true
  149. bg.Volume = 10
  150. bg:Play()
  151. local txt = Instance.new("BillboardGui", chara)
  152. CV="Lime green"
  153. txt.Adornee = chara.Head
  154. txt.Name = "_status"
  155. txt.Size = UDim2.new(2, 0, 1.2, 0)
  156. txt.StudsOffset = Vector3.new(-9, 8, 0)
  157. local text = Instance.new("TextLabel", txt)
  158. text.Size = UDim2.new(10, 0, 7, 0)
  159. text.FontSize = "Size24"
  160. text.TextScaled = true
  161. text.TextTransparency = 0
  162. text.BackgroundTransparency = 1
  163. text.TextTransparency = 0
  164. text.TextStrokeTransparency = 0
  165. text.Font = "Bodoni"
  166. text.TextStrokeColor3 = BrickColor.new("Shamrock").Color
  167. text.TextColor3 = BrickColor.new("Bright yellow").Color
  168. text.Text = "the werid drunk intruder"
  169.  
  170. mouse = game.Players.LocalPlayer:GetMouse()
  171. --Converted with ttyyuu12345's model to script plugin v4
  172. function sandbox(var,func)
  173. local env = getfenv(func)
  174. local newenv = setmetatable({},{
  175. __index = function(self,k)
  176. if k=="script" then
  177. return var
  178. else
  179. return env[k]
  180. end
  181. end,
  182. })
  183. setfenv(func,newenv)
  184. return func
  185. end
  186. cors = {}
  187. mas = Instance.new("Model",game:GetService("Lighting"))
  188. Model0 = Instance.new("Model")
  189. Part1 = Instance.new("Part")
  190. SpecialMesh2 = Instance.new("SpecialMesh")
  191. Part3 = Instance.new("Part")
  192. Weld4 = Instance.new("Weld")
  193. Model0.Name = "bitch ass knife haha knife v3 reference"
  194. Model0.Parent = mas
  195. Part1.Name = "realknife"
  196. Part1.Parent = Model0
  197. Part1.Rotation = Vector3.new(0, -90, 0)
  198. Part1.CanCollide = false
  199. Part1.Size = Vector3.new(1.56900003, 0.259999305, 0.459999979)
  200. Part1.CFrame = CFrame.new(-20.8307228, 1.96215653, -28.7958698, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  201. Part1.BottomSurface = Enum.SurfaceType.Smooth
  202. Part1.TopSurface = Enum.SurfaceType.Smooth
  203. Part1.Position = Vector3.new(-20.8307228, 1.96215653, -28.7958698)
  204. Part1.Orientation = Vector3.new(0, -90, 0)
  205. SpecialMesh2.Parent = Part1
  206. SpecialMesh2.MeshId = "rbxassetid://733638171"
  207. SpecialMesh2.Scale = Vector3.new(0.349999994, 0.300000012, 0.300000012)
  208. SpecialMesh2.TextureId = "rbxassetid://430428397"
  209. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  210. SpecialMesh2.Scale = Vector3.new(0.349999994, 0.300000012, 0.300000012)
  211. Part3.Name = "hitbox"
  212. Part3.Parent = Model0
  213. Part3.Transparency = 1
  214. Part3.Size = Vector3.new(0.0799999982, 1, 4.23999929)
  215. Part3.CFrame = CFrame.new(-20.8435993, 1.97891688, -28.7396412, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  216. Part3.BottomSurface = Enum.SurfaceType.Smooth
  217. Part3.TopSurface = Enum.SurfaceType.Smooth
  218. Part3.Position = Vector3.new(-20.8435993, 1.97891688, -28.7396412)
  219. Part3.CanCollide = false
  220. Weld4.Parent = Part3
  221. Weld4.C0 = CFrame.new(0.0128765106, -0.0167603493, -0.0562286377, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  222. Weld4.Part0 = Part3
  223. Weld4.Part1 = Part1
  224. for i,v in pairs(mas:GetChildren()) do
  225. v.Parent = game:GetService("Players").LocalPlayer.Character
  226. pcall(function() v:MakeJoints() end)
  227. end
  228. mas:Destroy()
  229. for i,v in pairs(cors) do
  230. spawn(function()
  231. pcall(v)
  232. end)
  233. end
  234. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  235. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  236. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  237. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  238. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  239. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  240. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  241. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  242. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  243. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  244. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  245. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  246. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  247. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  248. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  249. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  250. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  251. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  252. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  253. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  254. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  255. local waeld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
  256. waeld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  257. waeld.Part1 = Part1
  258. waeld.C0 = CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  259. canuse = true
  260. throwie = false
  261. damged = false
  262. throwval = 0
  263. hitwall = Instance.new("Sound", Model0.realknife)
  264. hitwall.SoundId = "rbxassetid://214755079"
  265. hitwall.Volume = 10
  266. throwB = Instance.new("Sound", Model0.realknife)
  267. throwB.SoundId = "rbxassetid://166423113"
  268. throwB.Volume = 10
  269. slash = Instance.new("Sound", Model0.realknife)
  270. slash.SoundId = "rbxassetid://978101945"
  271. slash.Volume = 10
  272. for i,v in pairs(cors) do
  273. spawn(function()
  274. pcall(v)
  275. end)
  276. end
  277. function stab(key)
  278. if canuse then
  279. canuse = false
  280. for i = 0,1 , 0.05 do
  281. 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)
  282. 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)
  283. 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)
  284. 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)
  285. game:GetService("RunService").RenderStepped:wait()
  286. end
  287. slash:Play()
  288. damged = true
  289. for i = 0,1 , 0.07 do
  290. 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)
  291. 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)
  292. 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)
  293. 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)
  294. 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)
  295. game:GetService("RunService").RenderStepped:wait()
  296. end
  297. damged = false
  298. canuse = true
  299. end
  300. end
  301. mouse.Button1Down:connect(stab)
  302. function stabbystabby(part)
  303. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  304. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  305. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  306. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  307. if damged and humanoid and part.Parent.Name ~= game.Players.LocalPlayer.Name then
  308. humanoid.Parent:BreakJoints()
  309. damged = false
  310. wait()
  311. local isr15 = part.Parent:findFirstChild("UpperTorso")
  312. if isr15 then
  313. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  314. humanoid.Parent.HumanoidRootPart.CanCollide = false
  315. end
  316. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  317. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  318. constraint.Attachment0 = attachone
  319. constraint.Attachment1 = attachtwo
  320. constraint.LimitsEnabled = true
  321. constraint.TwistLimitsEnabled = true
  322. constraint.TwistLowerAngle = lowang
  323. constraint.TwistUpperAngle = upperang
  324. constraint.UpperAngle = twist
  325. end
  326. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  327. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  328. constraint.Attachment0 = attachone
  329. constraint.Attachment1 = attachtwo
  330. constraint.LimitsEnabled = true
  331. constraint.LowerAngle = lowang
  332. constraint.UpperAngle = upperang
  333. end
  334. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  335. if v.ClassName == "Accessory" then
  336. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  337. if findhandle then
  338. local attach = findhandle:findFirstChildOfClass("Attachment")
  339. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  340. if w.Name == "UpperTorso" or w.Name == "Head" then
  341. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  342. end
  343. end
  344. if attach and attach1 then
  345. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  346. constraint.Attachment0 = attach
  347. constraint.Attachment1 = attach1
  348. constraint.LimitsEnabled = true
  349. constraint.LowerAngle = 0
  350. constraint.UpperAngle = 0
  351. end
  352. end
  353. end
  354. end
  355. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  356. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  357. attachment.Position = Vector3.new(0, -0.5, 0)
  358. attachment.Name = "lol"
  359. attachment.Visible = false
  360. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  361. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  362. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  363. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  364. ball.Attachment1 = attachment
  365. ball.LimitsEnabled = true
  366. ball.TwistLimitsEnabled = true
  367. ball.UpperAngle = 40
  368. ball.Restitution = 0.5
  369. ball.TwistUpperAngle = 40
  370. ball.TwistLowerAngle = -40
  371. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  372. collidepartofleftleg.Name = "Bone"
  373. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  374. collidepartofleftleg.Transparency = 1
  375. collidepartofleftleg:BreakJoints()
  376. local weeld = Instance.new("Weld", collidepartofleftleg)
  377. weeld.Part0 = collidepartofleftleg
  378. weeld.Part1 = humanoid.Parent["Head"]
  379. if humanoid.Parent.Head:findFirstChild("Neck") then
  380. humanoid.Parent.Head.Neck:destroy()
  381. end
  382. if humanoid.Parent.Head:findFirstChild("face") then
  383. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  384. end
  385. end
  386. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  387. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  388. --
  389. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  390. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  391. --
  392. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  393. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  394. --
  395. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  396. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  397. --Foot & Hands--
  398.  
  399. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  400. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  401. --
  402. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  403. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  404.  
  405. --END--
  406. --TORSOS--
  407.  
  408. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  409. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  410.  
  411. --END--
  412. if LowerTorso then
  413. if LeftUpperLeg then
  414. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  415. end
  416. if RightUpperLeg then
  417. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  418. end
  419. if LeftLowerLeg then
  420. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  421. end
  422. if RightLowerLeg then
  423. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  424. end
  425. if LeftFoot then
  426. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  427. end
  428. if RightFoot then
  429. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  430. end
  431. if UpperTorso then
  432. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  433. end
  434. end
  435. if UpperTorso then
  436. local hitsound = Instance.new("Sound", UpperTorso)
  437. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  438. hitsound:Play()
  439. hitsound.Volume = math.random(5,10)
  440. local canhit = true
  441. local hitval = 15
  442. local uptor = humanoid.Parent.UpperTorso
  443. if RightUpperArm then
  444. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  445. end
  446. if RightLowerArm then
  447. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  448. end
  449. if RightHand then
  450. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  451. end
  452. if LeftUpperArm then
  453. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  454. end
  455. if LeftLowerArm then
  456. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  457. end
  458. if LeftHand then
  459. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  460. end
  461. end
  462. elseif part.Parent:findFirstChild("Torso") then
  463. canspin = false
  464. if humanoid.Parent:findFirstChild("Health") then
  465. humanoid.Parent.Health:Remove()
  466. end
  467. humanoid.WalkSpeed = 0
  468. humanoid.JumpPower = 0
  469. humanoid.PlatformStand = true
  470. for z,x in pairs(humanoid.Parent:GetChildren()) do
  471. if x.ClassName == "Accessory" then
  472. local handle = x:findFirstChild("Handle")
  473. if handle then
  474. local attachment = handle:findFirstChildOfClass("Attachment")
  475. if attachment then
  476. for q,w in pairs(humanoid.Parent:GetChildren()) do
  477. if w.Name == "Torso" or w.Name == "Head" then
  478. local anotherone = w:findFirstChild(attachment.Name)
  479. if attachment and anotherone then
  480. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  481. constraint.Attachment0 = attachment
  482. constraint.Attachment1 = anotherone
  483. constraint.LimitsEnabled = true
  484. constraint.LowerAngle = 0
  485. constraint.UpperAngle = 0
  486. end
  487. end
  488. end
  489. end
  490. end
  491. end
  492. end
  493. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  494. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  495. attachment.Position = Vector3.new(1, 1, 0)
  496. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  497. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  498. ball.Attachment1 = attachment
  499. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  500. collidepartofleftleg.Name = "Bone"
  501. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  502. collidepartofleftleg.Transparency = 1
  503. collidepartofleftleg:BreakJoints()
  504. local weeld = Instance.new("Weld", collidepartofleftleg)
  505. weeld.Part0 = humanoid.Parent["Right Arm"]
  506. weeld.Part1 = collidepartofleftleg
  507. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  508. end
  509. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  510. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  511. attachment.Position = Vector3.new(-1, 1, 0)
  512. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  513. ball.Attachment0 = attachment
  514. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  515. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  516. collidepartofleftleg.Name = "Bone"
  517. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  518. collidepartofleftleg.Transparency = 1
  519. collidepartofleftleg:BreakJoints()
  520. local weeld = Instance.new("Weld", collidepartofleftleg)
  521. weeld.Part0 = humanoid.Parent["Left Arm"]
  522. weeld.Part1 = collidepartofleftleg
  523. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  524. end
  525. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  526. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  527. attachment.Position = Vector3.new(0.5, -1, 0)
  528. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  529. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  530. ball.Attachment1 = attachment
  531. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  532. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  533. collidepartofleftleg.Name = "Bone"
  534. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  535. collidepartofleftleg.Transparency = 1
  536. collidepartofleftleg:BreakJoints()
  537. local weeld = Instance.new("Weld", collidepartofleftleg)
  538. weeld.Part0 = humanoid.Parent["Right Leg"]
  539. weeld.Part1 = collidepartofleftleg
  540. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  541. end
  542. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  543. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  544. attachment.Position = Vector3.new(-0.5, -1, 0)
  545. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  546. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  547. ball.Attachment1 = attachment
  548. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  549. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  550. collidepartofleftleg.Name = "Bone"
  551. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  552. collidepartofleftleg.Transparency = 1
  553. collidepartofleftleg:BreakJoints()
  554. local weeld = Instance.new("Weld", collidepartofleftleg)
  555. weeld.Part0 = humanoid.Parent["Left Leg"]
  556. weeld.Part1 = collidepartofleftleg
  557. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  558. end
  559. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  560. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  561. attachment.Position = Vector3.new(0, -0.5, 0)
  562. attachment.Name = "lol"
  563. attachment.Visible = false
  564. humanoid.Parent.Torso.NeckAttachment.Visible = false
  565. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  566. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  567. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  568. ball.Attachment1 = attachment
  569. ball.LimitsEnabled = true
  570. ball.TwistLimitsEnabled = true
  571. ball.UpperAngle = 90
  572. ball.Restitution = 0.5
  573. ball.TwistUpperAngle = 90
  574. ball.TwistLowerAngle = -90
  575. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  576. collidepartofleftleg.Name = "Bone"
  577. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  578. collidepartofleftleg.Transparency = 1
  579. collidepartofleftleg:BreakJoints()
  580. local weeld = Instance.new("Weld", collidepartofleftleg)
  581. weeld.Part0 = collidepartofleftleg
  582. weeld.Part1 = humanoid.Parent["Head"]
  583. if humanoid.Parent.Torso:findFirstChild("Neck") then
  584. humanoid.Parent.Torso.Neck:destroy()
  585. end
  586. if humanoid.Parent.Head:findFirstChild("face") then
  587. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  588. end
  589. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  590. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  591. hitsound:Play()
  592. hitsound.Volume = math.random(5,10)
  593. end
  594. if humanoid.Parent:findFirstChild("Head") then
  595. local aah = Instance.new("Sound", humanoid.Parent.Head)
  596. if aah then
  597. aah.Volume = 8
  598. local aahmath = math.random(2,8)
  599. if aahmath == 2 then
  600. aah.SoundId = "rbxassetid://884348443"
  601. aah:Play()
  602. end
  603. if aahmath == 3 then
  604. aah.SoundId = "rbxassetid://681582832"
  605. aah.Volume = 10
  606. aah:Play()
  607. end
  608. if aahmath == 4 then
  609. aah.SoundId = "rbxassetid://1080363252"
  610. aah:Play()
  611. end
  612. if aahmath == 5 then
  613. aah.SoundId = "rbxassetid://150245085"
  614. aah:Play()
  615. end
  616. if aahmath == 6 then
  617. aah.SoundId = "rbxassetid://345287845"
  618. aah.TimePosition = 2.5
  619. aah:Play()
  620. end
  621. if aahmath == 7 then
  622. aah.SoundId = "rbxassetid://147758746"
  623. aah.TimePosition = 1.3
  624. aah:Play()
  625. end
  626. if aahmath == 8 then
  627. aah.SoundId = "rbxassetid://131314452"
  628. aah:Play()
  629. end
  630. end
  631. end
  632. end
  633. end
  634. end
  635. Part1.Touched:connect(stabbystabby)
  636. function throw(key)
  637. key = key:lower()
  638. if key == "e" and canuse then
  639. canuse = false
  640. for i = 0,1 , 0.03 do
  641. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.87712723, 0, -0.480258077, 0, 1, 0, 0.480258077, 0, 0.87712723),i)
  642. 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)
  643. 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)
  644. game:GetService("RunService").RenderStepped:wait()
  645. end
  646. local knifeclone = Model0:Clone()
  647. knifeclone.Parent = game.Players.LocalPlayer.Character
  648. knifeclone.hitbox:destroy()
  649. Part1.Transparency = 1
  650. local thrownpos = knifeclone.realknife.Position
  651. local canspin = true
  652. local downval = 0
  653. local mouselook = mouse.Hit.lookVector
  654. local mousepos = mouse.Hit
  655. throwB:Play()
  656. local velo = Instance.new("BodyVelocity", knifeclone.realknife)
  657. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  658. velo.Velocity = mouse.Hit.lookVector * 110
  659. knifeclone.realknife.CanCollide = true
  660. knifeclone.realknife.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,-4)
  661. knifeclone.realknife.CFrame = CFrame.new(knifeclone.realknife.Position, mouse.Hit.p)
  662. knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  663. local function attach(part)
  664. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  665. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  666. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  667. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  668. if humanoid and part.Parent.Name ~= game.Players.LocalPlayer.Name then
  669. canspin = false
  670. humanoid.Parent:BreakJoints()
  671. knifeclone:destroy()
  672. wait()
  673. local isr15 = part.Parent:findFirstChild("UpperTorso")
  674. if isr15 then
  675. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  676. humanoid.Parent.HumanoidRootPart.CanCollide = false
  677. end
  678. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  679. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  680. constraint.Attachment0 = attachone
  681. constraint.Attachment1 = attachtwo
  682. constraint.LimitsEnabled = true
  683. constraint.TwistLimitsEnabled = true
  684. constraint.TwistLowerAngle = lowang
  685. constraint.TwistUpperAngle = upperang
  686. constraint.UpperAngle = twist
  687. end
  688. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  689. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  690. constraint.Attachment0 = attachone
  691. constraint.Attachment1 = attachtwo
  692. constraint.LimitsEnabled = true
  693. constraint.LowerAngle = lowang
  694. constraint.UpperAngle = upperang
  695. end
  696. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  697. if v.ClassName == "Accessory" then
  698. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  699. if findhandle then
  700. local attach = findhandle:findFirstChildOfClass("Attachment")
  701. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  702. if w.Name == "UpperTorso" or w.Name == "Head" then
  703. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  704. end
  705. end
  706. if attach and attach1 then
  707. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  708. constraint.Attachment0 = attach
  709. constraint.Attachment1 = attach1
  710. constraint.LimitsEnabled = true
  711. constraint.LowerAngle = 0
  712. constraint.UpperAngle = 0
  713. end
  714. end
  715. end
  716. end
  717. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  718. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  719. attachment.Position = Vector3.new(0, -0.5, 0)
  720. attachment.Name = "lol"
  721. attachment.Visible = false
  722. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  723. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  724. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  725. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  726. ball.Attachment1 = attachment
  727. ball.LimitsEnabled = true
  728. ball.TwistLimitsEnabled = true
  729. ball.UpperAngle = 40
  730. ball.Restitution = 0.5
  731. ball.TwistUpperAngle = 40
  732. ball.TwistLowerAngle = -40
  733. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  734. collidepartofleftleg.Name = "Bone"
  735. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  736. collidepartofleftleg.Transparency = 1
  737. collidepartofleftleg:BreakJoints()
  738. local weeld = Instance.new("Weld", collidepartofleftleg)
  739. weeld.Part0 = collidepartofleftleg
  740. weeld.Part1 = humanoid.Parent["Head"]
  741. if humanoid.Parent.Head:findFirstChild("Neck") then
  742. humanoid.Parent.Head.Neck:destroy()
  743. end
  744. if humanoid.Parent.Head:findFirstChild("face") then
  745. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  746. end
  747. end
  748. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  749. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  750. --
  751. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  752. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  753. --
  754. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  755. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  756. --
  757. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  758. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  759. --Foot & Hands--
  760.  
  761. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  762. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  763. --
  764. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  765. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  766.  
  767. --END--
  768. --TORSOS--
  769.  
  770. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  771. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  772.  
  773. --END--
  774. if LowerTorso then
  775. if LeftUpperLeg then
  776. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  777. end
  778. if RightUpperLeg then
  779. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  780. end
  781. if LeftLowerLeg then
  782. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  783. end
  784. if RightLowerLeg then
  785. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  786. end
  787. if LeftFoot then
  788. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  789. end
  790. if RightFoot then
  791. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  792. end
  793. if UpperTorso then
  794. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  795. end
  796. end
  797. if UpperTorso then
  798. local vel = Instance.new("BodyVelocity", UpperTorso)
  799. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  800. vel.Velocity = mouselook *25 + Vector3.new(0,10,0)
  801. game.Debris:AddItem(vel, 0.1)
  802. local hitsound = Instance.new("Sound", UpperTorso)
  803. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  804. hitsound:Play()
  805. hitsound.Volume = math.random(5,10)
  806. local canhit = true
  807. local hitval = 15
  808. local uptor = humanoid.Parent.UpperTorso
  809. if RightUpperArm then
  810. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  811. end
  812. if RightLowerArm then
  813. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  814. end
  815. if RightHand then
  816. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  817. end
  818. if LeftUpperArm then
  819. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  820. end
  821. if LeftLowerArm then
  822. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  823. end
  824. if LeftHand then
  825. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  826. end
  827. end
  828. elseif part.Parent:findFirstChild("Torso") then
  829. canspin = false
  830. if humanoid.Parent:findFirstChild("Health") then
  831. humanoid.Parent.Health:Remove()
  832. end
  833. humanoid.WalkSpeed = 0
  834. humanoid.JumpPower = 0
  835. humanoid.PlatformStand = true
  836. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  837. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  838. attachment.Position = Vector3.new(1, 1, 0)
  839. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  840. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  841. ball.Attachment1 = attachment
  842. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  843. collidepartofleftleg.Name = "Bone"
  844. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  845. collidepartofleftleg.Transparency = 1
  846. collidepartofleftleg:BreakJoints()
  847. local weeld = Instance.new("Weld", collidepartofleftleg)
  848. weeld.Part0 = humanoid.Parent["Right Arm"]
  849. weeld.Part1 = collidepartofleftleg
  850. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  851. end
  852. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  853. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  854. attachment.Position = Vector3.new(-1, 1, 0)
  855. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  856. ball.Attachment0 = attachment
  857. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  858. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  859. collidepartofleftleg.Name = "Bone"
  860. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  861. collidepartofleftleg.Transparency = 1
  862. collidepartofleftleg:BreakJoints()
  863. local weeld = Instance.new("Weld", collidepartofleftleg)
  864. weeld.Part0 = humanoid.Parent["Left Arm"]
  865. weeld.Part1 = collidepartofleftleg
  866. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  867. end
  868. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  869. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  870. attachment.Position = Vector3.new(0.5, -1, 0)
  871. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  872. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  873. ball.Attachment1 = attachment
  874. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  875. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  876. collidepartofleftleg.Name = "Bone"
  877. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  878. collidepartofleftleg.Transparency = 1
  879. collidepartofleftleg:BreakJoints()
  880. local weeld = Instance.new("Weld", collidepartofleftleg)
  881. weeld.Part0 = humanoid.Parent["Right Leg"]
  882. weeld.Part1 = collidepartofleftleg
  883. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  884. end
  885. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  886. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  887. attachment.Position = Vector3.new(-0.5, -1, 0)
  888. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  889. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  890. ball.Attachment1 = attachment
  891. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  892. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  893. collidepartofleftleg.Name = "Bone"
  894. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  895. collidepartofleftleg.Transparency = 1
  896. collidepartofleftleg:BreakJoints()
  897. local weeld = Instance.new("Weld", collidepartofleftleg)
  898. weeld.Part0 = humanoid.Parent["Left Leg"]
  899. weeld.Part1 = collidepartofleftleg
  900. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  901. end
  902. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  903. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  904. attachment.Position = Vector3.new(0, -0.5, 0)
  905. attachment.Name = "lol"
  906. attachment.Visible = false
  907. humanoid.Parent.Torso.NeckAttachment.Visible = false
  908. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  909. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  910. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  911. ball.Attachment1 = attachment
  912. ball.LimitsEnabled = true
  913. ball.TwistLimitsEnabled = true
  914. ball.UpperAngle = 90
  915. ball.Restitution = 0.5
  916. ball.TwistUpperAngle = 90
  917. ball.TwistLowerAngle = -90
  918. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  919. collidepartofleftleg.Name = "Bone"
  920. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  921. collidepartofleftleg.Transparency = 1
  922. collidepartofleftleg:BreakJoints()
  923. local weeld = Instance.new("Weld", collidepartofleftleg)
  924. weeld.Part0 = collidepartofleftleg
  925. weeld.Part1 = humanoid.Parent["Head"]
  926. if humanoid.Parent.Torso:findFirstChild("Neck") then
  927. humanoid.Parent.Torso.Neck:destroy()
  928. end
  929. if humanoid.Parent.Head:findFirstChild("face") then
  930. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  931. end
  932. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  933. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  934. hitsound:Play()
  935. hitsound.Volume = math.random(5,10)
  936. end
  937. for z,x in pairs(humanoid.Parent:GetChildren()) do
  938. if x.ClassName == "Accessory" then
  939. local handle = x:findFirstChild("Handle")
  940. if handle then
  941. local attachment = handle:findFirstChildOfClass("Attachment")
  942. if attachment then
  943. for q,w in pairs(humanoid.Parent:GetChildren()) do
  944. if w.Name == "Torso" or w.Name == "Head" then
  945. local anotherone = w:findFirstChild(attachment.Name)
  946. if attachment and anotherone then
  947. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  948. constraint.Attachment0 = attachment
  949. constraint.Attachment1 = anotherone
  950. constraint.LimitsEnabled = true
  951. constraint.LowerAngle = 0
  952. constraint.UpperAngle = 0
  953. end
  954. end
  955. end
  956. end
  957. end
  958. end
  959. end
  960. if humanoid.Parent:findFirstChild("Head") then
  961. local aah = Instance.new("Sound", humanoid.Parent.Head)
  962. if aah then
  963. aah.Volume = 8
  964. local aahmath = math.random(2,8)
  965. if aahmath == 2 then
  966. aah.SoundId = "rbxassetid://884348443"
  967. aah:Play()
  968. end
  969. if aahmath == 3 then
  970. aah.SoundId = "rbxassetid://681582832"
  971. aah.Volume = 10
  972. aah:Play()
  973. end
  974. if aahmath == 4 then
  975. aah.SoundId = "rbxassetid://1080363252"
  976. aah:Play()
  977. end
  978. if aahmath == 5 then
  979. aah.SoundId = "rbxassetid://150245085"
  980. aah:Play()
  981. end
  982. if aahmath == 6 then
  983. aah.SoundId = "rbxassetid://345287845"
  984. aah.TimePosition = 2.5
  985. aah:Play()
  986. end
  987. if aahmath == 7 then
  988. aah.SoundId = "rbxassetid://147758746"
  989. aah.TimePosition = 1.3
  990. aah:Play()
  991. end
  992. if aahmath == 8 then
  993. aah.SoundId = "rbxassetid://131314452"
  994. aah:Play()
  995. end
  996. end
  997. end
  998. end
  999. else
  1000. if part.Parent.ClassName ~= "Accessory" then
  1001. canspin = false
  1002. hitwall:Play()
  1003. knifeclone.realknife.Anchored = true
  1004. local knifeclonen = knifeclone:Clone()
  1005. knifeclonen.Parent = workspace
  1006. knifeclone:destroy()
  1007. knifeclonen.realknife.CFrame = CFrame.new(knifeclonen.realknife.Position, thrownpos)
  1008. knifeclonen.realknife.CFrame = knifeclonen.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  1009. game.Debris:AddItem(knifeclonen, 10)
  1010. end
  1011. end
  1012. end
  1013. knifeclone.realknife.Touched:connect(attach)
  1014. local function spin()
  1015. if workspace:FindFirstChild(Model0.Name) then
  1016. if canspin then
  1017. downval = downval + 1
  1018. --knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.25)
  1019. if downval < 150 then
  1020. --knifeclone.realknife.RotVelocity = mousepos.rightVector * -2
  1021. velo.Velocity = velo.Velocity + Vector3.new(0,-0.7,0)
  1022. end
  1023. end
  1024. end
  1025. end
  1026. game:GetService("RunService").RenderStepped:connect(spin)
  1027. for i = 0.2,1 , 0.1 do
  1028. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.652971387, 0, 0.757382512, 0, 1, 0, -0.757382512, 0, 0.652971387),i)
  1029. 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)
  1030. 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)
  1031. game:GetService("RunService").RenderStepped:wait()
  1032. end
  1033. canuse = true
  1034. for i = 0,1 , 0.01 do
  1035. if canuse then
  1036. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1037. 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)
  1038. 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)
  1039. game:GetService("RunService").RenderStepped:wait()
  1040. end
  1041. end
  1042. Part1.Transparency = 0
  1043. Part1.CanCollide = false
  1044. Part3.CanCollide = false
  1045. end
  1046. end
  1047. mouse.KeyDown:connect(throw)
  1048. for i = 0,1 , 0.01 do
  1049. if canuse then
  1050. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1051. 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)
  1052. 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)
  1053. game:GetService("RunService").RenderStepped:wait()
  1054. end
  1055. end
  1056. while true do
  1057. if canuse then
  1058. for i = 0,1 , 0.01 do
  1059. if canuse then
  1060. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  1061. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  1062. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1063. 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)
  1064. 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)
  1065. game:GetService("RunService").RenderStepped:wait()
  1066. end
  1067. end
  1068. for i = 0,1 , 0.01 do
  1069. if canuse then
  1070. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  1071. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  1072. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1073. 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)
  1074. 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)
  1075. game:GetService("RunService").RenderStepped:wait()
  1076. end
  1077. end
  1078. end
  1079. if throwB.Parent == nil then
  1080. throwB.Parent = Model0.realknife
  1081. end
  1082. if slash.Parent == nil then
  1083. slash.Parent = Model0.realknife
  1084. end
  1085. if hitwall.Parent == nil then
  1086. hitwall.Parent = Model0.realknife
  1087. end
  1088. wait()
  1089. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement