Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NexusVRCharacter = script:WaitForChild("NexusVRCharacter")
- local Configuration = script:WaitForChild("Configuration")
- Configuration.Parent = NexusVRCharacter
- for _,Player in pairs(game.Players:GetPlayers()) do
- spawn(function()
- local PlayerScripts = Player:FindFirstChild("PlayerScripts")
- NexusVRCharacter:Clone().Parent = (PlayerScripts or Player:WaitForChild("PlayerGui",120))
- end)
- end
- NexusVRCharacter.Parent = game:GetService("StarterPlayer"):WaitForChild("StarterPlayerScripts")
- if game:GetService("Workspace").FilteringEnabled then
- local Players = game:GetService("Players")
- local UpdateCFramesForCharacter = Instance.new("RemoteEvent")
- UpdateCFramesForCharacter.Name = "NexusVRCharacter_Replicator"
- UpdateCFramesForCharacter.Parent = game:GetService("ReplicatedStorage")
- UpdateCFramesForCharacter.OnServerEvent:Connect(function(Player,HeadCF,LeftControllerCF,RightControllerCF,LeftFootCF,RightFootCF)
- if Player and HeadCF and LeftControllerCF and RightControllerCF and LeftFootCF and RightFootCF then
- for _,OtherPlayer in pairs(Players:GetPlayers()) do
- if OtherPlayer ~= Player then
- UpdateCFramesForCharacter:FireClient(OtherPlayer,Player,HeadCF,LeftControllerCF,RightControllerCF,LeftFootCF,RightFootCF)
- end
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement