Advertisement
nono_cop

Whoogives's VR old

May 27th, 2021
3,714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.17 KB | None | 0 0
  1. --[[
  2.  __          __  _                               _                        _          __      __  _____  
  3.  \ \        / / | |                             (_)                      ( )         \ \    / / |  __ \
  4.   \ \  /\  / /  | |__     ___     ___     __ _   _  __   __   ___   ___  |/   ___     \ \  / /  | |__) |
  5.    \ \/  \/ /   | '_ \   / _ \   / _ \   / _` | | | \ \ / /  / _ \ / __|     / __|     \ \/ /   |  _  /
  6.     \  /\  /    | | | | | (_) | | (_) | | (_| | | |  \ V /  |  __/ \__ \     \__ \      \  /    | | \ \
  7.      \/  \/     |_| |_|  \___/   \___/   \__, | |_|   \_/    \___| |___/     |___/       \/     |_|  \_\
  8.                                           __/ |                                                        
  9.                                          |___/                
  10.   Inspired By Skeds VR
  11. --]]
  12.  
  13. local options = {}
  14.  
  15.  
  16.  
  17. -- OPTIONS:
  18. options.VRChat = true                                   -- Set this to true if you want to chat in VR (Button to open is B on your VR controller)
  19.  
  20. options.headscale = 3                                   -- How big you are in VR, This does not make your character any bigger (3 is recommended)
  21. options.forcebubblechat = true                          -- Force bubblechat
  22.  
  23. options.HandsRotationOffset = Vector3.new(90,0,0)       -- Rotation offset (90 is recommended)
  24.  
  25. options.HandTransparency = 0.4                          -- Transparency for your VR hands, Dont worry this is client sided (0.4 is recommended)
  26. options.HideAllHats = true                              -- Set this to true if you want your hats to not get in the way, This is client sided
  27.  
  28. --
  29.  
  30.  
  31. local plr = game:GetService("Players").LocalPlayer
  32. local VR = game:GetService("VRService")
  33. local runservice = game:service("RunService")
  34. local input = game:GetService("UserInputService")
  35. local keysPressed = input:GetKeysPressed()
  36. local cam = workspace.CurrentCamera
  37. local runservice = game:service("RunService")
  38. local character = plr["Character"]
  39.  
  40. -- Reanime:
  41. loadstring(game:HttpGet("https://raw.githubusercontent.com/OpenGamerTips/Roblox-Scripts/main/NetworkScripts/ownership.lua"))()
  42. --
  43. local Root = character:FindFirstChild("HumanoidRootPart")
  44.  
  45. repeat wait()
  46.     a = pcall(function()
  47.         game:WaitForChild("Players").LocalPlayer:WaitForChild("PlayerScripts").ChildAdded:Connect(function(c)
  48.             if c.Name == "PlayerScriptsLoader"then
  49.                 c.Disabled = true
  50.             end
  51.         end)
  52.     end)
  53.     if a == true then break end
  54. until true == false
  55.  
  56. game:WaitForChild("Players").LocalPlayer:WaitForChild("PlayerScripts").ChildAdded:Connect(function(c)
  57.     if c.Name == "PlayerScriptsLoader"then
  58.         c.Disabled = true
  59.     end
  60. end)
  61.  
  62. options.righthandrotoffset = options.HandsRotationOffset
  63. options.lefthandrotoffset = options.HandsRotationOffset
  64.  
  65. character.Humanoid.AnimationPlayed:connect(function(anime)
  66.     anime:Stop()
  67. end)
  68.  
  69. for i,v in pairs(character.Humanoid:GetPlayingAnimationTracks()) do
  70.     v:AdjustSpeed(0)
  71. end
  72.  
  73. -- Chat Part:
  74. if options.VRChat == true then
  75.     local VRchat = Instance.new("ScreenGui")
  76.     local Page1 = Instance.new("Frame")
  77.     local Hello = Instance.new("TextButton")
  78.     local Ok = Instance.new("TextButton")
  79.     local No = Instance.new("TextButton")
  80.     local Yes = Instance.new("TextButton")
  81.     local Hm = Instance.new("TextButton")
  82.     local Lol = Instance.new("TextButton")
  83.     local Come = Instance.new("TextButton")
  84.     local WhoosVR = Instance.new("TextButton")
  85.     local WaitAMin = Instance.new("TextButton")
  86.     local What = Instance.new("TextButton")
  87.     local NextPage = Instance.new("TextButton")
  88.     local Page2 = Instance.new("Frame")
  89.     local Stop = Instance.new("TextButton")
  90.     local Start = Instance.new("TextButton")
  91.     local TextButton = Instance.new("TextButton")
  92.     local Hey = Instance.new("TextButton")
  93.     local Cool = Instance.new("TextButton")
  94.     local Bruh = Instance.new("TextButton")
  95.     local SUS = Instance.new("TextButton")
  96.     local Hacker = Instance.new("TextButton")
  97.     local Me = Instance.new("TextButton")
  98.     local BackPage = Instance.new("TextButton")
  99.     VRchat.Name = "VR chat"
  100.     VRchat.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  101.     VRchat.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  102.     Page1.Name = "Page1"
  103.     Page1.Parent = VRchat
  104.     Page1.BackgroundColor3 = Color3.fromRGB(109, 109, 109)
  105.     Page1.BackgroundTransparency = 0.300
  106.     Page1.Position = UDim2.new(-0.00080871582, 0, -0.00193678541, 0)
  107.     Page1.Size = UDim2.new(1, 0, 1, 0)
  108.     Page1.Visible = false
  109.     Hello.Name = "Hello"
  110.     Hello.Parent = Page1
  111.     Hello.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  112.     Hello.Position = UDim2.new(0.0549020506, 0, 0.0764637515, 0)
  113.     Hello.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  114.     Hello.Font = Enum.Font.SourceSans
  115.     Hello.Text = "Hello!"
  116.     Hello.TextColor3 = Color3.fromRGB(0, 0, 0)
  117.     Hello.TextScaled = true
  118.     Hello.TextSize = 25.000
  119.     Hello.TextWrapped = true
  120.     Ok.Name = "Ok"
  121.     Ok.Parent = Page1
  122.     Ok.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  123.     Ok.Position = UDim2.new(0.355535269, 0, 0.0764637515, 0)
  124.     Ok.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  125.     Ok.Font = Enum.Font.SourceSans
  126.     Ok.Text = "Ok"
  127.     Ok.TextColor3 = Color3.fromRGB(0, 0, 0)
  128.     Ok.TextScaled = true
  129.     Ok.TextSize = 25.000
  130.     Ok.TextWrapped = true
  131.     No.Name = "No"
  132.     No.Parent = Page1
  133.     No.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  134.     No.Position = UDim2.new(0.354956299, 0, 0.32854709, 0)
  135.     No.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  136.     No.Font = Enum.Font.SourceSans
  137.     No.Text = "No"
  138.     No.TextColor3 = Color3.fromRGB(0, 0, 0)
  139.     No.TextScaled = true
  140.     No.TextSize = 25.000
  141.     No.TextWrapped = true
  142.     Yes.Name = "Yes"
  143.     Yes.Parent = Page1
  144.     Yes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  145.     Yes.Position = UDim2.new(0.0549020506, 0, 0.330081195, 0)
  146.     Yes.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  147.     Yes.Font = Enum.Font.SourceSans
  148.     Yes.Text = "Yes"
  149.     Yes.TextColor3 = Color3.fromRGB(0, 0, 0)
  150.     Yes.TextScaled = true
  151.     Yes.TextSize = 25.000
  152.     Yes.TextWrapped = true
  153.     Hm.Name = "Hm"
  154.     Hm.Parent = Page1
  155.     Hm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  156.     Hm.Position = UDim2.new(0.677410305, 0, 0.330081195, 0)
  157.     Hm.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  158.     Hm.Font = Enum.Font.SourceSans
  159.     Hm.Text = "?"
  160.     Hm.TextColor3 = Color3.fromRGB(0, 0, 0)
  161.     Hm.TextScaled = true
  162.     Hm.TextSize = 25.000
  163.     Hm.TextWrapped = true
  164.     Lol.Name = "Lol"
  165.     Lol.Parent = Page1
  166.     Lol.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  167.     Lol.Position = UDim2.new(0.676831245, 0, 0.0759145617, 0)
  168.     Lol.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  169.     Lol.Font = Enum.Font.SourceSans
  170.     Lol.Text = "Lol"
  171.     Lol.TextColor3 = Color3.fromRGB(0, 0, 0)
  172.     Lol.TextScaled = true
  173.     Lol.TextSize = 25.000
  174.     Lol.TextWrapped = true
  175.     Come.Name = "Come"
  176.     Come.Parent = Page1
  177.     Come.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  178.     Come.Position = UDim2.new(0.0549020506, 0, 0.574909747, 0)
  179.     Come.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  180.     Come.Font = Enum.Font.SourceSans
  181.     Come.Text = "Come"
  182.     Come.TextColor3 = Color3.fromRGB(0, 0, 0)
  183.     Come.TextScaled = true
  184.     Come.TextSize = 25.000
  185.     Come.TextWrapped = true
  186.     WhoosVR.Name = "WhoosVR"
  187.     WhoosVR.Parent = Page1
  188.     WhoosVR.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  189.     WhoosVR.Position = UDim2.new(0.325847805, 0, 0.839991808, 0)
  190.     WhoosVR.Size = UDim2.new(0.347911447, 0, 0.108808197, 0)
  191.     WhoosVR.Font = Enum.Font.SourceSans
  192.     WhoosVR.Text = "Whoogives's VR"
  193.     WhoosVR.TextColor3 = Color3.fromRGB(0, 0, 0)
  194.     WhoosVR.TextScaled = true
  195.     WhoosVR.TextSize = 25.000
  196.     WhoosVR.TextWrapped = true
  197.     WaitAMin.Name = "WaitAMin"
  198.     WaitAMin.Parent = Page1
  199.     WaitAMin.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  200.     WaitAMin.Position = UDim2.new(0.356518745, 0, 0.574909747, 0)
  201.     WaitAMin.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  202.     WaitAMin.Font = Enum.Font.SourceSans
  203.     WaitAMin.Text = "Wait a min"
  204.     WaitAMin.TextColor3 = Color3.fromRGB(0, 0, 0)
  205.     WaitAMin.TextScaled = true
  206.     WaitAMin.TextSize = 25.000
  207.     WaitAMin.TextWrapped = true
  208.     What.Name = "What"
  209.     What.Parent = Page1
  210.     What.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  211.     What.Position = UDim2.new(0.675847769, 0, 0.573831201, 0)
  212.     What.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  213.     What.Font = Enum.Font.SourceSans
  214.     What.Text = "What?"
  215.     What.TextColor3 = Color3.fromRGB(0, 0, 0)
  216.     What.TextScaled = true
  217.     What.TextSize = 25.000
  218.     What.TextWrapped = true
  219.     NextPage.Name = "NextPage"
  220.     NextPage.Parent = Page1
  221.     NextPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  222.     NextPage.Position = UDim2.new(0.733790994, 0, 0.854575157, 0)
  223.     NextPage.Size = UDim2.new(0.152555302, 0, 0.081699349, 0)
  224.     NextPage.Font = Enum.Font.SourceSansSemibold
  225.     NextPage.Text = "Next"
  226.     NextPage.TextColor3 = Color3.fromRGB(0, 0, 0)
  227.     NextPage.TextScaled = true
  228.     NextPage.TextSize = 14.000
  229.     NextPage.TextWrapped = true
  230.     Page2.Name = "Page2"
  231.     Page2.Parent = VRchat
  232.     Page2.BackgroundColor3 = Color3.fromRGB(109, 109, 109)
  233.     Page2.BackgroundTransparency = 0.300
  234.     Page2.Position = UDim2.new(-0.00080871582, 0, -0.00193678541, 0)
  235.     Page2.Size = UDim2.new(1, 0, 1, 0)
  236.     Page2.Visible = false
  237.     Stop.Name = "Stop"
  238.     Stop.Parent = Page2
  239.     Stop.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  240.     Stop.Position = UDim2.new(0.0549020506, 0, 0.0764637515, 0)
  241.     Stop.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  242.     Stop.Font = Enum.Font.SourceSans
  243.     Stop.Text = "Stop"
  244.     Stop.TextColor3 = Color3.fromRGB(0, 0, 0)
  245.     Stop.TextScaled = true
  246.     Stop.TextSize = 25.000
  247.     Stop.TextWrapped = true
  248.     Start.Name = "Start"
  249.     Start.Parent = Page2
  250.     Start.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  251.     Start.Position = UDim2.new(0.355535269, 0, 0.0764637515, 0)
  252.     Start.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  253.     Start.Font = Enum.Font.SourceSans
  254.     Start.Text = "Start"
  255.     Start.TextColor3 = Color3.fromRGB(0, 0, 0)
  256.     Start.TextScaled = true
  257.     Start.TextSize = 25.000
  258.     Start.TextWrapped = true
  259.     TextButton.Name = "!"
  260.     TextButton.Parent = Page2
  261.     TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  262.     TextButton.Position = UDim2.new(0.354956299, 0, 0.32854709, 0)
  263.     TextButton.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  264.     TextButton.Font = Enum.Font.SourceSans
  265.     TextButton.Text = "!"
  266.     TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  267.     TextButton.TextScaled = true
  268.     TextButton.TextSize = 25.000
  269.     TextButton.TextWrapped = true
  270.     Hey.Name = "Hey"
  271.     Hey.Parent = Page2
  272.     Hey.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  273.     Hey.Position = UDim2.new(0.0549020506, 0, 0.330081195, 0)
  274.     Hey.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  275.     Hey.Font = Enum.Font.SourceSans
  276.     Hey.Text = "Hey"
  277.     Hey.TextColor3 = Color3.fromRGB(0, 0, 0)
  278.     Hey.TextScaled = true
  279.     Hey.TextSize = 25.000
  280.     Hey.TextWrapped = true
  281.     Cool.Name = "Cool"
  282.     Cool.Parent = Page2
  283.     Cool.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  284.     Cool.Position = UDim2.new(0.677410305, 0, 0.330081195, 0)
  285.     Cool.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  286.     Cool.Font = Enum.Font.SourceSans
  287.     Cool.Text = "Cool"
  288.     Cool.TextColor3 = Color3.fromRGB(0, 0, 0)
  289.     Cool.TextScaled = true
  290.     Cool.TextSize = 25.000
  291.     Cool.TextWrapped = true
  292.     Bruh.Name = "Bruh"
  293.     Bruh.Parent = Page2
  294.     Bruh.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  295.     Bruh.Position = UDim2.new(0.676831245, 0, 0.0759145617, 0)
  296.     Bruh.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  297.     Bruh.Font = Enum.Font.SourceSans
  298.     Bruh.Text = "Bruh"
  299.     Bruh.TextColor3 = Color3.fromRGB(0, 0, 0)
  300.     Bruh.TextScaled = true
  301.     Bruh.TextSize = 25.000
  302.     Bruh.TextWrapped = true
  303.     SUS.Name = "SUS"
  304.     SUS.Parent = Page2
  305.     SUS.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  306.     SUS.Position = UDim2.new(0.0549020506, 0, 0.574909747, 0)
  307.     SUS.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  308.     SUS.Font = Enum.Font.SourceSans
  309.     SUS.Text = "sus"
  310.     SUS.TextColor3 = Color3.fromRGB(0, 0, 0)
  311.     SUS.TextScaled = true
  312.     SUS.TextSize = 25.000
  313.     SUS.TextWrapped = true
  314.     Hacker.Name = "Hacker"
  315.     Hacker.Parent = Page2
  316.     Hacker.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  317.     Hacker.Position = UDim2.new(0.356518745, 0, 0.574909747, 0)
  318.     Hacker.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  319.     Hacker.Font = Enum.Font.SourceSans
  320.     Hacker.Text = "Hacker"
  321.     Hacker.TextColor3 = Color3.fromRGB(0, 0, 0)
  322.     Hacker.TextScaled = true
  323.     Hacker.TextSize = 25.000
  324.     Hacker.TextWrapped = true
  325.     Me.Name = "Me"
  326.     Me.Parent = Page2
  327.     Me.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  328.     Me.Position = UDim2.new(0.675847769, 0, 0.573831201, 0)
  329.     Me.Size = UDim2.new(0.265625, 0, 0.21041666, 0)
  330.     Me.Font = Enum.Font.SourceSans
  331.     Me.Text = "Me"
  332.     Me.TextColor3 = Color3.fromRGB(0, 0, 0)
  333.     Me.TextScaled = true
  334.     Me.TextSize = 25.000
  335.     Me.TextWrapped = true
  336.     BackPage.Name = "BackPage"
  337.     BackPage.Parent = Page2
  338.     BackPage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  339.     BackPage.Position = UDim2.new(0.11035347, 0, 0.854575157, 0)
  340.     BackPage.Size = UDim2.new(0.152555302, 0, 0.081699349, 0)
  341.     BackPage.Font = Enum.Font.SourceSansSemibold
  342.     BackPage.Text = "Back"
  343.     BackPage.TextColor3 = Color3.fromRGB(0, 0, 0)
  344.     BackPage.TextScaled = true
  345.     BackPage.TextSize = 14.000
  346.     BackPage.TextWrapped = true
  347.    
  348.     Page2.Visible = false
  349.     Page1.Visible = false
  350.     game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  351.         if inputObject.KeyCode == Enum.KeyCode.ButtonB  then
  352.             if Page1.Visible == false then
  353.                 Page1.Visible = true
  354.                 wait(.2)
  355.             else
  356.                 Page1.Visible = false
  357.                 wait(.2)
  358.             end
  359.         end
  360.     end)
  361.     BackPage.Activated:Connect(function()
  362.         Page1.Visible = true
  363.         Page2.Visible = false
  364.     end)
  365.     NextPage.Activated:Connect(function()
  366.         Page1.Visible = false
  367.         Page2.Visible = true
  368.     end)
  369.     Hello.Activated:Connect(function()
  370.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Hello!", "All")
  371.         Page1.Visible = false
  372.     end)
  373.     Ok.Activated:Connect(function()
  374.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Ok", "All")
  375.         Page1.Visible = false
  376.     end)
  377.     Hm.Activated:Connect(function()
  378.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("?", "All")
  379.         Page1.Visible = false
  380.     end)
  381.     Yes.Activated:Connect(function()
  382.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Yes", "All")
  383.         Page1.Visible = false
  384.     end)
  385.     Come.Activated:Connect(function()
  386.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Come", "All")
  387.         Page1.Visible = false
  388.     end)
  389.     Lol.Activated:Connect(function()
  390.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Lol", "All")
  391.         Page1.Visible = false
  392.     end)
  393.     No.Activated:Connect(function()
  394.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("No", "All")
  395.         Page1.Visible = false
  396.     end)
  397.     WaitAMin.Activated:Connect(function()
  398.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Wait a min", "All")
  399.         Page1.Visible = false
  400.     end)
  401.     WhoosVR.Activated:Connect(function()
  402.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Whoogives's VR", "All")
  403.         Page1.Visible = false
  404.     end)
  405.     What.Activated:Connect(function()
  406.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("What", "All")
  407.         Page1.Visible = false
  408.     end)
  409.     -- Page2:
  410.     SUS.Activated:Connect(function()
  411.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Sus", "All")
  412.         Page2.Visible = false
  413.     end)
  414.     Cool.Activated:Connect(function()
  415.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Cool", "All")
  416.         Page2.Visible = false
  417.     end)
  418.     Hey.Activated:Connect(function()
  419.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Hey", "All")
  420.         Page2.Visible = false
  421.     end)
  422.     Stop.Activated:Connect(function()
  423.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Stop", "All")
  424.         Page2.Visible = false
  425.     end)
  426.     TextButton.Activated:Connect(function()
  427.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("!", "All")
  428.         Page2.Visible = false
  429.     end)
  430.     Start.Activated:Connect(function()
  431.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Start", "All")
  432.         Page2.Visible = false
  433.     end)
  434.     Hacker.Activated:Connect(function()
  435.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Hacker", "All")
  436.         Page2.Visible = false
  437.     end)
  438.     Me.Activated:Connect(function()
  439.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Me", "All")
  440.         Page2.Visible = false
  441.     end)
  442.     Bruh.Activated:Connect(function()
  443.         game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Bruh", "All")
  444.         Page2.Visible = false
  445.     end)
  446.     --
  447. end
  448. --
  449.  
  450. cam.CameraType = "Scriptable"
  451. cam.HeadScale = options.headscale
  452. game:GetService("StarterGui"):SetCore("VRLaserPointerMode", 0)
  453. game:GetService("StarterGui"):SetCore("VREnableControllerModels", false)
  454. print("Whoogive's VR by Whoogivesashit#2751")
  455.  
  456. local function createpart(size, name)
  457.     local Part = Instance.new("Part", character)
  458.     Part.CFrame = character.HumanoidRootPart.CFrame
  459.     Part.Size = size
  460.     Part.Transparency = 1
  461.     Part.CanCollide = false
  462.     Part.Anchored = true
  463.     Part.Name = name
  464.     return Part
  465. end
  466. local moveHandL = createpart(Vector3.new(1,1,2), "moveRH")
  467. local moveHandR = createpart(Vector3.new(1,1,2), "moveLH")
  468. local moveHead = createpart(Vector3.new(1,1,1), "moveH")
  469. local R1down = false
  470.  
  471. workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position)
  472. game:GetService("RunService").RenderStepped:connect(function()
  473.     if R1down then
  474.         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)
  475.     end
  476. end)
  477. local function bubble(plr,msg)
  478.     game:GetService("Chat"):Chat(plr.Character.Head,msg,Enum.ChatColor.White)
  479. end
  480. if options.forcebubblechat == true then
  481.     game.Players.PlayerAdded:connect(function(plr)
  482.         plr.Chatted:connect(function(msg)
  483.             game:GetService("Chat"):Chat(plr.Character.Head,msg,Enum.ChatColor.White)
  484.         end)
  485.     end)
  486.  
  487.     for i,v in pairs(game.Players:GetPlayers()) do
  488.         v.Chatted:connect(function(msg)
  489.             game:GetService("Chat"):Chat(v.Character.Head,msg,Enum.ChatColor.White)
  490.         end)
  491.     end
  492. end
  493. input.InputChanged:connect(function(key)
  494.     if key.KeyCode == Enum.KeyCode.ButtonR1 then
  495.         if key.Position.Z > 0.9 then
  496.             R1down = true
  497.         else
  498.             R1down = false
  499.         end
  500.     end
  501. end)
  502. input.InputBegan:connect(function(key)
  503.     if key.KeyCode == Enum.KeyCode.ButtonR1 then
  504.         R1down = true
  505.     end
  506. end)
  507. input.InputEnded:connect(function(key)
  508.     if key.KeyCode == Enum.KeyCode.ButtonR1 then
  509.         R1down = false
  510.     end
  511. end)
  512.  
  513. character["Left Arm"]:BreakJoints()
  514. character["Right Arm"]:BreakJoints()
  515. character["Left Leg"]:BreakJoints()
  516. character["Right Leg"]:BreakJoints()
  517. character["Left Arm"].Transparency = options.HandTransparency
  518. character["Right Arm"].Transparency = options.HandTransparency
  519. character["Torso"].Transparency = 0.8
  520. character["Head"].Transparency = 1
  521. character["Right Arm"].CanCollide = false
  522. character["Left Arm"].CanCollide = false
  523.  
  524. if options.HideAllHats == true then
  525.     for i,v in pairs(character:GetChildren()) do
  526.         if v:IsA("Accessory") then
  527.             v.Handle.Transparency = 1
  528.         end
  529.     end
  530. end
  531.  
  532. input.UserCFrameChanged:connect(function(part,move)
  533.     if part == Enum.UserCFrame.Head then
  534.         --move(head,cam.CFrame*move)
  535.         moveHead.CFrame = cam.CFrame*(CFrame.new(move.p*(cam.HeadScale-1))*move - Vector3.new(0,1.7,0))
  536.     elseif part == Enum.UserCFrame.LeftHand then
  537.         --move(handL,cam.CFrame*move)
  538.         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)))
  539.     elseif part == Enum.UserCFrame.RightHand then
  540.         --move(handR,cam.CFrame*move)
  541.         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)))
  542.     end
  543. end)
  544. while runservice["Heartbeat"]:Wait() do
  545.     character["HumanoidRootPart"].CFrame = moveHead.CFrame
  546.     character["Left Arm"].CFrame = moveHandL.CFrame
  547.     character["Right Arm"].CFrame = moveHandR.CFrame
  548. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement