Hey, I’m trying to make a tablet camera system but when I try teleport the tablet to the player’s hand it doesnt work and rather duplicates itself and doesnt move. Here’s my script.
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(input, istyping)
if istyping then return end
if input.KeyCode == Enum.KeyCode.E then
local tablet = script.Tablet:Clone()
local char = script.Parent
tablet.Anchored = false
tablet.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
tablet.Parent = char
end
end)
Nevermind that question, the weld would have kept it from falling were that the case. Have you done anything special to your character model via studio or is it default?
local uis = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
uis.InputBegan:Connect(function(input, istyping)
if istyping then return end
if input.KeyCode == Enum.KeyCode.E then
local tablet = script.Tablet:Clone()
local char = player.Character or player.CharacterAdded:Wait()
tablet.Anchored = false
tablet.CFrame = char["Right Arm"].RightGripAttachment.WorldCFrame
tablet.Parent = char
end
end)