Cxdious
(steelball)
June 24, 2024, 11:46pm
1
Imagelabel doesn’t appear after being cloned. Only its rotation works while their size and pos doesn’t, please help! It prints everything.
local Debris = game:GetService("Debris")
local Ts = game:GetService('TweenService')
local info = TweenInfo.new(.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
local Rs = game:GetService('ReplicatedStorage')
local Modules = Rs.Modules
local RocksGui = game:GetService("StarterGui").Rocks
local RockImage = script.RockImage
local module = {}
function module.RandomRocks()
print("Working")
local Clone = RockImage:Clone()
Clone.Visible = true
Clone.Parent = RocksGui
Clone.Rotation = math.random(0, 360)
Clone.Size = UDim2.fromScale(math.random(.1, .15), math.random(.1, .15))
Clone.Position = UDim2.fromScale(math.random(0, .844), math.random(0, .844))
Debris:AddItem(Clone, 5)
print("Done")
end
return module
Cxdious
(steelball)
June 24, 2024, 11:54pm
3
I already have the gui and everything. This looks AI generated.
1 Like
5Scll1
(5Scll)
June 24, 2024, 11:55pm
4
Uhh You are have giving you? Gui
Cxdious
(steelball)
June 24, 2024, 11:55pm
5
Read the code. I don’t need to create instances if I already have them.
5Scll1
(5Scll)
June 24, 2024, 11:56pm
6
Okay sorry I’m really maybe enjoying day
Cxdious
(steelball)
June 24, 2024, 11:59pm
7
It’s alright! Don’t worry about it!
The clone does not appear at all? Or does it appear and only the roation works for the cloned version?
Cxdious
(steelball)
June 25, 2024, 12:58am
9
It clones to the gui and rotates but its pos and size doesn’t change. I can’t even see the image.
DasKairo
(Cairo)
June 25, 2024, 1:04am
10
You are using StarterGui instead of PlayerGui
PlayerGui is what will appear on the players screen while ScreenGui is what the player will start with.
1 Like
Cxdious
(steelball)
June 25, 2024, 10:45pm
11
This sorted one of the problems, the problem was with math.random(), it doesn’t use integers so I had to use Random.New():NextNumber(). I’ll mark this as the solution though. The problem is fixed now.
system
(system)
Closed
July 9, 2024, 10:45pm
12
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.