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

I am trying to clone item into the player and its not working?

Asked by 3 years ago

I am working on admin commands and the tools wont work when i clone them. Here my code that I used

local function bloxycola()
    local bloxy = script.AdminItems.BloxyCola
    bloxy.Parent = characterplayer
end
0
I can't see the rest of your script but it looks like you just need to add ":Clone()" after BloxyCola zane21225 243 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago
local function bloxycola()
    local bloxy = script.AdminItems.BloxyCola:Clone() -- if you want to clone it, make sure to use :Clone() or you will only be able to do it one time
    bloxy.Parent = characterplayer -- you didn't define what characterplayer was but otherwise everything else looks fine
end
Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

That's what I did and it didn't work. When I try clicking it doesn't work! Here a video of me trying it out... https://drive.google.com/file/d/1zX0a4M9hwjMt0H5JXyAErfMZyakQlpDS/view?usp=sharing

0
when I clone it, the scripts don't work even though they should IBulid3 4 — 3y
0
try cloning it from a server script if you arent already doing that. I can't watch the video rn I'll look at it in a bit. BulletproofVast 1033 — 3y

Answer this question