Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Clone To Local Player?

Asked by 7 years ago

I need clone a object into a local player im stuck

What I Have

local player = game.Players.LocalPlayer

local part = Instance.new("Part")
part.Parent = player

local clone = game.serverstorage.Item:Clone()
print(clone.Parent)

I need item get clone into the localplayer in the game

0
You can't put parts in the player, why would you even want that? Perci1 4988 — 7y

1 answer

Log in to vote
0
Answered by
farrizbb 465 Moderation Voter
7 years ago
Edited 7 years ago

You cant put items into the player i think you want the character so here ya go.

local player = game.Players.LocalPlayer.Character--gets the players character
local part = Instance.new("Part")
part.Parent = player
local clone = game.ServerStorage.Item:Clone()
clone.Parent = player--idk if ya want the clone to be parented to the player
print(clone.Parent)

Also you are putting a part into the player not the cloned object what even is the point of that.

If this worked then please accept this answer

Ad

Answer this question