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

I cant figure how to reference a model?

Asked by 3 years ago
Edited 3 years ago

im trying to reference all the parts in a model but i cant figure out how

it doesnt get created but it gets destroyed?


local function onTouched(otherPart)

local character = otherPart.Parent

if character then
    local player = game.Players:GetPlayerFromCharacter(character)
    if player then 


        game.Workspace.ItsSafariDreams:Clone()
        wait(1)
        game.Workspace.ItsSafariDreams:Destroy()
    end
end

end

0
it says it isnt a part of the workspace? momgggbghghghghg 50 — 3y
0
are you trying do delete the things inside the model? GameStealerKid 79 — 3y
0
and what do you mean by :Create() GameStealerKid 79 — 3y
0
i meant clone momgggbghghghghg 50 — 3y
View all comments (6 more)
0
also, it destroys it but doesnt clone it momgggbghghghghg 50 — 3y
0
i cant make it transparent either momgggbghghghghg 50 — 3y
0
im trying to clone the model but it says its not part of the work space momgggbghghghghg 50 — 3y
0
what is otherPart? raahatu 6 — 3y
0
local function onTouched(otherPart) is on top momgggbghghghghg 50 — 3y
0
its the thing that touched the part of the touch event momgggbghghghghg 50 — 3y

Answer this question