You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I wan to create a GUI that you are able to drag
What is the issue? Include screenshots / videos if possible!
The issue is when I set up the module script into the game and run the functions it does nothing and gives no error in the output. This is the module right here:Simple Module For Creating Draggable GUI Elements
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Since there is no support for this module I have no idea what to do I tried setting it up like this:
You’re getting the object from StarterGui and not PlayerGui.
-- player gui is where everything is held, not startergui. StarterGui gets copied to playergui
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local DraggableObject = require(playerGui:WaitForChild("ScreenGui").DraggableObject)
local FrameDrag = DraggableObject.new(playerGui.ScreenGui.Frame)
FrameDrag:Enable()
FrameDrag.DragStarted = function()
end
In addition, put this in a LocalScript, not a server script
local DraggableObject = require(script.Parent.Parent:WaitForChild("DraggableObject"))
local FrameDrag = DraggableObject.new(script.Parent)
FrameDrag:Enable()
FrameDrag.DragStarted = function()
end
Make this a LocalScript and put it as a child of the Frame
No, I was saying to put the print method in the function to see if it was working because the script may have been running but nothing was happening. It seemed to be an issue with their studio