Advertisement
RoSPLOITkrnl

Skeds VR script

Aug 20th, 2022
9,935
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 1 0
  1. --Rosploit Was here
  2. game.Players.LocalPlayer.Character["LavanderHair"].Handle:FindFirstChildOfClass("SpecialMesh"):Destroy()
  3. game.Players.LocalPlayer.Character["Pal Hair"].Handle:FindFirstChildOfClass("SpecialMesh"):Destroy()
  4. game.Players.LocalPlayer.Character["MediHood"].Handle.Transparency = 1
  5.  
  6.  
  7. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  8. if v:IsA("BasePart") and v.Name ~="HumanoidRootPart" then
  9. game:GetService("RunService").Heartbeat:connect(function()
  10. v.Velocity = Vector3.new(45,0,0)
  11. end)
  12. end
  13. end
  14.  
  15. local options = {}
  16.  
  17. -- OPTIONS:
  18.  
  19. options.headscale = 3 -- how big you are in vr, 1 is default, 3 is recommended for max comfort in vr
  20. options.forcebubblechat = true -- decide if to force bubblechat so you can see peoples messages
  21.  
  22. options.headhat = "MediHood" -- name of the accessory which you are using as a head
  23. options.righthandhat = "Pal Hair" -- name of the accessory which you are using as your right hand
  24. options.lefthandhat = "LavanderHair" -- name of the accessory which you are using as your left hand
  25.  
  26. options.righthandrotoffset = Vector3.new(0,0,0)
  27. options.lefthandrotoffset = Vector3.new(0,0,0)
  28.  
  29. --
  30.  
  31. local plr = game:GetService("Players").LocalPlayer
  32. local char = plr.Character
  33. --local backpack = plr.Backpack
  34.  
  35. local VR = game:GetService("VRService")
  36. local input = game:GetService("UserInputService")
  37.  
  38. local cam = workspace.CurrentCamera
  39.  
  40. cam.CameraType = "Scriptable"
  41.  
  42. cam.HeadScale = options.headscale
  43.  
  44. game:GetService("StarterGui"):SetCore("VRLaserPointerMode", 0)
  45. game:GetService("StarterGui"):SetCore("VREnableControllerModels", false)
  46.  
  47.  
  48. local function createpart(size, name)
  49. local Part = Instance.new("Part", char)
  50. Part.CFrame = char.HumanoidRootPart.CFrame
  51. Part.Size = size
  52. Part.Transparency = 1
  53. Part.CanCollide = false
  54. Part.Anchored = true
  55. Part.Name = name
  56. return Part
  57. end
  58.  
  59. local moveHandL = createpart(Vector3.new(1,1,2), "moveRH")
  60. local moveHandR = createpart(Vector3.new(1,1,2), "moveLH")
  61. local moveHead = createpart(Vector3.new(1,1,1), "moveH")
  62.  
  63. local handL
  64. local handR
  65. local head
  66. local R1down = false
  67.  
  68. for i,v in pairs(char.Humanoid:GetAccessories()) do
  69. if v:FindFirstChild("Handle") then
  70. local handle = v.Handle
  71.  
  72. if v.Name == options.righthandhat and not handR then
  73. handR = v
  74. elseif v.Name == options.lefthandhat and not handL then
  75. handL = v
  76. elseif v.Name == options.headhat and not head then
  77. handle.Transparency = 1
  78. head = v
  79. end
  80. end
  81. end
  82.  
  83. char.Humanoid.AnimationPlayed:connect(function(anim)
  84. anim:Stop()
  85. end)
  86.  
  87. for i,v in pairs(char.Humanoid:GetPlayingAnimationTracks()) do
  88. v:AdjustSpeed(0)
  89. end
  90.  
  91. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  92. torso.Anchored = true
  93. char.HumanoidRootPart.Anchored = true
  94.  
  95. workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position)
  96.  
  97. input.UserCFrameChanged:connect(function(part,move)
  98. if part == Enum.UserCFrame.Head then
  99. --move(head,cam.CFrame*move)
  100. moveHead.CFrame = cam.CFrame*(CFrame.new(move.p*(cam.HeadScale-1))*move)
  101. elseif part == Enum.UserCFrame.LeftHand then
  102. --move(handL,cam.CFrame*move)
  103. moveHandL.CFrame = cam.CFrame*(CFrame.new(move.p*(cam.HeadScale-1))*move*CFrame.Angles(math.rad(options.righthandrotoffset.X),math.rad(options.righthandrotoffset.Y),math.rad(options.righthandrotoffset.Z)))
  104. elseif part == Enum.UserCFrame.RightHand then
  105. --move(handR,cam.CFrame*move)
  106. moveHandR.CFrame = cam.CFrame*(CFrame.new(move.p*(cam.HeadScale-1))*move*CFrame.Angles(math.rad(options.righthandrotoffset.X),math.rad(options.righthandrotoffset.Y),math.rad(options.righthandrotoffset.Z)))
  107. end
  108. end)
  109.  
  110. local function Align(Part1,Part0,CFrameOffset) -- i dont know who made this function but 64will64 sent it to me so credit to whoever made it
  111. local AlignPos = Instance.new('AlignPosition', Part1);
  112. AlignPos.Parent.CanCollide = false;
  113. AlignPos.ApplyAtCenterOfMass = true;
  114. AlignPos.MaxForce = 67752;
  115. AlignPos.MaxVelocity = math.huge/9e110;
  116. AlignPos.ReactionForceEnabled = false;
  117. AlignPos.Responsiveness = 200;
  118. AlignPos.RigidityEnabled = false;
  119. local AlignOri = Instance.new('AlignOrientation', Part1);
  120. AlignOri.MaxAngularVelocity = math.huge/9e110;
  121. AlignOri.MaxTorque = 67752;
  122. AlignOri.PrimaryAxisOnly = false;
  123. AlignOri.ReactionTorqueEnabled = false;
  124. AlignOri.Responsiveness = 200;
  125. AlignOri.RigidityEnabled = false;
  126. local AttachmentA=Instance.new('Attachment',Part1);
  127. local AttachmentB=Instance.new('Attachment',Part0);
  128. AttachmentB.CFrame = AttachmentB.CFrame * CFrameOffset
  129. AlignPos.Attachment0 = AttachmentA;
  130. AlignPos.Attachment1 = AttachmentB;
  131. AlignOri.Attachment0 = AttachmentA;
  132. AlignOri.Attachment1 = AttachmentB;
  133. end
  134.  
  135. head.Handle:BreakJoints()
  136. handR.Handle:BreakJoints()
  137. handL.Handle:BreakJoints()
  138.  
  139. Align(head.Handle,moveHead,CFrame.new(0,0,0))
  140. Align(handR.Handle,moveHandR,CFrame.new(0,0,0))
  141. Align(handL.Handle,moveHandL,CFrame.new(0,0,0))
  142.  
  143. input.InputChanged:connect(function(key)
  144. if key.KeyCode == Enum.KeyCode.ButtonR1 then
  145. if key.Position.Z > 0.9 then
  146. R1down = true
  147. else
  148. R1down = false
  149. end
  150. end
  151. end)
  152.  
  153. input.InputBegan:connect(function(key)
  154. if key.KeyCode == Enum.KeyCode.ButtonR1 then
  155. R1down = true
  156. end
  157. end)
  158.  
  159. input.InputEnded:connect(function(key)
  160. if key.KeyCode == Enum.KeyCode.ButtonR1 then
  161. R1down = false
  162. end
  163. end)
  164.  
  165. game:GetService("RunService").RenderStepped:connect(function()
  166. if R1down then
  167. cam.CFrame = cam.CFrame:Lerp(cam.CoordinateFrame + (moveHandR.CFrame*CFrame.Angles(-math.rad(options.righthandrotoffset.X),-math.rad(options.righthandrotoffset.Y),math.rad(180-options.righthandrotoffset.X))).LookVector * cam.HeadScale/2, 0.5)
  168. end
  169. end)
  170.  
  171. local function bubble(plr,msg)
  172. game:GetService("Chat"):Chat(plr.Character.Head,msg,Enum.ChatColor.White)
  173. end
  174.  
  175. if options.forcebubblechat == true then
  176. game.Players.PlayerAdded:connect(function(plr)
  177. plr.Chatted:connect(function(msg)
  178. game:GetService("Chat"):Chat(plr.Character.Head,msg,Enum.ChatColor.White)
  179. end)
  180. end)
  181.  
  182. for i,v in pairs(game.Players:GetPlayers()) do
  183. v.Chatted:connect(function(msg)
  184. game:GetService("Chat"):Chat(v.Character.Head,msg,Enum.ChatColor.White)
  185. end)
  186. end
  187. end
  188. print("Rosploit is cool")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement