Advertisement
HenloMyDude

messing with code

May 17th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 100.06 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. --|| Controls:
  7.  
  8. -- [ R2 ] - Sprint
  9. -- [ L2 ] - Crouch
  10. -- [ L2 TAP ] - Chat HUD
  11.  
  12. -- [ Y ] - Point Walk -- movement joystick works -- may or may not be mixed up with the Teleport button
  13. -- [ B ] - Point Teleport -- may or may not be mixed up with the Walk button
  14. -- [ X ] - RagdollEnabled die
  15.  
  16. -- [ C ] - Non-VR Teleport
  17. -- [ LSHIFT ] - Non-VR Sprint
  18. -- [ LCTRL ] - Non-VR Crouch
  19.  
  20. -- Default Roblox VR controls are included
  21.  
  22. --|| Settings:
  23.  
  24. local mas = script
  25. local Humanoid = Instance.new("Humanoid")
  26. local face_2 = Instance.new("Decal")
  27. local OriginalSize_17 = Instance.new("Vector3Value")
  28. local Neck = Instance.new("Motor6D")
  29. local face = Instance.new("Decal")
  30. local OriginalPosition_46 = Instance.new("Vector3Value")
  31. local NeckRigAttachment_2 = Instance.new("Attachment")
  32. local OriginalPosition_45 = Instance.new("Vector3Value")
  33. local HatAttachment = Instance.new("Attachment")
  34. local OriginalPosition_44 = Instance.new("Vector3Value")
  35. local HairAttachment = Instance.new("Attachment")
  36. local OriginalPosition_43 = Instance.new("Vector3Value")
  37. local FaceFrontAttachment = Instance.new("Attachment")
  38. local OriginalPosition_42 = Instance.new("Vector3Value")
  39. local FaceCenterAttachment = Instance.new("Attachment")
  40. local OriginalSize_16 = Instance.new("Vector3Value")
  41. local Mesh = Instance.new("SpecialMesh")
  42. local Head = Instance.new("Part")
  43. local OriginalSize_15 = Instance.new("Vector3Value")
  44. local Root = Instance.new("Motor6D")
  45. local OriginalPosition_41 = Instance.new("Vector3Value")
  46. local WaistBackAttachment = Instance.new("Attachment")
  47. local OriginalPosition_40 = Instance.new("Vector3Value")
  48. local WaistFrontAttachment = Instance.new("Attachment")
  49. local OriginalPosition_39 = Instance.new("Vector3Value")
  50. local WaistCenterAttachment = Instance.new("Attachment")
  51. local OriginalPosition_38 = Instance.new("Vector3Value")
  52. local RightHipRigAttachment_2 = Instance.new("Attachment")
  53. local OriginalPosition_37 = Instance.new("Vector3Value")
  54. local LeftHipRigAttachment_2 = Instance.new("Attachment")
  55. local OriginalPosition_36 = Instance.new("Vector3Value")
  56. local WaistRigAttachment_2 = Instance.new("Attachment")
  57. local OriginalPosition_35 = Instance.new("Vector3Value")
  58. local RootRigAttachment_2 = Instance.new("Attachment")
  59. local LowerTorso = Instance.new("MeshPart")
  60. local HipAlignment_2 = Instance.new("AlignOrientation")
  61. local HipConstraint_2 = Instance.new("AlignPosition")
  62. local OriginalSize_14 = Instance.new("Vector3Value")
  63. local RightHip = Instance.new("Motor6D")
  64. local OriginalPosition_34 = Instance.new("Vector3Value")
  65. local RightKneeRigAttachment_2 = Instance.new("Attachment")
  66. local OriginalPosition_33 = Instance.new("Vector3Value")
  67. local RightHipRigAttachment = Instance.new("Attachment")
  68. local RightUpperLeg = Instance.new("MeshPart")
  69. local KneeConstraint_2 = Instance.new("BallSocketConstraint")
  70. local AnkleConstraint_2 = Instance.new("BallSocketConstraint")
  71. local OriginalSize_13 = Instance.new("Vector3Value")
  72. local RightKnee = Instance.new("Motor6D")
  73. local OriginalPosition_32 = Instance.new("Vector3Value")
  74. local RightAnkleRigAttachment_2 = Instance.new("Attachment")
  75. local OriginalPosition_31 = Instance.new("Vector3Value")
  76. local RightKneeRigAttachment = Instance.new("Attachment")
  77. local RightLowerLeg = Instance.new("MeshPart")
  78. local BodyGyro_2 = Instance.new("BodyGyro")
  79. local BodyPosition_2 = Instance.new("BodyPosition")
  80. local OriginalSize_12 = Instance.new("Vector3Value")
  81. local RightAnkle = Instance.new("Motor6D")
  82. local OriginalPosition_30 = Instance.new("Vector3Value")
  83. local RightAnkleRigAttachment = Instance.new("Attachment")
  84. local RightFoot = Instance.new("MeshPart")
  85. local HipAlignment = Instance.new("AlignOrientation")
  86. local HipConstraint = Instance.new("AlignPosition")
  87. local OriginalSize_11 = Instance.new("Vector3Value")
  88. local LeftHip = Instance.new("Motor6D")
  89. local OriginalPosition_29 = Instance.new("Vector3Value")
  90. local LeftKneeRigAttachment_2 = Instance.new("Attachment")
  91. local OriginalPosition_28 = Instance.new("Vector3Value")
  92. local LeftHipRigAttachment = Instance.new("Attachment")
  93. local LeftUpperLeg = Instance.new("MeshPart")
  94. local AnkleConstraint = Instance.new("BallSocketConstraint")
  95. local KneeConstraint = Instance.new("BallSocketConstraint")
  96. local OriginalSize_10 = Instance.new("Vector3Value")
  97. local LeftKnee = Instance.new("Motor6D")
  98. local OriginalPosition_27 = Instance.new("Vector3Value")
  99. local LeftAnkleRigAttachment_2 = Instance.new("Attachment")
  100. local OriginalPosition_26 = Instance.new("Vector3Value")
  101. local LeftKneeRigAttachment = Instance.new("Attachment")
  102. local LeftLowerLeg = Instance.new("MeshPart")
  103. local BodyGyro = Instance.new("BodyGyro")
  104. local BodyPosition = Instance.new("BodyPosition")
  105. local OriginalSize_9 = Instance.new("Vector3Value")
  106. local LeftAnkle = Instance.new("Motor6D")
  107. local OriginalPosition_25 = Instance.new("Vector3Value")
  108. local LeftAnkleRigAttachment = Instance.new("Attachment")
  109. local LeftFoot = Instance.new("MeshPart")
  110. local WaistConstraint = Instance.new("HingeConstraint")
  111. local NeckConstraint = Instance.new("BallSocketConstraint")
  112. local OriginalSize_8 = Instance.new("Vector3Value")
  113. local Waist = Instance.new("Motor6D")
  114. local OriginalPosition_24 = Instance.new("Vector3Value")
  115. local NeckAttachment = Instance.new("Attachment")
  116. local OriginalPosition_23 = Instance.new("Vector3Value")
  117. local RightCollarAttachment = Instance.new("Attachment")
  118. local OriginalPosition_22 = Instance.new("Vector3Value")
  119. local LeftCollarAttachment = Instance.new("Attachment")
  120. local OriginalPosition_21 = Instance.new("Vector3Value")
  121. local BodyBackAttachment = Instance.new("Attachment")
  122. local OriginalPosition_20 = Instance.new("Vector3Value")
  123. local BodyFrontAttachment = Instance.new("Attachment")
  124. local OriginalPosition_19 = Instance.new("Vector3Value")
  125. local RightShoulderRigAttachment_2 = Instance.new("Attachment")
  126. local OriginalPosition_18 = Instance.new("Vector3Value")
  127. local LeftShoulderRigAttachment_2 = Instance.new("Attachment")
  128. local OriginalPosition_17 = Instance.new("Vector3Value")
  129. local NeckRigAttachment = Instance.new("Attachment")
  130. local OriginalPosition_16 = Instance.new("Vector3Value")
  131. local WaistRigAttachment = Instance.new("Attachment")
  132. local UpperTorso = Instance.new("MeshPart")
  133. local ShoulderAlignment_2 = Instance.new("AlignOrientation")
  134. local Aim_2 = Instance.new("BodyGyro")
  135. local ShoulderConstraint_2 = Instance.new("AlignPosition")
  136. local ElbowConstraint_2 = Instance.new("BallSocketConstraint")
  137. local OriginalSize_7 = Instance.new("Vector3Value")
  138. local RightShoulder = Instance.new("Motor6D")
  139. local OriginalPosition_15 = Instance.new("Vector3Value")
  140. local RightShoulderAttachment = Instance.new("Attachment")
  141. local OriginalPosition_14 = Instance.new("Vector3Value")
  142. local RightElbowRigAttachment_2 = Instance.new("Attachment")
  143. local OriginalPosition_13 = Instance.new("Vector3Value")
  144. local RightShoulderRigAttachment = Instance.new("Attachment")
  145. local RightUpperArm = Instance.new("MeshPart")
  146. local WristConstraint_2 = Instance.new("AlignPosition")
  147. local OriginalSize_6 = Instance.new("Vector3Value")
  148. local RightElbow = Instance.new("Motor6D")
  149. local OriginalPosition_12 = Instance.new("Vector3Value")
  150. local RightWristRigAttachment_2 = Instance.new("Attachment")
  151. local OriginalPosition_11 = Instance.new("Vector3Value")
  152. local RightElbowRigAttachment = Instance.new("Attachment")
  153. local RightLowerArm = Instance.new("MeshPart")
  154. local OriginalSize_5 = Instance.new("Vector3Value")
  155. local RightWrist = Instance.new("Motor6D")
  156. local OriginalPosition_10 = Instance.new("Vector3Value")
  157. local RightGripAttachment = Instance.new("Attachment")
  158. local OriginalPosition_9 = Instance.new("Vector3Value")
  159. local RightWristRigAttachment = Instance.new("Attachment")
  160. local RightHand = Instance.new("MeshPart")
  161. local ShoulderAlignment = Instance.new("AlignOrientation")
  162. local Aim = Instance.new("BodyGyro")
  163. local ShoulderConstraint = Instance.new("AlignPosition")
  164. local ElbowConstraint = Instance.new("BallSocketConstraint")
  165. local OriginalSize_4 = Instance.new("Vector3Value")
  166. local LeftShoulder = Instance.new("Motor6D")
  167. local OriginalPosition_8 = Instance.new("Vector3Value")
  168. local LeftShoulderAttachment = Instance.new("Attachment")
  169. local OriginalPosition_7 = Instance.new("Vector3Value")
  170. local LeftElbowRigAttachment_2 = Instance.new("Attachment")
  171. local OriginalPosition_6 = Instance.new("Vector3Value")
  172. local LeftShoulderRigAttachment = Instance.new("Attachment")
  173. local LeftUpperArm = Instance.new("MeshPart")
  174. local WristConstraint = Instance.new("AlignPosition")
  175. local OriginalSize_3 = Instance.new("Vector3Value")
  176. local LeftElbow = Instance.new("Motor6D")
  177. local OriginalPosition_5 = Instance.new("Vector3Value")
  178. local LeftWristRigAttachment_2 = Instance.new("Attachment")
  179. local OriginalPosition_4 = Instance.new("Vector3Value")
  180. local LeftElbowRigAttachment = Instance.new("Attachment")
  181. local LeftLowerArm = Instance.new("MeshPart")
  182. local OriginalSize_2 = Instance.new("Vector3Value")
  183. local LeftWrist = Instance.new("Motor6D")
  184. local OriginalPosition_3 = Instance.new("Vector3Value")
  185. local LeftGripAttachment = Instance.new("Attachment")
  186. local OriginalPosition_2 = Instance.new("Vector3Value")
  187. local LeftWristRigAttachment = Instance.new("Attachment")
  188. local LeftHand = Instance.new("MeshPart")
  189. local OriginalSize = Instance.new("Vector3Value")
  190. local OriginalPosition = Instance.new("Vector3Value")
  191. local RootRigAttachment = Instance.new("Attachment")
  192. local HumanoidRootPart = Instance.new("Part")
  193. local Dummy = Instance.new("Model")
  194. Dummy.Name = "Dummy"
  195. Dummy.PrimaryPart = HumanoidRootPart
  196. Dummy.Parent = mas
  197. HumanoidRootPart.Massless = true
  198. HumanoidRootPart.Size = Vector3.new(2,2,1)
  199. HumanoidRootPart.Name = "HumanoidRootPart"
  200. HumanoidRootPart.CanCollide = false
  201. HumanoidRootPart.Transparency = 1
  202. HumanoidRootPart.CFrame = CFrame.new(118.2144,14.8212,86.635,1,0,0,0,1,0,0,0,1)
  203. HumanoidRootPart.Parent = Dummy
  204. RootRigAttachment.WorldPosition = Vector3.new(118.214,13.821,86.635)
  205. RootRigAttachment.CFrame = CFrame.new(0,-1,0,1,0,0,0,1,0,0,0,1)
  206. RootRigAttachment.WorldCFrame = CFrame.new(118.2144,13.8212,86.635,1,0,0,0,1,0,0,0,1)
  207. RootRigAttachment.Name = "RootRigAttachment"
  208. RootRigAttachment.Position = Vector3.new(0,-1,0)
  209. RootRigAttachment.Parent = HumanoidRootPart
  210. OriginalPosition.Name = "OriginalPosition"
  211. OriginalPosition.Value = Vector3.new(0,-0.35,0)
  212. OriginalPosition.Parent = RootRigAttachment
  213. OriginalSize.Name = "OriginalSize"
  214. OriginalSize.Value = Vector3.new(2,2,1)
  215. OriginalSize.Parent = HumanoidRootPart
  216. LeftHand.Massless = true
  217. LeftHand.Size = Vector3.new(1,0.3,1)
  218. LeftHand.Name = "LeftHand"
  219. LeftHand.CanCollide = false
  220. LeftHand.Transparency = 0.5
  221. LeftHand.CFrame = CFrame.new(116.7144,13.9711,86.635,1,0,0,0,1,0,0,0,1)
  222. LeftHand.Parent = Dummy
  223. LeftWristRigAttachment.WorldPosition = Vector3.new(116.715,14.096,86.635)
  224. LeftWristRigAttachment.CFrame = CFrame.new(0.0005,0.125,0,1,0,0,0,1,0,0,0,1)
  225. LeftWristRigAttachment.WorldCFrame = CFrame.new(116.7149,14.0962,86.635,1,0,0,0,1,0,0,0,1)
  226. LeftWristRigAttachment.Name = "LeftWristRigAttachment"
  227. LeftWristRigAttachment.Position = Vector3.new(0,0.125,0)
  228. LeftWristRigAttachment.Parent = LeftHand
  229. OriginalPosition_2.Name = "OriginalPosition"
  230. OriginalPosition_2.Value = Vector3.new(0,0.125,0)
  231. OriginalPosition_2.Parent = LeftWristRigAttachment
  232. LeftGripAttachment.WorldPosition = Vector3.new(116.714,13.821,86.635)
  233. LeftGripAttachment.WorldOrientation = Vector3.new(-90,0,0)
  234. LeftGripAttachment.CFrame = CFrame.new(0,-0.15,0,1,0,0,0,0,1,0,-1,0)
  235. LeftGripAttachment.SecondaryAxis = Vector3.new(0,0,-1)
  236. LeftGripAttachment.WorldCFrame = CFrame.new(116.7144,13.8212,86.635,1,0,0,0,0,1,0,-1,0)
  237. LeftGripAttachment.Name = "LeftGripAttachment"
  238. LeftGripAttachment.Orientation = Vector3.new(-90,0,0)
  239. LeftGripAttachment.WorldSecondaryAxis = Vector3.new(0,0,-1)
  240. LeftGripAttachment.Position = Vector3.new(0,-0.15,0)
  241. LeftGripAttachment.Parent = LeftHand
  242. OriginalPosition_3.Name = "OriginalPosition"
  243. OriginalPosition_3.Value = Vector3.new(0,-0.15,0)
  244. OriginalPosition_3.Parent = LeftGripAttachment
  245. LeftWrist.C1 = CFrame.new(0.0005,0.125,0,1,0,0,0,1,0,0,0,1)
  246. LeftWrist.C0 = CFrame.new(0.0005,-0.5009,0,1,0,0,0,1,0,0,0,1)
  247. LeftWrist.Name = "LeftWrist"
  248. LeftWrist.Part1 = LeftHand
  249. LeftWrist.Part0 = LeftLowerArm
  250. LeftWrist.Parent = LeftHand
  251. OriginalSize_2.Name = "OriginalSize"
  252. OriginalSize_2.Value = Vector3.new(1,0.3,1)
  253. OriginalSize_2.Parent = LeftHand
  254. LeftLowerArm.Massless = true
  255. LeftLowerArm.Size = Vector3.new(1,1.052,1)
  256. LeftLowerArm.Name = "LeftLowerArm"
  257. LeftLowerArm.CanCollide = false
  258. LeftLowerArm.Transparency = 0.5
  259. LeftLowerArm.CFrame = CFrame.new(116.7144,14.5971,86.635,1,0,0,0,1,0,0,0,1)
  260. LeftLowerArm.Parent = Dummy
  261. LeftElbowRigAttachment.WorldPosition = Vector3.new(116.715,14.856,86.635)
  262. LeftElbowRigAttachment.CFrame = CFrame.new(0.0005,0.2587,0,1,0,0,0,1,0,0,0,1)
  263. LeftElbowRigAttachment.WorldCFrame = CFrame.new(116.7149,14.8558,86.635,1,0,0,0,1,0,0,0,1)
  264. LeftElbowRigAttachment.Name = "LeftElbowRigAttachment"
  265. LeftElbowRigAttachment.Position = Vector3.new(0,0.259,0)
  266. LeftElbowRigAttachment.Parent = LeftLowerArm
  267. OriginalPosition_4.Name = "OriginalPosition"
  268. OriginalPosition_4.Value = Vector3.new(0,0.259,0)
  269. OriginalPosition_4.Parent = LeftElbowRigAttachment
  270. LeftWristRigAttachment_2.WorldPosition = Vector3.new(116.715,14.096,86.635)
  271. LeftWristRigAttachment_2.CFrame = CFrame.new(0.0005,-0.5009,0,1,0,0,0,1,0,0,0,1)
  272. LeftWristRigAttachment_2.WorldCFrame = CFrame.new(116.7149,14.0962,86.635,1,0,0,0,1,0,0,0,1)
  273. LeftWristRigAttachment_2.Name = "LeftWristRigAttachment"
  274. LeftWristRigAttachment_2.Position = Vector3.new(0,-0.501,0)
  275. LeftWristRigAttachment_2.Parent = LeftLowerArm
  276. OriginalPosition_5.Name = "OriginalPosition"
  277. OriginalPosition_5.Value = Vector3.new(0,-0.501,0)
  278. OriginalPosition_5.Parent = LeftWristRigAttachment_2
  279. LeftElbow.C1 = CFrame.new(0.0005,0.2587,0,1,0,0,0,1,0,0,0,1)
  280. LeftElbow.C0 = CFrame.new(0.0005,-0.3341,0,1,0,0,0,1,0,0,0,1)
  281. LeftElbow.Name = "LeftElbow"
  282. LeftElbow.Part1 = LeftLowerArm
  283. LeftElbow.Part0 = LeftUpperArm
  284. LeftElbow.Parent = LeftLowerArm
  285. OriginalSize_3.Name = "OriginalSize"
  286. OriginalSize_3.Value = Vector3.new(1,1.052,1)
  287. OriginalSize_3.Parent = LeftLowerArm
  288. WristConstraint.Attachment0 = LeftWristRigAttachment_2
  289. WristConstraint.RigidityEnabled = true
  290. WristConstraint.Attachment1 = LeftWristRigAttachment
  291. WristConstraint.Responsiveness = 30
  292. WristConstraint.Color = BrickColor.new("New Yeller")
  293. WristConstraint.Name = "WristConstraint"
  294. WristConstraint.ReactionForceEnabled = true
  295. WristConstraint.Parent = LeftLowerArm
  296. LeftUpperArm.Massless = true
  297. LeftUpperArm.Size = Vector3.new(1,1.169,1)
  298. LeftUpperArm.Name = "LeftUpperArm"
  299. LeftUpperArm.CanCollide = false
  300. LeftUpperArm.Transparency = 0.5
  301. LeftUpperArm.CFrame = CFrame.new(116.7144,15.1899,86.635,1,0,0,0,1,0,0,0,1)
  302. LeftUpperArm.Parent = Dummy
  303. LeftShoulderRigAttachment.WorldPosition = Vector3.new(117.214,15.584,86.635)
  304. LeftShoulderRigAttachment.CFrame = CFrame.new(0.5,0.3943,0,1,0,0,0,1,0,0,0,1)
  305. LeftShoulderRigAttachment.WorldCFrame = CFrame.new(117.2144,15.5842,86.635,1,0,0,0,1,0,0,0,1)
  306. LeftShoulderRigAttachment.Name = "LeftShoulderRigAttachment"
  307. LeftShoulderRigAttachment.Position = Vector3.new(0.5,0.394,0)
  308. LeftShoulderRigAttachment.Parent = LeftUpperArm
  309. OriginalPosition_6.Name = "OriginalPosition"
  310. OriginalPosition_6.Value = Vector3.new(0.5,0.394,0)
  311. OriginalPosition_6.Parent = LeftShoulderRigAttachment
  312. LeftElbowRigAttachment_2.WorldPosition = Vector3.new(116.715,14.856,86.635)
  313. LeftElbowRigAttachment_2.CFrame = CFrame.new(0.0005,-0.3341,0,1,0,0,0,1,0,0,0,1)
  314. LeftElbowRigAttachment_2.WorldCFrame = CFrame.new(116.7149,14.8558,86.635,1,0,0,0,1,0,0,0,1)
  315. LeftElbowRigAttachment_2.Name = "LeftElbowRigAttachment"
  316. LeftElbowRigAttachment_2.Position = Vector3.new(0,-0.334,0)
  317. LeftElbowRigAttachment_2.Parent = LeftUpperArm
  318. OriginalPosition_7.Name = "OriginalPosition"
  319. OriginalPosition_7.Value = Vector3.new(0,-0.334,0)
  320. OriginalPosition_7.Parent = LeftElbowRigAttachment_2
  321. LeftShoulderAttachment.WorldPosition = Vector3.new(116.714,15.774,86.635)
  322. LeftShoulderAttachment.CFrame = CFrame.new(0,0.5843,0,1,0,0,0,1,0,0,0,1)
  323. LeftShoulderAttachment.WorldCFrame = CFrame.new(116.7144,15.7742,86.635,1,0,0,0,1,0,0,0,1)
  324. LeftShoulderAttachment.Name = "LeftShoulderAttachment"
  325. LeftShoulderAttachment.Position = Vector3.new(0,0.584,0)
  326. LeftShoulderAttachment.Parent = LeftUpperArm
  327. OriginalPosition_8.Name = "OriginalPosition"
  328. OriginalPosition_8.Value = Vector3.new(0,0.584,0)
  329. OriginalPosition_8.Parent = LeftShoulderAttachment
  330. LeftShoulder.C1 = CFrame.new(0.5,0.3943,0,1,0,0,0,1,0,0,0,1)
  331. LeftShoulder.C0 = CFrame.new(-1,0.563,0,1,0,0,0,1,0,0,0,1)
  332. LeftShoulder.Name = "LeftShoulder"
  333. LeftShoulder.Part1 = LeftUpperArm
  334. LeftShoulder.Part0 = UpperTorso
  335. LeftShoulder.Parent = LeftUpperArm
  336. OriginalSize_4.Name = "OriginalSize"
  337. OriginalSize_4.Value = Vector3.new(1,1.169,1)
  338. OriginalSize_4.Parent = LeftUpperArm
  339. ElbowConstraint.Attachment0 = LeftElbowRigAttachment_2
  340. ElbowConstraint.TwistLimitsEnabled = true
  341. ElbowConstraint.Attachment1 = LeftElbowRigAttachment
  342. ElbowConstraint.LimitsEnabled = true
  343. ElbowConstraint.Name = "ElbowConstraint"
  344. ElbowConstraint.Parent = LeftUpperArm
  345. ShoulderConstraint.Attachment0 = LeftShoulderRigAttachment
  346. ShoulderConstraint.Attachment1 = LeftShoulderRigAttachment_2
  347. ShoulderConstraint.Responsiveness = 30
  348. ShoulderConstraint.Color = BrickColor.new("New Yeller")
  349. ShoulderConstraint.Name = "ShoulderConstraint"
  350. ShoulderConstraint.ReactionForceEnabled = true
  351. ShoulderConstraint.Parent = LeftUpperArm
  352. Aim.P = 20000
  353. Aim.MaxTorque = Vector3.new(40000,40000,40000)
  354. Aim.Name = "Aim"
  355. Aim.Parent = LeftUpperArm
  356. ShoulderAlignment.MaxTorque = 3000
  357. ShoulderAlignment.Attachment0 = LeftShoulderRigAttachment
  358. ShoulderAlignment.ReactionTorqueEnabled = true
  359. ShoulderAlignment.Attachment1 = LeftShoulderRigAttachment_2
  360. ShoulderAlignment.Responsiveness = 15
  361. ShoulderAlignment.Color = BrickColor.new("New Yeller")
  362. ShoulderAlignment.Name = "ShoulderAlignment"
  363. ShoulderAlignment.Parent = LeftUpperArm
  364. RightHand.Massless = true
  365. RightHand.Size = Vector3.new(1,0.3,1)
  366. RightHand.Name = "RightHand"
  367. RightHand.CanCollide = false
  368. RightHand.Transparency = 0.5
  369. RightHand.CFrame = CFrame.new(119.7144,13.9711,86.635,1,0,0,0,1,0,0,0,1)
  370. RightHand.Parent = Dummy
  371. RightWristRigAttachment.WorldPosition = Vector3.new(119.714,14.096,86.635)
  372. RightWristRigAttachment.CFrame = CFrame.new(0,0.125,0,1,0,0,0,1,0,0,0,1)
  373. RightWristRigAttachment.WorldCFrame = CFrame.new(119.7144,14.0962,86.635,1,0,0,0,1,0,0,0,1)
  374. RightWristRigAttachment.Name = "RightWristRigAttachment"
  375. RightWristRigAttachment.Position = Vector3.new(0,0.125,0)
  376. RightWristRigAttachment.Parent = RightHand
  377. OriginalPosition_9.Name = "OriginalPosition"
  378. OriginalPosition_9.Value = Vector3.new(0,0.125,0)
  379. OriginalPosition_9.Parent = RightWristRigAttachment
  380. RightGripAttachment.WorldPosition = Vector3.new(119.714,13.821,86.635)
  381. RightGripAttachment.WorldOrientation = Vector3.new(-90,0,0)
  382. RightGripAttachment.CFrame = CFrame.new(0,-0.15,0,1,0,0,0,0,1,0,-1,0)
  383. RightGripAttachment.SecondaryAxis = Vector3.new(0,0,-1)
  384. RightGripAttachment.WorldCFrame = CFrame.new(119.7144,13.8212,86.635,1,0,0,0,0,1,0,-1,0)
  385. RightGripAttachment.Name = "RightGripAttachment"
  386. RightGripAttachment.Orientation = Vector3.new(-90,0,0)
  387. RightGripAttachment.WorldSecondaryAxis = Vector3.new(0,0,-1)
  388. RightGripAttachment.Position = Vector3.new(0,-0.15,0)
  389. RightGripAttachment.Parent = RightHand
  390. OriginalPosition_10.Name = "OriginalPosition"
  391. OriginalPosition_10.Value = Vector3.new(0,-0.15,0)
  392. OriginalPosition_10.Parent = RightGripAttachment
  393. RightWrist.C1 = CFrame.new(0,0.125,0,1,0,0,0,1,0,0,0,1)
  394. RightWrist.C0 = CFrame.new(0,-0.5009,0,1,0,0,0,1,0,0,0,1)
  395. RightWrist.Name = "RightWrist"
  396. RightWrist.Part1 = RightHand
  397. RightWrist.Part0 = RightLowerArm
  398. RightWrist.Parent = RightHand
  399. OriginalSize_5.Name = "OriginalSize"
  400. OriginalSize_5.Value = Vector3.new(1,0.3,1)
  401. OriginalSize_5.Parent = RightHand
  402. RightLowerArm.Massless = true
  403. RightLowerArm.Size = Vector3.new(1,1.052,1)
  404. RightLowerArm.Name = "RightLowerArm"
  405. RightLowerArm.CanCollide = false
  406. RightLowerArm.Transparency = 0.5
  407. RightLowerArm.CFrame = CFrame.new(119.7144,14.5971,86.635,1,0,0,0,1,0,0,0,1)
  408. RightLowerArm.Parent = Dummy
  409. RightElbowRigAttachment.WorldPosition = Vector3.new(119.714,14.856,86.635)
  410. RightElbowRigAttachment.CFrame = CFrame.new(0,0.2586,0,1,0,0,0,1,0,0,0,1)
  411. RightElbowRigAttachment.WorldCFrame = CFrame.new(119.7144,14.8557,86.635,1,0,0,0,1,0,0,0,1)
  412. RightElbowRigAttachment.Name = "RightElbowRigAttachment"
  413. RightElbowRigAttachment.Position = Vector3.new(0,0.259,0)
  414. RightElbowRigAttachment.Parent = RightLowerArm
  415. OriginalPosition_11.Name = "OriginalPosition"
  416. OriginalPosition_11.Value = Vector3.new(0,0.259,0)
  417. OriginalPosition_11.Parent = RightElbowRigAttachment
  418. RightWristRigAttachment_2.WorldPosition = Vector3.new(119.714,14.096,86.635)
  419. RightWristRigAttachment_2.CFrame = CFrame.new(0,-0.5009,0,1,0,0,0,1,0,0,0,1)
  420. RightWristRigAttachment_2.WorldCFrame = CFrame.new(119.7144,14.0962,86.635,1,0,0,0,1,0,0,0,1)
  421. RightWristRigAttachment_2.Name = "RightWristRigAttachment"
  422. RightWristRigAttachment_2.Position = Vector3.new(0,-0.501,0)
  423. RightWristRigAttachment_2.Parent = RightLowerArm
  424. OriginalPosition_12.Name = "OriginalPosition"
  425. OriginalPosition_12.Value = Vector3.new(0,-0.501,0)
  426. OriginalPosition_12.Parent = RightWristRigAttachment_2
  427. RightElbow.C1 = CFrame.new(0,0.2586,0,1,0,0,0,1,0,0,0,1)
  428. RightElbow.C0 = CFrame.new(0,-0.3342,0,1,0,0,0,1,0,0,0,1)
  429. RightElbow.Name = "RightElbow"
  430. RightElbow.Part1 = RightLowerArm
  431. RightElbow.Part0 = RightUpperArm
  432. RightElbow.Parent = RightLowerArm
  433. OriginalSize_6.Name = "OriginalSize"
  434. OriginalSize_6.Value = Vector3.new(1,1.052,1)
  435. OriginalSize_6.Parent = RightLowerArm
  436. WristConstraint_2.Attachment0 = RightWristRigAttachment
  437. WristConstraint_2.RigidityEnabled = true
  438. WristConstraint_2.Attachment1 = RightWristRigAttachment_2
  439. WristConstraint_2.Responsiveness = 30
  440. WristConstraint_2.Color = BrickColor.new("New Yeller")
  441. WristConstraint_2.Name = "WristConstraint"
  442. WristConstraint_2.ReactionForceEnabled = true
  443. WristConstraint_2.Parent = RightLowerArm
  444. RightUpperArm.Massless = true
  445. RightUpperArm.Size = Vector3.new(1,1.169,1)
  446. RightUpperArm.Name = "RightUpperArm"
  447. RightUpperArm.CanCollide = false
  448. RightUpperArm.Transparency = 0.5
  449. RightUpperArm.CFrame = CFrame.new(119.7144,15.1899,86.635,1,0,0,0,1,0,0,0,1)
  450. RightUpperArm.Parent = Dummy
  451. RightShoulderRigAttachment.WorldPosition = Vector3.new(119.214,15.584,86.635)
  452. RightShoulderRigAttachment.CFrame = CFrame.new(-0.5,0.3943,0,1,0,0,0,1,0,0,0,1)
  453. RightShoulderRigAttachment.WorldCFrame = CFrame.new(119.2144,15.5842,86.635,1,0,0,0,1,0,0,0,1)
  454. RightShoulderRigAttachment.Name = "RightShoulderRigAttachment"
  455. RightShoulderRigAttachment.Position = Vector3.new(-0.5,0.394,0)
  456. RightShoulderRigAttachment.Parent = RightUpperArm
  457. OriginalPosition_13.Name = "OriginalPosition"
  458. OriginalPosition_13.Value = Vector3.new(-0.5,0.394,0)
  459. OriginalPosition_13.Parent = RightShoulderRigAttachment
  460. RightElbowRigAttachment_2.WorldPosition = Vector3.new(119.714,14.856,86.635)
  461. RightElbowRigAttachment_2.CFrame = CFrame.new(0,-0.3342,0,1,0,0,0,1,0,0,0,1)
  462. RightElbowRigAttachment_2.WorldCFrame = CFrame.new(119.7144,14.8557,86.635,1,0,0,0,1,0,0,0,1)
  463. RightElbowRigAttachment_2.Name = "RightElbowRigAttachment"
  464. RightElbowRigAttachment_2.Position = Vector3.new(0,-0.334,0)
  465. RightElbowRigAttachment_2.Parent = RightUpperArm
  466. OriginalPosition_14.Name = "OriginalPosition"
  467. OriginalPosition_14.Value = Vector3.new(0,-0.334,0)
  468. OriginalPosition_14.Parent = RightElbowRigAttachment_2
  469. RightShoulderAttachment.WorldPosition = Vector3.new(119.714,15.774,86.635)
  470. RightShoulderAttachment.CFrame = CFrame.new(0,0.5843,0,1,0,0,0,1,0,0,0,1)
  471. RightShoulderAttachment.WorldCFrame = CFrame.new(119.7144,15.7742,86.635,1,0,0,0,1,0,0,0,1)
  472. RightShoulderAttachment.Name = "RightShoulderAttachment"
  473. RightShoulderAttachment.Position = Vector3.new(0,0.584,0)
  474. RightShoulderAttachment.Parent = RightUpperArm
  475. OriginalPosition_15.Name = "OriginalPosition"
  476. OriginalPosition_15.Value = Vector3.new(0,0.584,0)
  477. OriginalPosition_15.Parent = RightShoulderAttachment
  478. RightShoulder.C1 = CFrame.new(-0.5,0.3943,0,1,0,0,0,1,0,0,0,1)
  479. RightShoulder.C0 = CFrame.new(1,0.563,0,1,0,0,0,1,0,0,0,1)
  480. RightShoulder.Name = "RightShoulder"
  481. RightShoulder.Part1 = RightUpperArm
  482. RightShoulder.Part0 = UpperTorso
  483. RightShoulder.Parent = RightUpperArm
  484. OriginalSize_7.Name = "OriginalSize"
  485. OriginalSize_7.Value = Vector3.new(1,1.169,1)
  486. OriginalSize_7.Parent = RightUpperArm
  487. ElbowConstraint_2.Attachment0 = RightElbowRigAttachment_2
  488. ElbowConstraint_2.TwistLimitsEnabled = true
  489. ElbowConstraint_2.Attachment1 = RightElbowRigAttachment
  490. ElbowConstraint_2.LimitsEnabled = true
  491. ElbowConstraint_2.Name = "ElbowConstraint"
  492. ElbowConstraint_2.Parent = RightUpperArm
  493. ShoulderConstraint_2.Attachment0 = RightShoulderRigAttachment
  494. ShoulderConstraint_2.Attachment1 = RightShoulderRigAttachment_2
  495. ShoulderConstraint_2.Responsiveness = 30
  496. ShoulderConstraint_2.Color = BrickColor.new("New Yeller")
  497. ShoulderConstraint_2.Name = "ShoulderConstraint"
  498. ShoulderConstraint_2.ReactionForceEnabled = true
  499. ShoulderConstraint_2.Parent = RightUpperArm
  500. Aim_2.P = 20000
  501. Aim_2.MaxTorque = Vector3.new(40000,40000,40000)
  502. Aim_2.Name = "Aim"
  503. Aim_2.Parent = RightUpperArm
  504. ShoulderAlignment_2.MaxTorque = 3000
  505. ShoulderAlignment_2.Attachment0 = RightShoulderRigAttachment
  506. ShoulderAlignment_2.ReactionTorqueEnabled = true
  507. ShoulderAlignment_2.Attachment1 = RightShoulderRigAttachment_2
  508. ShoulderAlignment_2.Responsiveness = 15
  509. ShoulderAlignment_2.Color = BrickColor.new("New Yeller")
  510. ShoulderAlignment_2.Name = "ShoulderAlignment"
  511. ShoulderAlignment_2.Parent = RightUpperArm
  512. UpperTorso.Massless = true
  513. UpperTorso.Size = Vector3.new(2,1.6,1)
  514. UpperTorso.Name = "UpperTorso"
  515. UpperTorso.CanCollide = false
  516. UpperTorso.Transparency = 0.5
  517. UpperTorso.CFrame = CFrame.new(118.2144,15.0212,86.635,1,0,0,0,1,0,0,0,1)
  518. UpperTorso.Parent = Dummy
  519. WaistRigAttachment.WorldPosition = Vector3.new(118.214,14.221,86.635)
  520. WaistRigAttachment.WorldOrientation = Vector3.new(0,90,0)
  521. WaistRigAttachment.CFrame = CFrame.new(0,-0.8,0,0,0,1,0,1,0,-1,0,0)
  522. WaistRigAttachment.Axis = Vector3.new(0,0,-1)
  523. WaistRigAttachment.WorldCFrame = CFrame.new(118.2144,14.2212,86.635,0,0,1,0,1,0,-1,0,0)
  524. WaistRigAttachment.Name = "WaistRigAttachment"
  525. WaistRigAttachment.WorldAxis = Vector3.new(0,0,-1)
  526. WaistRigAttachment.Orientation = Vector3.new(0,90,0)
  527. WaistRigAttachment.Position = Vector3.new(0,-0.8,0)
  528. WaistRigAttachment.Parent = UpperTorso
  529. OriginalPosition_16.Name = "OriginalPosition"
  530. OriginalPosition_16.Value = Vector3.new(0,-0.8,0)
  531. OriginalPosition_16.Parent = WaistRigAttachment
  532. NeckRigAttachment.WorldPosition = Vector3.new(118.214,15.821,86.635)
  533. NeckRigAttachment.CFrame = CFrame.new(0,0.8,0,1,0,0,0,1,0,0,0,1)
  534. NeckRigAttachment.WorldCFrame = CFrame.new(118.2144,15.8212,86.635,1,0,0,0,1,0,0,0,1)
  535. NeckRigAttachment.Name = "NeckRigAttachment"
  536. NeckRigAttachment.Position = Vector3.new(0,0.8,0)
  537. NeckRigAttachment.Parent = UpperTorso
  538. OriginalPosition_17.Name = "OriginalPosition"
  539. OriginalPosition_17.Value = Vector3.new(0,0.8,0)
  540. OriginalPosition_17.Parent = NeckRigAttachment
  541. LeftShoulderRigAttachment_2.WorldPosition = Vector3.new(117.214,15.584,86.635)
  542. LeftShoulderRigAttachment_2.WorldOrientation = Vector3.new(0,0,15)
  543. LeftShoulderRigAttachment_2.CFrame = CFrame.new(-1,0.563,0,0.9659,-0.2588,0,0.2588,0.9659,0,0,0,1)
  544. LeftShoulderRigAttachment_2.Axis = Vector3.new(0.966,0.259,0)
  545. LeftShoulderRigAttachment_2.SecondaryAxis = Vector3.new(-0.259,0.966,0)
  546. LeftShoulderRigAttachment_2.WorldCFrame = CFrame.new(117.2144,15.5842,86.635,0.9659,-0.2588,0,0.2588,0.9659,0,0,0,1)
  547. LeftShoulderRigAttachment_2.Name = "LeftShoulderRigAttachment"
  548. LeftShoulderRigAttachment_2.WorldAxis = Vector3.new(0.966,0.259,0)
  549. LeftShoulderRigAttachment_2.Orientation = Vector3.new(0,0,15)
  550. LeftShoulderRigAttachment_2.WorldSecondaryAxis = Vector3.new(-0.259,0.966,0)
  551. LeftShoulderRigAttachment_2.Position = Vector3.new(-1,0.563,0)
  552. LeftShoulderRigAttachment_2.Parent = UpperTorso
  553. OriginalPosition_18.Name = "OriginalPosition"
  554. OriginalPosition_18.Value = Vector3.new(-1,0.563,0)
  555. OriginalPosition_18.Parent = LeftShoulderRigAttachment_2
  556. RightShoulderRigAttachment_2.WorldPosition = Vector3.new(119.214,15.584,86.635)
  557. RightShoulderRigAttachment_2.WorldOrientation = Vector3.new(0,0,-15)
  558. RightShoulderRigAttachment_2.CFrame = CFrame.new(1,0.563,0,0.9659,0.2588,0,-0.2588,0.9659,0,0,0,1)
  559. RightShoulderRigAttachment_2.Axis = Vector3.new(0.966,-0.259,0)
  560. RightShoulderRigAttachment_2.SecondaryAxis = Vector3.new(0.259,0.966,0)
  561. RightShoulderRigAttachment_2.WorldCFrame = CFrame.new(119.2144,15.5842,86.635,0.9659,0.2588,0,-0.2588,0.9659,0,0,0,1)
  562. RightShoulderRigAttachment_2.Name = "RightShoulderRigAttachment"
  563. RightShoulderRigAttachment_2.WorldAxis = Vector3.new(0.966,-0.259,0)
  564. RightShoulderRigAttachment_2.Orientation = Vector3.new(0,0,-15)
  565. RightShoulderRigAttachment_2.WorldSecondaryAxis = Vector3.new(0.259,0.966,0)
  566. RightShoulderRigAttachment_2.Position = Vector3.new(1,0.563,0)
  567. RightShoulderRigAttachment_2.Parent = UpperTorso
  568. OriginalPosition_19.Name = "OriginalPosition"
  569. OriginalPosition_19.Value = Vector3.new(1,0.563,0)
  570. OriginalPosition_19.Parent = RightShoulderRigAttachment_2
  571. BodyFrontAttachment.WorldPosition = Vector3.new(118.214,14.821,86.135)
  572. BodyFrontAttachment.CFrame = CFrame.new(0,-0.2,-0.5,1,0,0,0,1,0,0,0,1)
  573. BodyFrontAttachment.WorldCFrame = CFrame.new(118.2144,14.8212,86.135,1,0,0,0,1,0,0,0,1)
  574. BodyFrontAttachment.Name = "BodyFrontAttachment"
  575. BodyFrontAttachment.Position = Vector3.new(0,-0.2,-0.5)
  576. BodyFrontAttachment.Parent = UpperTorso
  577. OriginalPosition_20.Name = "OriginalPosition"
  578. OriginalPosition_20.Value = Vector3.new(0,-0.2,-0.5)
  579. OriginalPosition_20.Parent = BodyFrontAttachment
  580. BodyBackAttachment.WorldPosition = Vector3.new(118.214,14.821,87.135)
  581. BodyBackAttachment.CFrame = CFrame.new(0,-0.2,0.5,1,0,0,0,1,0,0,0,1)
  582. BodyBackAttachment.WorldCFrame = CFrame.new(118.2144,14.8212,87.135,1,0,0,0,1,0,0,0,1)
  583. BodyBackAttachment.Name = "BodyBackAttachment"
  584. BodyBackAttachment.Position = Vector3.new(0,-0.2,0.5)
  585. BodyBackAttachment.Parent = UpperTorso
  586. OriginalPosition_21.Name = "OriginalPosition"
  587. OriginalPosition_21.Value = Vector3.new(0,-0.2,0.5)
  588. OriginalPosition_21.Parent = BodyBackAttachment
  589. LeftCollarAttachment.WorldPosition = Vector3.new(117.214,15.821,86.635)
  590. LeftCollarAttachment.WorldOrientation = Vector3.new(0,0,15)
  591. LeftCollarAttachment.CFrame = CFrame.new(-1,0.8,0,0.9659,-0.2588,0,0.2588,0.9659,0,0,0,1)
  592. LeftCollarAttachment.Axis = Vector3.new(0.966,0.259,0)
  593. LeftCollarAttachment.SecondaryAxis = Vector3.new(-0.259,0.966,0)
  594. LeftCollarAttachment.WorldCFrame = CFrame.new(117.2144,15.8212,86.635,0.9659,-0.2588,0,0.2588,0.9659,0,0,0,1)
  595. LeftCollarAttachment.Name = "LeftCollarAttachment"
  596. LeftCollarAttachment.WorldAxis = Vector3.new(0.966,0.259,0)
  597. LeftCollarAttachment.Orientation = Vector3.new(0,0,15)
  598. LeftCollarAttachment.WorldSecondaryAxis = Vector3.new(-0.259,0.966,0)
  599. LeftCollarAttachment.Position = Vector3.new(-1,0.8,0)
  600. LeftCollarAttachment.Parent = UpperTorso
  601. OriginalPosition_22.Name = "OriginalPosition"
  602. OriginalPosition_22.Value = Vector3.new(-1,0.8,0)
  603. OriginalPosition_22.Parent = LeftCollarAttachment
  604. RightCollarAttachment.WorldPosition = Vector3.new(119.214,15.821,86.635)
  605. RightCollarAttachment.WorldOrientation = Vector3.new(0,0,-15)
  606. RightCollarAttachment.CFrame = CFrame.new(1,0.8,0,0.9659,0.2588,0,-0.2588,0.9659,0,0,0,1)
  607. RightCollarAttachment.Axis = Vector3.new(0.966,-0.259,0)
  608. RightCollarAttachment.SecondaryAxis = Vector3.new(0.259,0.966,0)
  609. RightCollarAttachment.WorldCFrame = CFrame.new(119.2144,15.8212,86.635,0.9659,0.2588,0,-0.2588,0.9659,0,0,0,1)
  610. RightCollarAttachment.Name = "RightCollarAttachment"
  611. RightCollarAttachment.WorldAxis = Vector3.new(0.966,-0.259,0)
  612. RightCollarAttachment.Orientation = Vector3.new(0,0,-15)
  613. RightCollarAttachment.WorldSecondaryAxis = Vector3.new(0.259,0.966,0)
  614. RightCollarAttachment.Position = Vector3.new(1,0.8,0)
  615. RightCollarAttachment.Parent = UpperTorso
  616. OriginalPosition_23.Name = "OriginalPosition"
  617. OriginalPosition_23.Value = Vector3.new(1,0.8,0)
  618. OriginalPosition_23.Parent = RightCollarAttachment
  619. NeckAttachment.WorldPosition = Vector3.new(118.214,15.821,86.635)
  620. NeckAttachment.CFrame = CFrame.new(0,0.8,0,1,0,0,0,1,0,0,0,1)
  621. NeckAttachment.WorldCFrame = CFrame.new(118.2144,15.8212,86.635,1,0,0,0,1,0,0,0,1)
  622. NeckAttachment.Name = "NeckAttachment"
  623. NeckAttachment.Position = Vector3.new(0,0.8,0)
  624. NeckAttachment.Parent = UpperTorso
  625. OriginalPosition_24.Name = "OriginalPosition"
  626. OriginalPosition_24.Value = Vector3.new(0,0.8,0)
  627. OriginalPosition_24.Parent = NeckAttachment
  628. Waist.C1 = CFrame.new(0,-0.8,0,0,0,1,0,1,0,-1,0,0)
  629. Waist.C0 = CFrame.new(0,0.2,0,0,0,1,0,1,0,-1,0,0)
  630. Waist.Name = "Waist"
  631. Waist.Part1 = UpperTorso
  632. Waist.Part0 = LowerTorso
  633. Waist.Parent = UpperTorso
  634. OriginalSize_8.Name = "OriginalSize"
  635. OriginalSize_8.Value = Vector3.new(2,1.6,1)
  636. OriginalSize_8.Parent = UpperTorso
  637. NeckConstraint.UpperAngle = 10
  638. NeckConstraint.TwistUpperAngle = 15
  639. NeckConstraint.Attachment0 = NeckRigAttachment
  640. NeckConstraint.TwistLimitsEnabled = true
  641. NeckConstraint.Attachment1 = NeckRigAttachment_2
  642. NeckConstraint.TwistLowerAngle = -30
  643. NeckConstraint.LimitsEnabled = true
  644. NeckConstraint.Name = "NeckConstraint"
  645. NeckConstraint.Parent = UpperTorso
  646. WaistConstraint.Attachment0 = WaistRigAttachment
  647. WaistConstraint.Attachment1 = WaistRigAttachment_2
  648. WaistConstraint.Name = "WaistConstraint"
  649. WaistConstraint.LimitsEnabled = true
  650. WaistConstraint.Parent = UpperTorso
  651. LeftFoot.Size = Vector3.new(1,0.3,1)
  652. LeftFoot.Name = "LeftFoot"
  653. LeftFoot.CanCollide = false
  654. LeftFoot.Transparency = 0.5
  655. LeftFoot.CFrame = CFrame.new(117.7144,11.9712,86.635,1,0,0,0,1,0,0,0,1)
  656. LeftFoot.Parent = Dummy
  657. LeftAnkleRigAttachment.WorldPosition = Vector3.new(117.714,12.073,86.635)
  658. LeftAnkleRigAttachment.CFrame = CFrame.new(0,0.1019,0,1,0,0,0,1,0,0,0,1)
  659. LeftAnkleRigAttachment.WorldCFrame = CFrame.new(117.7144,12.0731,86.635,1,0,0,0,1,0,0,0,1)
  660. LeftAnkleRigAttachment.Name = "LeftAnkleRigAttachment"
  661. LeftAnkleRigAttachment.Position = Vector3.new(0,0.102,0)
  662. LeftAnkleRigAttachment.Parent = LeftFoot
  663. OriginalPosition_25.Name = "OriginalPosition"
  664. OriginalPosition_25.Value = Vector3.new(0,0.102,0)
  665. OriginalPosition_25.Parent = LeftAnkleRigAttachment
  666. LeftAnkle.C1 = CFrame.new(0,0.1019,0,1,0,0,0,1,0,0,0,1)
  667. LeftAnkle.C0 = CFrame.new(0,-0.5472,0,1,0,0,0,1,0,0,0,1)
  668. LeftAnkle.Name = "LeftAnkle"
  669. LeftAnkle.Part1 = LeftFoot
  670. LeftAnkle.Part0 = LeftLowerLeg
  671. LeftAnkle.Parent = LeftFoot
  672. OriginalSize_9.Name = "OriginalSize"
  673. OriginalSize_9.Value = Vector3.new(1,0.3,1)
  674. OriginalSize_9.Parent = LeftFoot
  675. BodyPosition.P = 100000
  676. BodyPosition.MaxForce = Vector3.new(inf,inf,inf)
  677. BodyPosition.Position = Vector3.new(1.469,0.65,-28.865)
  678. BodyPosition.Parent = LeftFoot
  679. BodyGyro.MaxTorque = Vector3.new(inf,inf,inf)
  680. BodyGyro.Parent = LeftFoot
  681. LeftLowerLeg.Size = Vector3.new(1,1.193,1)
  682. LeftLowerLeg.Name = "LeftLowerLeg"
  683. LeftLowerLeg.CanCollide = false
  684. LeftLowerLeg.Transparency = 0.5
  685. LeftLowerLeg.CFrame = CFrame.new(117.7144,12.6203,86.635,1,0,0,0,1,0,0,0,1)
  686. LeftLowerLeg.Parent = Dummy
  687. LeftKneeRigAttachment.WorldPosition = Vector3.new(117.714,12.999,86.635)
  688. LeftKneeRigAttachment.CFrame = CFrame.new(0,0.379,0,1,0,0,0,1,0,0,0,1)
  689. LeftKneeRigAttachment.WorldCFrame = CFrame.new(117.7144,12.9993,86.635,1,0,0,0,1,0,0,0,1)
  690. LeftKneeRigAttachment.Name = "LeftKneeRigAttachment"
  691. LeftKneeRigAttachment.Position = Vector3.new(0,0.379,0)
  692. LeftKneeRigAttachment.Parent = LeftLowerLeg
  693. OriginalPosition_26.Name = "OriginalPosition"
  694. OriginalPosition_26.Value = Vector3.new(0,0.379,0)
  695. OriginalPosition_26.Parent = LeftKneeRigAttachment
  696. LeftAnkleRigAttachment_2.WorldPosition = Vector3.new(117.714,12.073,86.635)
  697. LeftAnkleRigAttachment_2.CFrame = CFrame.new(0,-0.5472,0,1,0,0,0,1,0,0,0,1)
  698. LeftAnkleRigAttachment_2.WorldCFrame = CFrame.new(117.7144,12.0731,86.635,1,0,0,0,1,0,0,0,1)
  699. LeftAnkleRigAttachment_2.Name = "LeftAnkleRigAttachment"
  700. LeftAnkleRigAttachment_2.Position = Vector3.new(0,-0.547,0)
  701. LeftAnkleRigAttachment_2.Parent = LeftLowerLeg
  702. OriginalPosition_27.Name = "OriginalPosition"
  703. OriginalPosition_27.Value = Vector3.new(0,-0.547,0)
  704. OriginalPosition_27.Parent = LeftAnkleRigAttachment_2
  705. LeftKnee.C1 = CFrame.new(0,0.379,0,1,0,0,0,1,0,0,0,1)
  706. LeftKnee.C0 = CFrame.new(0,-0.4011,0,1,0,0,0,1,0,0,0,1)
  707. LeftKnee.Name = "LeftKnee"
  708. LeftKnee.Part1 = LeftLowerLeg
  709. LeftKnee.Part0 = LeftUpperLeg
  710. LeftKnee.Parent = LeftLowerLeg
  711. OriginalSize_10.Name = "OriginalSize"
  712. OriginalSize_10.Value = Vector3.new(1,1.193,1)
  713. OriginalSize_10.Parent = LeftLowerLeg
  714. KneeConstraint.UpperAngle = 5
  715. KneeConstraint.TwistUpperAngle = 60
  716. KneeConstraint.Attachment0 = LeftKneeRigAttachment
  717. KneeConstraint.TwistLimitsEnabled = true
  718. KneeConstraint.Attachment1 = LeftKneeRigAttachment_2
  719. KneeConstraint.TwistLowerAngle = 0
  720. KneeConstraint.LimitsEnabled = true
  721. KneeConstraint.Name = "KneeConstraint"
  722. KneeConstraint.Parent = LeftLowerLeg
  723. AnkleConstraint.UpperAngle = 20
  724. AnkleConstraint.TwistUpperAngle = 15
  725. AnkleConstraint.Attachment0 = LeftAnkleRigAttachment_2
  726. AnkleConstraint.TwistLimitsEnabled = true
  727. AnkleConstraint.Attachment1 = LeftAnkleRigAttachment
  728. AnkleConstraint.TwistLowerAngle = -70
  729. AnkleConstraint.LimitsEnabled = true
  730. AnkleConstraint.Name = "AnkleConstraint"
  731. AnkleConstraint.Parent = LeftLowerLeg
  732. LeftUpperLeg.Massless = true
  733. LeftUpperLeg.Size = Vector3.new(1,1.217,1)
  734. LeftUpperLeg.Name = "LeftUpperLeg"
  735. LeftUpperLeg.CanCollide = false
  736. LeftUpperLeg.Transparency = 0.5
  737. LeftUpperLeg.CFrame = CFrame.new(117.7144,13.4004,86.635,1,0,0,0,1,0,0,0,1)
  738. LeftUpperLeg.Parent = Dummy
  739. LeftHipRigAttachment.WorldPosition = Vector3.new(117.714,13.821,86.635)
  740. LeftHipRigAttachment.CFrame = CFrame.new(0,0.4208,0,1,0,0,0,1,0,0,0,1)
  741. LeftHipRigAttachment.WorldCFrame = CFrame.new(117.7144,13.8212,86.635,1,0,0,0,1,0,0,0,1)
  742. LeftHipRigAttachment.Name = "LeftHipRigAttachment"
  743. LeftHipRigAttachment.Position = Vector3.new(0,0.421,0)
  744. LeftHipRigAttachment.Parent = LeftUpperLeg
  745. OriginalPosition_28.Name = "OriginalPosition"
  746. OriginalPosition_28.Value = Vector3.new(0,0.421,0)
  747. OriginalPosition_28.Parent = LeftHipRigAttachment
  748. LeftKneeRigAttachment_2.WorldPosition = Vector3.new(117.714,12.999,86.635)
  749. LeftKneeRigAttachment_2.CFrame = CFrame.new(0,-0.4011,0,1,0,0,0,1,0,0,0,1)
  750. LeftKneeRigAttachment_2.WorldCFrame = CFrame.new(117.7144,12.9993,86.635,1,0,0,0,1,0,0,0,1)
  751. LeftKneeRigAttachment_2.Name = "LeftKneeRigAttachment"
  752. LeftKneeRigAttachment_2.Position = Vector3.new(0,-0.401,0)
  753. LeftKneeRigAttachment_2.Parent = LeftUpperLeg
  754. OriginalPosition_29.Name = "OriginalPosition"
  755. OriginalPosition_29.Value = Vector3.new(0,-0.401,0)
  756. OriginalPosition_29.Parent = LeftKneeRigAttachment_2
  757. LeftHip.C1 = CFrame.new(0,0.4208,0,1,0,0,0,1,0,0,0,1)
  758. LeftHip.C0 = CFrame.new(-0.5,-0.2,0,1,0,0,0,1,0,0,0,1)
  759. LeftHip.Name = "LeftHip"
  760. LeftHip.Part1 = LeftUpperLeg
  761. LeftHip.Part0 = LowerTorso
  762. LeftHip.Parent = LeftUpperLeg
  763. OriginalSize_11.Name = "OriginalSize"
  764. OriginalSize_11.Value = Vector3.new(1,1.217,1)
  765. OriginalSize_11.Parent = LeftUpperLeg
  766. HipConstraint.Attachment0 = LeftHipRigAttachment
  767. HipConstraint.Attachment1 = LeftHipRigAttachment_2
  768. HipConstraint.Responsiveness = 30
  769. HipConstraint.Color = BrickColor.new("New Yeller")
  770. HipConstraint.Name = "HipConstraint"
  771. HipConstraint.ReactionForceEnabled = true
  772. HipConstraint.Parent = LeftUpperLeg
  773. HipAlignment.MaxTorque = 3000
  774. HipAlignment.Attachment0 = LeftHipRigAttachment
  775. HipAlignment.ReactionTorqueEnabled = true
  776. HipAlignment.Attachment1 = LeftHipRigAttachment_2
  777. HipAlignment.Responsiveness = 15
  778. HipAlignment.Color = BrickColor.new("New Yeller")
  779. HipAlignment.Name = "HipAlignment"
  780. HipAlignment.Parent = LeftUpperLeg
  781. RightFoot.Size = Vector3.new(1,0.3,1)
  782. RightFoot.Name = "RightFoot"
  783. RightFoot.CanCollide = false
  784. RightFoot.Transparency = 0.5
  785. RightFoot.CFrame = CFrame.new(118.7144,11.9712,86.635,1,0,0,0,1,0,0,0,1)
  786. RightFoot.Parent = Dummy
  787. RightAnkleRigAttachment.WorldPosition = Vector3.new(118.714,12.073,86.635)
  788. RightAnkleRigAttachment.CFrame = CFrame.new(0,0.1019,0.0001,1,0,0,0,1,0,0,0,1)
  789. RightAnkleRigAttachment.WorldCFrame = CFrame.new(118.7144,12.0731,86.6351,1,0,0,0,1,0,0,0,1)
  790. RightAnkleRigAttachment.Name = "RightAnkleRigAttachment"
  791. RightAnkleRigAttachment.Position = Vector3.new(0,0.102,0)
  792. RightAnkleRigAttachment.Parent = RightFoot
  793. OriginalPosition_30.Name = "OriginalPosition"
  794. OriginalPosition_30.Value = Vector3.new(0,0.102,0)
  795. OriginalPosition_30.Parent = RightAnkleRigAttachment
  796. RightAnkle.C1 = CFrame.new(0,0.1019,0.0001,1,0,0,0,1,0,0,0,1)
  797. RightAnkle.C0 = CFrame.new(0,-0.5472,0.0001,1,0,0,0,1,0,0,0,1)
  798. RightAnkle.Name = "RightAnkle"
  799. RightAnkle.Part1 = RightFoot
  800. RightAnkle.Part0 = RightLowerLeg
  801. RightAnkle.Parent = RightFoot
  802. OriginalSize_12.Name = "OriginalSize"
  803. OriginalSize_12.Value = Vector3.new(1,0.3,1)
  804. OriginalSize_12.Parent = RightFoot
  805. BodyPosition_2.P = 100000
  806. BodyPosition_2.MaxForce = Vector3.new(inf,inf,inf)
  807. BodyPosition_2.Position = Vector3.new(2.469,0.65,-28.865)
  808. BodyPosition_2.Parent = RightFoot
  809. BodyGyro_2.MaxTorque = Vector3.new(inf,inf,inf)
  810. BodyGyro_2.Parent = RightFoot
  811. RightLowerLeg.Size = Vector3.new(1,1.193,1)
  812. RightLowerLeg.Name = "RightLowerLeg"
  813. RightLowerLeg.CanCollide = false
  814. RightLowerLeg.Transparency = 0.5
  815. RightLowerLeg.CFrame = CFrame.new(118.7144,12.6203,86.635,1,0,0,0,1,0,0,0,1)
  816. RightLowerLeg.Parent = Dummy
  817. RightKneeRigAttachment.WorldPosition = Vector3.new(118.714,12.999,86.635)
  818. RightKneeRigAttachment.CFrame = CFrame.new(0,0.3792,0,1,0,0,0,1,0,0,0,1)
  819. RightKneeRigAttachment.WorldCFrame = CFrame.new(118.7144,12.9995,86.635,1,0,0,0,1,0,0,0,1)
  820. RightKneeRigAttachment.Name = "RightKneeRigAttachment"
  821. RightKneeRigAttachment.Position = Vector3.new(0,0.379,0)
  822. RightKneeRigAttachment.Parent = RightLowerLeg
  823. OriginalPosition_31.Name = "OriginalPosition"
  824. OriginalPosition_31.Value = Vector3.new(0,0.379,0)
  825. OriginalPosition_31.Parent = RightKneeRigAttachment
  826. RightAnkleRigAttachment_2.WorldPosition = Vector3.new(118.714,12.073,86.635)
  827. RightAnkleRigAttachment_2.CFrame = CFrame.new(0,-0.5472,0.0001,1,0,0,0,1,0,0,0,1)
  828. RightAnkleRigAttachment_2.WorldCFrame = CFrame.new(118.7144,12.0731,86.6351,1,0,0,0,1,0,0,0,1)
  829. RightAnkleRigAttachment_2.Name = "RightAnkleRigAttachment"
  830. RightAnkleRigAttachment_2.Position = Vector3.new(0,-0.547,0)
  831. RightAnkleRigAttachment_2.Parent = RightLowerLeg
  832. OriginalPosition_32.Name = "OriginalPosition"
  833. OriginalPosition_32.Value = Vector3.new(0,-0.547,0)
  834. OriginalPosition_32.Parent = RightAnkleRigAttachment_2
  835. RightKnee.C1 = CFrame.new(0,0.3792,0,1,0,0,0,1,0,0,0,1)
  836. RightKnee.C0 = CFrame.new(0,-0.4009,0,1,0,0,0,1,0,0,0,1)
  837. RightKnee.Name = "RightKnee"
  838. RightKnee.Part1 = RightLowerLeg
  839. RightKnee.Part0 = RightUpperLeg
  840. RightKnee.Parent = RightLowerLeg
  841. OriginalSize_13.Name = "OriginalSize"
  842. OriginalSize_13.Value = Vector3.new(1,1.193,1)
  843. OriginalSize_13.Parent = RightLowerLeg
  844. AnkleConstraint_2.UpperAngle = 20
  845. AnkleConstraint_2.TwistUpperAngle = 15
  846. AnkleConstraint_2.Attachment0 = RightAnkleRigAttachment_2
  847. AnkleConstraint_2.TwistLimitsEnabled = true
  848. AnkleConstraint_2.Attachment1 = RightAnkleRigAttachment
  849. AnkleConstraint_2.TwistLowerAngle = -70
  850. AnkleConstraint_2.LimitsEnabled = true
  851. AnkleConstraint_2.Name = "AnkleConstraint"
  852. AnkleConstraint_2.Parent = RightLowerLeg
  853. KneeConstraint_2.UpperAngle = 5
  854. KneeConstraint_2.TwistUpperAngle = 60
  855. KneeConstraint_2.Attachment0 = RightKneeRigAttachment
  856. KneeConstraint_2.TwistLimitsEnabled = true
  857. KneeConstraint_2.Attachment1 = RightKneeRigAttachment_2
  858. KneeConstraint_2.TwistLowerAngle = 0
  859. KneeConstraint_2.LimitsEnabled = true
  860. KneeConstraint_2.Name = "KneeConstraint"
  861. KneeConstraint_2.Parent = RightLowerLeg
  862. RightUpperLeg.Massless = true
  863. RightUpperLeg.Size = Vector3.new(1,1.217,1)
  864. RightUpperLeg.Name = "RightUpperLeg"
  865. RightUpperLeg.CanCollide = false
  866. RightUpperLeg.Transparency = 0.5
  867. RightUpperLeg.CFrame = CFrame.new(118.7144,13.4004,86.635,1,0,0,0,1,0,0,0,1)
  868. RightUpperLeg.Parent = Dummy
  869. RightHipRigAttachment.WorldPosition = Vector3.new(118.714,13.821,86.635)
  870. RightHipRigAttachment.CFrame = CFrame.new(0,0.4208,-0.0001,1,0,0,0,1,0,0,0,1)
  871. RightHipRigAttachment.WorldCFrame = CFrame.new(118.7144,13.8212,86.635,1,0,0,0,1,0,0,0,1)
  872. RightHipRigAttachment.Name = "RightHipRigAttachment"
  873. RightHipRigAttachment.Position = Vector3.new(0,0.421,0)
  874. RightHipRigAttachment.Parent = RightUpperLeg
  875. OriginalPosition_33.Name = "OriginalPosition"
  876. OriginalPosition_33.Value = Vector3.new(0,0.421,0)
  877. OriginalPosition_33.Parent = RightHipRigAttachment
  878. RightKneeRigAttachment_2.WorldPosition = Vector3.new(118.714,12.999,86.635)
  879. RightKneeRigAttachment_2.CFrame = CFrame.new(0,-0.4009,0,1,0,0,0,1,0,0,0,1)
  880. RightKneeRigAttachment_2.WorldCFrame = CFrame.new(118.7144,12.9995,86.635,1,0,0,0,1,0,0,0,1)
  881. RightKneeRigAttachment_2.Name = "RightKneeRigAttachment"
  882. RightKneeRigAttachment_2.Position = Vector3.new(0,-0.401,0)
  883. RightKneeRigAttachment_2.Parent = RightUpperLeg
  884. OriginalPosition_34.Name = "OriginalPosition"
  885. OriginalPosition_34.Value = Vector3.new(0,-0.401,0)
  886. OriginalPosition_34.Parent = RightKneeRigAttachment_2
  887. RightHip.C1 = CFrame.new(0,0.4208,-0.0001,1,0,0,0,1,0,0,0,1)
  888. RightHip.C0 = CFrame.new(0.5,-0.2,0,1,0,0,0,1,0,0,0,1)
  889. RightHip.Name = "RightHip"
  890. RightHip.Part1 = RightUpperLeg
  891. RightHip.Part0 = LowerTorso
  892. RightHip.Parent = RightUpperLeg
  893. OriginalSize_14.Name = "OriginalSize"
  894. OriginalSize_14.Value = Vector3.new(1,1.217,1)
  895. OriginalSize_14.Parent = RightUpperLeg
  896. HipConstraint_2.Attachment0 = RightHipRigAttachment
  897. HipConstraint_2.Attachment1 = RightHipRigAttachment_2
  898. HipConstraint_2.Responsiveness = 30
  899. HipConstraint_2.Color = BrickColor.new("New Yeller")
  900. HipConstraint_2.Name = "HipConstraint"
  901. HipConstraint_2.ReactionForceEnabled = true
  902. HipConstraint_2.Parent = RightUpperLeg
  903. HipAlignment_2.MaxTorque = 3000
  904. HipAlignment_2.Attachment0 = RightHipRigAttachment
  905. HipAlignment_2.ReactionTorqueEnabled = true
  906. HipAlignment_2.Attachment1 = RightHipRigAttachment_2
  907. HipAlignment_2.Responsiveness = 15
  908. HipAlignment_2.Color = BrickColor.new("New Yeller")
  909. HipAlignment_2.Name = "HipAlignment"
  910. HipAlignment_2.Parent = RightUpperLeg
  911. LowerTorso.Massless = true
  912. LowerTorso.Size = Vector3.new(2,0.4,1)
  913. LowerTorso.Name = "LowerTorso"
  914. LowerTorso.CanCollide = false
  915. LowerTorso.Transparency = 0.5
  916. LowerTorso.CFrame = CFrame.new(118.2144,14.0212,86.635,1,0,0,0,1,0,0,0,1)
  917. LowerTorso.Parent = Dummy
  918. RootRigAttachment_2.WorldPosition = Vector3.new(118.214,13.821,86.635)
  919. RootRigAttachment_2.CFrame = CFrame.new(0,-0.2,0,1,0,0,0,1,0,0,0,1)
  920. RootRigAttachment_2.WorldCFrame = CFrame.new(118.2144,13.8212,86.635,1,0,0,0,1,0,0,0,1)
  921. RootRigAttachment_2.Name = "RootRigAttachment"
  922. RootRigAttachment_2.Position = Vector3.new(0,-0.2,0)
  923. RootRigAttachment_2.Parent = LowerTorso
  924. OriginalPosition_35.Name = "OriginalPosition"
  925. OriginalPosition_35.Value = Vector3.new(0,-0.2,0)
  926. OriginalPosition_35.Parent = RootRigAttachment_2
  927. WaistRigAttachment_2.WorldPosition = Vector3.new(118.214,14.221,86.635)
  928. WaistRigAttachment_2.WorldOrientation = Vector3.new(0,90,0)
  929. WaistRigAttachment_2.CFrame = CFrame.new(0,0.2,0,0,0,1,0,1,0,-1,0,0)
  930. WaistRigAttachment_2.Axis = Vector3.new(0,0,-1)
  931. WaistRigAttachment_2.WorldCFrame = CFrame.new(118.2144,14.2212,86.635,0,0,1,0,1,0,-1,0,0)
  932. WaistRigAttachment_2.Name = "WaistRigAttachment"
  933. WaistRigAttachment_2.WorldAxis = Vector3.new(0,0,-1)
  934. WaistRigAttachment_2.Orientation = Vector3.new(0,90,0)
  935. WaistRigAttachment_2.Position = Vector3.new(0,0.2,0)
  936. WaistRigAttachment_2.Parent = LowerTorso
  937. OriginalPosition_36.Name = "OriginalPosition"
  938. OriginalPosition_36.Value = Vector3.new(0,0.2,0)
  939. OriginalPosition_36.Parent = WaistRigAttachment_2
  940. LeftHipRigAttachment_2.WorldPosition = Vector3.new(117.714,13.821,86.635)
  941. LeftHipRigAttachment_2.CFrame = CFrame.new(-0.5,-0.2,0,1,0,0,0,1,0,0,0,1)
  942. LeftHipRigAttachment_2.WorldCFrame = CFrame.new(117.7144,13.8212,86.635,1,0,0,0,1,0,0,0,1)
  943. LeftHipRigAttachment_2.Name = "LeftHipRigAttachment"
  944. LeftHipRigAttachment_2.Position = Vector3.new(-0.5,-0.2,0)
  945. LeftHipRigAttachment_2.Parent = LowerTorso
  946. OriginalPosition_37.Name = "OriginalPosition"
  947. OriginalPosition_37.Value = Vector3.new(-0.5,-0.2,0)
  948. OriginalPosition_37.Parent = LeftHipRigAttachment_2
  949. RightHipRigAttachment_2.WorldPosition = Vector3.new(118.714,13.821,86.635)
  950. RightHipRigAttachment_2.CFrame = CFrame.new(0.5,-0.2,0,1,0,0,0,1,0,0,0,1)
  951. RightHipRigAttachment_2.WorldCFrame = CFrame.new(118.7144,13.8212,86.635,1,0,0,0,1,0,0,0,1)
  952. RightHipRigAttachment_2.Name = "RightHipRigAttachment"
  953. RightHipRigAttachment_2.Position = Vector3.new(0.5,-0.2,0)
  954. RightHipRigAttachment_2.Parent = LowerTorso
  955. OriginalPosition_38.Name = "OriginalPosition"
  956. OriginalPosition_38.Value = Vector3.new(0.5,-0.2,0)
  957. OriginalPosition_38.Parent = RightHipRigAttachment_2
  958. WaistCenterAttachment.WorldPosition = Vector3.new(118.214,13.821,86.635)
  959. WaistCenterAttachment.CFrame = CFrame.new(0,-0.2,0,1,0,0,0,1,0,0,0,1)
  960. WaistCenterAttachment.WorldCFrame = CFrame.new(118.2144,13.8212,86.635,1,0,0,0,1,0,0,0,1)
  961. WaistCenterAttachment.Name = "WaistCenterAttachment"
  962. WaistCenterAttachment.Position = Vector3.new(0,-0.2,0)
  963. WaistCenterAttachment.Parent = LowerTorso
  964. OriginalPosition_39.Name = "OriginalPosition"
  965. OriginalPosition_39.Value = Vector3.new(0,-0.2,0)
  966. OriginalPosition_39.Parent = WaistCenterAttachment
  967. WaistFrontAttachment.WorldPosition = Vector3.new(118.214,13.821,86.135)
  968. WaistFrontAttachment.CFrame = CFrame.new(0,-0.2,-0.5,1,0,0,0,1,0,0,0,1)
  969. WaistFrontAttachment.WorldCFrame = CFrame.new(118.2144,13.8212,86.135,1,0,0,0,1,0,0,0,1)
  970. WaistFrontAttachment.Name = "WaistFrontAttachment"
  971. WaistFrontAttachment.Position = Vector3.new(0,-0.2,-0.5)
  972. WaistFrontAttachment.Parent = LowerTorso
  973. OriginalPosition_40.Name = "OriginalPosition"
  974. OriginalPosition_40.Value = Vector3.new(0,-0.2,-0.5)
  975. OriginalPosition_40.Parent = WaistFrontAttachment
  976. WaistBackAttachment.WorldPosition = Vector3.new(118.214,13.821,87.135)
  977. WaistBackAttachment.CFrame = CFrame.new(0,-0.2,0.5,1,0,0,0,1,0,0,0,1)
  978. WaistBackAttachment.WorldCFrame = CFrame.new(118.2144,13.8212,87.135,1,0,0,0,1,0,0,0,1)
  979. WaistBackAttachment.Name = "WaistBackAttachment"
  980. WaistBackAttachment.Position = Vector3.new(0,-0.2,0.5)
  981. WaistBackAttachment.Parent = LowerTorso
  982. OriginalPosition_41.Name = "OriginalPosition"
  983. OriginalPosition_41.Value = Vector3.new(0,-0.2,0.5)
  984. OriginalPosition_41.Parent = WaistBackAttachment
  985. Root.C1 = CFrame.new(0,-0.2,0,1,0,0,0,1,0,0,0,1)
  986. Root.C0 = CFrame.new(0,-1,0,1,0,0,0,1,0,0,0,1)
  987. Root.Name = "Root"
  988. Root.Part1 = LowerTorso
  989. Root.Part0 = HumanoidRootPart
  990. Root.Parent = LowerTorso
  991. OriginalSize_15.Name = "OriginalSize"
  992. OriginalSize_15.Value = Vector3.new(2,0.4,1)
  993. OriginalSize_15.Parent = LowerTorso
  994. Head.TopSurface = Enum.SurfaceType.Smooth
  995. Head.Massless = true
  996. Head.Size = Vector3.new(2,1,1)
  997. Head.Name = "Head"
  998. Head.CanCollide = false
  999. Head.Transparency = 0.5
  1000. Head.CFrame = CFrame.new(118.2144,16.3212,86.635,1,0,0,0,1,0,0,0,1)
  1001. Head.BottomSurface = Enum.SurfaceType.Smooth
  1002. Head.Parent = Dummy
  1003. Mesh.Scale = Vector3.new(1.25,1.25,1.25)
  1004. Mesh.Parent = Head
  1005. OriginalSize_16.Name = "OriginalSize"
  1006. OriginalSize_16.Value = Vector3.new(1.25,1.25,1.25)
  1007. OriginalSize_16.Parent = Mesh
  1008. FaceCenterAttachment.WorldPosition = Vector3.new(118.214,16.321,86.635)
  1009. FaceCenterAttachment.WorldOrientation = Vector3.new(0,0,0)
  1010. FaceCenterAttachment.CFrame = CFrame.new()
  1011. FaceCenterAttachment.Axis = Vector3.new(1,0,0)
  1012. FaceCenterAttachment.SecondaryAxis = Vector3.new(0,1,0)
  1013. FaceCenterAttachment.WorldCFrame = CFrame.new(118.2144,16.3212,86.635,1,0,0,0,1,0,0,0,1)
  1014. FaceCenterAttachment.Name = "FaceCenterAttachment"
  1015. FaceCenterAttachment.WorldAxis = Vector3.new(1,0,0)
  1016. FaceCenterAttachment.Orientation = Vector3.new(0,0,0)
  1017. FaceCenterAttachment.WorldSecondaryAxis = Vector3.new(0,1,0)
  1018. FaceCenterAttachment.Parent = Head
  1019. OriginalPosition_42.Name = "OriginalPosition"
  1020. OriginalPosition_42.Parent = FaceCenterAttachment
  1021. FaceFrontAttachment.WorldPosition = Vector3.new(118.214,16.321,86.035)
  1022. FaceFrontAttachment.WorldOrientation = Vector3.new(0,0,0)
  1023. FaceFrontAttachment.CFrame = CFrame.new(0,0,-0.6,1,0,0,0,1,0,0,0,1)
  1024. FaceFrontAttachment.Axis = Vector3.new(1,0,0)
  1025. FaceFrontAttachment.SecondaryAxis = Vector3.new(0,1,0)
  1026. FaceFrontAttachment.WorldCFrame = CFrame.new(118.2144,16.3212,86.035,1,0,0,0,1,0,0,0,1)
  1027. FaceFrontAttachment.Name = "FaceFrontAttachment"
  1028. FaceFrontAttachment.WorldAxis = Vector3.new(1,0,0)
  1029. FaceFrontAttachment.Orientation = Vector3.new(0,0,0)
  1030. FaceFrontAttachment.WorldSecondaryAxis = Vector3.new(0,1,0)
  1031. FaceFrontAttachment.Position = Vector3.new(0,0,-0.6)
  1032. FaceFrontAttachment.Parent = Head
  1033. OriginalPosition_43.Name = "OriginalPosition"
  1034. OriginalPosition_43.Value = Vector3.new(0,0,-0.6)
  1035. OriginalPosition_43.Parent = FaceFrontAttachment
  1036. HairAttachment.WorldPosition = Vector3.new(118.214,16.921,86.635)
  1037. HairAttachment.WorldOrientation = Vector3.new(0,0,0)
  1038. HairAttachment.CFrame = CFrame.new(0,0.6,0,1,0,0,0,1,0,0,0,1)
  1039. HairAttachment.Axis = Vector3.new(1,0,0)
  1040. HairAttachment.SecondaryAxis = Vector3.new(0,1,0)
  1041. HairAttachment.WorldCFrame = CFrame.new(118.2144,16.9212,86.635,1,0,0,0,1,0,0,0,1)
  1042. HairAttachment.Name = "HairAttachment"
  1043. HairAttachment.WorldAxis = Vector3.new(1,0,0)
  1044. HairAttachment.Orientation = Vector3.new(0,0,0)
  1045. HairAttachment.WorldSecondaryAxis = Vector3.new(0,1,0)
  1046. HairAttachment.Position = Vector3.new(0,0.6,0)
  1047. HairAttachment.Parent = Head
  1048. OriginalPosition_44.Name = "OriginalPosition"
  1049. OriginalPosition_44.Value = Vector3.new(0,0.6,0)
  1050. OriginalPosition_44.Parent = HairAttachment
  1051. HatAttachment.WorldPosition = Vector3.new(118.214,16.921,86.635)
  1052. HatAttachment.WorldOrientation = Vector3.new(0,0,0)
  1053. HatAttachment.CFrame = CFrame.new(0,0.6,0,1,0,0,0,1,0,0,0,1)
  1054. HatAttachment.Axis = Vector3.new(1,0,0)
  1055. HatAttachment.SecondaryAxis = Vector3.new(0,1,0)
  1056. HatAttachment.WorldCFrame = CFrame.new(118.2144,16.9212,86.635,1,0,0,0,1,0,0,0,1)
  1057. HatAttachment.Name = "HatAttachment"
  1058. HatAttachment.WorldAxis = Vector3.new(1,0,0)
  1059. HatAttachment.Orientation = Vector3.new(0,0,0)
  1060. HatAttachment.WorldSecondaryAxis = Vector3.new(0,1,0)
  1061. HatAttachment.Position = Vector3.new(0,0.6,0)
  1062. HatAttachment.Parent = Head
  1063. OriginalPosition_45.Name = "OriginalPosition"
  1064. OriginalPosition_45.Value = Vector3.new(0,0.6,0)
  1065. OriginalPosition_45.Parent = HatAttachment
  1066. NeckRigAttachment_2.WorldPosition = Vector3.new(118.214,15.821,86.635)
  1067. NeckRigAttachment_2.CFrame = CFrame.new(0,-0.5,0,1,0,0,0,1,0,0,0,1)
  1068. NeckRigAttachment_2.WorldCFrame = CFrame.new(118.2144,15.8212,86.635,1,0,0,0,1,0,0,0,1)
  1069. NeckRigAttachment_2.Name = "NeckRigAttachment"
  1070. NeckRigAttachment_2.Position = Vector3.new(0,-0.5,0)
  1071. NeckRigAttachment_2.Parent = Head
  1072. OriginalPosition_46.Name = "OriginalPosition"
  1073. OriginalPosition_46.Value = Vector3.new(0,-0.5,0)
  1074. OriginalPosition_46.Parent = NeckRigAttachment_2
  1075. face.Name = "face"
  1076. face.Texture = "rbxasset://textures/face.png"
  1077. face.Parent = Head
  1078. Neck.C1 = CFrame.new(0,-0.5,0,1,0,0,0,1,0,0,0,1)
  1079. Neck.C0 = CFrame.new(0,0.8,0,1,0,0,0,1,0,0,0,1)
  1080. Neck.Name = "Neck"
  1081. Neck.Part1 = Head
  1082. Neck.Part0 = UpperTorso
  1083. Neck.Parent = Head
  1084. OriginalSize_17.Name = "OriginalSize"
  1085. OriginalSize_17.Value = Vector3.new(2,1,1)
  1086. OriginalSize_17.Parent = Head
  1087. face_2.Name = "face"
  1088. face_2.Texture = "rbxasset://textures/face.png"
  1089. face_2.Parent = Head
  1090. Humanoid.HipHeight = 2
  1091. Humanoid.RigType = Enum.HumanoidRigType.R15
  1092. Humanoid.Parent = Dummy
  1093.  
  1094. local mas = script
  1095. local Script = Instance.new("Script")
  1096. local Humanoid = Instance.new("Humanoid")
  1097. local Face = Instance.new("Decal")
  1098. local Head = Instance.new("Part")
  1099. local RightArm = Instance.new("Part")
  1100. local LeftArm = Instance.new("Part")
  1101. local RightLeg = Instance.new("Part")
  1102. local LeftLeg = Instance.new("Part")
  1103. local Neck = Instance.new("Motor6D")
  1104. local RightShoulder = Instance.new("Motor6D")
  1105. local LeftShoulder = Instance.new("Motor6D")
  1106. local RightHip = Instance.new("Motor6D")
  1107. local LeftHip = Instance.new("Motor6D")
  1108. local Torso = Instance.new("Part")
  1109. local RootHip = Instance.new("Motor6D")
  1110. local HumanoidRootPart = Instance.new("Part")
  1111. local Mover = Instance.new("Model")
  1112. Mover.Name = "Mover"
  1113. Mover.PrimaryPart = HumanoidRootPart
  1114. Mover.Parent = mas
  1115. HumanoidRootPart.TopSurface = Enum.SurfaceType.Smooth
  1116. HumanoidRootPart.Size = Vector3.new(2,2,1)
  1117. HumanoidRootPart.Name = "HumanoidRootPart"
  1118. HumanoidRootPart.Transparency = 0.5
  1119. HumanoidRootPart.CFrame = CFrame.new(129.3425,3,41.6619,1,0,0,0,1,0,0,0,1)
  1120. HumanoidRootPart.BottomSurface = Enum.SurfaceType.Smooth
  1121. HumanoidRootPart.Parent = Mover
  1122. RootHip.C1 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
  1123. RootHip.C0 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
  1124. RootHip.MaxVelocity = 0.1
  1125. RootHip.Name = "Root Hip"
  1126. RootHip.Part1 = Torso
  1127. RootHip.Part0 = HumanoidRootPart
  1128. RootHip.Parent = HumanoidRootPart
  1129. Torso.TopSurface = Enum.SurfaceType.Smooth
  1130. Torso.Size = Vector3.new(2,2,1)
  1131. Torso.Name = "Torso"
  1132. Torso.CanCollide = false
  1133. Torso.CFrame = CFrame.new(129.3425,3,41.6619,1,0,0,0,1,0,0,0,1)
  1134. Torso.BottomSurface = Enum.SurfaceType.Smooth
  1135. Torso.Parent = Mover
  1136. LeftHip.C1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1,0,0)
  1137. LeftHip.C0 = CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0)
  1138. LeftHip.MaxVelocity = 0.1
  1139. LeftHip.Name = "Left Hip"
  1140. LeftHip.Part1 = LeftLeg
  1141. LeftHip.Part0 = Torso
  1142. LeftHip.Parent = Torso
  1143. RightHip.C1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0)
  1144. RightHip.C0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
  1145. RightHip.MaxVelocity = 0.1
  1146. RightHip.Name = "Right Hip"
  1147. RightHip.Part1 = RightLeg
  1148. RightHip.Part0 = Torso
  1149. RightHip.Parent = Torso
  1150. LeftShoulder.C1 = CFrame.new(0.5,0.5,0,0,0,-1,0,1,0,1,0,0)
  1151. LeftShoulder.C0 = CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0)
  1152. LeftShoulder.MaxVelocity = 0.1
  1153. LeftShoulder.Name = "Left Shoulder"
  1154. LeftShoulder.Part1 = LeftArm
  1155. LeftShoulder.Part0 = Torso
  1156. LeftShoulder.Parent = Torso
  1157. RightShoulder.C1 = CFrame.new(-0.5,0.5,0,0,0,1,0,1,0,-1,0,0)
  1158. RightShoulder.C0 = CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,0,0)
  1159. RightShoulder.MaxVelocity = 0.1
  1160. RightShoulder.Name = "Right Shoulder"
  1161. RightShoulder.Part1 = RightArm
  1162. RightShoulder.Part0 = Torso
  1163. RightShoulder.Parent = Torso
  1164. Neck.C1 = CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0)
  1165. Neck.C0 = CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)
  1166. Neck.MaxVelocity = 0.1
  1167. Neck.Name = "Neck"
  1168. Neck.Part1 = Head
  1169. Neck.Part0 = Torso
  1170. Neck.Parent = Torso
  1171. LeftLeg.TopSurface = Enum.SurfaceType.Smooth
  1172. LeftLeg.Size = Vector3.new(1,2,1)
  1173. LeftLeg.Name = "Left Leg"
  1174. LeftLeg.CanCollide = false
  1175. LeftLeg.CFrame = CFrame.new(128.8425,1,41.6619,1,0,0,0,1,0,0,0,1)
  1176. LeftLeg.BottomSurface = Enum.SurfaceType.Smooth
  1177. LeftLeg.Parent = Mover
  1178. RightLeg.TopSurface = Enum.SurfaceType.Smooth
  1179. RightLeg.Size = Vector3.new(1,2,1)
  1180. RightLeg.Name = "Right Leg"
  1181. RightLeg.CanCollide = false
  1182. RightLeg.CFrame = CFrame.new(129.8425,1,41.6619,1,0,0,0,1,0,0,0,1)
  1183. RightLeg.BottomSurface = Enum.SurfaceType.Smooth
  1184. RightLeg.Parent = Mover
  1185. LeftArm.TopSurface = Enum.SurfaceType.Smooth
  1186. LeftArm.Size = Vector3.new(1,2,1)
  1187. LeftArm.Name = "Left Arm"
  1188. LeftArm.CanCollide = false
  1189. LeftArm.CFrame = CFrame.new(127.8425,3,41.6619,1,0,0,0,1,0,0,0,1)
  1190. LeftArm.BottomSurface = Enum.SurfaceType.Smooth
  1191. LeftArm.Parent = Mover
  1192. RightArm.TopSurface = Enum.SurfaceType.Smooth
  1193. RightArm.Size = Vector3.new(1,2,1)
  1194. RightArm.Name = "Right Arm"
  1195. RightArm.CanCollide = false
  1196. RightArm.CFrame = CFrame.new(130.8425,3,41.6619,1,0,0,0,1,0,0,0,1)
  1197. RightArm.BottomSurface = Enum.SurfaceType.Smooth
  1198. RightArm.Parent = Mover
  1199. Head.TopSurface = Enum.SurfaceType.Smooth
  1200. Head.Size = Vector3.new(2,1,1)
  1201. Head.Name = "Head"
  1202. Head.CFrame = CFrame.new(129.3425,4.5,41.6619,1,0,0,0,1,0,0,0,1)
  1203. Head.BottomSurface = Enum.SurfaceType.Smooth
  1204. Head.Parent = Mover
  1205. Face.Name = "Face"
  1206. Face.Texture = "rbxasset://textures/face.png"
  1207. Face.Parent = Head
  1208. Humanoid.WalkSpeed = 12
  1209. Humanoid.Parent = Mover
  1210.  
  1211. local StudsOffset = 0.1 -- Character height offset (make negative if you're too high)
  1212. local Smoothness = 0.3 -- Character interpolation (0.1 - 1 = smooth - rigid)
  1213.  
  1214. local AnchorCharacter = true -- Prevent physics from causing inconsistencies (Keep this on for accurate tool positioning)
  1215. local HideCharacter = false -- Hide character on a faraway platform
  1216. local NoCollision = true -- Disable collision with nearby players
  1217.  
  1218. local RagdollEnabled = false -- Use your character instead of hats (NetworkOwner vulnerability)
  1219. local RagdollHeadMovement = true -- Move your head separately from your body (+9 second wait)
  1220.  
  1221. local AutoRun = false -- Rerun script on respawn
  1222. local AutoRespawn = true -- Reset when your virtual body dies
  1223.  
  1224. local WearAllAccessories = true -- Use all leftover hats for the head
  1225. local AccurateHandPosition = false -- Position your Roblox hands according to your real hands
  1226.  
  1227. local AccessorySettings = {
  1228. LeftArm = "LavanderHair"; -- Name of hat used as this limb
  1229. RightArm = "Pal Hair"; -- Name of hat used as this limb
  1230. LeftLeg = "Kate Hair"; -- Name of hat used as this limb
  1231. RightLeg = "Hat1"; -- Name of hat used as this limb
  1232. Torso = "SeeMonkey"; -- Name of hat used as this limb
  1233. Head = true; -- Are extra hats assumed to be worn?
  1234.  
  1235. BlockArms = true; -- Remove accessory meshes of this limb
  1236. BlockLegs = true; -- Remove accessory meshes of this limb
  1237. BlockTorso = true; -- Remove accessory meshes of this limb
  1238.  
  1239. LimbOffset = CFrame.Angles(math.rad(90), 0, 0); -- Don't touch
  1240. }
  1241.  
  1242. local FootPlacementSettings = {
  1243. RightOffset = Vector3.new(.5, 0, 0),
  1244. LeftOffset = Vector3.new(-.5, 0, 0),
  1245. }
  1246.  
  1247. --|| Script:
  1248.  
  1249. local Script = nil;
  1250. local Pointer = nil;
  1251.  
  1252. -- My coding style changed throughout this a lot lol
  1253.  
  1254. Script = function()
  1255.  
  1256. --[[
  1257. Variables
  1258. --]]
  1259.  
  1260. local Players = game:GetService("Players")
  1261. local Client = Players.LocalPlayer
  1262. local Character = Client.Character or Client.CharacterAdded:Wait()
  1263. local WeldBase = Character:WaitForChild("HumanoidRootPart")
  1264. local ArmBase = Character:FindFirstChild("RightHand") or Character:FindFirstChild("Right Arm") or WeldBase
  1265. local Backpack = Client:WaitForChild("Backpack")
  1266. local Mouse = Client:GetMouse()
  1267.  
  1268. local Camera = workspace.CurrentCamera
  1269.  
  1270. local VRService = game:GetService("VRService")
  1271. local VRReady = VRService.VREnabled
  1272.  
  1273. local UserInputService = game:GetService("UserInputService")
  1274. local RunService = game:GetService("RunService")
  1275. local HttpService = game:GetService("HttpService")
  1276. local StarterGui = game:GetService("StarterGui")
  1277.  
  1278. local HeadAccessories = {};
  1279. local UsedAccessories = {};
  1280.  
  1281. local Pointer = false;
  1282. local Point1 = false;
  1283. local Point2 = false;
  1284.  
  1285. local VirtualRig = script.Dummy
  1286. local VirtualBody = script.Mover
  1287.  
  1288. local Anchor = Instance.new("Part")
  1289.  
  1290. Anchor.Anchored = true
  1291. Anchor.Transparency = 1
  1292. Anchor.CanCollide = false
  1293. Anchor.Parent = workspace
  1294.  
  1295. if RagdollEnabled then
  1296. if script:FindFirstChild("Network") then
  1297. Network = require(script.Network)
  1298. else
  1299. Network = loadstring(game:HttpGet("https://pastebin.com/raw/bJms9qqM", true))()
  1300. end
  1301. Network:Claim();
  1302. end
  1303.  
  1304. --[[
  1305. Character Protection
  1306. --]]
  1307.  
  1308. local CharacterCFrame = WeldBase.CFrame
  1309.  
  1310. if not RagdollEnabled then
  1311. Character.Humanoid.AnimationPlayed:Connect(function(Animation)
  1312. Animation:Stop()
  1313. end)
  1314.  
  1315. for _, Track in next, Character.Humanoid:GetPlayingAnimationTracks() do
  1316. Track:Stop()
  1317. end
  1318.  
  1319. wait(.5)
  1320.  
  1321. if HideCharacter then
  1322. local Platform = Instance.new("Part")
  1323.  
  1324. Platform.Anchored = true
  1325. Platform.Size = Vector3.new(100, 5, 100)
  1326. Platform.CFrame = CFrame.new(0, 10000, 0)
  1327. Platform.Transparency = 1
  1328. Platform.Parent = workspace
  1329.  
  1330. Character:MoveTo(Platform.Position + Vector3.new(0, 5, 0))
  1331.  
  1332. wait(.5)
  1333. end
  1334.  
  1335. if AnchorCharacter then
  1336. for _, Part in pairs(Character:GetChildren()) do
  1337. if Part:IsA("BasePart") then
  1338. Part.Anchored = true
  1339. end
  1340. end
  1341. end
  1342. end
  1343.  
  1344. --[[
  1345. Functions
  1346. --]]
  1347.  
  1348. function Tween(Object, Style, Direction, Time, Goal)
  1349. local tweenInfo = TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction])
  1350. local tween = game:GetService("TweenService"):Create(Object, tweenInfo, Goal)
  1351.  
  1352. tween.Completed:Connect(function()
  1353. tween:Destroy()
  1354. end)
  1355.  
  1356. tween:Play()
  1357.  
  1358. return tween
  1359. end
  1360.  
  1361. local function GetMotorForLimb(Limb)
  1362. for _, Motor in next, Character:GetDescendants() do
  1363. if Motor:IsA("Motor6D") and Motor.Part1 == Limb then
  1364. return Motor
  1365. end
  1366. end
  1367. end
  1368.  
  1369. local function CreateAlignment(Limb, Part0)
  1370. local Attachment0 = Instance.new("Attachment", Part0 or Anchor)
  1371. local Attachment1 = Instance.new("Attachment", Limb)
  1372.  
  1373. local Orientation = Instance.new("AlignOrientation")
  1374. local Position = Instance.new("AlignPosition")
  1375.  
  1376. Orientation.Attachment0 = Attachment1
  1377. Orientation.Attachment1 = Attachment0
  1378. Orientation.RigidityEnabled = false
  1379. Orientation.MaxTorque = 20000
  1380. Orientation.Responsiveness = 40
  1381. Orientation.Parent = Character.HumanoidRootPart
  1382.  
  1383. Position.Attachment0 = Attachment1
  1384. Position.Attachment1 = Attachment0
  1385. Position.RigidityEnabled = false
  1386. Position.MaxForce = 40000
  1387. Position.Responsiveness = 40
  1388. Position.Parent = Character.HumanoidRootPart
  1389.  
  1390. Limb.Massless = false
  1391.  
  1392. local Motor = GetMotorForLimb(Limb)
  1393. if Motor then
  1394. Motor:Destroy()
  1395. end
  1396.  
  1397. return function(CF, Local)
  1398. if Local then
  1399. Attachment0.CFrame = CF
  1400. else
  1401. Attachment0.WorldCFrame = CF
  1402. end
  1403. end;
  1404. end
  1405.  
  1406. local function GetExtraTool()
  1407. for _, Tool in next, Character:GetChildren() do
  1408. if Tool:IsA("Tool") and not Tool.Name:match("LIMB_TOOL") then
  1409. return Tool
  1410. end
  1411. end
  1412. end
  1413.  
  1414. local function GetGripForHandle(Handle)
  1415. for _, Weld in next, Character:GetDescendants() do
  1416. if Weld:IsA("Weld") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then
  1417. return Weld
  1418. end
  1419. end
  1420.  
  1421. wait(.2)
  1422.  
  1423. for _, Weld in next, Character:GetDescendants() do
  1424. if Weld:IsA("Weld") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then
  1425. return Weld
  1426. end
  1427. end
  1428. end
  1429.  
  1430. local function CreateRightGrip(Handle)
  1431. local RightGrip = Instance.new("Weld")
  1432.  
  1433. RightGrip.Name = "RightGrip"
  1434. RightGrip.Part1 = Handle
  1435. RightGrip.Part0 = WeldBase
  1436. RightGrip.Parent = WeldBase
  1437.  
  1438. return RightGrip
  1439. end
  1440.  
  1441. local function CreateAccessory(Accessory, DeleteMeshes)
  1442. if not Accessory then
  1443. return
  1444. end
  1445.  
  1446. local HatAttachment = Accessory.Handle:FindFirstChildWhichIsA("Attachment")
  1447. local HeadAttachment = VirtualRig:FindFirstChild(HatAttachment.Name, true)
  1448. local BasePart = HeadAttachment.Parent
  1449.  
  1450. local HatAtt = HatAttachment.CFrame
  1451. local HeadAtt = HeadAttachment.CFrame
  1452.  
  1453. if DeleteMeshes then
  1454. if Accessory.Handle:FindFirstChild("Mesh") then
  1455. Accessory.Handle.Mesh:Destroy()
  1456. end
  1457. end
  1458.  
  1459. wait()
  1460.  
  1461. local Handle = Accessory:WaitForChild("Handle")
  1462.  
  1463. if Handle:FindFirstChildWhichIsA("Weld", true) then
  1464. Handle:FindFirstChildWhichIsA("Weld", true):Destroy()
  1465. Handle:BreakJoints()
  1466. else
  1467. Handle:BreakJoints()
  1468. end
  1469.  
  1470. Handle.Massless = true
  1471. Handle.Transparency = 0.5
  1472.  
  1473. UsedAccessories[Accessory] = true
  1474.  
  1475. local RightGrip = CreateRightGrip(Handle)
  1476.  
  1477. wait()
  1478.  
  1479. for _, Object in pairs(Handle:GetDescendants()) do
  1480. if not Object:IsA("BasePart") then
  1481. pcall(function()
  1482. Object.Transparency = 1
  1483. end)
  1484.  
  1485. pcall(function()
  1486. Object.Enabled = false
  1487. end)
  1488. end
  1489. end
  1490.  
  1491. return Handle, RightGrip, HatAtt, HeadAtt, BasePart;
  1492. end
  1493.  
  1494. local function GetHeadAccessories()
  1495. for _, Accessory in next, Character:GetChildren() do
  1496. if Accessory:IsA("Accessory") and not UsedAccessories[Accessory] then
  1497. local Handle, RightGrip, HatAtt, HeadAtt, BasePart = CreateAccessory(Accessory)
  1498.  
  1499. table.insert(HeadAccessories, {Handle, RightGrip, HatAtt, HeadAtt, BasePart})
  1500.  
  1501. do
  1502. Handle.Transparency = 1
  1503. end
  1504.  
  1505. if not WearAllAccessories then
  1506. break
  1507. end
  1508. end
  1509. end
  1510. end
  1511.  
  1512. --[[
  1513. VR Replication Setup
  1514. --]]
  1515.  
  1516. if not RagdollEnabled then
  1517. LeftHandle, LeftHandGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftArm), AccessorySettings.BlockArms)
  1518. RightHandle, RightHandGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.RightArm), AccessorySettings.BlockArms)
  1519. LeftHipHandle, LeftLegGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftLeg), AccessorySettings.BlockLegs)
  1520. RightHipHandle, RightLegGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.RightLeg), AccessorySettings.BlockLegs)
  1521. TorsoHandle, TorsoGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.Torso), AccessorySettings.BlockTorso)
  1522. GetHeadAccessories()
  1523.  
  1524. elseif RagdollEnabled then
  1525. if RagdollHeadMovement then
  1526. Permadeath()
  1527. MoveHead = CreateAlignment(Character["Head"])
  1528. end
  1529.  
  1530. MoveRightArm = CreateAlignment(Character["Right Arm"])
  1531. MoveLeftArm = CreateAlignment(Character["Left Arm"])
  1532. MoveRightLeg = CreateAlignment(Character["Right Leg"])
  1533. MoveLeftLeg = CreateAlignment(Character["Left Leg"])
  1534. MoveTorso = CreateAlignment(Character["Torso"])
  1535. MoveRoot = CreateAlignment(Character.HumanoidRootPart)
  1536.  
  1537. if RagdollHeadMovement then
  1538. for _, Accessory in next, Character:GetChildren() do
  1539. if Accessory:IsA("Accessory") and Accessory:FindFirstChild("Handle") then
  1540. local Attachment1 = Accessory.Handle:FindFirstChildWhichIsA("Attachment")
  1541. local Attachment0 = Character:FindFirstChild(tostring(Attachment1), true)
  1542.  
  1543. local Orientation = Instance.new("AlignOrientation")
  1544. local Position = Instance.new("AlignPosition")
  1545.  
  1546. print(Attachment1, Attachment0, Accessory)
  1547.  
  1548. Orientation.Attachment0 = Attachment1
  1549. Orientation.Attachment1 = Attachment0
  1550. Orientation.RigidityEnabled = false
  1551. Orientation.ReactionTorqueEnabled = true
  1552. Orientation.MaxTorque = 20000
  1553. Orientation.Responsiveness = 40
  1554. Orientation.Parent = Character.Head
  1555.  
  1556. Position.Attachment0 = Attachment1
  1557. Position.Attachment1 = Attachment0
  1558. Position.RigidityEnabled = false
  1559. Position.ReactionForceEnabled = true
  1560. Position.MaxForce = 40000
  1561. Position.Responsiveness = 40
  1562. Position.Parent = Character.Head
  1563. end
  1564. end
  1565. end
  1566. end
  1567.  
  1568. --[[
  1569. Movement
  1570. --]]
  1571.  
  1572. VirtualRig.Name = "VirtualRig"
  1573. VirtualRig.RightFoot.BodyPosition.Position = CharacterCFrame.p
  1574. VirtualRig.LeftFoot.BodyPosition.Position = CharacterCFrame.p
  1575. VirtualRig.Parent = workspace
  1576. VirtualRig:SetPrimaryPartCFrame(CharacterCFrame)
  1577.  
  1578. VirtualRig.Humanoid.Health = 0
  1579. VirtualRig:BreakJoints()
  1580. --
  1581.  
  1582. VirtualBody.Parent = workspace
  1583. VirtualBody.Name = "VirtualBody"
  1584. VirtualBody.Humanoid.WalkSpeed = 8
  1585. VirtualBody.Humanoid.CameraOffset = Vector3.new(0, StudsOffset, 0)
  1586. VirtualBody:SetPrimaryPartCFrame(CharacterCFrame)
  1587.  
  1588. VirtualBody.Humanoid.Died:Connect(function()
  1589. print("Virtual death")
  1590. if AutoRespawn then
  1591. Character:BreakJoints()
  1592.  
  1593. if RagdollHeadMovement and RagdollEnabled then
  1594. Network:Unclaim()
  1595. Respawn()
  1596. end
  1597. end
  1598. end)
  1599. --
  1600.  
  1601. Camera.CameraSubject = VirtualBody.Humanoid
  1602.  
  1603. Character.Humanoid.WalkSpeed = 0
  1604. Character.Humanoid.JumpPower = 1
  1605.  
  1606. for _, Part in next, VirtualBody:GetChildren() do
  1607. if Part:IsA("BasePart") then
  1608. Part.Transparency = 1
  1609. end
  1610. end
  1611.  
  1612. for _, Part in next, VirtualRig:GetChildren() do
  1613. if Part:IsA("BasePart") then
  1614. Part.Transparency = 1
  1615. end
  1616. end
  1617.  
  1618. if not VRReady then
  1619. VirtualRig.RightUpperArm.ShoulderConstraint.RigidityEnabled = true
  1620. VirtualRig.LeftUpperArm.ShoulderConstraint.RigidityEnabled = true
  1621. end
  1622.  
  1623.  
  1624. local OnMoving = RunService.Stepped:Connect(function()
  1625. local Direction = Character.Humanoid.MoveDirection
  1626. local Start = VirtualBody.HumanoidRootPart.Position
  1627. local Point = Start + Direction * 6
  1628.  
  1629. local Gyro = VirtualBody.HumanoidRootPart:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", VirtualBody.HumanoidRootPart)
  1630.  
  1631. Gyro.MaxTorque = Vector3.new(0, 100000, 0)
  1632. Gyro.CFrame = Camera:GetRenderCFrame() + Direction
  1633.  
  1634. if Pointer.Beam.Enabled then
  1635. Point = Pointer.Target.WorldCFrame.p
  1636. end
  1637.  
  1638. VirtualBody.Humanoid:MoveTo(Point)
  1639. end)
  1640.  
  1641. Character.Humanoid.Jumping:Connect(function()
  1642. VirtualBody.Humanoid.Jump = true
  1643. end)
  1644.  
  1645. UserInputService.JumpRequest:Connect(function()
  1646. VirtualBody.Humanoid.Jump = true
  1647. end)
  1648.  
  1649. --[[
  1650. VR Replication
  1651. --]]
  1652.  
  1653. if RagdollEnabled then
  1654. for _, Part in pairs(Character:GetDescendants()) do
  1655. if Part:IsA("BasePart") and Part.Name == "Handle" and Part.Parent:IsA("Accessory") then
  1656. Part.LocalTransparencyModifier = 1
  1657. elseif Part:IsA("BasePart") and Part.Transparency < 0.5 then
  1658. Part.LocalTransparencyModifier = 0.5
  1659. end
  1660.  
  1661. if not Part:IsA("BasePart") and not Part:IsA("AlignPosition") and not Part:IsA("AlignOrientation") then
  1662. pcall(function()
  1663. Part.Transparency = 1
  1664. end)
  1665.  
  1666. pcall(function()
  1667. Part.Enabled = false
  1668. end)
  1669. end
  1670. end
  1671. end
  1672.  
  1673. local FootUpdateDebounce = tick()
  1674.  
  1675. local function FloorRay(Part, Distance)
  1676. local Position = Part.CFrame.p
  1677. local Target = Position - Vector3.new(0, Distance, 0)
  1678. local Line = Ray.new(Position, (Target - Position).Unit * Distance)
  1679.  
  1680. local FloorPart, FloorPosition, FloorNormal = workspace:FindPartOnRayWithIgnoreList(Line, {VirtualRig, VirtualBody, Character})
  1681.  
  1682. if FloorPart then
  1683. return FloorPart, FloorPosition, FloorNormal, (FloorPosition - Position).Magnitude
  1684. else
  1685. return nil, Target, Vector3.new(), Distance
  1686. end
  1687. end
  1688.  
  1689. local function Flatten(CF)
  1690. local X,Y,Z = CF.X,CF.Y,CF.Z
  1691. local LX,LZ = CF.lookVector.X,CF.lookVector.Z
  1692.  
  1693. return CFrame.new(X,Y,Z) * CFrame.Angles(0,math.atan2(LX,LZ),0)
  1694. end
  1695.  
  1696. local FootTurn = 1
  1697.  
  1698. local function FootReady(Foot, Target)
  1699. local MaxDist
  1700.  
  1701. if Character.Humanoid.MoveDirection.Magnitude > 0 then
  1702. MaxDist = .5
  1703. else
  1704. MaxDist = 1
  1705. end
  1706.  
  1707. local PastThreshold = (Foot.Position - Target.Position).Magnitude > MaxDist
  1708. local PastTick = tick() - FootUpdateDebounce >= 2
  1709.  
  1710. if PastThreshold or PastTick then
  1711. FootUpdateDebounce = tick()
  1712. end
  1713.  
  1714. return
  1715. PastThreshold
  1716. or
  1717. PastTick
  1718. end
  1719.  
  1720. local function FootYield()
  1721. local RightFooting = VirtualRig.RightFoot.BodyPosition
  1722. local LeftFooting = VirtualRig.LeftFoot.BodyPosition
  1723. local LowerTorso = VirtualRig.LowerTorso
  1724. local UpperTorso = VirtualRig.UpperTorso
  1725.  
  1726. local Timer = 0.15
  1727. local Yield = tick()
  1728.  
  1729. repeat
  1730. RunService.RenderStepped:Wait()
  1731. if
  1732. math.abs(LowerTorso.Position.Y - RightFooting.Position.Y) > 4
  1733. or
  1734. math.abs(LowerTorso.Position.Y - LeftFooting.Position.Y) > 4
  1735. or
  1736. ((UpperTorso.Position - RightFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > VirtualBody.Humanoid.WalkSpeed / 2.5
  1737. or
  1738. ((UpperTorso.Position - LeftFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > VirtualBody.Humanoid.WalkSpeed / 2.5
  1739. then
  1740. break
  1741. end
  1742. until tick() - Yield >= Timer
  1743. end
  1744.  
  1745. local function UpdateFooting()
  1746. if not VirtualRig:FindFirstChild("LowerTorso") then
  1747. wait()
  1748. return
  1749. end
  1750.  
  1751. local Floor, FloorPosition, FloorNormal, Dist = FloorRay(VirtualRig.LowerTorso, 3)
  1752.  
  1753. Dist = math.clamp(Dist, 0, 5)
  1754.  
  1755. local Humanoid = VirtualBody.Humanoid
  1756. local MoveDirection = ((Pointer.Target.WorldPosition - VirtualRig.LowerTorso.Position) * Vector3.new(1, 0, 1)).Unit
  1757.  
  1758. if not Pointer.Beam.Enabled and Humanoid.MoveDirection.Magnitude == 0 then
  1759. MoveDirection = Vector3.new(0, 0, 0)
  1760. end
  1761.  
  1762. local FootTarget =
  1763. VirtualRig.LowerTorso.CFrame *
  1764. CFrame.new(FootPlacementSettings.RightOffset) -
  1765. Vector3.new(0, Dist, 0) +
  1766. MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 4.2)
  1767.  
  1768. if FootReady(VirtualRig.RightFoot, FootTarget) then
  1769. VirtualRig.RightFoot.BodyPosition.Position = FootTarget.p
  1770. VirtualRig.RightFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)
  1771. end
  1772.  
  1773. FootYield()
  1774.  
  1775. local FootTarget =
  1776. VirtualRig.LowerTorso.CFrame *
  1777. CFrame.new(FootPlacementSettings.LeftOffset) -
  1778. Vector3.new(0, Dist, 0) +
  1779. MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 4.2)
  1780.  
  1781. if FootReady(VirtualRig.LeftFoot, FootTarget) then
  1782. VirtualRig.LeftFoot.BodyPosition.Position = FootTarget.p
  1783. VirtualRig.LeftFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)
  1784. end
  1785. end
  1786.  
  1787. local function UpdateTorsoPosition()
  1788. if not RagdollEnabled then
  1789. if TorsoHandle then
  1790. local Positioning = VirtualRig.UpperTorso.CFrame
  1791.  
  1792. if not TorsoGrip or not TorsoGrip.Parent then
  1793. TorsoGrip = CreateRightGrip(TorsoHandle)
  1794. end
  1795.  
  1796. local Parent = TorsoGrip.Parent
  1797.  
  1798. TorsoGrip.C1 = CFrame.new()
  1799. TorsoGrip.C0 = TorsoGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(Positioning * CFrame.new(0, -0.25, 0) * AccessorySettings.LimbOffset), Smoothness)
  1800. TorsoGrip.Parent = nil
  1801. TorsoGrip.Parent = Parent
  1802. end
  1803. else
  1804. local Positioning = VirtualRig.UpperTorso.CFrame
  1805.  
  1806. MoveTorso(Positioning * CFrame.new(0, -0.25, 0))
  1807. MoveRoot(Positioning * CFrame.new(0, -0.25, 0))
  1808. end
  1809. end
  1810.  
  1811. local function UpdateLegPosition()
  1812. if not RagdollEnabled then
  1813. if RightHipHandle then
  1814. local Positioning =
  1815. VirtualRig.RightLowerLeg.CFrame
  1816. : Lerp(VirtualRig.RightFoot.CFrame, 0.5)
  1817. + Vector3.new(0, 0.5, 0)
  1818.  
  1819. if not RightHipHandle or not RightHipHandle.Parent then
  1820. RightLegGrip = CreateRightGrip(RightHipHandle)
  1821. end
  1822.  
  1823. local Parent = RightLegGrip.Parent
  1824.  
  1825. RightLegGrip.C1 = CFrame.new()
  1826. RightLegGrip.C0 = RightLegGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset), Smoothness)
  1827. RightLegGrip.Parent = nil
  1828. RightLegGrip.Parent = Parent
  1829. end
  1830.  
  1831. if LeftHipHandle then
  1832. local Positioning =
  1833. VirtualRig.LeftLowerLeg.CFrame
  1834. : Lerp(VirtualRig.LeftFoot.CFrame, 0.5)
  1835. + Vector3.new(0, 0.5, 0)
  1836.  
  1837. if not LeftLegGrip or not LeftLegGrip.Parent then
  1838. LeftLegGrip = CreateRightGrip(LeftHipHandle)
  1839. end
  1840.  
  1841. local Parent = LeftLegGrip.Parent
  1842.  
  1843. LeftLegGrip.C1 = CFrame.new()
  1844. LeftLegGrip.C0 = LeftLegGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset), Smoothness)
  1845. LeftLegGrip.Parent = nil
  1846. LeftLegGrip.Parent = Parent
  1847. end
  1848. else
  1849. do
  1850. local Positioning =
  1851. VirtualRig.RightLowerLeg.CFrame
  1852. : Lerp(VirtualRig.RightFoot.CFrame, 0.5)
  1853. * CFrame.Angles(0, math.rad(180), 0)
  1854. + Vector3.new(0, 0.5, 0)
  1855.  
  1856. MoveRightLeg(Positioning)
  1857. end
  1858.  
  1859. do
  1860. local Positioning =
  1861. VirtualRig.LeftLowerLeg.CFrame
  1862. : Lerp(VirtualRig.LeftFoot.CFrame, 0.5)
  1863. * CFrame.Angles(0, math.rad(180), 0)
  1864. + Vector3.new(0, 0.5, 0)
  1865.  
  1866. MoveLeftLeg(Positioning)
  1867. end
  1868. end
  1869. end
  1870.  
  1871. warn("VRReady is", VRReady)
  1872.  
  1873. local function OnUserCFrameChanged(UserCFrame, Positioning, IgnoreTorso)
  1874. local Positioning = Camera.CFrame * Positioning
  1875.  
  1876. if ((VRReady and UserCFrame == Enum.UserCFrame.Head) or not VRReady) and not IgnoreTorso then
  1877. UpdateTorsoPosition()
  1878. UpdateLegPosition()
  1879. end
  1880.  
  1881. if not RagdollEnabled then
  1882. if UserCFrame == Enum.UserCFrame.Head and AccessorySettings.Head then
  1883. for _, Table in next, HeadAccessories do
  1884. local Handle, RightGrip, HatAtt, HeadAtt, BasePart = unpack(Table)
  1885. local LocalPositioning = Positioning
  1886.  
  1887. if not RightGrip or not RightGrip.Parent then
  1888. RightGrip = CreateRightGrip(Handle)
  1889. Table[2] = RightGrip
  1890. end
  1891.  
  1892. local Parent = RightGrip.Parent
  1893.  
  1894. if BasePart then
  1895. LocalPositioning = BasePart.CFrame * HeadAtt
  1896. end
  1897.  
  1898. RightGrip.C1 = HatAtt
  1899. RightGrip.C0 = RightGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(LocalPositioning), Smoothness)
  1900. RightGrip.Parent = nil
  1901. RightGrip.Parent = Parent
  1902. end
  1903.  
  1904. elseif RightHandle and UserCFrame == Enum.UserCFrame.RightHand and AccessorySettings.RightArm then
  1905. local HandPosition = Positioning
  1906. local LocalPositioning = Positioning
  1907.  
  1908. if not RightHandGrip or not RightHandGrip.Parent then
  1909. RightHandGrip = CreateRightGrip(RightHandle)
  1910. end
  1911.  
  1912. if AccurateHandPosition then
  1913. HandPosition = HandPosition * CFrame.new(0, 0, 1)
  1914. else
  1915. HandPosition = HandPosition * CFrame.new(0, 0, .5)
  1916. end
  1917.  
  1918. if not VRReady then
  1919. local HeadRotation = Camera.CFrame - Camera.CFrame.p
  1920.  
  1921. HandPosition = VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5) * AccessorySettings.LimbOffset
  1922.  
  1923. --LocalPositioning = (HeadRotation + (HandPosition * CFrame.new(0, 0, 1)).p) * CFrame.Angles(math.rad(-45), 0, 0)
  1924. LocalPositioning = HandPosition * CFrame.new(0, 0, 1) * CFrame.Angles(math.rad(-180), 0, 0)
  1925.  
  1926. if Point2 then
  1927. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1928. VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  1929. elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  1930. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  1931. end
  1932. elseif not AccurateHandPosition then
  1933. LocalPositioning = HandPosition * CFrame.new(0, 0, -1)
  1934. end
  1935.  
  1936. local Parent = RightHandGrip.Parent
  1937.  
  1938. RightHandGrip.C1 = CFrame.new()
  1939. RightHandGrip.C0 = RightHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)
  1940. RightHandGrip.Parent = nil
  1941. RightHandGrip.Parent = Parent
  1942.  
  1943. --
  1944.  
  1945. local EquippedTool = GetExtraTool()
  1946.  
  1947. if EquippedTool and EquippedTool:FindFirstChild("Handle") then
  1948. local EquippedGrip = GetGripForHandle(EquippedTool.Handle)
  1949. local Parent = EquippedGrip.Parent
  1950.  
  1951. local ArmBaseCFrame = ArmBase.CFrame
  1952. if ArmBase.Name == "Right Arm" then
  1953. ArmBaseCFrame = ArmBaseCFrame
  1954. end
  1955.  
  1956. EquippedGrip.C1 = EquippedTool.Grip
  1957. EquippedGrip.C0 = EquippedGrip.C0:Lerp(ArmBaseCFrame:ToObjectSpace(LocalPositioning), Smoothness)
  1958. EquippedGrip.Parent = nil
  1959. EquippedGrip.Parent = Parent
  1960. end
  1961.  
  1962. elseif LeftHandle and UserCFrame == Enum.UserCFrame.LeftHand and AccessorySettings.LeftArm then
  1963. local HandPosition = Positioning
  1964.  
  1965. if not LeftHandGrip or not LeftHandGrip.Parent then
  1966. LeftHandGrip = CreateRightGrip(LeftHandle)
  1967. end
  1968.  
  1969. if AccurateHandPosition then
  1970. HandPosition = HandPosition * CFrame.new(0, 0, 1)
  1971. else
  1972. HandPosition = HandPosition * CFrame.new(0, 0, .5)
  1973. end
  1974.  
  1975. if not VRReady then
  1976. HandPosition = VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5) * AccessorySettings.LimbOffset
  1977. --warn("Setting HandPosition to hands")
  1978. if Point1 then
  1979. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1980. VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  1981. elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  1982. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  1983. end
  1984. end
  1985.  
  1986. local Parent = LeftHandGrip.Parent
  1987.  
  1988. LeftHandGrip.C1 = CFrame.new()
  1989. LeftHandGrip.C0 = LeftHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)
  1990. LeftHandGrip.Parent = nil
  1991. LeftHandGrip.Parent = Parent
  1992.  
  1993. end
  1994. end
  1995.  
  1996. if RagdollEnabled then
  1997. if UserCFrame == Enum.UserCFrame.Head and RagdollHeadMovement then
  1998. MoveHead(Positioning)
  1999. elseif UserCFrame == Enum.UserCFrame.RightHand then
  2000. local Positioning = Positioning
  2001.  
  2002. if not VRReady then
  2003. Positioning = VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5)
  2004. elseif AccurateHandPosition then
  2005. Positioning = Positioning * CFrame.new(0, 0, 1)
  2006. end
  2007.  
  2008. if VRReady then
  2009. Positioning = Positioning * AccessorySettings.LimbOffset
  2010. end
  2011.  
  2012. MoveRightArm(Positioning)
  2013.  
  2014. if Point2 then
  2015. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  2016. VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  2017. elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  2018. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  2019. end
  2020. elseif UserCFrame == Enum.UserCFrame.LeftHand then
  2021. local Positioning = Positioning
  2022.  
  2023. if not VRReady then
  2024. Positioning = VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5)
  2025. elseif AccurateHandPosition then
  2026. Positioning = Positioning * CFrame.new(0, 0, 1)
  2027. end
  2028.  
  2029. if VRReady then
  2030. Positioning = Positioning * AccessorySettings.LimbOffset
  2031. end
  2032.  
  2033. MoveLeftArm(Positioning)
  2034.  
  2035. if Point1 then
  2036. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  2037. VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  2038. elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  2039. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  2040. end
  2041. end
  2042. end
  2043.  
  2044. if UserCFrame == Enum.UserCFrame.Head then
  2045. VirtualRig.Head.CFrame = Positioning
  2046. VirtualRig.HumanoidRootPart.CFrame = Positioning
  2047.  
  2048. elseif UserCFrame == Enum.UserCFrame.RightHand and VRReady then
  2049. VirtualRig.RightHand.CFrame = Positioning
  2050.  
  2051. elseif UserCFrame == Enum.UserCFrame.LeftHand and VRReady then
  2052. VirtualRig.LeftHand.CFrame = Positioning
  2053.  
  2054. end
  2055.  
  2056. if not VRReady and VirtualRig.LeftHand.Anchored then
  2057. VirtualRig.RightHand.Anchored = false
  2058. VirtualRig.LeftHand.Anchored = false
  2059. elseif VRReady and not VirtualRig.LeftHand.Anchored then
  2060. VirtualRig.RightHand.Anchored = true
  2061. VirtualRig.LeftHand.Anchored = true
  2062. end
  2063. end
  2064.  
  2065. local CFrameChanged = VRService.UserCFrameChanged:Connect(OnUserCFrameChanged)
  2066.  
  2067. local OnStepped = RunService.Stepped:Connect(function()
  2068. for _, Part in pairs(VirtualRig:GetChildren()) do
  2069. if Part:IsA("BasePart") then
  2070. Part.CanCollide = false
  2071. end
  2072. end
  2073.  
  2074. if RagdollEnabled then
  2075. for _, Part in pairs(Character:GetChildren()) do
  2076. if Part:IsA("BasePart") then
  2077. Part.CanCollide = false
  2078. end
  2079. end
  2080. end
  2081.  
  2082. if NoCollision then
  2083. for _, Player in pairs(Players:GetPlayers()) do
  2084. if Player ~= Client and Player.Character then
  2085. local Char = Player.Character
  2086. local Descendants = Player.Character:GetChildren()
  2087.  
  2088. local IsClose, Part = false, Char.PrimaryPart or Char:FindFirstChild("Head") or Char:FindFirstChildWhichIsA("BasePart")
  2089. if Part and (Camera.CFrame.Position - Part.Position).Magnitude < 30 then
  2090. IsClose = true
  2091. end
  2092.  
  2093. if IsClose then
  2094. for i = 1, #Descendants do
  2095. local Part = Descendants[i]
  2096. if Part:IsA("BasePart") then
  2097. Part.CanCollide = false
  2098. Part.Velocity = Vector3.new()
  2099. Part.RotVelocity = Vector3.new()
  2100. end
  2101. end
  2102. end
  2103. end
  2104. end
  2105. end
  2106. end)
  2107.  
  2108. local OnRenderStepped = RunService.Stepped:Connect(function()
  2109. Camera.CameraSubject = VirtualBody.Humanoid
  2110.  
  2111. if RagdollEnabled then
  2112. Character.HumanoidRootPart.CFrame = VirtualRig.UpperTorso.CFrame
  2113. Character.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0)
  2114. end
  2115.  
  2116. if not VRReady then
  2117. OnUserCFrameChanged(Enum.UserCFrame.Head, CFrame.new(0, 0, 0))
  2118.  
  2119. OnUserCFrameChanged(Enum.UserCFrame.RightHand, CFrame.new(0, 0, 0), true)
  2120. OnUserCFrameChanged(Enum.UserCFrame.LeftHand, CFrame.new(0, 0, 0), true)
  2121. end
  2122. end)
  2123.  
  2124. spawn(function()
  2125. while Character and Character.Parent do
  2126. FootYield()
  2127. UpdateFooting()
  2128. end
  2129. end)
  2130.  
  2131. --[[
  2132. Non-VR Support + VR Mechanics
  2133. --]]
  2134.  
  2135. local OnInput = UserInputService.InputBegan:Connect(function(Input, Processed)
  2136. if not Processed then
  2137. if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then
  2138. Tween(VirtualBody.Humanoid, "Elastic", "Out", 1, {
  2139. CameraOffset = Vector3.new(0, StudsOffset - 1.5, 0)
  2140. })
  2141. end
  2142.  
  2143. if Input.KeyCode == Enum.KeyCode.X then
  2144. if RagdollEnabled and RagdollHeadMovement then
  2145. Network:Unclaim()
  2146. Respawn()
  2147. end
  2148. end
  2149.  
  2150. if Input.KeyCode == Enum.KeyCode.C or Input.KeyCode == Enum.KeyCode.ButtonB then
  2151. Pointer.Beam.Enabled = true
  2152. Pointer.Target.ParticleEmitter.Enabled = true
  2153. elseif Input.KeyCode == Enum.KeyCode.ButtonY then
  2154. VirtualBody.Humanoid:MoveTo(Pointer.Target.WorldCFrame.p)
  2155.  
  2156. Pointer.Beam.Enabled = true
  2157. Pointer.Target.ParticleEmitter.Enabled = true
  2158. end
  2159. end
  2160.  
  2161. if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then
  2162. Tween(VirtualBody.Humanoid, "Sine", "Out", 1, {
  2163. WalkSpeed = 16
  2164. })
  2165. end
  2166.  
  2167. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  2168. Point1 = true
  2169. end
  2170.  
  2171. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then
  2172. Point2 = true
  2173. end
  2174.  
  2175. if VRReady and Input.KeyCode == Enum.KeyCode.ButtonX then
  2176. --Character:BreakJoints()
  2177.  
  2178. if RagdollEnabled and RagdollHeadMovement then
  2179. Character:BreakJoints()
  2180. Network:Unclaim()
  2181. Respawn()
  2182. end
  2183. end
  2184. end)
  2185.  
  2186. local OnInputEnded = UserInputService.InputEnded:Connect(function(Input, Processed)
  2187. if not Processed then
  2188. if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then
  2189. Tween(VirtualBody.Humanoid, "Elastic", "Out", 1, {
  2190. CameraOffset = Vector3.new(0, StudsOffset, 0)
  2191. })
  2192. elseif Input.KeyCode == Enum.KeyCode.ButtonB or Input.KeyCode == Enum.KeyCode.C then
  2193. if Mouse.Target and (Mouse.Hit.p - Camera.CFrame.p).Magnitude < 1000 then
  2194. VirtualBody:MoveTo(Pointer.Target.WorldCFrame.p)
  2195. VirtualRig:SetPrimaryPartCFrame(Pointer.Target.WorldCFrame)
  2196. VirtualRig.RightFoot.BodyPosition.Position = Pointer.Target.WorldCFrame.p
  2197. VirtualRig.LeftFoot.BodyPosition.Position = Pointer.Target.WorldCFrame.p
  2198. end
  2199.  
  2200. Pointer.Beam.Enabled = false
  2201. Pointer.Target.ParticleEmitter.Enabled = false
  2202. elseif Input.KeyCode == Enum.KeyCode.ButtonY then
  2203. VirtualBody.Humanoid:MoveTo(Pointer.Target.WorldCFrame.p)
  2204.  
  2205. Pointer.Beam.Enabled = false
  2206. Pointer.Target.ParticleEmitter.Enabled = false
  2207. end
  2208. end
  2209.  
  2210. if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then
  2211. Tween(VirtualBody.Humanoid, "Sine", "Out", 1, {
  2212. WalkSpeed = 8
  2213. })
  2214. end
  2215.  
  2216. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  2217. Point1 = false
  2218. end
  2219.  
  2220. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then
  2221. Point2 = false
  2222. end
  2223. end)
  2224.  
  2225. --[[
  2226. Proper Cleanup
  2227. --]]
  2228.  
  2229. local OnReset
  2230.  
  2231. OnReset = Client.CharacterAdded:Connect(function()
  2232. OnReset:Disconnect();
  2233. CFrameChanged:Disconnect();
  2234. OnStepped:Disconnect();
  2235. OnRenderStepped:Disconnect();
  2236. OnMoving:Disconnect();
  2237. OnInput:Disconnect();
  2238. OnInputEnded:Disconnect();
  2239.  
  2240. VirtualRig:Destroy();
  2241. VirtualBody:Destroy();
  2242.  
  2243. if RagdollEnabled then
  2244. Network:Unclaim();
  2245. end
  2246.  
  2247. if AutoRun then
  2248. delay(2, function()
  2249. Script()
  2250. end)
  2251. end
  2252. end)
  2253.  
  2254. do
  2255. --[[
  2256. Functions
  2257. --]]
  2258.  
  2259. local Players = game:GetService("Players")
  2260. local Client = Players.LocalPlayer
  2261.  
  2262. local VRService = game:GetService("VRService")
  2263. local VRReady = VRService.VREnabled
  2264.  
  2265. local UserInputService = game:GetService("UserInputService")
  2266. local RunService = game:GetService("RunService")
  2267.  
  2268. local Camera = workspace.CurrentCamera
  2269.  
  2270. --[[
  2271. Code
  2272. --]]
  2273.  
  2274. if VRReady or true then
  2275. Pointer = game:GetObjects("rbxassetid://4476173280")[1]
  2276.  
  2277. Pointer.Parent = workspace
  2278. Pointer.Beam.Enabled = false
  2279. Pointer.Target.ParticleEmitter.Enabled = false
  2280.  
  2281. local RenderStepped = RunService.RenderStepped:Connect(function()
  2282. if Pointer.Beam.Enabled then
  2283. local RightHand = Camera.CFrame * VRService:GetUserCFrame(Enum.UserCFrame.RightHand)
  2284. local Target = RightHand * CFrame.new(0, 0, -10)
  2285.  
  2286. local Line = Ray.new(RightHand.p, (Target.p - RightHand.p).Unit * 10000)
  2287. local Part, Position = workspace:FindPartOnRayWithIgnoreList(Line, {VirtualRig, VirtualBody, Character, Pointer})
  2288.  
  2289. local Distance = (Position - RightHand.p).Magnitude
  2290.  
  2291. Pointer.Target.Position = Vector3.new(0, 0, -Distance)
  2292. Pointer.CFrame = RightHand
  2293. end
  2294. end)
  2295.  
  2296. local Input = UserInputService.InputBegan:Connect(function(Input)
  2297.  
  2298. end)
  2299.  
  2300. --
  2301.  
  2302. local CharacterAdded
  2303.  
  2304. CharacterAdded = Client.CharacterAdded:Connect(function()
  2305. RenderStepped:Disconnect()
  2306. Input:Disconnect()
  2307. CharacterAdded:Disconnect()
  2308.  
  2309. Pointer:Destroy()
  2310. Pointer = nil
  2311. end)
  2312. else
  2313. return
  2314. end
  2315. end
  2316.  
  2317. end;
  2318.  
  2319. Permadeath = function()
  2320. local ch = game.Players.LocalPlayer.Character
  2321. local prt=Instance.new("Model", workspace)
  2322. local z1 = Instance.new("Part", prt)
  2323. z1.Name="Torso"
  2324. z1.CanCollide = false
  2325. z1.Anchored = true
  2326. local z2 =Instance.new("Part", prt)
  2327. z2.Name="Head"
  2328. z2.Anchored = true
  2329. z2.CanCollide = false
  2330. local z3 =Instance.new("Humanoid", prt)
  2331. z3.Name="Humanoid"
  2332. z1.Position = Vector3.new(0,9999,0)
  2333. z2.Position = Vector3.new(0,9991,0)
  2334. game.Players.LocalPlayer.Character=prt
  2335. wait(5)
  2336. warn("50%")
  2337. game.Players.LocalPlayer.Character=ch
  2338. wait(6)
  2339. warn("100%")
  2340. end;
  2341.  
  2342. Respawn = function()
  2343. local ch = game.Players.LocalPlayer.Character
  2344.  
  2345. local prt=Instance.new("Model", workspace)
  2346. local z1 = Instance.new("Part", prt)
  2347. z1.Name="Torso"
  2348. z1.CanCollide = false
  2349. z1.Anchored = true
  2350. local z2 =Instance.new("Part", prt)
  2351. z2.Name="Head"
  2352. z2.Anchored = true
  2353. z2.CanCollide = false
  2354. local z3 =Instance.new("Humanoid", prt)
  2355. z3.Name="Humanoid"
  2356. z1.Position = Vector3.new(0,9999,0)
  2357. z2.Position = Vector3.new(0,9991,0)
  2358. game.Players.LocalPlayer.Character=prt
  2359. wait(5)
  2360. game.Players.LocalPlayer.Character=ch
  2361. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement