Hello, I would like to learn how to create a skill check and use it in my game, but I don’t know how to do it
whatever the hell a “skill check” is, i think i’d like to learn that!
. . .
something like that
you know this is very not helpful
elaboRATE
Make the gui rotate back and fourth and check if it’s in the correct rotation when pressing the keybind.
Have you ever played “flee the facility”? He means the gui that appears when hacking a computer that turns and you press e when it goes to the red line
You may try to get the UserInputService to listen ur input and while the gui is on it should fire the server to make its thing
could you give some example script?
Yes sure it would take some time tho!
okay I’ll wait until you’re done and try to understand
What kind of “skill check” do you want?
something more or less like this
Ok I managed to pull of something straight instead of making it curcular since I dont have the gui elements for it.
local UserInputService = game:GetService("UserInputService")
local TouchFrame = script.Parent.Frame.TouchFrame
local TouchBar = script.Parent.Frame.TouchBar
function checkPosition(frame, mid)
local touchBarPos = frame.AbsolutePosition.X
local touchBarFrame = mid.AbsolutePosition.X
local a = touchBarPos + frame.AbsoluteSize.X
local b = touchBarFrame + mid.AbsoluteSize.X
if (touchBarFrame <= touchBarPos and b <= touchBarPos) or (a <= touchBarFrame and a <= b) then
print('Vertical bounds do not overlap')
else
print('Vertical bounds overlap')
end
end
UserInputService.InputBegan:Connect(function(input: InputObject, gameProcessedEvent: boolean)
if input.KeyCode == Enum.KeyCode.E then
checkPosition(TouchFrame, TouchBar)
end
end)
while wait() do
TouchBar.Position += UDim2.new(.01, 0, 0, 0)
if TouchBar.Position.X.Scale >= 1 then
TouchBar.Position = UDim2.new(0, 0, .5, 0)
end
end
Script is really basic but if you didnt understand it compares the position of eachother depending on the axis that you want here I used X for this example
Source I used:
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.