Part wont teleport to attachment WorldCFrame

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)

And here’s the explorer:

image

Here is what the tablet looks like:

Here’s a clip of what’s happening:
dont mind my minecraft music

Is the Screen part in your tablet Anchored?

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?

is your local script in workspace?

its in startercharacterscripts

nope its all default

char limit

Maybe try it in starterplayerscripts
and do

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)

still the same problem, it just duplicates and falls through the world

i actually fixed it somehow by just rewriting the entire code. guess roblox is stupid🤷

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.