My down and left notes are the only ones that work.
local uis = game:GetService("UserInputService")
local magnitude
game:GetService("RunService").RenderStepped:Connect(function()
script.Parent.Position = script.Parent.Position + UDim2.fromOffset(0,-10.5)
magnitude = (script.Parent.AbsolutePosition - game.Players.LocalPlayer.PlayerGui.ScreenGui.ClipBar.AbsolutePosition).magnitude
end)
uis.InputBegan:Connect(function(key, processed)
if magnitude < 502 then
if key.KeyCode == Enum.KeyCode.S or key.KeyCode == Enum.KeyCode.Down then
print("a doo doo")
game.SoundService.Hit:Play()
script.Parent:Destroy()
end
end
end)
wait(3)
script.Parent:Destroy()
local uis = game:GetService("UserInputService")
local magnitude
game:GetService("RunService").RenderStepped:Connect(function()
script.Parent.Position = script.Parent.Position + UDim2.fromOffset(0,-10.5)
magnitude = (script.Parent.AbsolutePosition - game.Players.LocalPlayer.PlayerGui.ScreenGui.ClipBar.AbsolutePosition).magnitude
end)
uis.InputBegan:Connect(function(key, processed)
if magnitude < 502 then
if key.KeyCode == Enum.KeyCode[script.Parent.Key.Value] then
print("a doo doo")
game.SoundService.Hit:Play()
script.Parent:Destroy()
end
end
end)
wait(3)
script.Parent:Destroy()
They are all the exact same. They still don’t work.