-
What do you want to achieve? I want to bind to the player’s camera model or make it so that the model in the first-person player does not disappear
-
What solutions have you tried so far? Yes, I tried using scripts from other posts but the model would take the camera and the player would fly away, I removed the cancolide and so on
1 Like
I think what I need to do is :
local RunService = game:GetService('RunService')
local PlayerService = game:GetService('Players')
local Player = PlayerService.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
RunService.RenderStepped:Connect(function(DeltaTime)
end)
What am I supposed to do about it?
local RunService = game:GetService('RunService')
local PlayerService = game:GetService('Players')
local Player = PlayerService.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local GasMask
RunService.RenderStepped:Connect(function(DeltaTime)
if GasMask ~= nil then
GasMask:PivotTo(Camera.CFrame)
return
end
local Hazmat = Character:FindFirstChild('GasMask')
if Hazmat then
local Clone = Hazmat:Clone()
Clone.Parent = Camera
GasMask = Clone
end
end)
1 Like
Oh! I found where error, i cloned model from player, but i dont delete Motor6D from model
I think somebody’s going to need this, so change it to suit you ![]()
local RunService = game:GetService('RunService')
local PlayerService = game:GetService('Players')
local Player = PlayerService.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local Model -- nil, don't change this.
RunService.RenderStepped:Connect(function(DeltaTime)
if Model~= nil then
Model:PivotTo(Camera.CFrame) -- SET PRIMARY PART TO WORK!!!!!!!!!!!!
return
end
local ViewModel = -- path to model, example : (game.ReplicatedStorage.Viewmodel)
if ViewModel then
local Clone = ViewModel:Clone() -- clone of model
Clone.Parent = Camera
Model = Clone
end
end)


1. Create a part with this name, and set PrimaryPart to this object
2. (Optional) If you want to animate your model then add an Animation Controller named ‘FakeHumanoid’
3. Bind the main objects to the PrimaryPart (FakeHumanoidRootPart)
4. Set CanCollide and Anchor of parts to false