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

3D Module remove image?

Asked by 8 years ago

Hi guys! I can attach an image to the gui and that works fine:

module3D = require(script.Parent.Module3D)
frame = script.Parent.Frame
guy = game.Workspace.Skins.AstraKnife.Handle
model3D = module3D:Attach3D(frame,guy)
model3D:SetActive(true)
game:GetService("RunService").RenderStepped:connect(function()
    local fullrotation = math.pi*2
    local currentrotation = tick()%fullrotation
    model3D:SetCFrame(CFrame.Angles(0,currentrotation,0))
end)

but, any ideas how I would unattach it from the gui? I have tried making the frame invisible but it didn't work :( Any help would be appreciated! :) Thanks!

1 answer

Log in to vote
0
Answered by 8 years ago
model3D:SetActive(false)

That will hide the model from being over the frame, it won't remove it though I haven't worked with the module enough to know how to do that sorry :(

Ad

Answer this question