Hey there!
For some reason, nothing works in this script. I’ve tried my best searching what’s wrong. But I came up with nothing. So I’m here to ask you people.
Tweening, functions, everything doesn’t work
local spawnlist = script.Parent.Main.SpawnList
local spawnbtn = script.Parent.Main.Spawn.btn
local settingsbtn = script.Parent.Main.Settings.btn
local settingslist = script.Parent.Main.SettingsList
local hoverspawn = spawnbtn.Parent.hover
local hoversetting = settingsbtn.Parent.hover
spawnbtn.MouseButton1Click:Connect(function()
settingslist:TweenPosition(UDim2.new(-1.1, 0, 0.525, 0),"In","Quad")
wait(1)
spawnlist:TweenPosition(UDim2.new(0, 0, 0.525, 0),"In","Quad")
end)
settingsbtn.MouseButton1Click:Connect(function()
spawnlist:TweenPosition(UDim2.new(-1.1, 0, 0.525, 0),"In","Quad")
wait(1)
settingslist:TweenPosition(UDim2.new(0, 0, 0.525, 0),"In","Quad")
end)