-
What do you want to achieve? Keep it simple and clear!
I want a part to appear on the player’s arm. -
What is the issue? Include screenshots / videos if possible!
I can’t find anything related to the issue.
You need to set the part’s Parent
to the Workspace
.
I want it to appear like nanotech like in Iron Man
First, you would need to get the players character.
local char = game.Players.LocalPlayer.Character
Then, you can set the position of the part to the arm.
part.Parent = char
part.Position = char.RightArm.Position
These variables aren’t correct, and you can do this with tweening if you want an animation to play.
local UIS = game:GetService(“UserInputService”) – Gets the UserInputService that detects the players inputs
local KeyDownEvent = game:GetService(“ReplicatedStorage”):WaitForChild(“KeyDown”) – Defines the RemoteEvent
local char = game.Players.LocalPlayer.Character
UIS.InputBegan:Connect(function(input) – This function runs when the player presses a key
if input.KeyCode == Enum.KeyCode.Q then – Checks if the pressed key was E
game.ReplicatedStorage.ironmanarm:Clone().Parent = workspace
wait(1)
game.Workspace.ironmanarm.Parent = char
game.Workspace.ironmanarm.Position = char.RightArm.Position
print(“it works”)
end
end)
it says that ironmanarm (the grouped object) is not a valid member of Workspace